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
MarioGom
.
Toggle Highlighting
SQL
# users with 5 or more unreviewed articles SELECT rev_actor, actor_name, COUNT(rev_id) articles FROM revision_userindex AS revision INNER JOIN pagetriage_page ON rev_page = ptrp_page_id INNER JOIN page ON page_id = rev_page INNER JOIN actor ON rev_actor = actor_id INNER JOIN user ON actor_user = user_id WHERE TRUE AND rev_parent_id = 0 AND ptrp_reviewed IN (1, 3) AND page_namespace = 0 AND page_is_redirect = 0 AND actor_user NOT IN (SELECT DISTINCT ug_user FROM user_groups WHERE ug_group IN ('reviewer', 'sysop')) AND user_registration < "20180101000000" GROUP BY rev_actor HAVING COUNT(rev_id) >= 5 -- ORDER BY COUNT(rev_id) DESC; ORDER BY user_registration ASC;
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...