in that solution you don't need max ,only you have to sort the result :
SELECT (country) ,count(distinct team)
FROM driver
GROUP BY country
order by count(distinct team) DESC
and if you want the nation with the highest number of teams :
SELECT (country) ,count(distinct team)
FROM driver
GROUP BY country
order by count(distinct team) DESC
LIMIT 2
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…