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
Waldyrious
.
This query aims to identify images that were taken with a given camera model but were not added to the corresponding category.
Toggle Highlighting
SQL
SELECT actor.actor_name AS username, page.page_title, page.page_namespace FROM image LEFT JOIN categorylinks ON img_name = cl_from AND cl_to = 'Taken_with_Google_Pixel_4a' JOIN page ON page.page_title = img_name AND page.page_namespace = 6 -- 6 is the namespace for files JOIN actor ON image.img_actor = actor.actor_id WHERE img_metadata LIKE '%"Pixel 4a"%' AND cl_from IS NULL AND actor.actor_name NOT IN ('FakirNL', 'Donald Trung', 'Bärbel Miemietz', 'TaurusEmerald', 'The wub', 'Tim Rademacher', 'GeomapCastro', 'Vinayaraj') -- Usernames to exclude 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...