Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Bdijkstra
.
Toggle Highlighting
SQL
SELECT c1.cat_title AS c1, c1.cat_pages AS c1p, page_title AS c1main, GROUP_CONCAT(c2.cat_title SEPARATOR ' | ') AS c2 FROM category c2, category c1 LEFT JOIN categorylinks ON (c1.cat_title=cl_to AND cl_sortkey_prefix=' ') LEFT JOIN page ON (cl_from=page_id AND page_namespace=0 AND page_is_redirect=0) WHERE c1.cat_title NOT REGEXP '_\\(' AND c2.cat_title REGEXP '_\\(' AND c1.cat_title=REGEXP_REPLACE(c2.cat_title,'_\\(.*$','') GROUP BY c1.cat_title
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...