Select max(score) from (Select score=avg(score) from tb group by name) A