Q&A for people studying math at any level and professionals in related fields
-- Votes on Arturo Magidin's answers.
select v.VoteTypeId as Type, t.Name, count(v.VoteTypeId) from
join Votes v on v.PostId = p.Id
join VoteTypes t on t.Id = v.VoteTypeId
where p.PostTypeId=2 and p.OwnerUserId=742
group by v.VoteTypeId, t.Name