SQL
AخA
USE arwiki_p;
SET @rank=0;
SELECT @rank:=@rank+1 as "م", CONCAT('[[:مستخدم:',actor_name,'|',actor_name,']]') as "المستخدم", count(rev_actor) as "عدد التعديلات"
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 > 20210502000000
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.