instruction: Answered and closed, no time limit.
response: SELECT COUNT(p.Id) FROM Posts AS p, PostHistory AS ph WHERE p.PostTypeId = 1 AND ph.PostHistoryTypeId = 10 AND NOT p.AcceptedAnswerId IS NULL AND p.Id = ph.PostId AND p.Score > 0