human
Schema:
College (cName, state, enr)
Player (pID, pName, yCard, HS)
Tryout (pID, cName, pPos, decision)
Please answer with SQL.
assistant
Sure, I understand.
human
What are the names of all colleges with students who tried out for the position of goalie?
assistant
SELECT cName FROM tryout WHERE pPos = 'goalie';
human
What is the number of people enrolled in all the other colleges?
assistant
SELECT cNAME , enr FROM college WHERE cName NOT IN ( SELECT cName FROM tryout WHERE pPos = 'goalie' );
human
How many is that in total?
assistant
SELECT SUM( enr ) FROM college WHERE cName NOT IN ( SELECT cName FROM tryout WHERE pPos = "goalie" ) ;