SQL
AخA
SELECT user_name as Reviewer, page_title as 'Example page', left(log_timestamp, 12) as Timestamp, count(*) as ReviewsPerMinute, cl_to AS categories
FROM logging_userindex
JOIN page ON page_title = log_title AND page_namespace = log_namespace
JOIN actor ON actor_id = log_actor
JOIN categorylinks ON page_id=cl_from
JOIN user ON actor_user = user_id
WHERE log_timestamp > date_add(now(), interval -14 day)
AND page_is_redirect = 0 -- non-redirects
and
((log_type = 'patrol' AND log_action = 'patrol') OR
(log_type = 'pagetriage-curation' AND log_action = 'reviewed'))
AND log_namespace = 0 -- Mainspace only
AND cl_to NOT REGEXP
'^All_redirects_for_discussion$'
group by log_actor, Timestamp
having ReviewsPerMinute > 1
order by ReviewsPerMinute desc
limit 30;
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.