A list of the top 500 users with the highest average answer score excluding community wiki / closed posts or users with less than 10 answers
Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática
SELECT TOP 100 Users.Id as [User Link], AboutMe, WebsiteUrl, Count(Posts.Id) AS Answers, Users.Reputation, CAST(AVG(CAST(Score AS float)) as numeric(6,2)) AS [Average Answer Score] FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE (upper(Users.location) not like ('%UK%') and upper(Users.location) not like ('%CHINA%') and upper(Users.location) not like ('%KINGDOM%') and upper(Users.location) not like ('%INDIA%') and upper(Users.location) not like ('%WILLE%') and upper(Users.location) not like ('%NETHER%')) and (AboutMe like '%facebook%' or AboutMe like '%linkedin%' or AboutMe like '%@%' or WebsiteUrl like '%linkedin%' or WebsiteUrl like '%facebook%' or WebsiteUrl like '%@%') GROUP BY Users.Id, DisplayName, Users.Reputation, AboutMe, WebsiteUrl HAVING Count(Posts.Id) > 10 ORDER BY Users.Reputation DESC