Q&A about the site for SharePoint enthusiasts
SELECT p1.Id AS QuestionId, AVG(p2.Score) AS AverageAnswerScore FROM Posts p1 JOIN Posts p2 ON p1.Id = p2.ParentId WHERE p1.PostTypeId = 1 -- PostTypeId = 1 indicates that the post is a question AND p2.PostTypeId = 2 -- PostTypeId = 2 indicates that the post is an answer GROUP BY p1.Id, p1.Title HAVING COUNT(p2.Id) >= 5