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 \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the date of vacancy for 29 december 2008 being date of appointment"
},
{
"role": "assistant",
"content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='29 December 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1854728_2\" (\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"air_date\" text,\n \"production_code\" text\n);\n\nQuestion: When 1008/1009 is the production code how many directors are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_1854728_2\" WHERE \"production_code\"='1008/1009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1854728_2\" (\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"air_date\" text,\n \"production_code\" text\n);\n\nQuestion: When arthur heinemann is the writer who is the director?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_1854728_2\" WHERE \"written_by\"='Arthur Heinemann';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1855841_1\" (\n \"candidate\" text,\n \"office_running_for\" text,\n \"running_with_in_team\" text,\n \"won_or_lost\" text,\n \"votes_given\" text\n);\n\nQuestion: Name the running with for elizabeth falco"
},
{
"role": "assistant",
"content": "SELECT \"running_with_in_team\" FROM \"table1_1855841_1\" WHERE \"candidate\"='Elizabeth Falco';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1855841_1\" (\n \"candidate\" text,\n \"office_running_for\" text,\n \"running_with_in_team\" text,\n \"won_or_lost\" text,\n \"votes_given\" text\n);\n\nQuestion: Name the officing running for for carol marsh"
},
{
"role": "assistant",
"content": "SELECT \"office_running_for\" FROM \"table1_1855841_1\" WHERE \"candidate\"='Carol Marsh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1855841_1\" (\n \"candidate\" text,\n \"office_running_for\" text,\n \"running_with_in_team\" text,\n \"won_or_lost\" text,\n \"votes_given\" text\n);\n\nQuestion: Name the office running for for anthony mussara"
},
{
"role": "assistant",
"content": "SELECT \"office_running_for\" FROM \"table1_1855841_1\" WHERE \"candidate\"='Anthony Mussara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1855841_1\" (\n \"candidate\" text,\n \"office_running_for\" text,\n \"running_with_in_team\" text,\n \"won_or_lost\" text,\n \"votes_given\" text\n);\n\nQuestion: Name the votes given for michael russo, genevy dimitrion , manny ortega"
},
{
"role": "assistant",
"content": "SELECT \"votes_given\" FROM \"table1_1855841_1\" WHERE \"running_with_in_team\"='Michael Russo, Genevy Dimitrion , Manny Ortega';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was the loa when the corrected time was 2:12:36:23?"
},
{
"role": "assistant",
"content": "SELECT \"loa_metres\" FROM \"handicap_results_top_10\" WHERE \"corrected_time_d_hh_mm_ss\"='2:12:36:23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: Qhat was the position of sail 6606?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"handicap_results_top_10\" WHERE \"sail_number\"='6606';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: On what yacht was the sail number aus70?"
},
{
"role": "assistant",
"content": "SELECT \"yacht\" FROM \"handicap_results_top_10\" WHERE \"sail_number\"='AUS70';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was the corrected time of sail number aus70?"
},
{
"role": "assistant",
"content": "SELECT \"corrected_time_d_hh_mm_ss\" FROM \"handicap_results_top_10\" WHERE \"sail_number\"='AUS70';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: Who was the skipper for the vessel with a corrected time of 2:18:31:49?"
},
{
"role": "assistant",
"content": "SELECT \"skipper\" FROM \"handicap_results_top_10\" WHERE \"corrected_time_d_hh_mm_ss\"='2:18:31:49';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: Who was the skipper on a Nelson Marek 43?"
},
{
"role": "assistant",
"content": "SELECT \"skipper\" FROM \"handicap_results_top_10\" WHERE \"yacht_type\"='Nelson Marek 43';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_video_games_of_the_1990s_sa\" (\n \"rank\" real,\n \"title\" text,\n \"release_date\" text,\n \"franchise\" text,\n \"developer_s\" text,\n \"platform\" text,\n \"units_sold_in_millions\" text\n);\n\nQuestion: How many titles were released on 21 October 1992?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"best_selling_video_games_of_the_1990s_sa\" WHERE \"release_date\"='21 October 1992';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_video_games_of_the_1990s_sa\" (\n \"rank\" real,\n \"title\" text,\n \"release_date\" text,\n \"franchise\" text,\n \"developer_s\" text,\n \"platform\" text,\n \"units_sold_in_millions\" text\n);\n\nQuestion: What rank is Super Mario Land 2: 6 Golden Coins?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"best_selling_video_games_of_the_1990s_sa\" WHERE \"title\"='Super Mario Land 2: 6 Golden Coins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_video_games_of_the_1990s_sa\" (\n \"rank\" real,\n \"title\" text,\n \"release_date\" text,\n \"franchise\" text,\n \"developer_s\" text,\n \"platform\" text,\n \"units_sold_in_millions\" text\n);\n\nQuestion: What platform sold 11.18 million units?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"best_selling_video_games_of_the_1990s_sa\" WHERE \"units_sold_in_millions\"='11.18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_video_games_of_the_1990s_sa\" (\n \"rank\" real,\n \"title\" text,\n \"release_date\" text,\n \"franchise\" text,\n \"developer_s\" text,\n \"platform\" text,\n \"units_sold_in_millions\" text\n);\n\nQuestion: What day did the platform sell 9.87 million units?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"best_selling_video_games_of_the_1990s_sa\" WHERE \"units_sold_in_millions\"='9.87';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: If new entries this round is 65, what is the round?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"team_distribution\" WHERE \"new_entries_this_round\"='65';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: If leagues entering this round is S\u00fcper Lig, what is the maximum amount of clubs remaining?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"clubs_remaining\") FROM \"team_distribution\" WHERE \"leagues_entering_at_this_round\"='S\u00fcper Lig';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: If the winners from the previous round is 8, what is the round?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"team_distribution\" WHERE \"winners_from_previous_round\"='8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: If the round is the semi-finals, what are the new entries this round?"
},
{
"role": "assistant",
"content": "SELECT \"new_entries_this_round\" FROM \"team_distribution\" WHERE \"round\"='Semi-finals';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many losses for the team atl. colegiales?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"losses\") FROM \"torneo_clausura\" WHERE \"team\"='Atl. Colegiales';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many points when the score is 14?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"torneo_clausura\" WHERE \"scored\"=14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many draws are there when the score is 13?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"draws\") FROM \"torneo_clausura\" WHERE \"scored\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many wins have conceded as 18?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"wins\") FROM \"torneo_clausura\" WHERE \"conceded\"=18;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many draws occurred when 25 points were scored? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"draws\") FROM \"torneo_apertura\" WHERE \"scored\"=25;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the least number of poins for San Lorenzo? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"torneo_apertura\" WHERE \"team\"='San Lorenzo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many draws does 12 de Octubre have? "
},
{
"role": "assistant",
"content": "SELECT \"draws\" FROM \"torneo_apertura\" WHERE \"team\"='12 de Octubre';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18595004_7\" (\n \"week_num\" real,\n \"dance_song\" text,\n \"inaba\" real,\n \"goodman\" real,\n \"tonioli\" real,\n \"result\" text\n);\n\nQuestion: What is Inaba's maximum score?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"inaba\") FROM \"table1_18595004_7\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18595004_7\" (\n \"week_num\" real,\n \"dance_song\" text,\n \"inaba\" real,\n \"goodman\" real,\n \"tonioli\" real,\n \"result\" text\n);\n\nQuestion: How many sets of marks does Tonioli get in week 3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tonioli\") FROM \"table1_18595004_7\" WHERE \"week_num\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: When columbia, south carolina is the hometown what is the lowest age?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"age\") FROM \"candidates\" WHERE \"hometown\"='Columbia, South Carolina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: When austin, texas is the hometown what is the lowest age?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"age\") FROM \"candidates\" WHERE \"hometown\"='Austin, Texas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: When stacy schneider is the candidate what are the results?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"candidates\" WHERE \"candidate\"='Stacy Schneider';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: Which township is 35.766 sqmi?"
},
{
"role": "assistant",
"content": "SELECT \"township\" FROM \"o\" WHERE \"land_sqmi\"='35.766';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What county is the township of Osborn in?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"o\" WHERE \"township\"='Osborn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the longitude with a latitude of 47.985154?"
},
{
"role": "assistant",
"content": "SELECT \"longitude\" FROM \"o\" WHERE \"latitude\"='47.985154';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?"
},
{
"role": "assistant",
"content": "SELECT \"water_sqmi\" FROM \"o\" WHERE \"county\"='Ramsey' AND \"geo_id\">3807159460.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: how many latitudes have 0.081 (sqmi) of water?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"latitude\") FROM \"o\" WHERE \"water_sqmi\"='0.081';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: what is the lowest geo id?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"geo_id\") FROM \"o\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the geo ID for the township with 0.771 square miles of water?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"geo_id\") FROM \"j\" WHERE \"water_sqmi\"='0.771';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the geo id for Logan county?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"geo_id\") FROM \"j\" WHERE \"county\"='Logan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: How big is the land in square miles of Grand Forks county?"
},
{
"role": "assistant",
"content": "SELECT \"land_sqmi\" FROM \"j\" WHERE \"county\"='Grand Forks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the geo id for Joliette?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"geo_id\") FROM \"j\" WHERE \"township\"='Joliette';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What was the lattitude for the area with 4.243 square miles of water?"
},
{
"role": "assistant",
"content": "SELECT \"latitude\" FROM \"j\" WHERE \"water_sqmi\"='4.243';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What township is 28.597 square miles of land?"
},
{
"role": "assistant",
"content": "SELECT \"township\" FROM \"j\" WHERE \"land_sqmi\"='28.597';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: Which township has a longitude of -98.741656?"
},
{
"role": "assistant",
"content": "SELECT \"township\" FROM \"l\" WHERE \"longitude\"='-98.741656';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the land (sqmi) in lansing township?"
},
{
"role": "assistant",
"content": "SELECT \"land_sqmi\" FROM \"l\" WHERE \"township\"='Lansing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the geo id when water is 0.457?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"geo_id\") FROM \"l\" WHERE \"water_sqmi\"='0.457';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the geo id of the land at 35.999?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"geo_id\") FROM \"l\" WHERE \"land_sqmi\"='35.999';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the land (sqmi) at geo id 3801947380?"
},
{
"role": "assistant",
"content": "SELECT \"land_sqmi\" FROM \"l\" WHERE \"geo_id\"=3801947380;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the population associated with latitude 48.676125?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pop_2010\") FROM \"m\" WHERE \"latitude\"='48.676125';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: How many places associated with latitude 48.247662?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ansi_code\") FROM \"m\" WHERE \"latitude\"='48.247662';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What longitudes associated with a water (sqmi) area of 0.068?"
},
{
"role": "assistant",
"content": "SELECT \"longitude\" FROM \"m\" WHERE \"water_sqmi\"='0.068';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the smallest ansi code?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"ansi_code\") FROM \"m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What county is associated with ansi code 1759686?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"m\" WHERE \"ansi_code\"=1759686;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the geo id for malcolm township?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"geo_id\") FROM \"m\" WHERE \"township\"='Malcolm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the land area of Reed Township?"
},
{
"role": "assistant",
"content": "SELECT \"land_sqmi\" FROM \"r\" WHERE \"township\"='Reed';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the township at longitude -100.680772?"
},
{
"role": "assistant",
"content": "SELECT \"township\" FROM \"r\" WHERE \"longitude\"='-100.680772';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the ANSI code of the township where the area is 35.737 square miles?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"ansi_code\") FROM \"r\" WHERE \"land_sqmi\"='35.737';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the GEO ID of the township with area of 32.532 square miles?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"geo_id\") FROM \"r\" WHERE \"land_sqmi\"='32.532';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What township is 34.781 square miles?"
},
{
"role": "assistant",
"content": "SELECT \"township\" FROM \"r\" WHERE \"land_sqmi\"='34.781';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What longitude is tatman township?"
},
{
"role": "assistant",
"content": "SELECT \"longitude\" FROM \"t\" WHERE \"township\"='Tatman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the land area (sqmi) for the township at longtidue 47.548602?"
},
{
"role": "assistant",
"content": "SELECT \"land_sqmi\" FROM \"t\" WHERE \"latitude\"='47.548602';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: How many ansi codes are there for longitude 46.415037?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ansi_code\") FROM \"t\" WHERE \"latitude\"='46.415037';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the water area (sqmi) for the township at latitude 48.423224?"
},
{
"role": "assistant",
"content": "SELECT \"water_sqmi\" FROM \"t\" WHERE \"latitude\"='48.423224';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: How many ansi codes are there for latitude 48.142938?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ansi_code\") FROM \"t\" WHERE \"latitude\"='48.142938';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"h\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: Name the township for kidder"
},
{
"role": "assistant",
"content": "SELECT \"township\" FROM \"h\" WHERE \"county\"='Kidder';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"h\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: Name the latitude for 3810536900"
},
{
"role": "assistant",
"content": "SELECT \"latitude\" FROM \"h\" WHERE \"geo_id\"=3810536900;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"h\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: Name the latitude for 3809935740"
},
{
"role": "assistant",
"content": "SELECT \"latitude\" FROM \"h\" WHERE \"geo_id\"=3809935740;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"h\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" text,\n \"water_sqmi\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: Name the number of county for 90 population"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"county\") FROM \"h\" WHERE \"pop_2010\"=90;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_21\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?"
},
{
"role": "assistant",
"content": "SELECT \"final_bronze_medal_match\" FROM \"table1_18602462_21\" WHERE \"quarterfinals\"='Houdet ( FRA ) W 6-2, 6-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_21\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: When in round of 16 it was did not advance what was it in round of 32?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_32\" FROM \"table1_18602462_21\" WHERE \"round_of_16\"='Did not advance';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_21\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: When scheffers ( ned ) l 3-6, 1-6 is the final/ bronze medal match what was the event?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"table1_18602462_21\" WHERE \"final_bronze_medal_match\"='Scheffers ( NED ) L 3-6, 1-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_21\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: When mixed quad singles is the event what is the final/bronze medal match?"
},
{
"role": "assistant",
"content": "SELECT \"final_bronze_medal_match\" FROM \"table1_18602462_21\" WHERE \"event\"='Mixed Quad Singles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_21\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: When bas van erp was the athlete what was the quarterfinals?"
},
{
"role": "assistant",
"content": "SELECT \"quarterfinals\" FROM \"table1_18602462_21\" WHERE \"athlete\"='Bas van Erp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_22\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: What is the semifinal result for Dorrie Timmermans-Van Hall?"
},
{
"role": "assistant",
"content": "SELECT \"semifinals\" FROM \"table1_18602462_22\" WHERE \"athlete\"='Dorrie Timmermans-Van Hall';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_22\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: What is the round of 16 result for Jiske Griffioen Esther Vergeer?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_16\" FROM \"table1_18602462_22\" WHERE \"athlete\"='Jiske Griffioen Esther Vergeer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_22\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_16\" FROM \"table1_18602462_22\" WHERE \"semifinals\"='Vergeer ( NED ) L 0-6, 1-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18602462_22\" (\n \"athlete\" text,\n \"class\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final_bronze_medal_match\" text\n);\n\nQuestion: How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round_of_32\") FROM \"table1_18602462_22\" WHERE \"round_of_16\"='Polidori ( ITA ) W 6-1, 3-6, 6-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the maximum points for libertad"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"torneo_clausura\" WHERE \"team\"='Libertad';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the least wins for 5 losses"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"torneo_clausura\" WHERE \"losses\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the most draws"
},
{
"role": "assistant",
"content": "SELECT MAX(\"draws\") FROM \"torneo_clausura\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the least played"
},
{
"role": "assistant",
"content": "SELECT MIN(\"played\") FROM \"torneo_clausura\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: When cristina pe\u00f1a garzon is the contestant what is the geographical region?"
},
{
"role": "assistant",
"content": "SELECT \"geographical_regions\" FROM \"delegates\" WHERE \"contestant\"='Cristina Pe\u00f1a Garzon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: When 1.79 is the height what is the geographical region?"
},
{
"role": "assistant",
"content": "SELECT \"geographical_regions\" FROM \"delegates\" WHERE \"height\"='1.79';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: When 1.67 is the height how many contestants are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"contestant\") FROM \"delegates\" WHERE \"height\"='1.67';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: When baoruco is the province, community what is the lowest age?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"age\") FROM \"delegates\" WHERE \"province_community\"='Baoruco';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: When el cibao is the geographical region and the height is 1.80 who is the contestant?"
},
{
"role": "assistant",
"content": "SELECT \"contestant\" FROM \"delegates\" WHERE \"height\"='1.80' AND \"geographical_regions\"='El Cibao';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: When toronto is the hometown how many height measurements are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"height\") FROM \"delegates\" WHERE \"hometown\"='Toronto';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_softball_league_1951_to_19\" (\n \"year\" real,\n \"1st_place_team\" text,\n \"2nd_place_team\" text,\n \"3rd_place_team\" text,\n \"4th_place_team\" text,\n \"host_location\" text\n);\n\nQuestion: What is the 3rd place team for the year of 1955?"
},
{
"role": "assistant",
"content": "SELECT \"3rd_place_team\" FROM \"international_softball_league_1951_to_19\" WHERE \"year\"=1955;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_softball_league_1951_to_19\" (\n \"year\" real,\n \"1st_place_team\" text,\n \"2nd_place_team\" text,\n \"3rd_place_team\" text,\n \"4th_place_team\" text,\n \"host_location\" text\n);\n\nQuestion: How many years was the 2nd place team merchants, tampico, il?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"international_softball_league_1951_to_19\" WHERE \"2nd_place_team\"='Merchants, Tampico, IL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_i_zodiacal_signs\" (\n \"number\" real,\n \"sanskrit\" text,\n \"international_alphabet_of_sanskrit_transliteration\" text,\n \"sanskrit_gloss\" text,\n \"western_name\" text,\n \"greek\" text,\n \"gloss\" text,\n \"tattva_element\" text,\n \"quality\" text,\n \"ruling_planet\" text\n);\n\nQuestion: When mithuna is the international alphabet of sanskrit transliteration what is the ruling planet?"
},
{
"role": "assistant",
"content": "SELECT \"ruling_planet\" FROM \"r_i_zodiacal_signs\" WHERE \"international_alphabet_of_sanskrit_transliteration\"='Mithuna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_i_zodiacal_signs\" (\n \"number\" real,\n \"sanskrit\" text,\n \"international_alphabet_of_sanskrit_transliteration\" text,\n \"sanskrit_gloss\" text,\n \"western_name\" text,\n \"greek\" text,\n \"gloss\" text,\n \"tattva_element\" text,\n \"quality\" text,\n \"ruling_planet\" text\n);\n\nQuestion: When Sagittarius is the wester name what is the sanskrit gloss?"
},
{
"role": "assistant",
"content": "SELECT \"sanskrit_gloss\" FROM \"r_i_zodiacal_signs\" WHERE \"western_name\"='Sagittarius';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_i_zodiacal_signs\" (\n \"number\" real,\n \"sanskrit\" text,\n \"international_alphabet_of_sanskrit_transliteration\" text,\n \"sanskrit_gloss\" text,\n \"western_name\" text,\n \"greek\" text,\n \"gloss\" text,\n \"tattva_element\" text,\n \"quality\" text,\n \"ruling_planet\" text\n);\n\nQuestion: When scorpion is the sankrit gloss how many qualities are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"quality\") FROM \"r_i_zodiacal_signs\" WHERE \"sanskrit_gloss\"='scorpion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_i_zodiacal_signs\" (\n \"number\" real,\n \"sanskrit\" text,\n \"international_alphabet_of_sanskrit_transliteration\" text,\n \"sanskrit_gloss\" text,\n \"western_name\" text,\n \"greek\" text,\n \"gloss\" text,\n \"tattva_element\" text,\n \"quality\" text,\n \"ruling_planet\" text\n);\n\nQuestion: When \u0927\u0928\u0941\u0937 is the sankrit how many western names are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"western_name\") FROM \"r_i_zodiacal_signs\" WHERE \"sanskrit\"='\u0927\u0928\u0941\u0937';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_i_zodiacal_signs\" (\n \"number\" real,\n \"sanskrit\" text,\n \"international_alphabet_of_sanskrit_transliteration\" text,\n \"sanskrit_gloss\" text,\n \"western_name\" text,\n \"greek\" text,\n \"gloss\" text,\n \"tattva_element\" text,\n \"quality\" text,\n \"ruling_planet\" text\n);\n\nQuestion: When kumbha is the international alphabet of sanskrit transliteration what is the gloss?"
},
{
"role": "assistant",
"content": "SELECT \"gloss\" FROM \"r_i_zodiacal_signs\" WHERE \"international_alphabet_of_sanskrit_transliteration\"='Kumbha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_i_zodiacal_signs\" (\n \"number\" real,\n \"sanskrit\" text,\n \"international_alphabet_of_sanskrit_transliteration\" text,\n \"sanskrit_gloss\" text,\n \"western_name\" text,\n \"greek\" text,\n \"gloss\" text,\n \"tattva_element\" text,\n \"quality\" text,\n \"ruling_planet\" text\n);\n\nQuestion: When twins is the sankrit gloss what is the gloss?"
},
{
"role": "assistant",
"content": "SELECT \"gloss\" FROM \"r_i_zodiacal_signs\" WHERE \"sanskrit_gloss\"='twins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nominees\" (\n \"year_ceremony\" text,\n \"actor_actress\" text,\n \"category\" text,\n \"film_title_used_in_nomination\" text,\n \"result\" text\n);\n\nQuestion: In the film Mrs. Miniver, what is the actresses name?"
},
{
"role": "assistant",
"content": "SELECT \"actor_actress\" FROM \"nominees\" WHERE \"film_title_used_in_nomination\"='Mrs. Miniver';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nominees\" (\n \"year_ceremony\" text,\n \"actor_actress\" text,\n \"category\" text,\n \"film_title_used_in_nomination\" text,\n \"result\" text\n);\n\nQuestion: What year was Teresa Wright nominated best supporting actress?"
},
{
"role": "assistant",
"content": "SELECT \"year_ceremony\" FROM \"nominees\" WHERE \"actor_actress\"='Teresa Wright' AND \"category\"='Best Supporting Actress';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nominees\" (\n \"year_ceremony\" text,\n \"actor_actress\" text,\n \"category\" text,\n \"film_title_used_in_nomination\" text,\n \"result\" text\n);\n\nQuestion: What category was the movie Working Girl nominated?"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"nominees\" WHERE \"film_title_used_in_nomination\"='Working Girl';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.