instruction: Edits the most non-owned posts, network-wide.
response: WITH Raw AS (SELECT DISTINCT Users.AccountId, PostHistory.PostId FROM PostHistory, Posts, Users WHERE PostHistory.PostId = Posts.Id AND PostHistoryTypeId IN (4, 5, 6) AND Posts.OwnerUserId != PostHistory.UserId AND PostHistory.UserId = Users.Id) SELECT AccountId, COUNT(*) AS N FROM Raw GROUP BY AccountId ORDER BY N DESC