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
A smart kitten
.
for use as an example, based on https://quarry.wmcloud.org/history/88829/960134/931560
Toggle Highlighting
SQL
select * from logging_userindex inner join comment_logging on comment_id = log_comment_id inner join actor_logging on actor_id = log_actor -- test left join block_target on bt_user_text = replace(log_title, '_', ' ') left join block on bl_target = bt_id -- (attempt to) filter out currently-blocked users where bl_id is null -- filter down to the block log, and filter out unblock-log-events and log_type = 'block' and log_action regexp '^(re)?block$' -- temporarily while i'm testing this, let's only grab blocks from the start of this year and log_timestamp > '2024' -- try and find users blocked for spam/advertising/promotion and convert(comment_text using utf8) regexp 'spam|promo|advert';
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...