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
Kasyap
.
Toggle Highlighting
SQL
SELECT RANK() OVER (ORDER BY blocks DESC) AS rank, user_name, COUNT(log_title) AS blocks FROM logging LEFT JOIN user ON user_name = REPLACE(log_title, "_", " ") INNER JOIN user_groups ON ug_user = user_id INNER JOIN actor ON actor_user = user_id WHERE log_type = "block" AND log_action = "block" AND log_actor != actor_id -- Ignore selfblocks AND ug_group = "*" AND log_params LIKE "%in%finit%" -- That's right. We're fuzzy-matching this. *screams* GROUP BY log_title ORDER BY blocks DESC
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...