Q&A about the site for Ubuntu users and developers
select count(*) from votes v join posts p on v.postid = p.id where v.votetypeid in (2,3) group by p.posttypeid