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
.
[[WP:Database reports/Polluted categories (2)]], as normally updated by the currently-MIA [[User:DannyS712 bot]]. What this does is list categories with the number of drafts in them, except for categories whose titles contain any of "AfC", "raft", "Pages", "pages", "edirect", "CS1", "deletion", "rticles", "emplate", "with", "tracking", or "nfobox", case-sensitive. For [[WP:VPT#Bot activity problem]] circa 12 July 2024
Toggle Highlighting
SQL
SELECT cl_to AS category, COUNT(*) AS count FROM categorylinks WHERE cl_from IN ( SELECT page_id FROM page WHERE page_namespace = 118 ) AND cl_to NOT LIKE '%AfC%' AND cl_to NOT LIKE '%raft%' AND cl_to NOT LIKE '%Pages%' AND cl_to NOT LIKE '%pages%' AND cl_to NOT LIKE '%edirect%' AND cl_to NOT LIKE '%CS1%' AND cl_to NOT LIKE '%deletion%' AND cl_to NOT LIKE '%rticles%' AND cl_to NOT LIKE '%emplate%' AND cl_to NOT LIKE '%with%' AND cl_to NOT LIKE '%tracking%' AND cl_to NOT LIKE '%nfobox%' GROUP BY cl_to ORDER BY COUNT(*) DESC, cl_to ASC;
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...