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
MarioGom
.
Toggle Highlighting
SQL
SET STATEMENT max_statement_time = 60 FOR SELECT ip16, c FROM ( SELECT CONCAT(ip16, '.0.0/16') as ip16, count(*) AS c FROM ( SELECT DISTINCT ipb_address, REGEXP_REPLACE(ipb_address, '\.[0-9]+\.[0-9]+(/[0-9]+)?$', '') AS ip16 FROM ipblocks INNER JOIN comment ON (ipblocks.ipb_reason_id = comment.comment_id) WHERE TRUE AND ipb_user = 0 AND ipb_address NOT LIKE '%:%' -- exclude IPv6 AND ipb_address LIKE '%/%' -- only ranges AND ( FALSE OR comment_text LIKE '%roxy%' OR comment_text LIKE '%roxies%' OR comment_text LIKE '%NOP%' OR comment_text LIKE '%VPN%' OR comment_text LIKE '%colo%' OR comment_text LIKE '%webhost%' ) ) AS q1 GROUP BY ip16 ) AS q2 WHERE c >= 2 ORDER BY c DESC, ip16 ASC
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...