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
Mdaniels5757
.
Toggle Highlighting
SQL
SELECT img_name from image INNER JOIN filearchive ON fa_name = img_name #INNER JOIN oldimage ON oi_name = img_name INNER JOIN page ON page_title = img_name AND page_namespace = 6 WHERE img_name IN (SELECT page_title FROM page INNER JOIN categorylinks ON cl_from = page_id WHERE (cl_to = 'Copy_to_Wikimedia_Commons' OR cl_to = 'Copy_to_Wikimedia_Commons_(bot-assessed)' OR cl_to = 'Copy_to_Wikimedia_Commons_reviewed_by_a_human' ) ) AND img_name NOT IN (SELECT page_title FROM page INNER JOIN categorylinks ON cl_from = page_id WHERE cl_to = 'Copy_to_Wikimedia_Commons_with_hidden_file_revisions' ) #AND oi_deleted = 1
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...