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
Ahmad252
.
This query is intended to be used for tests.
Toggle Highlighting
SQL
use commonswiki_p; select count(log_id) as Count, actor_name as Bureaucrat from logging join actor on actor_id = log_actor join user_groups on actor_user = ug_user where log_type = "rights" and log_action = "rights" and log_timestamp between "20190101000000" and "20191116000000" and ug_group = "bureaucrat" and log_params like "%sysop%" group by actor_name union select count(log_id) as Count, actor_name as Bureaucrat from logging join actor on actor_id = log_actor join user_groups on actor_user = ug_user where log_type = "rights" and log_action = "rights" and log_timestamp between "20190101000000" and "20191116000000" and ug_group = "bureaucrat" and log_params like "%admin%" group by actor_name union select count(log_id) as Count, actor_name as Bureaucrat from logging join actor on actor_id = log_actor join user_groups on actor_user = ug_user where log_type = "rights" and log_action = "rights" and log_timestamp between "20190101000000" and "20191116000000" and ug_group = "bureaucrat" and log_params like "%gwtoolset%" group by actor_name union select count(log_id) as Count, actor_name as Bureaucrat from logging join actor on actor_id = log_actor join user_groups on actor_user = ug_user where log_type = "rights" and log_action = "rights" and log_timestamp between "20190101000000" and "20191116000000" and ug_group = "bureaucrat" and log_params like "%bot%" group by actor_name union select count(log_id) as Count, actor_name as Bureaucrat from logging join actor on actor_id = log_actor join user_groups on actor_user = ug_user where log_type = "rights" and log_action = "rights" and log_timestamp between "20190101000000" and "20191116000000" and ug_group = "bureaucrat" and log_params like "%accountcreator%" group by actor_name union select count(log_id) as Count, actor_name as Bureaucrat from logging join actor on actor_id = log_actor join user_groups on actor_user = ug_user where log_type = "rights" and log_action = "rights" and log_timestamp between "20190101000000" and "20191116000000" and ug_group = "bureaucrat" and log_params like "%bureaucrat%" group by Bureaucrat order by Bureaucrat group by Bureaucrat;
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...