Number of questions where Accepted Answer < Top voted answer and Accepted Answer > 10


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT COUNT(p.Id) FROM Posts AS p, Posts AS a
  WHERE p.PostTypeId = 1 AND
        p.AcceptedAnswerId IS NOT NULL AND
        a.Id = p.AcceptedAnswerId AND
        (SELECT MAX(Score) FROM Posts as q
        WHERE q.ParentId = p.Id) > a.Score AND
        a.Score > 10 AND
        p.OwnerUserId != a.OwnerUserId;

Enter Parameters

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