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
Isaac (WMF)
.
For all usernames on a given page -- e.g., WikiProject participant list -- count how many edits each has made to articles in that WikiProject over some time period.
Toggle Highlighting
SQL
WITH participants AS ( SELECT DISTINCT(revactor_actor) AS wikiproject_participant FROM revision INNER JOIN revision_actor_temp ON (rev_id = revactor_rev) WHERE rev_page = 10034790 # https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Spoken_Wikipedia/Participants ), wikiproject_pages AS ( SELECT pa_page_id AS wikiproject_pages FROM page_assessments INNER JOIN page_assessments_projects ON (pap_project_id = pa_project_id AND pap_project_title = 'Spoken Wikipedia') INNER JOIN page ON (pa_page_id = page_id AND page_namespace = 0) ) SELECT revactor_actor, COUNT(revactor_rev) AS num_edits FROM revision_actor_temp INNER JOIN participants ON (revactor_actor = wikiproject_participant) INNER JOIN revision ON (rev_id = revactor_rev) INNER JOIN wikiproject_pages ON (rev_page = wikiproject_pages) WHERE revactor_timestamp >= 20210701000000
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...