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
KCVelaga (WMF)
.
Toggle Highlighting
SQL
SELECT COUNT(CASE WHEN ipb_expiry >= 20230104235959 THEN 1 END) AS time_bound_blocked, COUNT(CASE WHEN ipb_expiry = 'infinity' THEN 1 END) AS infinitely_blocked_all, COUNT(CASE WHEN ipb_expiry = 'infinity' AND comment_text REGEXP '.*sockpuppet.*' THEN 1 END) AS infinitely_blocked_sockpuppets, COUNT(CASE WHEN ipb_expiry = 'infinity' AND NOT comment_text REGEXP '.*sockpuppet.*' THEN 1 END) AS infinitely_blocked_others FROM user JOIN ipblocks ON user_id = ipb_user JOIN comment ON ipb_reason_id = comment_id
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...