Q&A for meta-discussion of the Stack Exchange family of Q&A websites
-- This query uses JOINs to show question score, accepted-answer score
-- (if an answer was accepted), asker, and answerer. It uses a parameter
-- to specify the minimum question score to be included here.
SELECT p.Title, p.Id, p.Score, a.Score AS "Accepted Score",
u.DisplayName AS "Asker", au.DisplayName AS "Answerer"
FROM Posts p
JOIN Posts a ON p.AcceptedAnswerId = a.Id
JOIN Users u ON p.OwnerUserId = u.Id
JOIN Users au ON a.OwnerUserId = au.Id
WHERE p.PostTypeId = 1
AND p.Score >= ##MinScore:int##
and p.AcceptedAnswerId IS NOT NULL
-- MinScore: Minimum question score to include.
ORDER BY p.Score DESC