This query is marked as a draft This query has been published by FShbib.

SQL

AخA
 
USE arwiki_p;
select actor_name, count(rev_actor)
from revision 
JOIN actor ON actor_id = rev_actor
where rev_timestamp > DATE_SUB(NOW(), INTERVAL 1 Hour)
    AND actor_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'editor')
    AND actor_name NOT IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot')
group by rev_actor
    having count(rev_actor) > 100
ORDER BY count(rev_actor) desc
limit 10;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...