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 as ( select page_title from categorylinks, page where cl_type = 'subcat' and cl_from = page_id and cl_to = 'Lists_of_lists' union all select page.page_title from subcats, categorylinks, page where cl_type = 'subcat' and cl_from = page_id and cl_to = subcats.page_title ) -- select count(distinct page_title) from subcats; select count(distinct page.page_title) from subcats join categorylinks on cl_to = subcats.page_title and cl_type = 'page' join page on cl_from = page_id; /* select count(distinct page_title) from categorylinks, page where cl_type = 'page' and cl_from = page_id and (cl_to = 'Lists_of_events' or cl_to in (select page_title from subcats)); */
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...