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
HenriqueCrang
.
Toggle Highlighting
SQL
use commonswiki_p; SELECT SUBSTR(cl_to, 38) país, UNIX_TIMESTAMP(SUBSTR(img_timestamp, 1, 8)) dia, SUBSTR(img_timestamp, 1, 10) hora, COUNT(*) upload FROM categorylinks INNER JOIN page ON cl_from = page_id INNER JOIN image ON page_title = img_name AND img_timestamp < 20150801000000 WHERE cl_type = 'file' AND cl_to IN (SELECT page_title FROM page WHERE page_namespace = 14 AND page_title = 'Images_from_Wiki_Loves_Earth_2015_in_Brazil' AND page_title NOT LIKE '%\_-\_%' ) GROUP BY país, hora
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...