Q&A for those involved in the field of teaching Computer Science
select users.id, count(posts.owneruserid) from users, posts where posts.owneruserid = users.id and year(posts.creationdate) = 2017 group by users.id order by count(posts.owneruserid) desc;