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 HAVING COUNT(p2.Id) >= 5