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
Matma Rex
.
SQL from https://en.wikipedia.org/wiki/Wikipedia:Database_reports/Unused_non-free_files/Configuration
Toggle Highlighting
SQL
SELECT page_namespace, page_title FROM page JOIN categorylinks AS cl1 ON cl1.cl_from = page_id LEFT JOIN imagelinks ON il_to = page_title AND page_namespace = 6 LEFT JOIN categorylinks AS cl2 ON cl2.cl_from = page_id AND cl2.cl_to = 'All_orphaned_non-free_use_Wikipedia_files' LEFT JOIN redirect ON rd_title = page_title AND rd_namespace = 6 WHERE cl1.cl_to = 'All_non-free_media' AND il_from IS NULL AND cl2.cl_from IS NULL AND rd_from IS NULL AND page_is_redirect = 0;
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...