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 \"clubs_stadiums_and_locations\" (\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"home_venue\" text,\n \"capacity\" real\n);\n\nQuestion: Where is the city of Maharashtra's Pune team?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"clubs_stadiums_and_locations\" WHERE \"state\"='maharashtra' AND \"team\"='pune';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: How much Money is requested by BassToneSlap?"
},
{
"role": "assistant",
"content": "SELECT \"money_requested\" FROM \"series_7\" WHERE \"company_or_product_name\"='basstoneslap';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: Which Investing Dragon has requested \u00a3100,000 and is supported by Entrepreneur Kay Russell?"
},
{
"role": "assistant",
"content": "SELECT \"investing_dragon_s\" FROM \"series_7\" WHERE \"money_requested\"='100,000' AND \"entrepreneur_s\"='kay russell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?"
},
{
"role": "assistant",
"content": "SELECT \"company_or_product_name\" FROM \"series_7\" WHERE \"episode\"='episode 3' AND \"investing_dragon_s\"='deborah meaden';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: Which Episode has requested \u00a3150,000?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"series_7\" WHERE \"money_requested\"='150,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_of_motif_discovery_algori\" (\n \"counting_method\" text,\n \"basis\" text,\n \"name\" text,\n \"directed_undirected\" text,\n \"induced_non_induced\" text\n);\n\nQuestion: What is the counting method for a network-centric basis?"
},
{
"role": "assistant",
"content": "SELECT \"counting_method\" FROM \"classification_of_motif_discovery_algori\" WHERE \"basis\"='network-centric';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_of_motif_discovery_algori\" (\n \"counting_method\" text,\n \"basis\" text,\n \"name\" text,\n \"directed_undirected\" text,\n \"induced_non_induced\" text\n);\n\nQuestion: What is the directed/undirected for mfinder, which has a network-centric basis?"
},
{
"role": "assistant",
"content": "SELECT \"directed_undirected\" FROM \"classification_of_motif_discovery_algori\" WHERE \"name\"='mfinder' AND \"basis\"='network-centric';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_of_motif_discovery_algori\" (\n \"counting_method\" text,\n \"basis\" text,\n \"name\" text,\n \"directed_undirected\" text,\n \"induced_non_induced\" text\n);\n\nQuestion: What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced?"
},
{
"role": "assistant",
"content": "SELECT \"directed_undirected\" FROM \"classification_of_motif_discovery_algori\" WHERE \"induced_non_induced\"='induced' AND \"name\"='fpf (mavisto)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_of_motif_discovery_algori\" (\n \"counting_method\" text,\n \"basis\" text,\n \"name\" text,\n \"directed_undirected\" text,\n \"induced_non_induced\" text\n);\n\nQuestion: What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"classification_of_motif_discovery_algori\" WHERE \"directed_undirected\"='both' AND \"basis\"='subgraph-centric';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_of_motif_discovery_algori\" (\n \"counting_method\" text,\n \"basis\" text,\n \"name\" text,\n \"directed_undirected\" text,\n \"induced_non_induced\" text\n);\n\nQuestion: What is the directed/undirected for mfinder, which has an induced/non-induced of induced and an exact counting method?"
},
{
"role": "assistant",
"content": "SELECT \"directed_undirected\" FROM \"classification_of_motif_discovery_algori\" WHERE \"induced_non_induced\"='induced' AND \"counting_method\"='exact' AND \"name\"='mfinder';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_16_7_titles_9_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Who is the opponent for the winner outcome on a hard surface on August 27, 2011?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_16_7_titles_9_runners_up\" WHERE \"outcome\"='winner' AND \"surface\"='hard' AND \"date\"='august 27, 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_16_7_titles_9_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the outcome on August 5, 2007?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_16_7_titles_9_runners_up\" WHERE \"date\"='august 5, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_16_7_titles_9_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the score on January 16, 2010?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"singles_16_7_titles_9_runners_up\" WHERE \"date\"='january 16, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"name\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country is Paul Runyan from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"name\"='paul runyan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"name\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the To par of Willie MacFarlane from the country of Scotland?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"country\"='scotland' AND \"name\"='willie macfarlane';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"name\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country has a To par of +1 and the score of 71-76-70=217?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"to_par\"='+1' AND \"score\"='71-76-70=217';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_season\" (\n \"rank\" text,\n \"goals\" text,\n \"player\" text,\n \"club\" text,\n \"season\" text\n);\n\nQuestion: What player scored 143 goals?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"most_goals_in_a_season\" WHERE \"goals\"='143';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_season\" (\n \"rank\" text,\n \"goals\" text,\n \"player\" text,\n \"club\" text,\n \"season\" text\n);\n\nQuestion: In what season was there a club of South Melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"most_goals_in_a_season\" WHERE \"club\"='south melbourne';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_season\" (\n \"rank\" text,\n \"goals\" text,\n \"player\" text,\n \"club\" text,\n \"season\" text\n);\n\nQuestion: What club scored 143 goals?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"most_goals_in_a_season\" WHERE \"goals\"='143';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_season\" (\n \"rank\" text,\n \"goals\" text,\n \"player\" text,\n \"club\" text,\n \"season\" text\n);\n\nQuestion: In what season did Bob Pratt play?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"most_goals_in_a_season\" WHERE \"player\"='bob pratt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_season\" (\n \"rank\" text,\n \"goals\" text,\n \"player\" text,\n \"club\" text,\n \"season\" text\n);\n\nQuestion: How many goals did the club from Hawthorn score in the 1971 season?"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"most_goals_in_a_season\" WHERE \"club\"='hawthorn' AND \"season\"='1971';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What source has july 1 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='july 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the record that has an attendance greater than 39,980 with july 26 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"attendance\">'39,980' AND \"date\"='july 26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"municipality\" text,\n \"population\" real,\n \"area_km\" real,\n \"density_population_per_km\" real,\n \"area\" text,\n \"county\" text\n);\n\nQuestion: What is the Area of the town with a Population Density of 36 km and a population greater than 3,546?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"area_km\") FROM \"statistics\" WHERE \"density_population_per_km\"=36 AND \"population\">'3,546';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"municipality\" text,\n \"population\" real,\n \"area_km\" real,\n \"density_population_per_km\" real,\n \"area\" text,\n \"county\" text\n);\n\nQuestion: Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people?"
},
{
"role": "assistant",
"content": "SELECT \"municipality\" FROM \"statistics\" WHERE \"area\"='outer circle south' AND \"area_km\"<368 AND \"county\"='akershus' AND \"population\">'14,398';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: What was the location of the game after game 6?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"summary\" WHERE \"game\">6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"january\" text,\n \"february\" text,\n \"march\" text,\n \"april\" text,\n \"june\" text,\n \"july\" text,\n \"august\" text,\n \"september\" text,\n \"october\" text,\n \"november\" text,\n \"december\" text\n);\n\nQuestion: Who is in February where has September is kristine hanson?"
},
{
"role": "assistant",
"content": "SELECT \"february\" FROM \"1970_1979\" WHERE \"september\"='kristine hanson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"january\" text,\n \"february\" text,\n \"march\" text,\n \"april\" text,\n \"june\" text,\n \"july\" text,\n \"august\" text,\n \"september\" text,\n \"october\" text,\n \"november\" text,\n \"december\" text\n);\n\nQuestion: Who is in January where April is chris cranston?"
},
{
"role": "assistant",
"content": "SELECT \"january\" FROM \"1970_1979\" WHERE \"april\"='chris cranston';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"january\" text,\n \"february\" text,\n \"march\" text,\n \"april\" text,\n \"june\" text,\n \"july\" text,\n \"august\" text,\n \"september\" text,\n \"october\" text,\n \"november\" text,\n \"december\" text\n);\n\nQuestion: Who is in July where October is jill de vries?"
},
{
"role": "assistant",
"content": "SELECT \"july\" FROM \"1970_1979\" WHERE \"october\"='jill de vries';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"january\" text,\n \"february\" text,\n \"march\" text,\n \"april\" text,\n \"june\" text,\n \"july\" text,\n \"august\" text,\n \"september\" text,\n \"october\" text,\n \"november\" text,\n \"december\" text\n);\n\nQuestion: Who is in November where February is willy rey?"
},
{
"role": "assistant",
"content": "SELECT \"november\" FROM \"1970_1979\" WHERE \"february\"='willy rey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"january\" text,\n \"february\" text,\n \"march\" text,\n \"april\" text,\n \"june\" text,\n \"july\" text,\n \"august\" text,\n \"september\" text,\n \"october\" text,\n \"november\" text,\n \"december\" text\n);\n\nQuestion: Who is in November where October is jill de vries?"
},
{
"role": "assistant",
"content": "SELECT \"november\" FROM \"1970_1979\" WHERE \"october\"='jill de vries';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"january\" text,\n \"february\" text,\n \"march\" text,\n \"april\" text,\n \"june\" text,\n \"july\" text,\n \"august\" text,\n \"september\" text,\n \"october\" text,\n \"november\" text,\n \"december\" text\n);\n\nQuestion: Who is in July where February is linda forsythe?"
},
{
"role": "assistant",
"content": "SELECT \"july\" FROM \"1970_1979\" WHERE \"february\"='linda forsythe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_destination_number\" (\n \"rank\" real,\n \"airline\" text,\n \"country\" text,\n \"destination_number\" real,\n \"remarks\" text\n);\n\nQuestion: What were the remarks for Dutch Antilles Express?"
},
{
"role": "assistant",
"content": "SELECT \"remarks\" FROM \"current_destination_number\" WHERE \"airline\"='dutch antilles express';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_destination_number\" (\n \"rank\" real,\n \"airline\" text,\n \"country\" text,\n \"destination_number\" real,\n \"remarks\" text\n);\n\nQuestion: What were the remarks for a destination under 19 and rank less than 5?"
},
{
"role": "assistant",
"content": "SELECT \"remarks\" FROM \"current_destination_number\" WHERE \"destination_number\"<19 AND \"rank\"<5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the date when the attendance is more than 45,817"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"attendance\">'45,817';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the score for september 25"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='september 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What is the lowest year that has athens, greece as the venue?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"achievements\" WHERE \"venue\"='athens, greece';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: Which venue has 1st as the result?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"achievements\" WHERE \"result\"='1st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What extra has world championships as the tournament, and 1st as the result?"
},
{
"role": "assistant",
"content": "SELECT \"extra\" FROM \"achievements\" WHERE \"tournament\"='world championships' AND \"result\"='1st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: For all countries with 7 bronze medals and a total number of medals less than 13, what's the sum of silver medals?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"silver\") FROM \"medal_table\" WHERE \"bronze\"=7 AND \"total\"<13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: For countries with total number of medals less than 5 and more than 2 bronze medals, what's the lowest number of gold medals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"gold\") FROM \"medal_table\" WHERE \"total\"<5 AND \"bronze\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: Which Class has Laps of 31?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"laps\"=31;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"newfoundland_and_labrador_7_seats\" (\n \"riding\" text,\n \"candidate_s_name\" text,\n \"gender\" text,\n \"residence\" text,\n \"occupation\" text,\n \"votes\" real,\n \"rank\" text\n);\n\nQuestion: What is the gender for the person that recieved over 11,542 votes in pasadena?"
},
{
"role": "assistant",
"content": "SELECT \"gender\" FROM \"newfoundland_and_labrador_7_seats\" WHERE \"votes\">'11,542' AND \"residence\"='pasadena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"position\" text,\n \"player\" text,\n \"county_team\" text,\n \"club_team_s\" text,\n \"team_number\" real\n);\n\nQuestion: What country team had Thurles Sarsfields?"
},
{
"role": "assistant",
"content": "SELECT \"county_team\" FROM \"see_also\" WHERE \"club_team_s\"='thurles sarsfields';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"position\" text,\n \"player\" text,\n \"county_team\" text,\n \"club_team_s\" text,\n \"team_number\" real\n);\n\nQuestion: How many club teams had more than 14 people?"
},
{
"role": "assistant",
"content": "SELECT \"club_team_s\" FROM \"see_also\" WHERE \"team_number\">14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Who is from Spain with a to par of e?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round\" WHERE \"to_par\"='e' AND \"country\"='spain';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Where was Steve Stricker from?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"first_round\" WHERE \"player\"='steve stricker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which country has 69 score?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"first_round\" WHERE \"score\"=69;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: How many laps were there when the start was 12?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"laps\") FROM \"indy_500_results\" WHERE \"start\"='12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What was the qual when the rank was 2?"
},
{
"role": "assistant",
"content": "SELECT \"qual\" FROM \"indy_500_results\" WHERE \"rank\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_wise_fm\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"fcc_info\" text\n);\n\nQuestion: Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"broadcast_translators_of_wise_fm\" WHERE \"frequency_m_hz\">90.1 AND \"erp_w\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_wise_fm\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"fcc_info\" text\n);\n\nQuestion: Name the total number of ERP W when the call sign is w217bf"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"erp_w\") FROM \"broadcast_translators_of_wise_fm\" WHERE \"call_sign\"='w217bf';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_wise_fm\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"fcc_info\" text\n);\n\nQuestion: Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"frequency_m_hz\") FROM \"broadcast_translators_of_wise_fm\" WHERE \"erp_w\"=1 AND \"call_sign\"='w215bj';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_wise_fm\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"fcc_info\" text\n);\n\nQuestion: Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3"
},
{
"role": "assistant",
"content": "SELECT AVG(\"erp_w\") FROM \"broadcast_translators_of_wise_fm\" WHERE \"city_of_license\"='pound, virginia' AND \"frequency_m_hz\">91.3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals_for_senior_national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the Score that has a Result of 2\u20132 on 04 Dec 2005?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"goals_for_senior_national_team\" WHERE \"result\"='2\u20132' AND \"date\"='04 dec 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals_for_senior_national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the Result on 26 jan 2005?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"goals_for_senior_national_team\" WHERE \"date\"='26 jan 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals_for_senior_national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the Venue on 26 jan 2005"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"goals_for_senior_national_team\" WHERE \"date\"='26 jan 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals_for_senior_national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the Competition On 26 jan 2005"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"goals_for_senior_national_team\" WHERE \"date\"='26 jan 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals_for_senior_national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the Score of West Asian Games 2005 on 10 dec 2005?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"goals_for_senior_national_team\" WHERE \"competition\"='west asian games 2005' AND \"date\"='10 dec 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many matches were drawn by a team with 447 points?"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2008_2009_table\" WHERE \"points_for\"='447';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: For teams with 22 matches played, a losing bonus of 3, and 45 tries against, what was the number of points against?"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"2008_2009_table\" WHERE \"played\"='22' AND \"losing_bonus\"='3' AND \"tries_against\"='45';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: For a team with 332 points for, what was the try bonus?"
},
{
"role": "assistant",
"content": "SELECT \"try_bonus\" FROM \"2008_2009_table\" WHERE \"points_for\"='332';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: Which club has a try bonus of 9 and 43 tries against?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"2008_2009_table\" WHERE \"tries_against\"='43' AND \"try_bonus\"='9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many matches were played by the team that has 473 points for?"
},
{
"role": "assistant",
"content": "SELECT \"played\" FROM \"2008_2009_table\" WHERE \"points_for\"='473';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What is the qual when there are 125 laps?"
},
{
"role": "assistant",
"content": "SELECT \"qual\" FROM \"indy_500_results\" WHERE \"laps\"=125;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What is the rank when there are more than 107 laps and the qual is 137.825?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"indy_500_results\" WHERE \"laps\">107 AND \"qual\"='137.825';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What is the rank with more than 40 laps and a 23 finish?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"indy_500_results\" WHERE \"laps\">40 AND \"finish\"='23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What is the finish in 1953?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"indy_500_results\" WHERE \"year\"='1953';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: In what year was the rank 24?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"indy_500_results\" WHERE \"rank\"='24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which To par has $100 in money played by Vic Ghezzi?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_leaderboard\" WHERE \"money\"=100 AND \"player\"='vic ghezzi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the monetary sum with a score of 75-71-75-72=293?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"money\") FROM \"final_leaderboard\" WHERE \"score\"='75-71-75-72=293';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"east_asian_seven_luminaries\" (\n \"sunday\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text\n);\n\nQuestion: Which Wednesday has a Saturday of \u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0d?"
},
{
"role": "assistant",
"content": "SELECT \"wednesday\" FROM \"east_asian_seven_luminaries\" WHERE \"saturday\"='\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0d';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"east_asian_seven_luminaries\" (\n \"sunday\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text\n);\n\nQuestion: Which Wednesday has a Sunday of \u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0d?"
},
{
"role": "assistant",
"content": "SELECT \"wednesday\" FROM \"east_asian_seven_luminaries\" WHERE \"sunday\"='\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0d';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"east_asian_seven_luminaries\" (\n \"sunday\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text\n);\n\nQuestion: Which Tuesday has a Saturday of \u571f\u66dc\u65e5 doy\u014dbi?"
},
{
"role": "assistant",
"content": "SELECT \"tuesday\" FROM \"east_asian_seven_luminaries\" WHERE \"saturday\"='\u571f\u66dc\u65e5 doy\u014dbi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"east_asian_seven_luminaries\" (\n \"sunday\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text\n);\n\nQuestion: Which Thursday has a Wednesday of \u661f\u671f\u4e09 xingqisen?"
},
{
"role": "assistant",
"content": "SELECT \"thursday\" FROM \"east_asian_seven_luminaries\" WHERE \"wednesday\"='\u661f\u671f\u4e09 xingqisen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"east_asian_seven_luminaries\" (\n \"sunday\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text\n);\n\nQuestion: Which Wednesday has a Monday of \u6708\u66dc\u65e5 getsuy\u014dbi?"
},
{
"role": "assistant",
"content": "SELECT \"wednesday\" FROM \"east_asian_seven_luminaries\" WHERE \"monday\"='\u6708\u66dc\u65e5 getsuy\u014dbi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"east_asian_seven_luminaries\" (\n \"sunday\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text\n);\n\nQuestion: Which Saturday has a Thursday of \u6728\u66dc\u65e5 mokuy\u014dbi"
},
{
"role": "assistant",
"content": "SELECT \"saturday\" FROM \"east_asian_seven_luminaries\" WHERE \"thursday\"='\u6728\u66dc\u65e5 mokuy\u014dbi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What loss was against the angels with a 50-31 record?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"opponent\"='angels' AND \"record\"='50-31';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m2_f3_flights\" (\n \"vehicle_flight_num\" text,\n \"date\" text,\n \"pilot\" text,\n \"mach\" real,\n \"velocity_km_h\" real,\n \"altitude_ft\" real,\n \"duration\" text\n);\n\nQuestion: Who is the pilot on September 27, 1972?"
},
{
"role": "assistant",
"content": "SELECT \"pilot\" FROM \"m2_f3_flights\" WHERE \"date\"='september 27, 1972';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m2_f3_flights\" (\n \"vehicle_flight_num\" text,\n \"date\" text,\n \"pilot\" text,\n \"mach\" real,\n \"velocity_km_h\" real,\n \"altitude_ft\" real,\n \"duration\" text\n);\n\nQuestion: What is the lowest altitude of the flight with a mach bigger than 0.905 and a duration of 00:06:17?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"altitude_ft\") FROM \"m2_f3_flights\" WHERE \"mach\">0.905 AND \"duration\"='00:06:17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_partnerships_of_the_tournament\" (\n \"runs_balls\" text,\n \"wicket\" text,\n \"partnerships\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Which wicket had a 100 (45) Runs (balls) amount?"
},
{
"role": "assistant",
"content": "SELECT \"wicket\" FROM \"highest_partnerships_of_the_tournament\" WHERE \"runs_balls\"='100 (45)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_partnerships_of_the_tournament\" (\n \"runs_balls\" text,\n \"wicket\" text,\n \"partnerships\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Which Wicket was it that had a 104 (69) Runs (balls) amount?"
},
{
"role": "assistant",
"content": "SELECT \"wicket\" FROM \"highest_partnerships_of_the_tournament\" WHERE \"runs_balls\"='104 (69)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" text,\n \"fixtures\" real,\n \"clubs\" text,\n \"new_entries\" text,\n \"leagues_entering\" text\n);\n\nQuestion: What is the item for Leagues entering, when the value for Clubs is 8 \u2192 4?"
},
{
"role": "assistant",
"content": "SELECT \"leagues_entering\" FROM \"calendar\" WHERE \"clubs\"='8 \u2192 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" text,\n \"fixtures\" real,\n \"clubs\" text,\n \"new_entries\" text,\n \"leagues_entering\" text\n);\n\nQuestion: What is the Round when the value for Fixtures is 2?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"calendar\" WHERE \"fixtures\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" text,\n \"fixtures\" real,\n \"clubs\" text,\n \"new_entries\" text,\n \"leagues_entering\" text\n);\n\nQuestion: What is the value for New entries, when the value for Fixtures is less than 16, and when the value for Clubs is 4 \u2192 2?"
},
{
"role": "assistant",
"content": "SELECT \"new_entries\" FROM \"calendar\" WHERE \"fixtures\"<16 AND \"clubs\"='4 \u2192 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" text,\n \"fixtures\" real,\n \"clubs\" text,\n \"new_entries\" text,\n \"leagues_entering\" text\n);\n\nQuestion: What is the value for New entries, when the value for Fixtures is 2?"
},
{
"role": "assistant",
"content": "SELECT \"new_entries\" FROM \"calendar\" WHERE \"fixtures\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recording_industry_association_of_americ\" (\n \"year\" real,\n \"date\" text,\n \"title\" text,\n \"format_s\" text,\n \"award_description_s\" text,\n \"result_s\" text\n);\n\nQuestion: Which date has a format's album?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"recording_industry_association_of_americ\" WHERE \"format_s\"='album';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recording_industry_association_of_americ\" (\n \"year\" real,\n \"date\" text,\n \"title\" text,\n \"format_s\" text,\n \"award_description_s\" text,\n \"result_s\" text\n);\n\nQuestion: What is the title for year 1991 and a date of March 21?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"recording_industry_association_of_americ\" WHERE \"year\"=1991 AND \"date\"='march 21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recording_industry_association_of_americ\" (\n \"year\" real,\n \"date\" text,\n \"title\" text,\n \"format_s\" text,\n \"award_description_s\" text,\n \"result_s\" text\n);\n\nQuestion: What is the average year with an award of platinum?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"recording_industry_association_of_americ\" WHERE \"award_description_s\"='platinum';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recording_industry_association_of_americ\" (\n \"year\" real,\n \"date\" text,\n \"title\" text,\n \"format_s\" text,\n \"award_description_s\" text,\n \"result_s\" text\n);\n\nQuestion: What are the results of Format single on March 21?"
},
{
"role": "assistant",
"content": "SELECT \"result_s\" FROM \"recording_industry_association_of_americ\" WHERE \"format_s\"='single' AND \"date\"='march 21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recording_industry_association_of_americ\" (\n \"year\" real,\n \"date\" text,\n \"title\" text,\n \"format_s\" text,\n \"award_description_s\" text,\n \"result_s\" text\n);\n\nQuestion: What are the award description with Format album?"
},
{
"role": "assistant",
"content": "SELECT \"award_description_s\" FROM \"recording_industry_association_of_americ\" WHERE \"format_s\"='album';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_points_leaders\" (\n \"player\" text,\n \"years\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What is the largest number of goals with less than 101 assists and 172 points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals\") FROM \"career_points_leaders\" WHERE \"assists\"<101 AND \"points\"<172;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_points_leaders\" (\n \"player\" text,\n \"years\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: How many total points does Mike Hyndman have with more than 119 assists?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"career_points_leaders\" WHERE \"player\"='mike hyndman' AND \"assists\">119;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_points_leaders\" (\n \"player\" text,\n \"years\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: How many assists does David Tomlinson have?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"assists\") FROM \"career_points_leaders\" WHERE \"player\"='david tomlinson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_points_leaders\" (\n \"player\" text,\n \"years\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: How many points does Shawn Mceachern with less than 79 goals?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"career_points_leaders\" WHERE \"player\"='shawn mceachern' AND \"goals\"<79;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_points_leaders\" (\n \"player\" text,\n \"years\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: How many goals does Mike Eruzione have in total?"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"career_points_leaders\" WHERE \"player\"='mike eruzione';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which rider had fewer than 10 laps for the Aprilia manufacturer, finishing in retirement?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"laps\"<10 AND \"manufacturer\"='aprilia' AND \"time_retired\"='retirement';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the time for a grid greater than 20, fewer than 26 laps, and the Aprilia manufacturer?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"250cc_classification\" WHERE \"grid\">20 AND \"laps\"<26 AND \"manufacturer\"='aprilia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which rider had more than 23 laps, a manufacturer of Aprilia, and a grid of 14"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"laps\">23 AND \"manufacturer\"='aprilia' AND \"grid\"=14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"representative\" text,\n \"years\" text,\n \"state\" text,\n \"party\" text,\n \"lifespan\" text\n);\n\nQuestion: When was Walter Evans a representative?"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"external_links\" WHERE \"representative\"='walter evans';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.