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
Cryptic
.
Overview of pages in the [[Category:Stub-Class articles]] tree, by namespace. For [[WP:RAQ#Stub-class articles not tagged with a stub template]] circa 2023 November 25.
Toggle Highlighting
SQL
SET @basecat = 'Stub-Class articles'; SET max_recursive_iterations = 3; -- current maximum depth for this tree; 2504 categories, 8883596 pages SET @basecat = REPLACE(@basecat, ' ', '_'); WITH RECURSIVE deepcat (subcat) AS ( SELECT @basecat UNION DISTINCT SELECT page_title FROM categorylinks JOIN page ON page_id = cl_from AND page_namespace = 14 JOIN deepcat ON cl_to = subcat ) SELECT page_namespace, COUNT(DISTINCT page_title) FROM page JOIN categorylinks ON cl_from = page_id JOIN deepcat ON cl_to = subcat GROUP BY page_namespace;
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...