ถาม-ตอบ ที่มีความคิดเห็นมากที่สุด ไม่จำเป็นต้องใช้ทุกตาราง
Q&As with the most comments.It is not neccessary to use all the tables.
 Posts:  Id [ number]  PostTypeId [ number]  AcceptedAnswerId [ number]  ParentId [ number]  CreationDate [ time]  DeletionDate [ time]  Score [ number]  ViewCount [ number]  Body [ text]  OwnerUserId [ number]  OwnerDisplayName [ text]  LastEditorUserId [ number]  LastEditorDisplayName [ text]  LastEditDate [ time]  LastActivityDate [ time]  Title [ text]  Tags [ text]  AnswerCount [ number]  CommentCount [ number]  FavoriteCount [ number]  ClosedDate [ time]  CommunityOwnedDate [ time]  ContentLicense [ text] 
SELECT q.Id AS "post_link", q.CommentCount + COALESCE(SUM(a.CommentCount), 0) FROM Posts AS q LEFT OUTER JOIN Posts AS a ON q.Id = a.ParentId GROUP BY q.Id, q.CommentCount ORDER BY q.CommentCount + COALESCE(SUM(a.CommentCount), 0) DESC LIMIT 100