Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Categories bypassing template tags on Commons
by
Achim55
This query is marked as a draft
This query has been published
by
Achim55
.
Toggle Highlighting
SQL
#USE stopthisrun; USE commonswiki_p; SELECT now() AS timestamp; SELECT CONCAT('* [[:Category:', REPLACE(p1.page_title,'_',' '), ']]') AS cats FROM categorylinks cl1 INNER JOIN page p1 ON p1.page_id = cl1.cl_from AND p1.page_namespace = 14 AND cl1.cl_type = 'subcat' INNER JOIN categorylinks cl2 ON cl2.cl_to = p1.page_title INNER JOIN page p2 ON p2.page_id = cl2.cl_from AND p2.page_namespace = 14 AND cl2.cl_type = 'subcat' WHERE p2.page_title = cl1.cl_to GROUP BY cats LIMIT 2000;
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...