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
JHernandez (WMF)
.
Toggle Highlighting
SQL
-- Playing with splitting https://github.com/greencardamom/Shadows/blob/master/shadows.sql USE enwiki_p; SELECT count(*) FROM image INNER JOIN page ON page_title = img_name AND page_namespace = 6 LEFT JOIN templatelinks ON tl_from = page_id AND tl_namespace = 10 AND tl_title IN ('ShadowsCommons', 'Shadows_commons', 'Shadows_Commons', 'Now_Commons', 'NowCommons', 'Nowcommons', 'NowCommonsThis', 'Now_commons', 'CommonsNow', 'NC', 'NCT', 'Nct', 'Db-now-commons', 'Db-nowcommons', 'Uploaded to Commons', 'Pp-template', 'Keep_local_high-risk', 'Pp-upload', 'C-uploaded', 'C-upload', 'C uploaded', 'C-uploaded', 'M-protected', 'Main page protected', 'Mpimgprotected', 'Mprotect', 'Mprotected', 'PP-main', 'PP-main-page', 'PP-mainpage', 'ProtectedMainPageImage', 'Uploaded_from_Commons', 'Protected_sister_project_logo', 'Rename_media', 'lfr', 'Image_move', 'Media_rename', 'Rename_file', 'Rename_image', 'Rename-image', 'Rename_media', 'RenameMedia', 'Renamemedia', 'Ffd', 'FFD', 'lfd', 'Imagevio', 'PUF', 'Puf', 'PUi', 'Pui', 'PUIdisputed' ) WHERE tl_from IS NULL AND img_timestamp < UTC_TIMESTAMP() - INTERVAL 1 WEEK
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...