Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Comparison of tagged semi-automated tool edits
by
Chlod
This query is marked as a draft
This query has been published
by
Ivi104
.
Toggle Highlighting
SQL
SELECT -- Add the following columns... COUNT(CASE WHEN ct_tag_id = 59 THEN 1 END) as "reverted", COUNT(CASE WHEN 1=1 THEN 1 END) as "all" FROM revision -- ... from all Wikipedia revisions JOIN change_tag ON ct_rev_id = rev_id -- Combines revision tags with the query WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 YEAR), "%Y%m%d%H%i%s") AND ( -- Minus one year ct_tag_id = 7 -- HG OR ct_tag_id = 63 -- ST OR ct_tag_id = 577 -- RW OR ct_tag_id = 583 -- TW )
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...