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 college names of the students whose tryout decision is yes
assistant
SELECT cName FROM Tryout WHERE decision = 'yes';
human
what is the average and maximum hours for these students
assistant
SELECT AVG ( T1.HS ) , MAX( T1.HS ) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = "yes" ;