Fork of
Sockblocks on enwiki
by Tamzin
This query is marked as a draft
This query has been published
by Tamzin.
SQL
AخA
SELECT YEAR(log_timestamp), COUNT(*)
FROM logging
JOIN comment on log_comment_id = comment_id
WHERE log_type = "block"
AND log_action = "block"
AND comment_text RLIKE "([Bb]?l|L)ock evasion|multiple account|[Ss]ock(?!s4)|[Cc]heck[Uu]ser|[Ll]([Tt][Aa]|ong[- ]?[Tt]erm [Aa]buse)"
AND (SELECT user_editcount
FROM user
WHERE user_name = REPLACE(log_title, "_", " ")) > 0
GROUP BY 1
ORDER BY 1 ASC
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.