Q&A for science fiction and fantasy enthusiasts
SELECT COUNT(1) AS 'Total Upvotes On Questions', COUNT(1) * 5 AS 'Estimated Rep Gain' FROM Posts p INNER JOIN Votes v ON p.Id = v.PostId WHERE p.PostTypeId = 1 -- Question AND p.OwnerUserId = ##UserId## AND v.VoteTypeId = 2 -- UpMod aka upvotes