Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
New page patrollers by number of articles created
by
Joe Roe (mobile)
This query is marked as a draft
This query has been published
by
Joe Roe
.
Users with the new page patroller ('patroller') right with a count of the number of live, mainspace pages created , excluding redirects. Only includes users explicitly assigned the patroller right, i.e. not sysops.
Toggle Highlighting
SQL
SELECT user_name, COUNT(user_name) AS 'articles_created' FROM user JOIN user_groups ON ug_user = user_id JOIN actor ON actor_user = user_id LEFT JOIN revision_userindex ON rev_actor = actor_id LEFT JOIN page ON page_id = rev_page WHERE ug_group = 'patroller' AND rev_parent_id = 0 AND page_namespace = 0 AND page_is_redirect = 0 GROUP BY user_name
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...