Show student ids who are on scholarship and have major 600.
SELECT StuID FROM Student WHERE major  =  600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'
SELECT StuID FROM Student WHERE major  =  600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'
[{'StuID': 1002}, {'StuID': 1003}, {'StuID': 1015}, {'StuID': 1019}]