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
Valhallasw
.
Toggle Highlighting
SQL
use nlwiki_p; SELECT page_namespace, page_title, il_to FROM imagelinks JOIN page on page_id = il_from WHERE # Not an image on the local wiki... NOT EXISTS (SELECT * FROM image WHERE img_name = il_to) # Not an image on commons... AND NOT EXISTS (SELECT * FROM commonswiki_p.image WHERE img_name = il_to) # Not a redirect on the local wiki... AND NOT EXISTS (SELECT * FROM page WHERE page_namespace = 6 AND page_title = il_to) # Not a redirect on commons... AND NOT EXISTS (SELECT * FROM commonswiki_p.page WHERE page_namespace = 6 AND page_title = il_to) ORDER BY page_namespace ASC LIMIT 1000
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...