Fork of
Untitled query #14723
by جار الله
This query is marked as a draft
This query has been published
by Nehaoua.
SQL
AخA
USE arwiki_p;
SELECT
CONCAT("[[مستخدم:",user_name,"|",user_name,"]]") AS "المستخدم",
SUM(CASE WHEN rev_timestamp BETWEEN 20190916000000 and 20190922000000 THEN 1 ELSE 0 END) AS recent_user_editcount,
COUNT(rev_id) AS user_editcount
FROM user INNER JOIN revision
ON revision.rev_user = user.user_id
WHERE rev_timestamp >= 20000000000000
and revision.rev_comment not like ucase (_utf8"%[[ميدياويكي:Gadget-Cat-a-lot|تعديل تصنيفات]]%") collate utf8_general_ci
and revision.rev_comment not like ucase (_utf8"%[[Project:أوب|أوب]]%") collate utf8_general_ci
and revision.rev_comment not like ucase (_utf8"%[[ويكيبيديا:أوب|أوب]]%") collate utf8_general_ci
and ucase (user_name) not like ucase (_utf8"%BOT") COLLATE utf8_general_ci
and user_name not like _utf8"بوت %" collate utf8_general_ci
and user_name Not IN
(SELECT user_name FROM user_groups
INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot')
GROUP BY user_name
ORDER BY recent_user_editcount DESC
LIMIT 20;
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.