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
Certes
.
Pages where most IP edits have been reverted, and at least five different IPs have been reverted, over the previous two days
Toggle Highlighting
SQL
SELECT rc_namespace, rc_title, COUNT(DISTINCT actor_name) AS addresses, COUNT(DISTINCT CASE WHEN ct_tag_id IS NULL THEN NULL ELSE actor_name END) AS rv_addresses, COUNT(DISTINCT actor_name) / COUNT(DISTINCT CASE WHEN ct_tag_id IS NULL THEN NULL ELSE actor_name END) AS rv_addresses_pc, COUNT(*) AS ip_edits, SUM(ct_tag_id IS NOT NULL) AS rv_ip_edits, COUNT(*) / SUM(ct_tag_id IS NOT NULL) AS rv_ip_edits_pc 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 '20230204' AND '20230205' AND actor_user IS NULL /* IP edits only */ AND NOT EXISTS (SELECT 1 FROM page_restrictions WHERE pr_page = rc_cur_id) GROUP BY rc_namespace, rc_title HAVING reverted_ip_addresses >= 5 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...