SELECT S.* FROM S WHERE S.学号 IN
(SELECT SC.学号 FROM SC INNER JOIN SC1 ON SC.学号=SC1.学号 AND SC.成绩>SC1.成绩
AND SC.课程号=(SELECT 课程号 FROM C WHERE 课程名='英语') AND SC1.课程号=(SELECT 课程号 FROM C WHERE 课程名='数学'))
SELECT S.* FROM S WHERE 学号 IN (SELECT SC.学号 FROM SC INNER JOIN (select * from sc where 课程号=(SELECT 课程号 FROM C WHERE 课程名='数学')) SC1 ON SC.学号=SC1.学号 AND SC.成绩>SC1.成绩
AND SC.课程号=(SELECT 课程号 FROM C WHERE 课程名='英语') )