Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Editors by experience level 55000-56000 2019
by
Insertcleverphrasehere
This query is marked as a draft
This query has been published
by
Insertcleverphrasehere
.
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, with no blocks in at least a year, at least 5 total page moves, at least total 500 edits in the past year, and created at least two pages that are currently in the main namespace and at least 2000 bytes long. Also restricts to users with at least 3000 total edits and that are in the extendedconfirmed group, to be faster to query.
Toggle Highlighting
SQL
SELECT user_id, user_name, user_editcount, user_registration FROM `user` JOIN actor_user on actor_user=user_id WHERE user_editcount >= 55000 AND user_editcount <= 56000 AND user_registration < 20190207000000 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 NOT EXISTS (SELECT 1 FROM logging_logindex WHERE user_name = log_title AND log_type = 'block' AND log_action = 'block' AND log_timestamp >= 20190207000000) AND (SELECT COUNT(*) FROM logging_userindex WHERE actor_id=log_actor AND log_type = 'move' LIMIT 5) >= 5 AND (SELECT COUNT(*) FROM (SELECT * FROM revision_userindex WHERE rev_actor = actor_id AND rev_timestamp >= 20190807000000 LIMIT 500) subquery1) >= 500 AND (SELECT COUNT(*) FROM (SELECT * FROM revision_userindex WHERE rev_actor = actor_id AND rev_timestamp >= 20191207000000 LIMIT 500) subquery1) >= 50 AND (SELECT COUNT(*) FROM (SELECT * FROM revision_userindex JOIN page ON page_id = rev_page WHERE rev_actor = actor_id AND rev_parent_id = 0 AND page_namespace = 0 AND page_len >= 2000 -- length in bytes LIMIT 2) subquery1) >= 2 AND (SELECT COUNT(*) FROM (SELECT * FROM revision_userindex JOIN page ON page_id = rev_page WHERE rev_actor = actor_id AND rev_timestamp >= 20190807000000 AND page_namespace = 5 -- Wikipedia talk, from [[WP:Namespaces]] LIMIT 100) subquery1) >= 100 AND (SELECT COUNT(*) FROM (SELECT * FROM revision_userindex JOIN page ON page_id = rev_page WHERE rev_actor = actor_id AND rev_timestamp >= 20190807000000 AND page_namespace = 3 -- User talk:, from [[WP:Namespaces]] AND page_title != REPLACE(user_name, ' ', '_') -- user_name has spaces; page_title expects them to be underscores LIMIT 10) subquery1) >= 10;
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...