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
EGalvez (WMF)
.
Data for the learning & evaluation team
Toggle Highlighting
SQL
#non-bot edits to the Grants:Evaluation namespace by month/year 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 Portal_total_revisions FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 200 AND p.page_title LIKE "Evaluation%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #non-bot, non-WMF edits to the Grants:Evaluation namespace by month/year 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 Portal_nonwmf_revisions FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 200 AND p.page_title LIKE "Evaluation%" AND rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_user_text NOT LIKE "%(WMF)" AND r.rev_user_text NOT IN ("Ijon", "Wolliff") AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #non-bot edits to the Grants TALK: Evaluation namespace by month/year 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 PotalTalk_revisions FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 201 AND p.page_title LIKE "Evaluation%" AND rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #non-bot, non-WMF edits to the Grants TALK: Evaluation namespace by month/year 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 PortalTalk_nonwmf_revisions FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 201 AND p.page_title LIKE "Evaluation%" AND rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_user_text NOT LIKE "%(WMF)" AND r.rev_user_text NOT IN ("Ijon", "Wolliff") AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #non-bot, non-WMF editors to the Grants:Evaluation namespace by month/year 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 non_wmf_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) AND p.page_title LIKE "Evaluation%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_user_text NOT LIKE "%(WMF)" AND r.rev_user_text NOT IN ("Ijon", "Wolliff") AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #non-bot, non-WMF edits to Learning Patterns by month/year 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 LP_nonwmf_revisions 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) AND p.page_title LIKE "Learning_patterns%" AND rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_user_text NOT LIKE "%(WMF)" AND r.rev_user_text NOT IN ("Ijon", "Wolliff") AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #non-bot, non-WMF editors to Learning Patterns by month/year 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 LP_nonwmf_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) AND p.page_title LIKE "Learning_patterns%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') AND r.rev_user_text NOT LIKE "%(WMF)" AND r.rev_user_text NOT IN ("Ijon", "Wolliff") 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...