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
MPGuy2824
.
Toggle Highlighting
SQL
SELECT user_name as Editor, page_title as 'Example AFD', count(*) as AfDedits FROM page JOIN revision ON rev_page = page_id JOIN actor ON actor_id = rev_actor JOIN user ON actor_user = user_id WHERE page_namespace = 4 AND page_title LIKE "Articles_for_deletion/%" AND page_title NOT LIKE "Articles_for_deletion/Log/%" AND rev_timestamp > date_add(now(), interval -30 day) and user_editcount > 1000 AND NOT EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'sysop') -- administrator AND NOT EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'patroller') -- new page patroller and not exists (select 1 from user_former_groups where ufg_user=user_id and ufg_group='patroller') -- former patrollers group by rev_actor order by AfDedits 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...