Q&A for professional and enthusiast programmers
SELECT p.id [Post Link] FROM Posts p INNER JOIN Posts a on a.ParentId = p.Id WHERE p.LastEditDate < DATEADD(month, -6, p.LastActivityDate) ORDER BY p.LastEditDate