Database: match_season

Question: Show all official native languages that contain the word "English".
SQL: SELECT Official_native_language FROM country WHERE Official_native_language LIKE "%English%"

Question: Show the distinct position of players from college UCLA or Duke.
SQL: SELECT DISTINCT POSITION FROM match_season WHERE College  =  "UCLA" OR College  =  "Duke"

Question: Which players are from Indonesia?
SQL: SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Country_name  =  "Indonesia"

Question: What are the distinct positions of the players from a country whose capital is Dublin?
SQL: SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Capital  =  "Dublin"

Question: What are the official languages of the countries of players from Maryland or Duke college?
SQL: SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.College  =  "Maryland" OR T2.College  =  "Duke"

Question: How many distinct official languages are there among countries of players whose positions are defenders.
SQL: SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  "Defender"

Question: Show the positions of the players from the team with name "Ryley Goldner".
SQL: SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  "Ryley Goldner"

Question: How many distinct colleges are associated with players from the team with name "Columbus Crew".
SQL: SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  "Columbus Crew"

Question: Show the players and years played for players from team "Columbus Crew".
SQL: SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  "Columbus Crew"

Question: Show the country names and the corresponding number of players.
SQL: SELECT Country_name ,  COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country GROUP BY T1.Country_name

Question: Show the most common position of players in match seasons.
SQL: SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1

Question: Show the top 3 most common colleges of players in match seasons.
SQL: SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3

Question: Show the name of colleges that have at least two players.
SQL: SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2

Question: Show the name of colleges that have at least two players in descending alphabetical order.
SQL: SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2 ORDER BY College DESC

Question: What are the names of teams that do no have match season record?
SQL: SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)