Fork of DO NOT RERUN - Top NPP reviewers (redirects only) 2023 by Hey man im josh
This query is marked as a draft This query has been published by Hey man im josh.

SQL

AخA
 
SELECT RANK() OVER (ORDER BY `Redirect reviews` DESC) AS `No`, actor_name AS `Reviewer`,
      COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirect reviews`
      FROM (
        SELECT distinct log_actor, log_page, page_is_redirect
        FROM logging_userindex
        JOIN page ON page_title = log_title AND page_namespace = log_namespace
        AND 
        ((log_type = 'patrol'  AND log_action = 'patrol') OR
         (log_type = 'pagetriage-curation' AND log_action in ( 'reviewed', 'reviewed-redirect' )))
        AND log_namespace = 0
        AND year(log_timestamp ) = 2024
) logtemp
JOIN actor ON actor_id = log_actor
GROUP BY Reviewer
having `Redirect reviews`>=50
ORDER BY `Redirect reviews` DESC
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...