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
Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.
assistant
SELECT cName FROM College WHERE enr < 13000 AND state = 'AZ' UNION SELECT cName FROM College WHERE enr > 15000 AND state = 'LA';
human
OK! please give me the names of the colleges where enrollment is greater than 20000
assistant
SELECT cName FROM College WHERE enr > 20000;
human
Also give me the names of the colleges where enrollment is between 10000 and 20000.
assistant
SELECT cName FROM College WHERE enr < 20000 AND enr > 10000;
human
Ok. Can you please tell me which college has the lowest enrollment.
assistant
SELECT cName FROM College ORDER by enr LIMIT 1 ;