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
Jmorgan (WMF)
.
Edits to articles in enwiki Category:The_Hobbit_(film_series) grouped by article, month, and year.
Toggle Highlighting
SQL
SELECT tmp.page_title, EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, LPAD(EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')), 2, '0') as `month`, COUNT(rev_id) AS revisions FROM revision r JOIN (SELECT page_id, page_title FROM enwiki_p.page AS p INNER JOIN enwiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE cl.cl_to IN ('The_Hobbit_(film_series)') AND cl.cl_type = 'page' AND p.page_namespace = 0) tmp ON r.rev_page = tmp.page_id GROUP BY tmp.page_title, `year`, `month` ORDER BY tmp.page_title ASC, `year` ASC, `month` ASC;
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...