Questions with a score of 0 or lower that have answers with a lot of votes.
Q&A for those using, extending or developing Emacs
-- Unpopular Questions With Great Answers
-- Questions with a score of 0 or lower that have answers with a lot of votes.
with Questions as (
select * from Posts
where ParentId is null
and Score <= 0
and CommunityOwnedDate is null
select top 500 p.ParentId as [Post Link],
sum(p.Score) as AnswerScore,
q.Score as QuestionScore from Posts p
join Questions q on p.ParentId = q.Id
group by p.ParentId, q.Score
order by AnswerScore desc