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
Stefan2
.
{{db-f2}} candidates. Files with certain templatates shouldn't be tagged, and there may be more templates to add to the list.
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_India_UP', 'SP_Massachusetts', 'Db-fpcfail')) 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...