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
set max_recursive_iterations=10; with recursive subcats (cat_title) as ( select cl_to from categorylinks where cl_to in ('Lists') -- union all union distinct select page_title from subcats join categorylinks on cl_to = cat_title and cl_type = 'subcat' join page on cl_from = page_id -- and page_title not in (select cat_title from category where cat_pages = 0) ) select count(cat_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...