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
Mahir256
.
(when constructed, should print number of files in each subcategory of "Category:Categories requiring temporary/permanent diffusion")
Toggle Highlighting
SQL
#describe commonswiki_p.category; #describe commonswiki_p.categorylinks; #describe commonswiki_p.page; SELECT current_date; # SELECT * from commonswiki_p.category where cat_title = "Categories_requiring_temporary_diffusion" limit 10; SELECT CONVERT(cl_to USING utf8), COUNT(*) FROM categorylinks JOIN pagelinks ON pl_title = cl_to AND pl_namespace = 14 JOIN page AS p1 ON pl_from = p1.page_id AND p1.page_namespace IN (0, 6, 10, 12, 14, 100) LEFT JOIN page AS p2 ON cl_to = p2.page_title AND p2.page_namespace = 14 WHERE p2.page_title = "Categories_requiring_temporary_diffusion" GROUP BY 1 LIMIT 1000;
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...