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)
.
Toggle Highlighting
SQL
#WMF EDITORS - GRANTS NAMESPACE 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 Grants_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) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editorsAND r.rev_timestamp > 20141001000000 AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan")); #COMMUNITY EDITORS - GRANTS NAMESPACE 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 Grants_Community_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 editorsAND r.rev_timestamp > 20141001000000 AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan"); #WMF EDITORS - EVALUATION NAMESPACE 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 Evaluation_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) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editorsAND r.rev_timestamp > 20141001000000 AND p.page_title LIKE "Evaluation%" AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan")); #COMMUNITY EDITORS - EVALUATION NAMESPACE 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 Evaluation_Community_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 editorsAND r.rev_timestamp > 20141001000000 AND p.page_title LIKE "Evaluation%" AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan"); #WMF EDITORS - LEARNING PATTERNS NAMESPACE 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 LearningPatterns_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) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editorsAND r.rev_timestamp > 20141001000000 AND p.page_title LIKE "Learning_patterns/%" AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan")); #COMMUNITY EDITORS - LEARNING PATTERNS NAMESPACE 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 LearningPatterns_Community_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 editorsAND r.rev_timestamp > 20141001000000 AND p.page_title LIKE "Learning_patterns/%" AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan"); #WMF EDITORS - IDEALAB NAMESPACE 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 IdeaLab_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) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editorsAND r.rev_timestamp > 20141001000000 AND p.page_title LIKE "IdeaLab/%" AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan")); #COMMUNITY EDITORS - IDEALAB NAMESPACE 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 IdeaLab_Community_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 editorsAND r.rev_timestamp > 20141001000000 AND p.page_title LIKE "IdeaLab/%" AND r.rev_timestamp > 20131001000000 AND r.rev_timestamp < 20140101000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan");
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...