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
Nemo bis
.
Partecipanti a Wiki Loves Monuments dal 2013 in poi secondo le categorie
Toggle Highlighting
SQL
USE commonswiki_p; SELECT img_actor, actor_name, COUNT(*) AS photos, COUNT(DISTINCT(SUBSTR(img_timestamp, 1, 4))) AS years, COUNT(gil_page) AS usages, t.page_id AS talkid FROM image JOIN page p ON p.page_title = img_name AND img_width*img_height > 2000000 JOIN categorylinks ON p.page_id = cl_from AND cl_to = 'Uploaded_via_Campaign:wlm-it' JOIN actor_logging ON img_actor = actor_id AND LOWER(actor_name) NOT LIKE '%bot%' LEFT JOIN globalimagelinks ON gil_to = img_name AND gil_page_namespace_id = 0 JOIN page t ON t.page_namespace = 3 AND t.page_title = REPLACE(actor_name, " ", "_") GROUP BY img_actor HAVING photos > 0;
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...