Q&A for students, teachers, and linguists wanting to discuss the finer points of the Chinese language
SELECT u.Id AS UserId, u.Reputation FROM Users u JOIN Posts p ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 2 -- Only answers AND NOT EXISTS ( SELECT 1 FROM Posts p2 WHERE p2.PostTypeId = 1 -- Users with questions -- AND p2.OwnerUserId = u.Id ) GROUP BY u.Id, u.Reputation HAVING COUNT(p.Id) > 10 -- At least 10 answers ORDER BY u.Reputation DESC; -- Sort by reputation