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 a goalie need to play to meet the minimum?
assistant
SELECT MIN( T2.HS ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID AND T1.pPos = 'goalie' GROUP BY T1.pPos;
human
How many hours does a striker need to play to meet the minimum?
assistant
SELECT MIN( T2.HS ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID AND T1.pPos = 'striker' GROUP BY T1.pPos;
human
How many hours does a mid need to play to meet the minimum?
assistant
SELECT MIN( T2.HS ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.ppos = "mid" GROUP BY T1.pPos ;