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
Yamaha5
.
Toggle Highlighting
SQL
USE fawiki_p; select user_name, ifnull(auto.cnt, 0) auto, ifnull(notauto.cnt, 0) noauto, count(log_id) tot from logging join user on user_id = log_user left join (select * from logging where log_type = 'patrol' and log_params like '%auto";i:1%' or log_params like '%1' group by log_user) auto on logging.log_user = auto.log_user left join (select * from logging where log_type = 'patrol' and log_params like '%auto";i:0%' or log_params like '%0' group by log_user) notauto on logging.log_user = notauto.log_user left join user_groups on user_id = ug_user and ug_group = 'bot' where log_type = 'patrol' and notauto.log_timestamp>20160601000000 and logging.log_timestamp>20160601000000 and ug_group is null group by logging.log_user order by tot desc, user_id 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...