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
Certes
.
Toggle Highlighting
SQL
SELECT P1.page_title, P2.page_title FROM page P2 JOIN page P1 ON P1.page_namespace=0 AND P1.page_title=REGEXP_REPLACE(P2.page_title, ",_\\w+_County,_", ",_") AND P1.page_is_redirect=0 AND P1.page_title!=P2.page_title LEFT JOIN page_props ON pp_page=P1.page_id AND pp_propname="disambiguation" WHERE P2.page_namespace=0 AND P2.page_title LIKE "%,_%_County,_%" AND P2.page_is_redirect=0 AND pp_page IS NULL ORDER BY REGEXP_REPLACE(P1.page_title, ".*,_", ""), P1.page_title, P2.page_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...