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
HakanIST
.
Toggle Highlighting
SQL
USE commonswiki_p; SELECT img.img_name AS ExtractedFile, p.page_title AS DeletedOriginalFile FROM image AS img JOIN templatelinks AS tl ON img.img_name = tl.tl_from JOIN page AS p ON tl.tl_target_id = p.page_id WHERE tl.tl_from_namespace = 6 -- File namespace for extracted files AND p.page_namespace = 10 -- Template namespace for "Extracted from" AND p.page_title LIKE 'Extracted_from%' AND NOT EXISTS ( SELECT 1 FROM image AS original_img WHERE original_img.img_name = p.page_title ) LIMIT 100;
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...