SQL
AخA
SELECT REGEXP_REPLACE(comment_text, '.*?u:(.*?)\\|.*', '\\1') AS username, COUNT(*) AS actions
FROM logging
JOIN actor ON actor_id = log_actor
JOIN comment ON comment_id = log_comment_id
WHERE log_timestamp > "20220101000000"
AND actor_name = "QBA-bot"
AND (log_type = "block" OR log_type = "protect")
AND comment_text LIKE "%блокировка ботом%"
GROUP BY username
ORDER BY actions 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.