โดยที่ title เหมือนกับ body ไม่จำเป็นต้องใช้ตารางทั้งหมด
s where title is same as body.It is not neccessary to use all the tables.
 PostTags:  PostId [ number]  TagId [ number] 
SELECT p.Id AS "post_link", p.Body, p.CreationDate FROM (SELECT * FROM Posts WHERE PostTypeId = 1 AND LENGTH(Body) < LENGTH(Title) + 30 AND LENGTH(Body) > LENGTH(Title)) AS p INNER JOIN (SELECT ph1.* FROM PostHistory AS ph1 INNER JOIN (SELECT PostId, MAX(CreationDate) AS CreationDate FROM PostHistory WHERE PostHistoryTypeId IN (2, 5, 8) GROUP BY PostId) AS ph2 ON ph1.PostId = ph2.PostId AND ph1.CreationDate = ph2.CreationDate WHERE PostHistoryTypeId IN (2, 5, 8)) AS ph ON p.Id = ph.PostId WHERE LOWER(p.Title) = LOWER(ph.Text) ORDER BY CreationDate DESC LIMIT 10