Fork of
Most active users on WP:KSA pages test
by FShbib
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
INNER JOIN page article ON
article.page_id = rev_page AND
article.page_namespace = 0
INNER JOIN page talk ON
talk.page_title = article.page_title AND
talk.page_namespace = 1
INNER JOIN categorylinks ON
cl_from = talk.page_id
WHERE
# rev_timestamp > DATE_SUB(NOW(), INTERVAL 3 MONTH)
rev_timestamp BETWEEN "20200517000000" AND "20200524000000"
AND cl_to = "مقالات_مشروع_ويكي_السعودية"
#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
ORDER BY COUNT(rev_actor) DESC
#LIMIT 100;
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.