instruction: Total number of votes of. posttype = 1 for questions, = 2 for answers
  votetype = 2 for upvotes, = 3 for downvotes
response: SELECT COUNT(v.Id) FROM Votes AS v INNER JOIN Posts AS p ON p.Id = v.PostId WHERE p.PostTypeId = '##posttype##' AND v.VoteTypeId = '##votetype##'