ผู้ใช้ที่มีการแก้ไขมากที่สุดต่อโพสต์ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Users with most Edits per Post.It is not neccessary to use all the tables.
 ReviewTaskTypes:  Id [ number]  Name [ text]  Description [ text] 
WITH Edits AS (SELECT RANK() OVER (ORDER BY COUNT(*) DESC) AS Rank, UserId AS "user_link", COUNT(*) AS NumRevisions FROM PostHistory WHERE PostHistoryTypeId BETWEEN 4 AND 9 GROUP BY UserId) SELECT Rank, 'user_link', NumRevisions FROM Edits WHERE Rank < 100 OR 'user_link' = '##UserID##' ORDER BY Rank