SQL
AخA
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
WHERE P2.page_namespace=0 AND P2.page_title LIKE "%_County,_" AND P2.page_is_redirect=0 AND P2.page_title LIKE "A%"
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.
All SQL code is licensed under CC0 License.