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
JAnstee (WMF)
.
Toggle Highlighting
SQL
#-----LEARNING PATTERN EDITS #edits to the LEARNING PATTERNS by 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_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_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") GROUP BY `year` ORDER BY `year` ASC; #edits to the LEARNING PATTERNS by 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 edits_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_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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 GROUP BY `year` ORDER BY `year` ASC; #-----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(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS 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 r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") GROUP BY `year` ORDER BY `year` ASC; #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(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS 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 r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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 GROUP BY `year` ORDER BY `year` ASC; #-----IDEAS CREATED #count LEARNING PATTERNS ideas created per month by 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 ideas_created_by_Community FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id INNER JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE p.page_namespace = 200 AND cl.cl_to IN ("Learning_patterns") AND r.rev_user_text NOT LIKE "%(WMF)" 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") AND r.rev_parent_id = 0 GROUP BY `year` ORDER BY `year` ASC; #count LEARNING PATTERNS ideas created per month by 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 ideas_created_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id INNER JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE p.page_namespace = 200 AND cl.cl_to IN ("Learning_patterns") 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 AND r.rev_parent_id = 0 GROUP BY `year` ORDER BY `year` ASC; #-----LEARNING PATTERNS ENDORSEMENTS #Endorsements by 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 Community_endorsements 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) #Grants namespaces AND p.page_title LIKE "Learning_pattern/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse%") OR r.rev_comment LIKE ("%Involve%")) 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #Endorsements by WMF Staff 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 WMF_endorsements 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) AND p.page_title LIKE "Learning_pattern/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse%") OR r.rev_comment LIKE ("%Involve%")) 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")) AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 GROUP BY `year` ORDER BY `year` ASC; #-----LEARNING PATTERN EDITS #edits to the LEARNING PATTERNS by 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_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 (0, 1) AND p.page_title LIKE "Learning_patterns/%" AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") GROUP BY `year` ORDER BY `year` ASC; #edits to the LEARNING PATTERNS by 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 edits_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 (0, 1) AND p.page_title LIKE "Learning_patterns/%" AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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 GROUP BY `year` ORDER BY `year` ASC; #-----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(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS 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 (0, 1) AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") GROUP BY `year` ORDER BY `year` ASC; #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(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS 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 (0, 1) AND r.rev_timestamp > 20131001000000 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 GROUP BY `year` ORDER BY `year` ASC; #-----IDEAS CREATED #count LEARNING PATTERNS ideas created per month by 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 ideas_created_by_Community FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id INNER JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE p.page_namespace = 0 AND cl.cl_to IN ("Learning_patterns") AND r.rev_user_text NOT LIKE "%(WMF)" 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") AND r.rev_parent_id = 0 GROUP BY `year` ORDER BY `year` ASC; #count LEARNING PATTERNS ideas created per month by 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 ideas_created_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id INNER JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE p.page_namespace = 0 AND cl.cl_to IN ("Learning_patterns") 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 AND r.rev_parent_id = 0 GROUP BY `year` ORDER BY `year` ASC; #-----LEARNING PATTERNS ENDORSEMENTS #Endorsements by 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 Community_endorsements FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (0) #Grants namespaces AND p.page_title LIKE "Learning_pattern/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse%") OR r.rev_comment LIKE ("%Involve%")) 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", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan") AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 GROUP BY `year` ORDER BY `year` ASC; #Endorsements by WMF Staff 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 WMF_endorsements FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (0) AND p.page_title LIKE "Learning_pattern/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse%") OR r.rev_comment LIKE ("%Involve%")) 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")) AND r.rev_timestamp > 20160701000000 AND r.rev_timestamp < 20160930000000 GROUP BY `year` ORDER BY `year` 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...