Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Total and reverted revisions of pages with most revisions
by
Lucas Werkmeister
This query is marked as a draft
This query has been published
by
SNowick (WMF)
.
Toggle Highlighting
SQL
SELECT page_title, COUNT(*) AS total, COUNT(DISTINCT rev_sha1) AS unreverted, COUNT(*) - COUNT(DISTINCT rev_sha1) AS reverted, 100 * (1 - COUNT(DISTINCT rev_sha1) / COUNT(*)) AS percentReverted FROM revision JOIN page ON rev_page = page_id WHERE page_namespace = 0 AND page_title IN ( 'List_of_WWE_personnel', 'George_W._Bush', 'United_States', 'Donald_Trump', 'Wikipedia', 'List_of_current_UFC_fighters', 'Michael_Jackson', 'Jesus', 'List_of_programs_broadcast_by_ABS-CBN', 'ATP_Tour_records' ) GROUP BY page_title ORDER BY COUNT(*) DESC;
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...