instruction: count of questions with an accepted answer which is outvoted and not authored by the OP.
response: SELECT COUNT(q.Id) FROM Posts AS q INNER JOIN Posts AS a ON q.AcceptedAnswerId = a.Id WHERE q.PostTypeId = 1 AND q.Score > 10 AND (SELECT MAX(Score) FROM Posts AS q2 WHERE q.Id = q2.ParentId) > a.Score AND q.OwnerUserId != a.OwnerUserId