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
Matěj Suchánek
.
Toggle Highlighting
SQL
USE cswiki_p; SELECT afl_filter, SUM(IF(afl_actions LIKE '%warn%', 1, 0)) - SUM(IF(afl_actions LIKE '%warn%', 0, 1)), COUNT(*) AS hits FROM abuse_filter_log WHERE afl_filter NOT LIKE 'global-%' AND EXISTS (SELECT * FROM abuse_filter_action WHERE afa_filter = afl_filter AND afa_consequence = 'warn') AND afl_timestamp >= ( SELECT afl_timestamp FROM abuse_filter_log AS afl1 WHERE afl1.afl_filter = afl_filter AND afl1.afl_actions LIKE '%warn%' ORDER BY afl1.afl_timestamp LIMIT 1 ) GROUP BY afl_filter #ORDER BY ratio;
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...