Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
لوقا
.
Toggle Highlighting
SQL
/* SELECT actor_name, COUNT(rev.rev_id) as edit_count FROM revision rev INNER JOIN actor on rev.rev_actor = actor_id INNER JOIN comment_revision on rev.rev_comment_id = comment_id JOIN page ON page_id = rev.rev_page AND comment_text NOT LIKE ucase (_utf8"%[[ميدياويكي:Gadget-Cat-a-lot|تعديل تصنيفات]]%") collate utf8_general_ci AND comment_text NOT LIKE ucase (_utf8"%[[Project:أوب|أوب]]%") collate utf8_general_ci AND comment_text NOT LIKE ucase (_utf8"%[[ويكيبيديا:أوب|أوب]]%") collate utf8_general_ci AND rev.rev_timestamp BETWEEN 20221128000000 AND 20221205000000 AND ucase(actor_name) NOT LIKE ucase("%BOT") COLLATE utf8_general_ci AND actor_name NOT LIKE "%بوت%" collate utf8_general_ci 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 actor_name HAVING edit_count > 0 ORDER BY edit_count DESC LIMIT 50; */ SELECT actor_name, SUM(CASE WHEN rev_timestamp BETWEEN 20170828000000 and 20170904000000 THEN 1 ELSE 0 END) AS recent_user_editcount, COUNT(rev_id) AS user_editcount FROM user INNER JOIN actor on rev.rev_actor = actor_id INNER JOIN comment_revision on rev.rev_comment_id = comment_id WHERE rev_timestamp >= 20000000000000 and comment_text not like ucase (_utf8"%[[ميدياويكي:Gadget-Cat-a-lot|تعديل تصنيفات]]%") collate utf8_general_ci and comment_text not like ucase (_utf8"%[[Project:أوب|أوب]]%") collate utf8_general_ci and comment_text 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...