Database: soccer_2

Question: What are the names of the schools with the top 3 largest class sizes?
SQL: SELECT cName FROM college ORDER BY enr DESC LIMIT 3

Question: What are the different states that have students trying out?
SQL: SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName

Question: What are the different states that had students successfully try out?
SQL: SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'

Question: What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?
SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'

Question: What are the names of all students who tried out in alphabetical order?
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName

Question: What are the names and hours spent practicing of every student who received a yes at tryouts?
SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'

Question: What are the states of the colleges where students who tried out for the striker position attend?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'

Question: What are the names of all students who successfully tried out for the position of striker?
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'

Question: In which state is the college that Charles attends?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'

Question: What is the average and maximum number of hours students who made the team practiced?
SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'

Question: What is the average number of hours spent practicing for students who got rejected?
SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'

Question: For each position, what is the maximum number of  hours for students who spent more than 1000 hours training?
SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos

Question: Which colleges does each player with a name that starts with the letter D  who tried out go to?
SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'

Question: What college has a student who successfully made the team in the role of a goalie?
SQL: SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'

Question: What are the names of all tryout participants who are from the largest college?
SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) S: What IS the largest college?