Q&A for administrators and users of the CiviCRM Constituent Relationship Management software
select top 10 U.Id, U.DisplayName, count(P.Id) as Answers from Users as U inner join Posts as P on P.OwnerUserId = U.Id and P.PostTypeId = 2 -- Answers only where U.Id = 16766 group by U.Id, U.DisplayName order by Answers desc