select 学校,sum(case when 语文+数学>120 then 1 else 0 end) as 总分大于120的个数 
,sum(case when 数学>60 then 1 else 0 end) as 数学大于60分的个数
from 表
group by 学校