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