select grade from (select grade,`end`,`end`-number+1 `start`,(select sum(number) from class_grade) total from ( &nb...