SELECT
SUM(IF(rating_rating <= 5 AND rating_rating >= 4, 1, 0)),
SUM(IF(rating_rating <= 4 AND rating_rating >= 3, 1, 0)),
SUM(IF(rating_rating <= 3 AND rating_rating >= 0, 1, 0))
FROM wp_ratings
Po prostu użyj SUM
zamiast COUNT
i to wielokrotnie. Możesz wtedy "policzyć" tylko to, co chcesz policzyć.