Q&A for professional and enthusiast programmers
select year(p.creationdate) as 'year', count(u.id) as 'count of users' from users u join posts p on p.owneruserid = u.id join posttypes pt on pt.id = p.posttypeid where pt.id = 1 and u.location like '%Ru%' group by year(p.creationdate) order by year(p.creationdate) desc