I have a database that looks something like this:

I want to make a MySQL query where I count the votes for each id and order them starting from the highest. I want the result to be as follows:

Is this possible if you do not make 3 requests inside each other?
source share