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
Enhancing999
.
pairs of categories that contain each other (parent category = subcategory)
Toggle Highlighting
SQL
# based on https://en.wikipedia.org/wiki/Wikipedia:Database_reports/Self-categorized_categories/Configuration SELECT page_title FROM page as p1, page as p2, categorylinks as cl1, categorylinks as cl2 WHERE cl1.cl_to = p1.page_title AND p1.page_id = cl2.cl_from AND p1.page_namespace = 14 AND cl2.cat_title = p2.page_title AND p2.page_namespace = 14 AND p1.page_id = cl1.cl_from AND p1.page_id < p2.page_id;
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...