Q&A for professional and enthusiast programmers
select top 1 u.location, count(distinct p.id) as count from users u join posts p on p.owneruserid = u.id where u.location <> ' ' and year(p.creationdate) = 2017 group by u.location order by count desc