SQL
AخA
WITH swears AS (SELECT 'fuck off' AS swear UNION SELECT 'cunt' UNION SELECT 'fuckwit')
SELECT swear,
CONCAT('[[Special:Diff/', rev_id, ']]') AS diff,
page_title,
comment_text
FROM revision
JOIN page ON page_id = rev_page
JOIN comment_revision ON comment_id = rev_comment_id
JOIN swears ON comment_text RLIKE CONCAT('(?i)', swear)
WHERE page_namespace = 0
AND rev_timestamp BETWEEN '202210' AND '202211';
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.