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
.
[ messing around with a {{database report}} version of this in my sandbox at https://en.wikipedia.org/wiki/User:A_smart_kitten/sandbox3 ]
Toggle Highlighting
SQL
use enwiki_p; select log_timestamp, actor_name, log_action, user_name, user_editcount, comment_text, log_params from logging inner join user on REPLACE(log_title, '_', ' ') = user_name inner join actor on log_actor = actor_id inner join comment on log_comment_id = comment_id where log_type = 'block' /* get block logs only */ and not ( /* filter out ip addresses and ip ranges */ IS_IPV4(SUBSTRING_INDEX(log_title, "/", 1)) /* (at least for now; it's harder to get the contrib count */ or IS_IPV6(SUBSTRING_INDEX(log_title, "/", 1)) /* for them so i'm not worrying about them rn) */ ) and user_editcount >= 100 /* filter to users with 100 edits or more */ order by log_timestamp desc /* most recent blocks first */ limit 100;
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...