Obviously this is related to how you class middle ability. , A pupil of middle ability in a Grammar school would be high ability in a middle range comprehensive.
However if you use the Governments Definition of Middle ability, what grades are expected at GCSE , A Level E.TC.