Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Learning Pattern Editors and Pages Created
by
Abittaker (WMF)
This query is marked as a draft
This query has been published
by
Abittaker (WMF)
.
needs to be grouped by quarter as in eval portal pages created
Toggle Highlighting
SQL
#-----LEARNING PATTERNS EDITORS #unique editors to the Learning patterns Community SELECT EXTRACT(Year FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(QUARTER FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `quarter`, COUNT(distinct rev_user) AS lp_editors_Community 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 != 0 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)" AND r.rev_user_text NOT IN ("Ijon", "Jtmorgan","SarahStierch","Wolliff","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") ; #unique editors to the LEARNING PATTERNS by WMF SELECT EXTRACT(Year FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(QUARTER FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `quarter`, COUNT(distinct rev_user) AS lp_editors_WMF 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 != 0 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)" OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan")) #not a non-standard staff account OR User:FuzzyBot ;
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...