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
Sfan00 IMG
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT p.page_id FROM page p LEFT JOIN image i ON i.img_name = p.page_title LEFT JOIN templatelinks t ON t.tl_from = p.page_ID AND ((t.tl_namespace = 10 AND t.tl_title IN #Template namespace ('Featured_picture', 'DYKfile', 'Restricted_use', 'Featured_sound', 'Brazilian_selected_picture', 'Former_featured_picture', 'FSC', 'Asian_Games_selected_picture', 'VPCold', 'Nanotech_selected', 'Picture_of_the_day', 'Former_featured_sound', 'Wikipedia-adnavbox', 'FPCold', 'Fishportal', 'Thailandportal','SP_Massachusetts' 'SP_India_UP', 'Db-fpcfail', 'USMCportal','pp-template','protected image','badimage')) OR (t.tl_namespace = 100 AND t.tl_title IN ('Star/Selected_picture/template', 'Mathematics/Featured_picture_template'))) #Portal namespace WHERE p.page_namespace = 6 AND p.page_is_redirect != 1 AND i.img_name IS NULL AND t.tl_from IS NULL
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...