Fork of Wikimedia Commons media with Czech description needing categories by Blahma
This query is marked as a draft This query has been published by ŠJů.

SQL

AخA
 
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page_id WHERE cl_to = 'Media_needing_categories') AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY 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.
All SQL code is licensed under CC0 License.

Checking query status...