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.userid = 111554 and p.posttypeid = 2