SQL
AخA
select rc_this_oldid, rc_title, rc_namespace, rc_actor, actor_name,
case
when exists(
select ct_rev_id
from change_tag
where
ct_rev_id = rc_this_oldid
and ct_tag_id = 59 -- mw-reverted
) then COUNT(*) as "rev"
else COUNT(*) as "all"
end as reverted
from recentchanges
join actor_revision
on actor_id = rc_actor
and actor_user is null
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.