Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Wikimedia Commons media with Czech description needing categories
by
Vojtěch Dostál
This query is marked as a draft
This query has been published
by
Mormegil
.
Toggle Highlighting
SQL
SELECT CONCAT('*[[:File:', p.page_title, ']]') AS wikitext FROM commonswiki_p.page p WHERE p.page_namespace = 6 AND EXISTS(SELECT pc.cl_from FROM commonswiki_p.categorylinks pc WHERE pc.cl_from=p.page_id AND pc.cl_to IN ( SELECT cp.page_title FROM commonswiki_p.categorylinks c2 JOIN commonswiki_p.page cp ON c2.cl_from = cp.page_id WHERE c2.cl_to = 'Media_needing_categories' )) AND EXISTS(SELECT pt.tl_from FROM commonswiki_p.templatelinks pt WHERE pt.tl_from = p.page_id AND pt.tl_namespace = 10 AND pt.tl_title='Cs') ORDER BY p.page_title
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...