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)
.
Selected vs not selected proposals
Toggle Highlighting
SQL
#commenters on 2014 round 2 selected proposals select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG/Proposals/Selected") AND r.rev_timestamp BETWEEN 20140901000000 and 20141103000000) AS tmp GROUP BY proposal; #commenters on 2014 Round 2 not selected proposals select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG/Proposals/Not_selected") AND r.rev_timestamp BETWEEN 20140901000000 and 20141103000000) AS tmp GROUP BY proposal;
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...