Q&A for professional and enthusiast programmers
-- Enter Query Title
-- Enter Query Description
select count(p.Id) as PostsCount, count(u.Id) as UserCount, count(b.Id) as BadgeCount
from Posts as p join Users as u on p.OwnerUserId = u.Id
join Badges as b on b.UserId = u.Id
where u.Id = 118104 --and b.Name = 'Commenter'
group by b.Id