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
Huji
.
Toggle Highlighting
SQL
use fawiki_p; select rev_user, rev_user_text, count(*) cnt, case when ufg_group is null then '' else '{{خیر|بله}}' end as lostautopatrol from revision left join user_former_groups on rev_user = ufg_user and ufg_group = 'autopatrolled' where rev_parent_id = 0 and rev_timestamp > case when MONTH(CURDATE()) = 1 then CONCAT(YEAR(CURDATE()) - 1, '12', LPAD(DAY(CURDATE()), 2, 0), '000000') else CONCAT(YEAR(CURDATE()), LPAD(MONTH(CURDATE()) - 1, 2, 0), LPAD(DAY(CURDATE()), 2, 0), '000000') end and rev_user not in ( select ug_user from user_groups where ug_group in ('autopatrolled', 'sysop', 'bot') ) and rev_user <> 0 /* anonymous user */ and rev_user <> 374638 /* پیام به کاربر جدید */ group by rev_user_text, ufg_group having cnt > 50 order by cnt desc
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...