对于每个学校每种性别 ,这种sql 使用多个group by 进行分组即可。

group by university , gender;