codice:
select preferenza,count(preferenza) as tot
from tabella
group by preferenza
order by tot desc limit 3