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
WhitePhosphorus
.
Toggle Highlighting
SQL
-- SELECT cat_id, page_id, cat_title, cl_from, cl_to SELECT page_id, cat_title, GROUP_CONCAT(cl_to SEPARATOR ', ') FROM category JOIN page ON cat_title = page_title JOIN categorylinks ON page_id = cl_from WHERE cat_pages = 0 AND cat_subcats = 0 AND cat_files = 0 AND page_is_redirect = 0 AND page_namespace = 14 AND cat_id NOT IN ( SELECT cat_id FROM category JOIN page ON cat_title = page_title JOIN categorylinks ON page_id = cl_from WHERE cl_to = 'Maintenance_of_categories/Soft_redirected_categories' AND page_is_redirect = 0 AND page_namespace = 14 ) AND cat_id NOT IN ( SELECT cat_id FROM category JOIN page ON cat_title = page_title JOIN templatelinks ON page_id = tl_from JOIN linktarget ON tl_target_id = lt_id WHERE lt_title = "Do_not_delete_category" AND lt_namespace = 10 ) GROUP BY page_id;
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...