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 cl_to, Pc.page_title, Pt.page_title FROM categorylinks JOIN page Pt ON Pt.page_id = cl_from AND Pt.page_namespace = 0 JOIN page Pc ON Pc.page_namespace = 0 AND Pc.page_title = REGEXP_REPLACE(Pt.page_title, "_Township(,.*County)?", "") WHERE cl_to LIKE "Townships_in_%" AND cl_type = 'page' ORDER BY cl_to, Pc.page_title, Pt.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...