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
JJMC89
.
All non-free media with orphaned revisions not tagged with {{Orphaned non-free revisions}}
Toggle Highlighting
SQL
select concat('[[:File:',replace(oi.oi_name,'_',' '),']]') `File` from oldimage oi left join page p on oi.oi_name = p.page_title inner join categorylinks cl on p.page_id = cl.cl_from where oi_deleted = 0 and p.page_namespace = 6 and cl.cl_to = 'All_non-free_media' and not exists ( select 1 from templatelinks tl where tl.tl_from = p.page_id and tl.tl_from_namespace = 6 and tl.tl_namespace = 10 and tl.tl_title = 'Orphaned_non-free_revisions' ) ;
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...