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 \"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 highest win for the team Nacional?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"wins\") FROM \"torneo_apertura\" WHERE \"team\"='Nacional';"
}
]
|
[
{
"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 smallest conceded value for the team 12 De Octubre?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"conceded\") 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 \"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 smallest draws value with 21 points?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"draws\") FROM \"torneo_apertura\" WHERE \"points\"=21;"
}
]
|
[
{
"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 largest loss for the Tacuary team?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"losses\") FROM \"torneo_apertura\" WHERE \"team\"='Tacuary';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"packers_points\" real,\n \"opponents\" real,\n \"first_downs\" real,\n \"record\" text,\n \"streak\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: What is the name of the venue where the opponent scored 51?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"schedule\" WHERE \"opponents\"=51;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"packers_points\" real,\n \"opponents\" real,\n \"first_downs\" real,\n \"record\" text,\n \"streak\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: How many first downs were there when the attendance was 13196?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"first_downs\") FROM \"schedule\" WHERE \"attendance\"=13196;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the site of the game against Buffalo Bills ?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"opponent\"='Buffalo Bills';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance in week 8?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"week\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the date when the attendance was 63995"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"=63995;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the opponent in week 4?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many different skippers of the yacht City Index Leopard?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"skipper\") FROM \"line_honours_results_top_10\" WHERE \"yacht\"='City Index Leopard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What are all elapsed time amounts for yacht type Reichel Pugh 55?"
},
{
"role": "assistant",
"content": "SELECT \"elapsed_time_d_hh_mm_ss\" FROM \"line_honours_results_top_10\" WHERE \"yacht_type\"='Reichel Pugh 55';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What are all elapsed time for yacht type STP 65?"
},
{
"role": "assistant",
"content": "SELECT \"elapsed_time_d_hh_mm_ss\" FROM \"line_honours_results_top_10\" WHERE \"yacht_type\"='STP 65';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: If sail number is AUS 03, what are all associated race numbers?"
},
{
"role": "assistant",
"content": "SELECT \"race_number\" FROM \"line_honours_results_top_10\" WHERE \"sail_number\"='AUS 03';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What are all values of LOA(metres) for an elapsed time of 2:17:01:05?"
},
{
"role": "assistant",
"content": "SELECT \"loa_metres\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='2:17:01:05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: When the elapsed time is 2:14:12:49, what are all yachts associated with this value?"
},
{
"role": "assistant",
"content": "SELECT \"yacht\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='2:14:12:49';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_kayak\" (\n \"distance\" text,\n \"event\" text,\n \"record\" text,\n \"athletes\" text,\n \"nationality\" text,\n \"year\" real,\n \"location\" text\n);\n\nQuestion: In what location was the fastest time 1:37.071s?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"women_kayak\" WHERE \"record\"='1:37.071s';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_kayak\" (\n \"distance\" text,\n \"event\" text,\n \"record\" text,\n \"athletes\" text,\n \"nationality\" text,\n \"year\" real,\n \"location\" text\n);\n\nQuestion: What are all the places where Birgit Fischer competed?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"women_kayak\" WHERE \"athletes\"='Birgit Fischer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_kayak\" (\n \"distance\" text,\n \"event\" text,\n \"record\" text,\n \"athletes\" text,\n \"nationality\" text,\n \"year\" real,\n \"location\" text\n);\n\nQuestion: What are the records when Elzbieta Urbanczik competed?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"women_kayak\" WHERE \"athletes\"='Elzbieta Urbanczik';"
}
]
|
[
{
"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: Name the number of wins for when points is 17"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"torneo_apertura\" WHERE \"points\"=17;"
}
]
|
[
{
"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: Name the number of draws for when conceded is 25"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"draws\") FROM \"torneo_apertura\" WHERE \"conceded\"=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: Name the most conceded when draws is 5 and position is 1"
},
{
"role": "assistant",
"content": "SELECT MAX(\"conceded\") FROM \"torneo_apertura\" WHERE \"draws\"=5 AND \"position\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14889988_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What date was the episode with production code 176265 aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_14889988_1\" WHERE \"production_code\"=176265;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14889988_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: On what dates were episodes written by Robert Carlock aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_14889988_1\" WHERE \"written_by\"='Robert Carlock';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14889988_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the production code for episode 229?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"production_code\") FROM \"table1_14889988_1\" WHERE \"no_in_series\"=229;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14889988_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the title for the episode written by Robert Carlock & Dana Klein Borkow?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_14889988_1\" WHERE \"written_by\"='Robert Carlock & Dana Klein Borkow';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14889988_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed the episode with the production code 176252?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_14889988_1\" WHERE \"production_code\"=176252;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14889988_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What date was the episode entitled \"The One Where Ross is Fine\" aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_14889988_1\" WHERE \"title\"='\\\"The One Where Ross is Fine\\\"';"
}
]
|
[
{
"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 15 is scored is considered the minimum?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"torneo_clausura\" WHERE \"scored\"=15;"
}
]
|
[
{
"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: When a team wins 4, how much is the Maximum amount of points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"torneo_clausura\" WHERE \"wins\"=4;"
}
]
|
[
{
"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 may draws did libertad have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"draws\") 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 \"national_junior_champions\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"men_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the men doubles for els baert"
},
{
"role": "assistant",
"content": "SELECT \"men_doubles\" FROM \"national_junior_champions\" WHERE \"womens_singles\"='Els Baert';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_junior_champions\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"men_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the men doubles for caroline persyn smids"
},
{
"role": "assistant",
"content": "SELECT \"men_doubles\" FROM \"national_junior_champions\" WHERE \"womens_doubles\"='Caroline Persyn Smids';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_junior_champions\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"men_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the number of men doubles for 2007"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"men_doubles\") FROM \"national_junior_champions\" WHERE \"year\"=2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the womens singles for raina tzvetkova petya nedelcheva"
},
{
"role": "assistant",
"content": "SELECT \"womens_singles\" FROM \"past_winners\" WHERE \"womens_doubles\"='Raina Tzvetkova Petya Nedelcheva';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"past_winners\" WHERE \"womens_doubles\"='Diana Koleva Emilia Dimitrova' AND \"mens_singles\"='Jeliazko Valkov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mens singles for jeliazko valkov dobrinka peneva"
},
{
"role": "assistant",
"content": "SELECT \"mens_singles\" FROM \"past_winners\" WHERE \"mixed_doubles\"='Jeliazko Valkov Dobrinka Peneva';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mens singles for 1989"
},
{
"role": "assistant",
"content": "SELECT \"mens_singles\" FROM \"past_winners\" WHERE \"year\"=1989;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the year for victoria hristova neli nedialkova"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"past_winners\" WHERE \"womens_doubles\"='Victoria Hristova Neli Nedialkova';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the year for womens doubles being raina tzvetkova emilia dimitrova"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"past_winners\" WHERE \"womens_doubles\"='Raina Tzvetkova Emilia Dimitrova';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO?"
},
{
"role": "assistant",
"content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"womens_doubles\"='Piret Hamer Helen Reino';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE?"
},
{
"role": "assistant",
"content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"womens_doubles\"='Helen Reino Kai-Riin Saluste';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP?"
},
{
"role": "assistant",
"content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"womens_singles\"='Kairi Viilup';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"past_winners\" WHERE \"mens_doubles\"='Heiki Sorge Meelis Maiste';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the womens doubles when mens doubles is charalambos kazilas stepan partemian"
},
{
"role": "assistant",
"content": "SELECT \"womens_doubles\" FROM \"past_winners\" WHERE \"mens_doubles\"='Charalambos Kazilas Stepan Partemian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the womens doubles when mixed doubles is potten ruth scott"
},
{
"role": "assistant",
"content": "SELECT \"womens_doubles\" FROM \"past_winners\" WHERE \"mixed_doubles\"='Potten Ruth Scott';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mens singles when mens doubles is george georgoudis gerostergiou"
},
{
"role": "assistant",
"content": "SELECT \"mens_singles\" FROM \"past_winners\" WHERE \"mens_doubles\"='George Georgoudis Gerostergiou';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the womens doubles when mens doubles is theodoros velkos giorgos patis"
},
{
"role": "assistant",
"content": "SELECT \"womens_doubles\" FROM \"past_winners\" WHERE \"mens_doubles\"='Theodoros Velkos Giorgos Patis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14903999_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: What was the earliest year \u00deorvaldur \u00c1sgeirsson Lov\u00edsa Sigur\u00f0ard\u00f3ttir won mixed doubles"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"table1_14903999_1\" WHERE \"mixed_doubles\"='\u00deorvaldur \u00c1sgeirsson Lov\u00edsa Sigur\u00f0ard\u00f3ttir';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14903999_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won womens doubles the year magn\u00fas ingi helgason tinna helgad\u00f3ttir won mixed doubles and ragna ing\u00f3lfsd\u00f3ttir won womens singles in 2010"
},
{
"role": "assistant",
"content": "SELECT \"womens_doubles\" FROM \"table1_14903999_1\" WHERE \"mixed_doubles\"='Magn\u00fas Ingi Helgason Tinna Helgad\u00f3ttir' AND \"womens_singles\"='Ragna Ing\u00f3lfsd\u00f3ttir' AND \"year\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14903999_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How many womens doubles had champions the years broddi kristj\u00e1nsson dr\u00edfa har\u00f0ard\u00f3ttir won mixed doubles"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"womens_doubles\") FROM \"table1_14903999_1\" WHERE \"mixed_doubles\"='Broddi Kristj\u00e1nsson Dr\u00edfa Har\u00f0ard\u00f3ttir';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14903999_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won mixed doubles the years einar j\u00f3nsson wagner walbom won mens doubles and wagner walbom won mens singles"
},
{
"role": "assistant",
"content": "SELECT \"mixed_doubles\" FROM \"table1_14903999_1\" WHERE \"mens_doubles\"='Einar J\u00f3nsson Wagner Walbom' AND \"mens_singles\"='Wagner Walbom';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14903999_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: What was the last year \u00e1rni \u00fe\u00f3r hallgr\u00edmsson dr\u00edfa har\u00f0ard\u00f3ttir won mixed doubles"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"table1_14903999_1\" WHERE \"mixed_doubles\"='\u00c1rni \u00de\u00f3r Hallgr\u00edmsson Dr\u00edfa Har\u00f0ard\u00f3ttir';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14903999_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won mens singles the year sveinn logi s\u00f6lvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles"
},
{
"role": "assistant",
"content": "SELECT \"mens_singles\" FROM \"table1_14903999_1\" WHERE \"mens_doubles\"='Sveinn Logi S\u00f6lvason Tryggvi Nilsen' AND \"womens_singles\"='Elsa Nielsen';"
}
]
|
[
{
"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: In which position is the team Cerro Porte\u00f1o?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"torneo_clausura\" WHERE \"team\"='Cerro Porte\u00f1o';"
}
]
|
[
{
"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 games were 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 \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: What is the result of men's doubles when there was no competition?"
},
{
"role": "assistant",
"content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"mens_doubles\"='no competition';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: WHo won men's singles in 1994?"
},
{
"role": "assistant",
"content": "SELECT \"mens_singles\" FROM \"past_winners\" WHERE \"year\"=1994;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won women's singles in 2001?"
},
{
"role": "assistant",
"content": "SELECT \"womens_singles\" FROM \"past_winners\" WHERE \"year\"=2001;"
}
]
|
[
{
"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: Name the least wins"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"torneo_apertura\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"language_s\" text,\n \"director_s\" text,\n \"result\" text\n);\n\nQuestion: is \u03b3\u043e\u043b\u0435\u043c\u0430\u0442\u0430 \u0432\u043e\u0434\u0430 nominated for anything?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"submissions\" WHERE \"original_title\"='\u0393\u043e\u043b\u0435\u043c\u0430\u0442\u0430 \u0412\u043e\u0434\u0430';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"language_s\" text,\n \"director_s\" text,\n \"result\" text\n);\n\nQuestion: how many years has \u0441\u0435\u043d\u043a\u0438 been nominated?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year_ceremony\") FROM \"submissions\" WHERE \"original_title\"='\u0421\u0435\u043d\u043a\u0438';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"language_s\" text,\n \"director_s\" text,\n \"result\" text\n);\n\nQuestion: how many directors for the film \u043c\u0430\u0458\u043a\u0438"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"director_s\") FROM \"submissions\" WHERE \"original_title\"='\u041c\u0430\u0458\u043a\u0438';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio_series\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Who is the second performer in episode 5?"
},
{
"role": "assistant",
"content": "SELECT \"performer_2\" FROM \"radio_series\" WHERE \"episode\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio_series\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: How many times was performer 3 Kate Robbins?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"radio_series\" WHERE \"performer_3\"='Kate Robbins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio_series\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Who was perfomer one on 30 January 1988?"
},
{
"role": "assistant",
"content": "SELECT \"performer_1\" FROM \"radio_series\" WHERE \"date\"='30 January 1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio_series\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Who was performer 4 when Kate Robbins was performer 3?"
},
{
"role": "assistant",
"content": "SELECT \"performer_4\" FROM \"radio_series\" WHERE \"performer_3\"='Kate Robbins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio_series\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: How many episodes was Jimmy Mulville performer 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode\") FROM \"radio_series\" WHERE \"performer_4\"='Jimmy Mulville';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"instruments_played_by_band_members\" (\n \"songs\" text,\n \"paul_mc_cartney\" text,\n \"stuart\" text,\n \"mc_intosh\" text,\n \"wix\" text,\n \"whitten\" text,\n \"linda_mc_cartney\" text\n);\n\nQuestion: How many instruments did Stuart play on \"We Got Married\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"stuart\") FROM \"instruments_played_by_band_members\" WHERE \"songs\"='\\\"We Got Married\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in_general_elections\" (\n \"year\" text,\n \"general_election\" text,\n \"seats_won\" real,\n \"change_in_seat\" real,\n \"pct_of_votes\" text,\n \"votes_swing\" text\n);\n\nQuestion: Which general election had a vote swing of 1.84?"
},
{
"role": "assistant",
"content": "SELECT \"general_election\" FROM \"in_general_elections\" WHERE \"votes_swing\"='1.84';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in_general_elections\" (\n \"year\" text,\n \"general_election\" text,\n \"seats_won\" real,\n \"change_in_seat\" real,\n \"pct_of_votes\" text,\n \"votes_swing\" text\n);\n\nQuestion: What was the total number of seats won where the % of votes is equal to 20.29?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"seats_won\") FROM \"in_general_elections\" WHERE \"pct_of_votes\"='20.29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in_general_elections\" (\n \"year\" text,\n \"general_election\" text,\n \"seats_won\" real,\n \"change_in_seat\" real,\n \"pct_of_votes\" text,\n \"votes_swing\" text\n);\n\nQuestion: What was the number of seat changes when the % of votes was 23.75?"
},
{
"role": "assistant",
"content": "SELECT \"change_in_seat\" FROM \"in_general_elections\" WHERE \"pct_of_votes\"='23.75';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in_general_elections\" (\n \"year\" text,\n \"general_election\" text,\n \"seats_won\" real,\n \"change_in_seat\" real,\n \"pct_of_votes\" text,\n \"votes_swing\" text\n);\n\nQuestion: Which general election had a vote swing of 1.69?"
},
{
"role": "assistant",
"content": "SELECT \"general_election\" FROM \"in_general_elections\" WHERE \"votes_swing\"='1.69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in_general_elections\" (\n \"year\" text,\n \"general_election\" text,\n \"seats_won\" real,\n \"change_in_seat\" real,\n \"pct_of_votes\" text,\n \"votes_swing\" text\n);\n\nQuestion: What was the vote swing for the general election of the 12th lok sabha?"
},
{
"role": "assistant",
"content": "SELECT \"votes_swing\" FROM \"in_general_elections\" WHERE \"general_election\"='12th Lok Sabha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the team's result in week 4?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnet_and_host_counts\" (\n \"prefix_size\" text,\n \"network_mask\" text,\n \"available_subnets\" real,\n \"usable_hosts_per_subnet\" real,\n \"total_usable_hosts\" real\n);\n\nQuestion: When the network mask is 255.255.255.252 what is the prefix size?"
},
{
"role": "assistant",
"content": "SELECT \"prefix_size\" FROM \"subnet_and_host_counts\" WHERE \"network_mask\"='255.255.255.252';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnet_and_host_counts\" (\n \"prefix_size\" text,\n \"network_mask\" text,\n \"available_subnets\" real,\n \"usable_hosts_per_subnet\" real,\n \"total_usable_hosts\" real\n);\n\nQuestion: available subnets leading total is?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"available_subnets\") FROM \"subnet_and_host_counts\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnet_and_host_counts\" (\n \"prefix_size\" text,\n \"network_mask\" text,\n \"available_subnets\" real,\n \"usable_hosts_per_subnet\" real,\n \"total_usable_hosts\" real\n);\n\nQuestion: When the network mask is 255.255.255.128 what is the lowest available subnet?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"available_subnets\") FROM \"subnet_and_host_counts\" WHERE \"network_mask\"='255.255.255.128';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnet_and_host_counts\" (\n \"prefix_size\" text,\n \"network_mask\" text,\n \"available_subnets\" real,\n \"usable_hosts_per_subnet\" real,\n \"total_usable_hosts\" real\n);\n\nQuestion: When the network mask is 255.255.255.224 what is the highest total usable host?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total_usable_hosts\") FROM \"subnet_and_host_counts\" WHERE \"network_mask\"='255.255.255.224';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Who were all of the opponents when the date was November 12, 1978?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='November 12, 1978';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What is the total number of values for attendance for the date October 1, 1978?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"date\"='October 1, 1978';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the highest attendance?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What date did the Colts play New York Jets?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='New York Jets';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How many games had the attendance of 60225?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"schedule\" WHERE \"attendance\"=60225;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the game on October 6, 1974?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='October 6, 1974';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record on September 22, 1974?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"date\"='September 22, 1974';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_standings\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"total_points\" text,\n \"oberstdorf_rk\" text,\n \"ga_pa_rk\" text,\n \"bhofennum1_rk\" text,\n \"bhofennum2_rk\" text\n);\n\nQuestion: What was the Bhofen #1 score and rank for the player whose Bhofen #2 score and rank was 231.2 (8)?"
},
{
"role": "assistant",
"content": "SELECT \"bhofennum1_rk\" FROM \"overall_standings\" WHERE \"bhofennum2_rk\"='231.2 (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_standings\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"total_points\" text,\n \"oberstdorf_rk\" text,\n \"ga_pa_rk\" text,\n \"bhofennum1_rk\" text,\n \"bhofennum2_rk\" text\n);\n\nQuestion: What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)?"
},
{
"role": "assistant",
"content": "SELECT \"bhofennum2_rk\" FROM \"overall_standings\" WHERE \"ga_pa_rk\"='233.4 (16)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_standings\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"total_points\" text,\n \"oberstdorf_rk\" text,\n \"ga_pa_rk\" text,\n \"bhofennum1_rk\" text,\n \"bhofennum2_rk\" text\n);\n\nQuestion: What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?"
},
{
"role": "assistant",
"content": "SELECT \"bhofennum2_rk\" FROM \"overall_standings\" WHERE \"ga_pa_rk\"='227.5 (19)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_standings\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"total_points\" text,\n \"oberstdorf_rk\" text,\n \"ga_pa_rk\" text,\n \"bhofennum1_rk\" text,\n \"bhofennum2_rk\" text\n);\n\nQuestion: How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)?"
},
{
"role": "assistant",
"content": "SELECT \"total_points\" FROM \"overall_standings\" WHERE \"oberstdorf_rk\"='252.6 (11)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: On which week was the attendance 74303?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"attendance\"=74303;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: On which date was the game played at Tiger Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='Tiger Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the final score of the game against the Dallas Cowboys?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='Dallas Cowboys';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance at the game played on December 10, 1972?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='December 10, 1972';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_voice_actors_in_the_jak_and_daxt\" (\n \"character\" text,\n \"french_voice_actor\" text,\n \"italian_voice_actor\" text,\n \"german_voice_actor\" text,\n \"spanish_voice_actor\" text\n);\n\nQuestion: Name the french actor with javier romano"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"french_voice_actor\") FROM \"list_of_voice_actors_in_the_jak_and_daxt\" WHERE \"spanish_voice_actor\"='Javier Romano';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_voice_actors_in_the_jak_and_daxt\" (\n \"character\" text,\n \"french_voice_actor\" text,\n \"italian_voice_actor\" text,\n \"german_voice_actor\" text,\n \"spanish_voice_actor\" text\n);\n\nQuestion: Name the german voice actor for alain dorval"
},
{
"role": "assistant",
"content": "SELECT \"german_voice_actor\" FROM \"list_of_voice_actors_in_the_jak_and_daxt\" WHERE \"french_voice_actor\"='Alain Dorval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_voice_actors_in_the_jak_and_daxt\" (\n \"character\" text,\n \"french_voice_actor\" text,\n \"italian_voice_actor\" text,\n \"german_voice_actor\" text,\n \"spanish_voice_actor\" text\n);\n\nQuestion: Name the german voice actor for rafael torres"
},
{
"role": "assistant",
"content": "SELECT \"german_voice_actor\" FROM \"list_of_voice_actors_in_the_jak_and_daxt\" WHERE \"spanish_voice_actor\"='Rafael Torres';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_voice_actors_in_the_jak_and_daxt\" (\n \"character\" text,\n \"french_voice_actor\" text,\n \"italian_voice_actor\" text,\n \"german_voice_actor\" text,\n \"spanish_voice_actor\" text\n);\n\nQuestion: Name the character for sophie arthuys"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"list_of_voice_actors_in_the_jak_and_daxt\" WHERE \"french_voice_actor\"='Sophie Arthuys';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_voice_actors_in_the_jak_and_daxt\" (\n \"character\" text,\n \"french_voice_actor\" text,\n \"italian_voice_actor\" text,\n \"german_voice_actor\" text,\n \"spanish_voice_actor\" text\n);\n\nQuestion: Name the italian voice actor for dirk fenselau"
},
{
"role": "assistant",
"content": "SELECT \"italian_voice_actor\" FROM \"list_of_voice_actors_in_the_jak_and_daxt\" WHERE \"german_voice_actor\"='Dirk Fenselau';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_a\" text,\n \"total\" text\n);\n\nQuestion: what is the Europe number for the league cup of 36 (0)?"
},
{
"role": "assistant",
"content": "SELECT \"europe\" FROM \"appearances\" WHERE \"league_cup\"='36 (0)';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.