SELECT * FROM (SELECT MONTH(fdate) AS month, ROW_NUMBER() OVER(PARTITION BY MONTH(fdate) ORDER BY COUNT(song_name) DESC,song_id) AS ranking, song_name, COUNT(song_name) AS play_pv FROM play_log pl LEFT JOIN song_info USING(song_id) LEFT JOIN user_info ui USING(user_id) WHERE (singer_...