This query is marked as a draft This query has been published by EGalvez (WMF).

SQL

x
 
#edits to the evaluation portal community
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, 
EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, 
COUNT(rev_id) AS edits FROM metawiki_p.revision r
INNER JOIN metawiki_p.page AS p
ON r.rev_page = p.page_id 
WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces
AND r.rev_user != 0 #exclude IP edits and editors
AND p.page_title LIKE "Evaluation%"
AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot
AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account
AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot
AND r.rev_timestamp > 20131001000000
GROUP BY `year`, `month` 
ORDER BY `year` ASC, `month` ASC;
#unique editors to the evaulation portal community
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, 
EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, 
COUNT(distinct rev_user) AS editors FROM metawiki_p.revision r
INNER JOIN metawiki_p.page AS p
ON r.rev_page = p.page_id 
WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces
AND r.rev_user != 0 #exclude IP edits and editors
AND p.page_title LIKE "Evaluation%"
AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot
AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account
AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot
AND r.rev_timestamp > 20131001000000
GROUP BY `year`, `month` 
ORDER BY `year` ASC, `month` ASC;
#edits to the evaluation portal WMF
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, 
EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, 
COUNT(rev_id) AS editsWMF FROM metawiki_p.revision r
INNER JOIN metawiki_p.page AS p
ON r.rev_page = p.page_id 
WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces
AND r.rev_user != 0 #exclude IP edits and editors
AND p.page_title LIKE "Evaluation%"
AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot
AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account
OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #not a non-standard staff account OR User:FuzzyBot
AND r.rev_timestamp > 20131001000000
GROUP BY `year`, `month` 
ORDER BY `year` ASC, `month` ASC;
#unique editors to the evaulation portal WMF
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, 
EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, 
COUNT(distinct rev_user) AS editorsWMF FROM metawiki_p.revision r
INNER JOIN metawiki_p.page AS p
ON r.rev_page = p.page_id 
WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces
AND r.rev_user != 0 #exclude IP edits and editors
AND p.page_title LIKE "Evaluation%"
AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot
AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account
OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #not a non-standard staff account OR User:FuzzyBot
AND r.rev_timestamp > 20131001000000
GROUP BY `year`, `month` 
ORDER BY `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.
All SQL code is licensed under CC0 License.

Checking query status...