Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Edit counts by time of +sysop, per year w/o sorting
by
Ixtal
This query is marked as a draft
This query has been published
by
Ixtal
.
See original query for further explanation. This is a draft version in order to run and download results from subqueries.
Toggle Highlighting
SQL
SELECT log_timestamp, actor_name, actor_id FROM logging JOIN actor_logging ON actor_name = REPLACE(log_title, '_', ' ') JOIN comment on log_comment_id = comment_id WHERE log_type = 'rights' AND log_action = 'rights' AND ( -- pre-Nov-2012 format (log_params LIKE '%\n%sysop%' -- new groups include sysop AND log_params NOT LIKE '%sysop%\n%' AND NOT log_params LIKE '%bot%' AND NOT comment_text LIKE '%Wikipedia:Bots%') -- old groups don't include sysop OR -- post-Nov-2012 format (log_params LIKE '%newgroups%sysop%' -- new groups include sysop AND log_params NOT LIKE '%oldgroups%sysop%newgroups%' AND NOT log_params LIKE '%bot%' AND NOT comment_text LIKE '%Wikipedia:Bots%') -- old groups don't include sysop OR -- early sysops (comment_text LIKE '%+sysop%' AND NOT comment_text LIKE '%Wikipedia:Bots%' AND NOT log_params LIKE '%bot%') ) AND actor_name NOT LIKE '%bot' AND actor_name not like '%Bot' AND log_timestamp > 20220000000000 AND log_timestamp < 20230000000000 GROUP BY actor_name
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...