Fork of Blocked users with rights, summary mentions "ban" [enwiki] by Tamzin
This query is marked as a draft This query has been published by Tamzin.

SQL

AخA
 
SELECT ipb_address, GROUP_CONCAT(ug_group), ipb_expiry, ipb_sitewide, comment_text
FROM user_groups
    INNER JOIN page ON page_title = REPLACE(ipb_address, ' ', '_'), page_namespace = 2
    INNER JOIN categorylinks ON cl_from = page_id
    JOIN ipblocks ON ug_user = ipb_user
    JOIN comment ON ipb_reason_id = comment_id
WHERE ug_group != 'extendedconfirmed'
    AND cl_to = 'Category:Wikipedia users banned for repeated sockpuppetry'
    AND ipb_sitewide = 1
GROUP BY ipb_id
ORDER BY ipb_expiry DESC
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...