SELECT count(votedUserID) AS totalCalcVotes, (sum(rating)/count(votedUserID)) AS avgCalcRating FROM lb_votes_user WHERE rating>0 GROUP BY battleID