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 \"pitchers\" (\n \"pitcher\" text,\n \"strikeouts\" real,\n \"season\" real,\n \"team\" text,\n \"league\" text,\n \"overall_rank\" real\n);\n\nQuestion: Name the league for strikeouts being 451"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"pitchers\" WHERE \"strikeouts\"=451;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pitchers\" (\n \"pitcher\" text,\n \"strikeouts\" real,\n \"season\" real,\n \"team\" text,\n \"league\" text,\n \"overall_rank\" real\n);\n\nQuestion: Name the most overall rank for nl/ua league"
},
{
"role": "assistant",
"content": "SELECT MAX(\"overall_rank\") FROM \"pitchers\" WHERE \"league\"='NL/UA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pitchers\" (\n \"pitcher\" text,\n \"strikeouts\" real,\n \"season\" real,\n \"team\" text,\n \"league\" text,\n \"overall_rank\" real\n);\n\nQuestion: Name the total number of pitcher for 9 overall rank"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pitcher\") FROM \"pitchers\" WHERE \"overall_rank\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pitchers\" (\n \"pitcher\" text,\n \"strikeouts\" real,\n \"season\" real,\n \"team\" text,\n \"league\" text,\n \"overall_rank\" real\n);\n\nQuestion: Name the most season for old hoss radbourn"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"pitchers\" WHERE \"pitcher\"='Old Hoss Radbourn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24278858_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 week did they play the amsterdam admirals?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"table1_24278858_2\" WHERE \"opponent\"='Amsterdam Admirals';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24278858_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 date did the team play on week 8?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_24278858_2\" WHERE \"week\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24285393_1\" (\n \"country_or_region\" text,\n \"highest_point\" text,\n \"maximum_elevation\" text,\n \"lowest_point\" text,\n \"minimum_elevation\" text,\n \"elevation_span\" text\n);\n\nQuestion: What country has the most height in the northwestern peak of rysy?"
},
{
"role": "assistant",
"content": "SELECT \"country_or_region\" FROM \"table1_24285393_1\" WHERE \"highest_point\"='Northwestern peak of Rysy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24285393_1\" (\n \"country_or_region\" text,\n \"highest_point\" text,\n \"maximum_elevation\" text,\n \"lowest_point\" text,\n \"minimum_elevation\" text,\n \"elevation_span\" text\n);\n\nQuestion: What are the highest point in latvia"
},
{
"role": "assistant",
"content": "SELECT \"highest_point\" FROM \"table1_24285393_1\" WHERE \"country_or_region\"='Latvia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24285393_1\" (\n \"country_or_region\" text,\n \"highest_point\" text,\n \"maximum_elevation\" text,\n \"lowest_point\" text,\n \"minimum_elevation\" text,\n \"elevation_span\" text\n);\n\nQuestion: What is the maximum elevation in netherlands?"
},
{
"role": "assistant",
"content": "SELECT \"maximum_elevation\" FROM \"table1_24285393_1\" WHERE \"country_or_region\"='Netherlands';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24285393_1\" (\n \"country_or_region\" text,\n \"highest_point\" text,\n \"maximum_elevation\" text,\n \"lowest_point\" text,\n \"minimum_elevation\" text,\n \"elevation_span\" text\n);\n\nQuestion: In what country is mont sokbaro a highest point"
},
{
"role": "assistant",
"content": "SELECT \"country_or_region\" FROM \"table1_24285393_1\" WHERE \"highest_point\"='Mont Sokbaro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" text,\n \"champions\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_goalscorer\" text,\n \"club\" text\n);\n\nQuestion: how many times was third place held by drnovice?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"club\") FROM \"year_by_year\" WHERE \"third_place\"='Drnovice';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" text,\n \"champions\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_goalscorer\" text,\n \"club\" text\n);\n\nQuestion: Who is the top goalscorer for the season 2010-11?"
},
{
"role": "assistant",
"content": "SELECT \"top_goalscorer\" FROM \"year_by_year\" WHERE \"season\"='2010-11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" text,\n \"champions\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_goalscorer\" text,\n \"club\" text\n);\n\nQuestion: Who had third place when the champions is ban\u00edk ostrava (1)?"
},
{
"role": "assistant",
"content": "SELECT \"third_place\" FROM \"year_by_year\" WHERE \"champions\"='Ban\u00edk Ostrava (1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" text,\n \"champions\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_goalscorer\" text,\n \"club\" text\n);\n\nQuestion: Who was the top goalscorer for season 2001-02?"
},
{
"role": "assistant",
"content": "SELECT \"top_goalscorer\" FROM \"year_by_year\" WHERE \"season\"='2001-02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" text,\n \"champions\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_goalscorer\" text,\n \"club\" text\n);\n\nQuestion: Who is the runner-up for the season 2008-09?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"year_by_year\" WHERE \"season\"='2008-09';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" text,\n \"champions\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_goalscorer\" text,\n \"club\" text\n);\n\nQuestion: Who is the top goalscorer for season 1998-99?"
},
{
"role": "assistant",
"content": "SELECT \"top_goalscorer\" FROM \"year_by_year\" WHERE \"season\"='1998-99';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" text,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"wins_18\" WHERE \"margin\"='1 stroke' AND \"54_holes\"='2 shot deficit';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2430014_6\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"uk_ratings_bbc2_rank\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the total number directed by for \" france : cap gris-nez to mont-saint-michel \""
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_2430014_6\" WHERE \"title\"='\\\" France : Cap Gris-Nez to Mont-Saint-Michel \\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2430014_6\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"uk_ratings_bbc2_rank\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the written by for john trefor"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2430014_6\" WHERE \"directed_by\"='John Trefor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2430014_8\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"uk_ratings_bbc2_rank\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many directors worked on the episode with 2.27m (5) is the ratings?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_2430014_8\" WHERE \"uk_ratings_bbc2_rank\"='2.27m (5)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2430014_8\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"uk_ratings_bbc2_rank\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of episode 2?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2430014_8\" WHERE \"episode_no\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2430014_8\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"uk_ratings_bbc2_rank\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote the episode what had the rating 2.27m (5)?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2430014_8\" WHERE \"uk_ratings_bbc2_rank\"='2.27m (5)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forbes_global_2000\" (\n \"april_2013_cum_rank\" real,\n \"name\" text,\n \"rank_2012\" real,\n \"rank_2013\" real,\n \"base\" text,\n \"2013_rev_bil_usd\" text,\n \"2013_profit_mil_usd\" text,\n \"assets_2013_bil\" text,\n \"market_cap_march_15_mil\" real\n);\n\nQuestion: Name the name for 14.5 2013 rev"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"forbes_global_2000\" WHERE \"2013_rev_bil_usd\"='14.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forbes_global_2000\" (\n \"april_2013_cum_rank\" real,\n \"name\" text,\n \"rank_2012\" real,\n \"rank_2013\" real,\n \"base\" text,\n \"2013_rev_bil_usd\" text,\n \"2013_profit_mil_usd\" text,\n \"assets_2013_bil\" text,\n \"market_cap_march_15_mil\" real\n);\n\nQuestion: Name the 2013 profit for assets being 11.2"
},
{
"role": "assistant",
"content": "SELECT \"2013_profit_mil_usd\" FROM \"forbes_global_2000\" WHERE \"assets_2013_bil\"='11.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forbes_global_2000\" (\n \"april_2013_cum_rank\" real,\n \"name\" text,\n \"rank_2012\" real,\n \"rank_2013\" real,\n \"base\" text,\n \"2013_rev_bil_usd\" text,\n \"2013_profit_mil_usd\" text,\n \"assets_2013_bil\" text,\n \"market_cap_march_15_mil\" real\n);\n\nQuestion: Name the assets when the rank is 1435"
},
{
"role": "assistant",
"content": "SELECT \"assets_2013_bil\" FROM \"forbes_global_2000\" WHERE \"rank_2013\"=1435;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forbes_global_2000\" (\n \"april_2013_cum_rank\" real,\n \"name\" text,\n \"rank_2012\" real,\n \"rank_2013\" real,\n \"base\" text,\n \"2013_rev_bil_usd\" text,\n \"2013_profit_mil_usd\" text,\n \"assets_2013_bil\" text,\n \"market_cap_march_15_mil\" real\n);\n\nQuestion: Name the number of rank for april 2013 for 2012 ran kbeing 225"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"april_2013_cum_rank\") FROM \"forbes_global_2000\" WHERE \"rank_2012\"=225;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forbes_global_2000\" (\n \"april_2013_cum_rank\" real,\n \"name\" text,\n \"rank_2012\" real,\n \"rank_2013\" real,\n \"base\" text,\n \"2013_rev_bil_usd\" text,\n \"2013_profit_mil_usd\" text,\n \"assets_2013_bil\" text,\n \"market_cap_march_15_mil\" real\n);\n\nQuestion: Name the market cap where 2013 rev is 2.8"
},
{
"role": "assistant",
"content": "SELECT \"market_cap_march_15_mil\" FROM \"forbes_global_2000\" WHERE \"2013_rev_bil_usd\"='2.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forbes_global_2000\" (\n \"april_2013_cum_rank\" real,\n \"name\" text,\n \"rank_2012\" real,\n \"rank_2013\" real,\n \"base\" text,\n \"2013_rev_bil_usd\" text,\n \"2013_profit_mil_usd\" text,\n \"assets_2013_bil\" text,\n \"market_cap_march_15_mil\" real\n);\n\nQuestion: Name the number of assets for australia"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"assets_2013_bil\") FROM \"forbes_global_2000\" WHERE \"base\"='Australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_5\" (\n \"position\" text,\n \"name\" text,\n \"nationality\" text,\n \"event_1_medley\" text,\n \"event_2_truck_pull\" text,\n \"event_3_dead_lift\" text,\n \"event_4_fingals_fingers\" text,\n \"event_5_keg_toss\" text,\n \"event_6_atlas_stones\" text\n);\n\nQuestion: What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"group_5\" WHERE \"event_6_atlas_stones\"='6 (4 in 34.49s)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_5\" (\n \"position\" text,\n \"name\" text,\n \"nationality\" text,\n \"event_1_medley\" text,\n \"event_2_truck_pull\" text,\n \"event_3_dead_lift\" text,\n \"event_4_fingals_fingers\" text,\n \"event_5_keg_toss\" text,\n \"event_6_atlas_stones\" text\n);\n\nQuestion: Who are all the players from the united states?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"group_5\" WHERE \"nationality\"='United States';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_5\" (\n \"position\" text,\n \"name\" text,\n \"nationality\" text,\n \"event_1_medley\" text,\n \"event_2_truck_pull\" text,\n \"event_3_dead_lift\" text,\n \"event_4_fingals_fingers\" text,\n \"event_5_keg_toss\" text,\n \"event_6_atlas_stones\" text\n);\n\nQuestion: What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"event_6_atlas_stones\") FROM \"group_5\" WHERE \"event_3_dead_lift\"='2 (6 in 30.89s)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_5\" (\n \"position\" text,\n \"name\" text,\n \"nationality\" text,\n \"event_1_medley\" text,\n \"event_2_truck_pull\" text,\n \"event_3_dead_lift\" text,\n \"event_4_fingals_fingers\" text,\n \"event_5_keg_toss\" text,\n \"event_6_atlas_stones\" text\n);\n\nQuestion: What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"group_5\" WHERE \"event_6_atlas_stones\"='5 (4 in 32.66s)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_5\" (\n \"position\" text,\n \"name\" text,\n \"nationality\" text,\n \"event_1_medley\" text,\n \"event_2_truck_pull\" text,\n \"event_3_dead_lift\" text,\n \"event_4_fingals_fingers\" text,\n \"event_5_keg_toss\" text,\n \"event_6_atlas_stones\" text\n);\n\nQuestion: What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers?"
},
{
"role": "assistant",
"content": "SELECT \"event_2_truck_pull\" FROM \"group_5\" WHERE \"event_4_fingals_fingers\"='1 (5 in 33.84s)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: When 0 is the top 10's what is the highest amount of cuts made?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"cuts_made\") FROM \"lpga_tour_career_summary\" WHERE \"top_10s\"=0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: What is the lowest overall amount of times they've been in 3rd?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"3rd\") FROM \"lpga_tour_career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: When 2011 is the year what is the lowest money list rank?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"money_list_rank\") FROM \"lpga_tour_career_summary\" WHERE \"year\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: What is the lowest overall money list rank?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"money_list_rank\") FROM \"lpga_tour_career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: When t3 is the best finish what is the lowest amount of tournaments played?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"tournaments_played\") FROM \"lpga_tour_career_summary\" WHERE \"best_finish\"='T3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_money_won\" (\n \"player\" text,\n \"group_legs_won\" real,\n \"play_off_legs_won\" real,\n \"winners_group_legs_won\" real,\n \"winners_play_off_legs_won\" real,\n \"final_position_money_won\" text,\n \"total_money_won\" text\n);\n\nQuestion: What is the latest amount of won legs in the payoffs when the prize money was \u00a32,350?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"winners_play_off_legs_won\") FROM \"prize_money_won\" WHERE \"total_money_won\"='\u00a32,350';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_money_won\" (\n \"player\" text,\n \"group_legs_won\" real,\n \"play_off_legs_won\" real,\n \"winners_group_legs_won\" real,\n \"winners_play_off_legs_won\" real,\n \"final_position_money_won\" text,\n \"total_money_won\" text\n);\n\nQuestion: How many group legs were won with player Mark Dudbridge?"
},
{
"role": "assistant",
"content": "SELECT \"winners_group_legs_won\" FROM \"prize_money_won\" WHERE \"player\"='Mark Dudbridge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_money_won\" (\n \"player\" text,\n \"group_legs_won\" real,\n \"play_off_legs_won\" real,\n \"winners_group_legs_won\" real,\n \"winners_play_off_legs_won\" real,\n \"final_position_money_won\" text,\n \"total_money_won\" text\n);\n\nQuestion: What is the highest amount of group legs won when the prize money was \u00a321,850?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"winners_group_legs_won\") FROM \"prize_money_won\" WHERE \"total_money_won\"='\u00a321,850';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_money_won\" (\n \"player\" text,\n \"group_legs_won\" real,\n \"play_off_legs_won\" real,\n \"winners_group_legs_won\" real,\n \"winners_play_off_legs_won\" real,\n \"final_position_money_won\" text,\n \"total_money_won\" text\n);\n\nQuestion: How many play-off legs were won when the prize money was \u00a310,300?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"winners_play_off_legs_won\") FROM \"prize_money_won\" WHERE \"total_money_won\"='\u00a310,300';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_money_won\" (\n \"player\" text,\n \"group_legs_won\" real,\n \"play_off_legs_won\" real,\n \"winners_group_legs_won\" real,\n \"winners_play_off_legs_won\" real,\n \"final_position_money_won\" text,\n \"total_money_won\" text\n);\n\nQuestion: What is the least amount of playoff legs won?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"winners_play_off_legs_won\") FROM \"prize_money_won\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24319661_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed episode 53 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_24319661_5\" WHERE \"no_in_series\"=53;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24319661_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What as the production code for the episode directed by Robert Duncan McNeill?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_24319661_5\" WHERE \"directed_by\"='Robert Duncan McNeill';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24319661_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What episode number of the season had BCW410 as a production code?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_season\" FROM \"table1_24319661_5\" WHERE \"production_code\"='BCW410';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24319661_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What episode number in the series had 2.77 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_24319661_5\" WHERE \"u_s_viewers_million\"='2.77';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"welsh_boroughs\" (\n \"borough\" text,\n \"county\" text,\n \"franchise_type\" text,\n \"members\" real,\n \"voters_in_1800\" real,\n \"times_contested\" real,\n \"fate_in_1832\" text\n);\n\nQuestion: Name the most times contested for montgomeryshire"
},
{
"role": "assistant",
"content": "SELECT MAX(\"times_contested\") FROM \"welsh_boroughs\" WHERE \"county\"='Montgomeryshire';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"welsh_boroughs\" (\n \"borough\" text,\n \"county\" text,\n \"franchise_type\" text,\n \"members\" real,\n \"voters_in_1800\" real,\n \"times_contested\" real,\n \"fate_in_1832\" text\n);\n\nQuestion: Name the fate in 1832 for pembrokeshire"
},
{
"role": "assistant",
"content": "SELECT \"fate_in_1832\" FROM \"welsh_boroughs\" WHERE \"county\"='Pembrokeshire';"
}
]
|
[
{
"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 is the least number of podiums for a formula BMW Americas series? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"podiums\") FROM \"career_summary\" WHERE \"series\"='Formula BMW Americas';"
}
]
|
[
{
"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 is the maximum number of wins in the formula 3 euro series? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"wins\") FROM \"career_summary\" WHERE \"series\"='Formula 3 Euro Series';"
}
]
|
[
{
"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 positions were given when 30 points were won? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"career_summary\" WHERE \"points\"='30';"
}
]
|
[
{
"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 pole positions were there for the 2011 season? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"poles\") FROM \"career_summary\" WHERE \"season\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24348134_3\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: List the tournament that kent state won?"
},
{
"role": "assistant",
"content": "SELECT \"conference_tournament\" FROM \"table1_24348134_3\" WHERE \"tournament_winner\"='Kent State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24348134_3\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: List the team that won the 2001 mwc men's basketball tournament"
},
{
"role": "assistant",
"content": "SELECT \"tournament_winner\" FROM \"table1_24348134_3\" WHERE \"conference_tournament\"='2001 MWC Men''s Basketball Tournament';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24348134_3\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: What team won the regular season when georgia state won the tournament?"
},
{
"role": "assistant",
"content": "SELECT \"regular_season_winner\" FROM \"table1_24348134_3\" WHERE \"tournament_winner\"='Georgia State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24348134_3\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: In what city did oklahoma win the tournament."
},
{
"role": "assistant",
"content": "SELECT \"tournament_venue_city\" FROM \"table1_24348134_3\" WHERE \"tournament_winner\"='Oklahoma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24348134_3\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: List the players of the year for the tournament held in matadome ( northridge, california )?"
},
{
"role": "assistant",
"content": "SELECT \"conference_player_of_the_year\" FROM \"table1_24348134_3\" WHERE \"tournament_venue_city\"='Matadome ( Northridge, California )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24348134_3\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: List the number of tournament winners when iona , siena & niagara won in the regular season."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tournament_winner\") FROM \"table1_24348134_3\" WHERE \"regular_season_winner\"='Iona , Siena & Niagara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24346010_1\" (\n \"guberniya\" text,\n \"total_population\" real,\n \"belarusian\" real,\n \"russian\" real,\n \"polish\" real\n);\n\nQuestion: What is the population of Mogilev?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_population\") FROM \"table1_24346010_1\" WHERE \"guberniya\"='Mogilev';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24346010_1\" (\n \"guberniya\" text,\n \"total_population\" real,\n \"belarusian\" real,\n \"russian\" real,\n \"polish\" real\n);\n\nQuestion: What are the polish population where guberniya is vitebsk?"
},
{
"role": "assistant",
"content": "SELECT \"polish\" FROM \"table1_24346010_1\" WHERE \"guberniya\"='Vitebsk';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24346010_1\" (\n \"guberniya\" text,\n \"total_population\" real,\n \"belarusian\" real,\n \"russian\" real,\n \"polish\" real\n);\n\nQuestion: What is the population of polish where guberniya is grodno?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"polish\") FROM \"table1_24346010_1\" WHERE \"guberniya\"='Grodno';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_243664_1\" (\n \"railroad\" text,\n \"game_cost\" text,\n \"real_life_years_of_operation\" text,\n \"real_life_eventual_outcome\" text,\n \"currently_part_of\" text\n);\n\nQuestion: Name the real life for eventual outcome is amtrak"
},
{
"role": "assistant",
"content": "SELECT \"real_life_eventual_outcome\" FROM \"table1_243664_1\" WHERE \"currently_part_of\"='Amtrak';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_243664_1\" (\n \"railroad\" text,\n \"game_cost\" text,\n \"real_life_years_of_operation\" text,\n \"real_life_eventual_outcome\" text,\n \"currently_part_of\" text\n);\n\nQuestion: Name the real life years of operation for amtrak"
},
{
"role": "assistant",
"content": "SELECT \"real_life_years_of_operation\" FROM \"table1_243664_1\" WHERE \"currently_part_of\"='Amtrak';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_243664_1\" (\n \"railroad\" text,\n \"game_cost\" text,\n \"real_life_years_of_operation\" text,\n \"real_life_eventual_outcome\" text,\n \"currently_part_of\" text\n);\n\nQuestion: Name the game coast for chicago and north western"
},
{
"role": "assistant",
"content": "SELECT \"game_cost\" FROM \"table1_243664_1\" WHERE \"railroad\"='Chicago and North Western';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_243664_1\" (\n \"railroad\" text,\n \"game_cost\" text,\n \"real_life_years_of_operation\" text,\n \"real_life_eventual_outcome\" text,\n \"currently_part_of\" text\n);\n\nQuestion: Name the game cost for merged with new york central to form penn central"
},
{
"role": "assistant",
"content": "SELECT \"game_cost\" FROM \"table1_243664_1\" WHERE \"real_life_eventual_outcome\"='Merged with New York Central to form Penn Central';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grp_lists_of_russian_federal_subjects_in\" (\n \"rank_2008\" real,\n \"federal_subjects\" text,\n \"russian_name\" text,\n \"2008_rub\" real,\n \"2008_usd\" real,\n \"2007_rub\" real,\n \"2007_usd\" real,\n \"2005_rub\" real,\n \"2005_usd\" real\n);\n\nQuestion: What is the minimum 2007 USD in Kabardino-Balkaria?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2007_usd\") FROM \"grp_lists_of_russian_federal_subjects_in\" WHERE \"federal_subjects\"='Kabardino-Balkaria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grp_lists_of_russian_federal_subjects_in\" (\n \"rank_2008\" real,\n \"federal_subjects\" text,\n \"russian_name\" text,\n \"2008_rub\" real,\n \"2008_usd\" real,\n \"2007_rub\" real,\n \"2007_usd\" real,\n \"2005_rub\" real,\n \"2005_usd\" real\n);\n\nQuestion: What is the Russian name for the area with 139995 RUB in 2005?"
},
{
"role": "assistant",
"content": "SELECT \"russian_name\" FROM \"grp_lists_of_russian_federal_subjects_in\" WHERE \"2005_rub\"=139995;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grp_lists_of_russian_federal_subjects_in\" (\n \"rank_2008\" real,\n \"federal_subjects\" text,\n \"russian_name\" text,\n \"2008_rub\" real,\n \"2008_usd\" real,\n \"2007_rub\" real,\n \"2007_usd\" real,\n \"2005_rub\" real,\n \"2005_usd\" real\n);\n\nQuestion: What is the 2008 USD figure for the subject with 2849 USD in 2005?"
},
{
"role": "assistant",
"content": "SELECT \"2008_usd\" FROM \"grp_lists_of_russian_federal_subjects_in\" WHERE \"2005_usd\"=2849;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eliminated_contestants_weigh_in\" (\n \"contestant\" text,\n \"starting_weight_kg\" text,\n \"final_weight_kg\" text,\n \"weight_lost_kg\" text,\n \"percentage_lost\" text,\n \"position_out_of_eliminated_contestants\" text\n);\n\nQuestion: Who is every contestant for the position of 4th?"
},
{
"role": "assistant",
"content": "SELECT \"contestant\" FROM \"eliminated_contestants_weigh_in\" WHERE \"position_out_of_eliminated_contestants\"='4th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eliminated_contestants_weigh_in\" (\n \"contestant\" text,\n \"starting_weight_kg\" text,\n \"final_weight_kg\" text,\n \"weight_lost_kg\" text,\n \"percentage_lost\" text,\n \"position_out_of_eliminated_contestants\" text\n);\n\nQuestion: What is every amount for weight lost if the starting weight is 97.4?"
},
{
"role": "assistant",
"content": "SELECT \"weight_lost_kg\" FROM \"eliminated_contestants_weigh_in\" WHERE \"starting_weight_kg\"='97.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eliminated_contestants_weigh_in\" (\n \"contestant\" text,\n \"starting_weight_kg\" text,\n \"final_weight_kg\" text,\n \"weight_lost_kg\" text,\n \"percentage_lost\" text,\n \"position_out_of_eliminated_contestants\" text\n);\n\nQuestion: Who is every contestant for the position of 3rd?"
},
{
"role": "assistant",
"content": "SELECT \"contestant\" FROM \"eliminated_contestants_weigh_in\" WHERE \"position_out_of_eliminated_contestants\"='3rd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eliminated_contestants_weigh_in\" (\n \"contestant\" text,\n \"starting_weight_kg\" text,\n \"final_weight_kg\" text,\n \"weight_lost_kg\" text,\n \"percentage_lost\" text,\n \"position_out_of_eliminated_contestants\" text\n);\n\nQuestion: What is the starting weight if weight lost is 54.6?"
},
{
"role": "assistant",
"content": "SELECT \"starting_weight_kg\" FROM \"eliminated_contestants_weigh_in\" WHERE \"weight_lost_kg\"='54.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eliminated_contestants_weigh_in\" (\n \"contestant\" text,\n \"starting_weight_kg\" text,\n \"final_weight_kg\" text,\n \"weight_lost_kg\" text,\n \"percentage_lost\" text,\n \"position_out_of_eliminated_contestants\" text\n);\n\nQuestion: What is the position for starting weight of 130.6?"
},
{
"role": "assistant",
"content": "SELECT \"position_out_of_eliminated_contestants\" FROM \"eliminated_contestants_weigh_in\" WHERE \"starting_weight_kg\"='130.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eliminated_contestants_weigh_in\" (\n \"contestant\" text,\n \"starting_weight_kg\" text,\n \"final_weight_kg\" text,\n \"weight_lost_kg\" text,\n \"percentage_lost\" text,\n \"position_out_of_eliminated_contestants\" text\n);\n\nQuestion: What is the final weight for contestant Chris?"
},
{
"role": "assistant",
"content": "SELECT \"final_weight_kg\" FROM \"eliminated_contestants_weigh_in\" WHERE \"contestant\"='Chris';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"features_comparison\" (\n \"version\" text,\n \"dock_connection\" text,\n \"aux_in\" text,\n \"battery\" text,\n \"i_phone_certified\" text,\n \"video_out\" text,\n \"dual_voltage\" text\n);\n\nQuestion: How many times did the sounddock series II aux in?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"aux_in\") FROM \"features_comparison\" WHERE \"version\"='SoundDock series II';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"features_comparison\" (\n \"version\" text,\n \"dock_connection\" text,\n \"aux_in\" text,\n \"battery\" text,\n \"i_phone_certified\" text,\n \"video_out\" text,\n \"dual_voltage\" text\n);\n\nQuestion: Was the sounddock series I v2 iphone certified?"
},
{
"role": "assistant",
"content": "SELECT \"i_phone_certified\" FROM \"features_comparison\" WHERE \"version\"='SoundDock series I v2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"features_comparison\" (\n \"version\" text,\n \"dock_connection\" text,\n \"aux_in\" text,\n \"battery\" text,\n \"i_phone_certified\" text,\n \"video_out\" text,\n \"dual_voltage\" text\n);\n\nQuestion: How many connections aux in using FIrewire?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"aux_in\") FROM \"features_comparison\" WHERE \"dock_connection\"='FireWire';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"features_comparison\" (\n \"version\" text,\n \"dock_connection\" text,\n \"aux_in\" text,\n \"battery\" text,\n \"i_phone_certified\" text,\n \"video_out\" text,\n \"dual_voltage\" text\n);\n\nQuestion: how many video out connections does the sounddock portable have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"video_out\") FROM \"features_comparison\" WHERE \"version\"='SoundDock Portable';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"features_comparison\" (\n \"version\" text,\n \"dock_connection\" text,\n \"aux_in\" text,\n \"battery\" text,\n \"i_phone_certified\" text,\n \"video_out\" text,\n \"dual_voltage\" text\n);\n\nQuestion: Does the sounddock series I v2 have dual voltage?"
},
{
"role": "assistant",
"content": "SELECT \"dual_voltage\" FROM \"features_comparison\" WHERE \"version\"='SoundDock series I v2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"features_comparison\" (\n \"version\" text,\n \"dock_connection\" text,\n \"aux_in\" text,\n \"battery\" text,\n \"i_phone_certified\" text,\n \"video_out\" text,\n \"dual_voltage\" text\n);\n\nQuestion: What type of dock connection does the sounddock series III have? "
},
{
"role": "assistant",
"content": "SELECT \"dock_connection\" FROM \"features_comparison\" WHERE \"version\"='SoundDock series III';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24396664_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: Where was the game played that started at 7:00 p.m.?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"table1_24396664_2\" WHERE \"kickoff\"='7:00 p.m.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"founded\" real,\n \"entered_isl\" real,\n \"grades\" text,\n \"number_of_students\" text,\n \"varsity_teams\" real\n);\n\nQuestion: how many varsity teams are in west roxbury, ma?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"varsity_teams\") FROM \"members\" WHERE \"location\"='West Roxbury, MA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"founded\" real,\n \"entered_isl\" real,\n \"grades\" text,\n \"number_of_students\" text,\n \"varsity_teams\" real\n);\n\nQuestion: what is the mascot of st. paul's school? "
},
{
"role": "assistant",
"content": "SELECT \"mascot\" FROM \"members\" WHERE \"school\"='St. Paul''s School';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"founded\" real,\n \"entered_isl\" real,\n \"grades\" text,\n \"number_of_students\" text,\n \"varsity_teams\" real\n);\n\nQuestion: where are dragons used as mascots?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"members\" WHERE \"mascot\"='Dragons';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"founded\" real,\n \"entered_isl\" real,\n \"grades\" text,\n \"number_of_students\" text,\n \"varsity_teams\" real\n);\n\nQuestion: when was lawrence academy at groton established? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"founded\") FROM \"members\" WHERE \"school\"='Lawrence Academy at Groton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"founded\" real,\n \"entered_isl\" real,\n \"grades\" text,\n \"number_of_students\" text,\n \"varsity_teams\" real\n);\n\nQuestion: name the school located at Milton, ma."
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"members\" WHERE \"location\"='Milton, MA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"founded\" real,\n \"entered_isl\" real,\n \"grades\" text,\n \"number_of_students\" text,\n \"varsity_teams\" real\n);\n\nQuestion: how many places have 17 varsity teams?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"members\" WHERE \"varsity_teams\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24399615_10\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" text,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: Which episode had bbc ranking and canle ranking of n/a?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode_no\") FROM \"table1_24399615_10\" WHERE \"bbc_three_weekly_ranking\"='N/A' AND \"cable_rank\"='N/A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24399615_10\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" text,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: List the number of bbc rankings with cable rankings of 6."
},
{
"role": "assistant",
"content": "SELECT \"bbc_three_weekly_ranking\" FROM \"table1_24399615_10\" WHERE \"cable_rank\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24399615_10\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" text,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: List the number of viewers when the cable rank for Russell Howard's Good New was 5."
},
{
"role": "assistant",
"content": "SELECT \"viewers\" FROM \"table1_24399615_10\" WHERE \"cable_rank\"='5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24399615_10\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" text,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: How many individuals watched the show that had a bbc ranking of 6?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"viewers\") FROM \"table1_24399615_10\" WHERE \"bbc_three_weekly_ranking\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" real,\n \"cable_rank\" real\n);\n\nQuestion: How many times did episode number 8 air?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"cable_rank\") FROM \"series_3\" WHERE \"episode_no\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" real,\n \"cable_rank\" real\n);\n\nQuestion: When did episode number 6 air?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"series_3\" WHERE \"episode_no\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: How many items are listed under viewers column when the bbd three weekly ranking was 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"viewers\") FROM \"series_2\" WHERE \"bbc_three_weekly_ranking\"='1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: What episode number had a cable ranking of 8?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episode_no\") FROM \"series_2\" WHERE \"cable_rank\"='8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: What date did the episode air that had n/a for it's bbc three weekly ranking?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"series_2\" WHERE \"bbc_three_weekly_ranking\"='N/A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: What date did the episode air that had a ranking of 17 for cable?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"series_2\" WHERE \"cable_rank\"='17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_6\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: When 3 is the bbc three weekly ranking what is the airdate?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"series_6\" WHERE \"bbc_three_weekly_ranking\"='3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_6\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"viewers\" real,\n \"bbc_three_weekly_ranking\" text,\n \"cable_rank\" text\n);\n\nQuestion: When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"series_6\" WHERE \"cable_rank\"='N/A' AND \"viewers\"=656000;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.