Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Articles where edits are much more likely to be reverted if from IPs
by
Certes
This query is marked as a draft
This query has been published
by
Mathglot
.
fork 71078: add 'pct' cols to Articles where edits are much more likely to be reverted if from IPs.
Toggle Highlighting
SQL
SELECT rc_namespace, rc_title, SUM(CASE WHEN actor_user IS NULL THEN 1 ELSE 0 END) AS ip_total, SUM(CASE WHEN actor_user IS NULL AND ct_tag_id IS NOT NULL THEN 1 ELSE 0 END) AS ip_reverted, (ip_reverted * 100) / ip_total AS ip_rvt_pct, SUM(CASE WHEN actor_user IS NOT NULL THEN 1 ELSE 0 END) AS reg_total, SUM(CASE WHEN actor_user IS NOT NULL AND ct_tag_id IS NOT NULL THEN 1 ELSE 0 END) AS reg_reverted FROM recentchanges JOIN actor ON actor_id = rc_actor LEFT JOIN change_tag ON ct_rc_id = rc_id AND ct_tag_id = 590 /* mw-reverted */ WHERE rc_timestamp BETWEEN '20230128' AND '20230204' GROUP BY rc_title HAVING ip_reverted > 10 AND ip_reverted/ip_total * reg_total/(CASE WHEN reg_reverted = 0 THEN 0.0001 ELSE reg_reverted END) > 25 ORDER BY rc_namespace, rc_title
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...