ผู้ใช้ golang อันดับต้น ๆ ในเดนเวอร์ ไม่จำเป็นต้องใช้ตารางทั้งหมด
TOP golang users in Denver.It is not neccessary to use all the tables.
 ReviewTasks:  Id [ number]  ReviewTaskTypeId [ number]  CreationDate [ time]  DeletionDate [ time]  ReviewTaskStateId [ number]  PostId [ number]  SuggestedEditId [ number]  CompletedByReviewTaskId [ number] 
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE LOWER(Location) LIKE '%tehran%' AND TagName = 'go' OR TagName = 'golang' GROUP BY u.Id, TagName) SELECT * FROM USER_BY_TAG ORDER BY UpVotes DESC