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
EqJjgOa8rVvsRmZL
.
Toggle Highlighting
SQL
/* with recursive subcats (cat_title) as ( select distinct cl_to from categorylinks where cl_to in ('Disambiguation_pages') union all select page_title from subcats, categorylinks, page where cl_type = 'subcat' and cl_from = page_id and cl_to = cat_title and page_title != 'All_disambiguation_pages' ) select distinct page_namespace, page_title from subcats join categorylinks on cl_to = cat_title and cl_type != 'subcat' join page on cl_from = page_id and page_id not in (select cl_from from categorylinks where cl_to = 'All_disambiguation_pages' and cl_type != 'subcat'); */ with recursive subcats (cat_title) as ( select distinct cl_to from categorylinks where cl_to in ('Set_index_articles') union all select page_title from subcats, categorylinks, page where cl_type = 'subcat' and cl_from = page_id and cl_to = cat_title and page_title != 'All_set_index_articles' ) select distinct page_namespace, page_title from subcats join categorylinks on cl_to = cat_title and cl_type != 'subcat' join page on cl_from = page_id and page_id not in (select cl_from from categorylinks where cl_to = 'All_set_index_articles' and cl_type != 'subcat');
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...