Q&A for Ubuntu users and developers
select top(10) t.tagname , count(*) as [# posts per tag/location] from posts p inner join posttags pt on p.id = pt.postid inner join tags t on t.id = pt.tagid group by t.tagname order by count(*) desc