chat_prompt
stringlengths 438
1.53k
|
|---|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25287007_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many solar eclipse during June 10-11 and march 27-29 is 149?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25287007_2\" WHERE \"march_27_29\"='149';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25287007_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many solar eclipse during august 21-22 and January 15-16 is 141?"
},
{
"role": "assistant",
"content": "SELECT \"august_21_22\" FROM \"table1_25287007_2\" WHERE \"january_15_16\"='141';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25287007_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many solar eclipse during January 15-16 and august 21-22 on august 21, 2017?"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_25287007_2\" WHERE \"august_21_22\"='August 21, 2017';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Name the fastest lap for round 14"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fastest_lap\") FROM \"results\" WHERE \"round\"='14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Name the winning driver for 20 april"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"results\" WHERE \"date\"='20 April';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Name the circuit for 13 july"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"results\" WHERE \"date\"='13 July';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Name the fastest lap for round 3"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"results\" WHERE \"round\"='3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Name the fastest lap for piquet sports and silverstone"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"results\" WHERE \"winning_team\"='Piquet Sports' AND \"circuit\"='Silverstone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many laps where the position is 10th and the races is smaller than 9.0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"f_laps\") FROM \"career_summary\" WHERE \"position\"='10th' AND \"races\"<9.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the lowest amount of races?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"races\") FROM \"career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Which races have 137 points?"
},
{
"role": "assistant",
"content": "SELECT \"races\" FROM \"career_summary\" WHERE \"points\"='137';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What team has 137 points?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"points\"='137';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many points were scored when the podiums is 0 and position is 10th?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"career_summary\" WHERE \"podiums\"=0 AND \"position\"='10th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"setting_the_cap\" (\n \"authority\" text,\n \"rate_or_precept\" text,\n \"budget_limit_m\" text,\n \"budget_plans_m\" text,\n \"rate_limit_p\" text,\n \"rate_change_pct\" text,\n \"desired_rate_p\" text,\n \"desired_rate_change_pct\" text\n);\n\nQuestion: What is the rate limit when the desired rate change (%) is +40.4?"
},
{
"role": "assistant",
"content": "SELECT \"rate_limit_p\" FROM \"setting_the_cap\" WHERE \"desired_rate_change_pct\"='+40.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"setting_the_cap\" (\n \"authority\" text,\n \"rate_or_precept\" text,\n \"budget_limit_m\" text,\n \"budget_plans_m\" text,\n \"rate_limit_p\" text,\n \"rate_change_pct\" text,\n \"desired_rate_p\" text,\n \"desired_rate_change_pct\" text\n);\n\nQuestion: What is the rate limit when budget plans (\u00a3m) is limit agreed?"
},
{
"role": "assistant",
"content": "SELECT \"rate_limit_p\" FROM \"setting_the_cap\" WHERE \"budget_plans_m\"='limit agreed';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"setting_the_cap\" (\n \"authority\" text,\n \"rate_or_precept\" text,\n \"budget_limit_m\" text,\n \"budget_plans_m\" text,\n \"rate_limit_p\" text,\n \"rate_change_pct\" text,\n \"desired_rate_p\" text,\n \"desired_rate_change_pct\" text\n);\n\nQuestion: What is the rate limit when the desired rate (p) is 162?"
},
{
"role": "assistant",
"content": "SELECT \"rate_limit_p\" FROM \"setting_the_cap\" WHERE \"desired_rate_p\"='162';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"setting_the_cap\" (\n \"authority\" text,\n \"rate_or_precept\" text,\n \"budget_limit_m\" text,\n \"budget_plans_m\" text,\n \"rate_limit_p\" text,\n \"rate_change_pct\" text,\n \"desired_rate_p\" text,\n \"desired_rate_change_pct\" text\n);\n\nQuestion: What is the rate change % when the rate limit is 82.86?"
},
{
"role": "assistant",
"content": "SELECT \"rate_change_pct\" FROM \"setting_the_cap\" WHERE \"rate_limit_p\"='82.86';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"setting_the_cap\" (\n \"authority\" text,\n \"rate_or_precept\" text,\n \"budget_limit_m\" text,\n \"budget_plans_m\" text,\n \"rate_limit_p\" text,\n \"rate_change_pct\" text,\n \"desired_rate_p\" text,\n \"desired_rate_change_pct\" text\n);\n\nQuestion: What is the desired rate when the rate limit (p) is 50.33?"
},
{
"role": "assistant",
"content": "SELECT \"desired_rate_p\" FROM \"setting_the_cap\" WHERE \"rate_limit_p\"='50.33';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"setting_the_cap\" (\n \"authority\" text,\n \"rate_or_precept\" text,\n \"budget_limit_m\" text,\n \"budget_plans_m\" text,\n \"rate_limit_p\" text,\n \"rate_change_pct\" text,\n \"desired_rate_p\" text,\n \"desired_rate_change_pct\" text\n);\n\nQuestion: What is the authority who set the budget limit (\u00a3m) at 900?"
},
{
"role": "assistant",
"content": "SELECT \"authority\" FROM \"setting_the_cap\" WHERE \"budget_limit_m\"='900';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"order\" real,\n \"episode\" text,\n \"u_s_air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" real\n);\n\nQuestion: What was the highest share?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"share\") FROM \"ratings\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25331766_3\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the final score of the game with 7523 in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"final_score\" FROM \"table1_25331766_3\" WHERE \"attendance\"=7523;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25331766_3\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What is the lowest attendance?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"table1_25331766_3\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: If the rebounds are at 87, what are the amount of steals?"
},
{
"role": "assistant",
"content": "SELECT \"steals\" FROM \"player_stats\" WHERE \"rebounds\"=87;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many players 89 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"blocks\") FROM \"player_stats\" WHERE \"points\"=89;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: If the Steals are 20, what are the blocks?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"blocks\") FROM \"player_stats\" WHERE \"steals\"=20;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25341765_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many millions of viewers did the episode directed by Jeffrey Blitz have?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_25341765_1\" WHERE \"directed_by\"='Jeffrey Blitz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25341765_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode that had 5.92 million viewers?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_25341765_1\" WHERE \"u_s_viewers_million\"='5.92';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25341765_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What was the name of the episode Alan Yang wrote?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_25341765_1\" WHERE \"written_by\"='Alan Yang';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25341765_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes were directed by Michael McCullers?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_25341765_1\" WHERE \"directed_by\"='Michael McCullers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: When 3rd is the position what is the lowest amount of points?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"career_summary\" WHERE \"position\"='3rd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: When art grand prix is the team and 2010 is the season how many wins are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"career_summary\" WHERE \"season\"=2010 AND \"team\"='ART Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: When 7th is the position and 15 is the race who is the team?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"races\"=15 AND \"position\"='7th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What is the lowest overall amount of poles?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"poles\") FROM \"career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: When racing engineering is the team and 2012 is the team what is the position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"career_summary\" WHERE \"season\"=2012 AND \"team\"='Racing Engineering';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_prisons\" (\n \"facility\" text,\n \"location\" text,\n \"year_opened\" text,\n \"major_facility\" text,\n \"population_gender\" text,\n \"capacity\" real,\n \"custody_level_s\" text\n);\n\nQuestion: Is the facility opened in 1968 a major facility?"
},
{
"role": "assistant",
"content": "SELECT \"major_facility\" FROM \"current_prisons\" WHERE \"year_opened\"='1968';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_prisons\" (\n \"facility\" text,\n \"location\" text,\n \"year_opened\" text,\n \"major_facility\" text,\n \"population_gender\" text,\n \"capacity\" real,\n \"custody_level_s\" text\n);\n\nQuestion: What is the custody level of the facility in Shelton?"
},
{
"role": "assistant",
"content": "SELECT \"custody_level_s\" FROM \"current_prisons\" WHERE \"location\"='Shelton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_prisons\" (\n \"facility\" text,\n \"location\" text,\n \"year_opened\" text,\n \"major_facility\" text,\n \"population_gender\" text,\n \"capacity\" real,\n \"custody_level_s\" text\n);\n\nQuestion: Is the Washington Corrections Center for Women (WCCW) a major facility?"
},
{
"role": "assistant",
"content": "SELECT \"major_facility\" FROM \"current_prisons\" WHERE \"facility\"='Washington Corrections Center for Women (WCCW)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_prisons\" (\n \"facility\" text,\n \"location\" text,\n \"year_opened\" text,\n \"major_facility\" text,\n \"population_gender\" text,\n \"capacity\" real,\n \"custody_level_s\" text\n);\n\nQuestion: What is the capacity for a facility opened in 1956?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"capacity\") FROM \"current_prisons\" WHERE \"year_opened\"='1956';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_prisons\" (\n \"facility\" text,\n \"location\" text,\n \"year_opened\" text,\n \"major_facility\" text,\n \"population_gender\" text,\n \"capacity\" real,\n \"custody_level_s\" text\n);\n\nQuestion: What facility opening in 1954?"
},
{
"role": "assistant",
"content": "SELECT \"facility\" FROM \"current_prisons\" WHERE \"year_opened\"='1954';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: Which player had 6 assists? "
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"player_stats\" WHERE \"assists\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is the fewest steals any player had?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"steals\") FROM \"player_stats\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many steals did Kelly Miller have?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"steals\") FROM \"player_stats\" WHERE \"player\"='Kelly Miller';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: Which player had 9 blocks?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"player_stats\" WHERE \"blocks\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many rebounds did Tammy Sutton-Brown have?"
},
{
"role": "assistant",
"content": "SELECT \"rebounds\" FROM \"player_stats\" WHERE \"player\"='Tammy Sutton-Brown';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2534578_1\" (\n \"school_year\" text,\n \"language\" text,\n \"science\" text,\n \"reading\" text,\n \"mathematics\" text,\n \"social_studies\" text\n);\n\nQuestion: What was the science score in the year there was a social studies score of 93.56?"
},
{
"role": "assistant",
"content": "SELECT \"science\" FROM \"table1_2534578_1\" WHERE \"social_studies\"='93.56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2534578_1\" (\n \"school_year\" text,\n \"language\" text,\n \"science\" text,\n \"reading\" text,\n \"mathematics\" text,\n \"social_studies\" text\n);\n\nQuestion: How many years did the school have a mathetmatics score of 98.02?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"science\") FROM \"table1_2534578_1\" WHERE \"mathematics\"='98.02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2534578_1\" (\n \"school_year\" text,\n \"language\" text,\n \"science\" text,\n \"reading\" text,\n \"mathematics\" text,\n \"social_studies\" text\n);\n\nQuestion: What was the reading score in the year the science score was 96.13?"
},
{
"role": "assistant",
"content": "SELECT \"reading\" FROM \"table1_2534578_1\" WHERE \"science\"='96.13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2534578_1\" (\n \"school_year\" text,\n \"language\" text,\n \"science\" text,\n \"reading\" text,\n \"mathematics\" text,\n \"social_studies\" text\n);\n\nQuestion: What was the language score when the reading score was 94.47?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"table1_2534578_1\" WHERE \"reading\"='94.47';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many values for points have Sophia Witherspoon as the player?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"player_stats\" WHERE \"player\"='Sophia Witherspoon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is the highest value for points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"player_stats\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is every value for rebounds when steals is 19?"
},
{
"role": "assistant",
"content": "SELECT \"rebounds\" FROM \"player_stats\" WHERE \"steals\"=19;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is every value for points if rebounds is 6 and blocks is 0?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"player_stats\" WHERE \"rebounds\"=6 AND \"blocks\"=0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is every entry for assists if the player is Lynn Pride?"
},
{
"role": "assistant",
"content": "SELECT \"assists\" FROM \"player_stats\" WHERE \"player\"='Lynn Pride';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25356350_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What is the air date of the episode written by Itamar Moses? "
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_25356350_3\" WHERE \"written_by\"='Itamar Moses';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355392_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What is the june 10-11 when august 21-22 is august 21, 2017?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25355392_2\" WHERE \"august_21_22\"='August 21, 2017';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355392_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: how many times is march 27-29 is 129?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"november_3\") FROM \"table1_25355392_2\" WHERE \"march_27_29\"='129';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355392_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: what is june 10-11 when march 27-29 is 149?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25355392_2\" WHERE \"march_27_29\"='149';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355392_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: what is november 3 when june 10-11 is june 10, 1964?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25355392_2\" WHERE \"june_10_11\"='June 10, 1964';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355392_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: what is march 27-29 when november 3 is 133?"
},
{
"role": "assistant",
"content": "SELECT \"march_27_29\" FROM \"table1_25355392_2\" WHERE \"november_3\"='133';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355392_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What is january 15-16 when november 3 is 153?"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_25355392_2\" WHERE \"november_3\"='153';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355501_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: january 15-16 when august 21-22 is august 22, 1979?"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_25355501_2\" WHERE \"august_21_22\"='August 22, 1979';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355501_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many entries are shown for november 3 when january 15-16 is 141?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"november_3\") FROM \"table1_25355501_2\" WHERE \"january_15_16\"='141';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355501_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: march 27-29 where june 10-11 is 127?"
},
{
"role": "assistant",
"content": "SELECT \"march_27_29\" FROM \"table1_25355501_2\" WHERE \"june_10_11\"='127';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355501_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: june 10-11 when november 3 is 133?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25355501_2\" WHERE \"november_3\"='133';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355501_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: june 10-11 when january 15-16 is january 15, 1991?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25355501_2\" WHERE \"january_15_16\"='January 15, 1991';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25355501_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What is shown for november 3 when august 21-22 is august 22, 1998?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25355501_2\" WHERE \"august_21_22\"='August 22, 1998';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Name the number of teams for 11th position september 10"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"managerial_changes\" WHERE \"position_in_table\"='11th' AND \"date_of_appointment\"='September 10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Name the replaced by for august 9 "
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='August 9' AND \"date_of_appointment\"='August 9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"num\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text,\n \"last_school\" text\n);\n\nQuestion: Name the most number for charvez davis"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"roster\" WHERE \"name\"='Charvez Davis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"num\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text,\n \"last_school\" text\n);\n\nQuestion: Name the most height"
},
{
"role": "assistant",
"content": "SELECT MAX(\"weight\") FROM \"roster\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"num\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text,\n \"last_school\" text\n);\n\nQuestion: Name the number of home town for number being 32"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"home_town\") FROM \"roster\" WHERE \"num\"=32;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"num\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text,\n \"last_school\" text\n);\n\nQuestion: Name the total number of height for number 32"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"height\") FROM \"roster\" WHERE \"num\"=32;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"num\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text,\n \"last_school\" text\n);\n\nQuestion: Name the number for florida air academy"
},
{
"role": "assistant",
"content": "SELECT \"num\" FROM \"roster\" WHERE \"last_school\"='Florida Air Academy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"num\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text,\n \"last_school\" text\n);\n\nQuestion: Name the height for demetrius jemison"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"roster\" WHERE \"name\"='Demetrius Jemison';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"points_table\" (\n \"team\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"no_result\" real,\n \"abandoned\" real,\n \"bonus_points\" real,\n \"total_points\" real,\n \"net_run_rate\" text\n);\n\nQuestion: How many wins did Canterbury Wizards have?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"won\") FROM \"points_table\" WHERE \"team\"='Canterbury Wizards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"points_table\" (\n \"team\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"no_result\" real,\n \"abandoned\" real,\n \"bonus_points\" real,\n \"total_points\" real,\n \"net_run_rate\" text\n);\n\nQuestion: What team had a net run rate of 0.134?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"points_table\" WHERE \"net_run_rate\"='0.134';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"points_table\" (\n \"team\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"no_result\" real,\n \"abandoned\" real,\n \"bonus_points\" real,\n \"total_points\" real,\n \"net_run_rate\" text\n);\n\nQuestion: What's the largest number of abandoned games by any of the teams?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"abandoned\") FROM \"points_table\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"points_table\" (\n \"team\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"no_result\" real,\n \"abandoned\" real,\n \"bonus_points\" real,\n \"total_points\" real,\n \"net_run_rate\" text\n);\n\nQuestion: How many different net run rates did the team with 19 total points have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"net_run_rate\") FROM \"points_table\" WHERE \"total_points\"=19;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What was the team that scored 56 points?Qh"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"points\"='56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What was the earliest season where a team got a 29th position?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"season\") FROM \"career_summary\" WHERE \"position\"='29th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What was the recorded flaps of HBR Motorsport team?"
},
{
"role": "assistant",
"content": "SELECT \"f_laps\" FROM \"career_summary\" WHERE \"team\"='HBR Motorsport';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What was the series where a team scored 56 points?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"career_summary\" WHERE \"points\"='56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many team position scored 56 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"career_summary\" WHERE \"points\"='56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25380472_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: On what dates was the final score of the game L 14\u201324?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_25380472_2\" WHERE \"final_score\"='L 14\u201324';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25380472_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How many game sites are there where the team record is 1\u20137?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game_site\") FROM \"table1_25380472_2\" WHERE \"team_record\"='1\u20137';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25380472_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: On week 7, what were the opponents?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"table1_25380472_2\" WHERE \"week\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25380472_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: On what game sites are there where the team record is 0\u20135?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"table1_25380472_2\" WHERE \"team_record\"='0\u20135';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25380472_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What game sites are where the team record is 1\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"table1_25380472_2\" WHERE \"team_record\"='1\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25380472_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: In game site AOL Arena, who are all the opponents?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"table1_25380472_2\" WHERE \"game_site\"='AOL Arena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_asian\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What organization had the founding date of 1998-11-08? "
},
{
"role": "assistant",
"content": "SELECT \"organization\" FROM \"south_asian\" WHERE \"founding_date\"='1998-11-08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_asian\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: How many letters were given to the organization with a founding date of 1997-12-12? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"letters\") FROM \"south_asian\" WHERE \"founding_date\"='1997-12-12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25374338_1\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the song choice where the original artist is Gino Paoli?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"song_choice\") FROM \"table1_25374338_1\" WHERE \"original_artist\"='Gino Paoli';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25374338_1\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the theme where the original artist is Noemi feat. Fiorella Mannoia?"
},
{
"role": "assistant",
"content": "SELECT \"theme\" FROM \"table1_25374338_1\" WHERE \"original_artist\"='Noemi feat. Fiorella Mannoia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25374338_1\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the order number where the song choice is \"l'appuntamento\"?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"table1_25374338_1\" WHERE \"song_choice\"='\\\"L''appuntamento\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25374338_1\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the song choice where the episode is Live Show 1?"
},
{
"role": "assistant",
"content": "SELECT \"song_choice\" FROM \"table1_25374338_1\" WHERE \"episode\"='Live Show 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25374338_1\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the result where the original artist is Prince and the Revolution?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"table1_25374338_1\" WHERE \"original_artist\"='Prince and The Revolution';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25374338_1\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the theme where the original artist is AC/DC?"
},
{
"role": "assistant",
"content": "SELECT \"theme\" FROM \"table1_25374338_1\" WHERE \"original_artist\"='AC/DC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asian_american\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: what type of organization is sigma phi omega?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"asian_american\" WHERE \"organization\"='Sigma Phi Omega';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asian_american\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: how many types of organization were founded in san diego state university? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"type\") FROM \"asian_american\" WHERE \"founding_university\"='San Diego State University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asian_american\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: name the sorority a.k.a. \"sigmas\" that was founded in the university of southern california."
},
{
"role": "assistant",
"content": "SELECT \"organization\" FROM \"asian_american\" WHERE \"founding_university\"='University of Southern California' AND \"type\"='Sorority' AND \"nickname\"='\\\"Sigmas\\\"';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.