A list of the top 500 users with the highest average answer score excluding community wiki / closed posts or users with less than 10 answers
Q&A for professionals and students of engineering
SELECT TOP 500 Users.Id as [User Link], Count(a.Id) AS Answers, CAST(AVG(CAST(Score AS float)) as numeric(6,2)) AS [Average Answer Score] FROM Tags, PostTags, (Posts a INNER JOIN Users ON Users.Id = a.OwnerUserId) -- INNER JOIN -- PostTags pt ON pt.PostId = a.Id -- INNER JOIN -- Tags t on t.Id = pt.TagId WHERE PostTypeId = 2 and CommunityOwnedDate is null and ClosedDate is null AND TagName in ('drupal') and a.Id = PostTags.PostId and PostTags.TagId = Tags.Id GROUP BY Users.Id, DisplayName --HAVING -- Count(a.Id) > 10 ORDER BY [Average Answer Score] DESC