Q&A for pro webmasters
SELECT COUNT(Posts.Id), Posts.Id AS "Id.x", COUNT(Users.UpVotes) FROM Posts LEFT JOIN Users ON (Posts.Id = Users.Id) GROUP BY Posts.Id ORDER BY COUNT(Posts.Id) desc