Replicas browser and optimizer
Editors by experience level 2
This query is marked as a draft
This query has been published
For https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=842949728#Help_compiling_a_list_of_editors_by_experience_level Users registered at least a year ago, that are in neither the administrator nor new-page-patroller usergroups and at least 3000 total edits to the main namespace. (This query doesn't include the checks against the block log, move log, or total edits in the last year.) Also restricts to users with at least 3000 total edits and that are in the extendedconfirmed group, which are both less restrictive and much faster to query than the requested constraints.
SELECT user_id, user_name, user_editcount, user_registration FROM `user` WHERE user_editcount >= 3000 AND user_registration < 20170526000000 AND EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'extendedconfirmed') 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 (SELECT COUNT(*) FROM revision_userindex JOIN page on page_id = rev_page WHERE rev_user = user_id AND page_namespace = 0 LIMIT 3000) >= 3000;
By running queries you agree to the
and you irrevocably agree to release your SQL under
All SQL code is licensed under
Checking query status...
Report a bug!
Wikimedia Cloud VPS
, written in