Tags with highest average answer scores (among tags with at least 1000 answers)

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

SELECT
t.TagName,
COUNT(a.Id) AS NumAnswers,
SUM(a.Score) AS TotalScore,
AVG(a.Score + 0.0) AS AvgScore
FROM Posts a
JOIN Posts q ON a.ParentId = q.Id
JOIN PostTags pt ON pt.PostId = q.Id
JOIN Tags t ON t.Id = pt.TagId
WHERE a.PostTypeId = 2 and t.tagName in ('java', 'c#', 'c', 'c++',
    'python', 'ruby', 'scala', 'haskell', 'clojure', 'objective-c',
    'f#', 'scheme', 'ocaml', 'lisp', 'php', 'javascript', 'perl', 'r', 'bash',
    'matlab', 'fortran', 'go', 'cobol', 'delphi')
GROUP BY t.tagName, t.Id
HAVING COUNT(a.Id) >= 1000
ORDER BY AvgScore DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results