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
Gnoeee
.
Edit count of users in a category.
Toggle Highlighting
SQL
SELECT actor.actor_name, COUNT(revision_userindex.rev_id) AS edit_count FROM ( SELECT actor.actor_id, REPLACE(page_title, 'User:', '') AS user_name FROM categorylinks JOIN page ON page_id = cl_from JOIN actor ON actor.actor_name = REPLACE(page_title, 'User:', '') WHERE cl_to = 'User_pa-N' ) AS user_actor JOIN revision_userindex ON user_actor.actor_id = revision_userindex.rev_actor JOIN actor ON revision_userindex.rev_actor = actor.actor_id GROUP BY actor.actor_name ORDER BY edit_count;
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...