I have to select the month with most occurrences of each year and order from highest to lowest, on SQL server this query works
SELECT TOP 1 WITH TIES month, y