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
how many hours does each player get to be active for?
assistant
SELECT pID , HS FROM Player;
human
what position requires the least playing time?
assistant
SELECT pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos ORDER by MIN( T2.HS ) LIMIT 1;
human
what is the the playing time of the mid player ?
assistant
SELECT MIN( T2.HS ) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE ppos = "mid" GROUP BY T1.pPos ;