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 \"aircraft_inventory\" (\n \"aircraft\" text,\n \"origin\" text,\n \"type\" text,\n \"versions\" text,\n \"in_service\" text\n);\n\nQuestion: Which version B-58 aircraft model originated in the United States has 2 in service?"
},
{
"role": "assistant",
"content": "SELECT \"aircraft\" FROM \"aircraft_inventory\" WHERE \"in_service\"='2' AND \"origin\"='united states' AND \"versions\"='b-58';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft_inventory\" (\n \"aircraft\" text,\n \"origin\" text,\n \"type\" text,\n \"versions\" text,\n \"in_service\" text\n);\n\nQuestion: What aircraft type is the Casa C-212 Aviocar?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"aircraft_inventory\" WHERE \"aircraft\"='casa c-212 aviocar';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft_inventory\" (\n \"aircraft\" text,\n \"origin\" text,\n \"type\" text,\n \"versions\" text,\n \"in_service\" text\n);\n\nQuestion: How many T-260 EU aircrafts are currently in service?"
},
{
"role": "assistant",
"content": "SELECT \"in_service\" FROM \"aircraft_inventory\" WHERE \"versions\"='t-260 eu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft_inventory\" (\n \"aircraft\" text,\n \"origin\" text,\n \"type\" text,\n \"versions\" text,\n \"in_service\" text\n);\n\nQuestion: How many C-95 aircrafts originating in Brazil are currently in service?"
},
{
"role": "assistant",
"content": "SELECT \"in_service\" FROM \"aircraft_inventory\" WHERE \"origin\"='brazil' AND \"versions\"='c-95';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"census_year\" real,\n \"total\" real,\n \"macedonians\" real,\n \"albanians\" real,\n \"turks\" real,\n \"roma\" real,\n \"vlachs\" real,\n \"serbs\" real,\n \"bosniaks\" real,\n \"other\" real\n);\n\nQuestion: Tell me the lowest other for albanians more than 8793 and Roma less than 1030"
},
{
"role": "assistant",
"content": "SELECT MIN(\"other\") FROM \"demographics\" WHERE \"albanians\">8793 AND \"roma\"<1030;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"census_year\" real,\n \"total\" real,\n \"macedonians\" real,\n \"albanians\" real,\n \"turks\" real,\n \"roma\" real,\n \"vlachs\" real,\n \"serbs\" real,\n \"bosniaks\" real,\n \"other\" real\n);\n\nQuestion: Tell me the highest bosniaks for year more than 2002"
},
{
"role": "assistant",
"content": "SELECT MAX(\"bosniaks\") FROM \"demographics\" WHERE \"census_year\">2002;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Name the lowest ERP W with a frequency mhz less than 103.1"
},
{
"role": "assistant",
"content": "SELECT MIN(\"erp_w\") FROM \"translators\" WHERE \"frequency_m_hz\"<103.1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Name the city with 103.1 frequency and ERP W less than 80"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license\" FROM \"translators\" WHERE \"frequency_m_hz\"=103.1 AND \"erp_w\"<80;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: Tell me the affiliation for pick number less than 59 and position of gk"
},
{
"role": "assistant",
"content": "SELECT \"affiliation\" FROM \"round_six\" WHERE \"pick_num\"<59 AND \"position\"='gk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1987\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text\n);\n\nQuestion: What Tournament of canada happened in 1998?"
},
{
"role": "assistant",
"content": "SELECT \"1998\" FROM \"doubles_performance_timeline\" WHERE \"tournament\"='canada';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1987\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text\n);\n\nQuestion: Who had 1990 of 2\u20132 in 1993?"
},
{
"role": "assistant",
"content": "SELECT \"1993\" FROM \"doubles_performance_timeline\" WHERE \"1990\"='2\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1987\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text\n);\n\nQuestion: What Tournament of monte carlo had 1996 and a 1987 of nme?"
},
{
"role": "assistant",
"content": "SELECT \"1996\" FROM \"doubles_performance_timeline\" WHERE \"1987\"='nme' AND \"tournament\"='monte carlo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1987\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text\n);\n\nQuestion: What Tournament of the french open had 2004 that has a 1998 of 2r?"
},
{
"role": "assistant",
"content": "SELECT \"2004\" FROM \"doubles_performance_timeline\" WHERE \"1998\"='2r' AND \"tournament\"='french open';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the margin at the Nabisco Championship?"
},
{
"role": "assistant",
"content": "SELECT \"margin\" FROM \"wins_7\" WHERE \"championship\"='nabisco championship';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the margin in 2001 at the McDonald's LPGA Championship?"
},
{
"role": "assistant",
"content": "SELECT \"margin\" FROM \"wins_7\" WHERE \"year\"=2001 AND \"championship\"='mcdonald''s lpga championship';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the date of goal 5"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"goal\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the date for goal of 5"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"goal\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" real,\n \"competition\" text,\n \"date\" text,\n \"location\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: What was the result of Sopot (pol)?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"1990s\" WHERE \"location\"='sopot (pol)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Which division was the Rampage in when they were in the 2nd round in the Open Cup?"
},
{
"role": "assistant",
"content": "SELECT \"division\" FROM \"year_by_year\" WHERE \"open_cup\"='2nd round';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the Rampage's regular season in 1997?"
},
{
"role": "assistant",
"content": "SELECT \"reg_season\" FROM \"year_by_year\" WHERE \"year\"=1997;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs?"
},
{
"role": "assistant",
"content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"playoffs\"='2nd round';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the Rampage's result in the playoffs in the year that their regular season resulted in 4th, central?"
},
{
"role": "assistant",
"content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"reg_season\"='4th, central';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"professional_boxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" real\n);\n\nQuestion: Which method resulting in a win against Ed Mahone?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"professional_boxing_record\" WHERE \"result\"='win' AND \"opponent\"='ed mahone';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"professional_boxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" real\n);\n\nQuestion: When did the technical knockout against Fatu Tuimanono happen?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"professional_boxing_record\" WHERE \"method\"='technical knockout' AND \"opponent\"='fatu tuimanono';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"professional_boxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" real\n);\n\nQuestion: When did the opponent knockout Barry Prior in more than 2 rounds?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"professional_boxing_record\" WHERE \"method\"='knockout' AND \"round\">2 AND \"opponent\"='barry prior';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"professional_boxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" real\n);\n\nQuestion: What resulted after 4 rounds with Ed Mahone?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"professional_boxing_record\" WHERE \"round\">4 AND \"opponent\"='ed mahone';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1_venues\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Tell me the region for georgia"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"round_1_venues\" WHERE \"state\"='georgia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1_venues\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Tell me the host for midwest thomas assembly center"
},
{
"role": "assistant",
"content": "SELECT \"host\" FROM \"round_1_venues\" WHERE \"region\"='midwest' AND \"venue\"='thomas assembly center';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1_venues\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Tell me the region for frank erwin center"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"round_1_venues\" WHERE \"venue\"='frank erwin center';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reserves_team\" (\n \"year\" text,\n \"competition\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text\n);\n\nQuestion: In 1971 at MCG, what was the score of the VFL Reserves?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"reserves_team\" WHERE \"competition\"='vfl reserves' AND \"venue\"='mcg' AND \"year\"='1971';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reserves_team\" (\n \"year\" text,\n \"competition\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text\n);\n\nQuestion: What was the score when Richmond was the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"reserves_team\" WHERE \"opponent\"='richmond';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reserves_team\" (\n \"year\" text,\n \"competition\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text\n);\n\nQuestion: Where was the match with a score of 18.6 (114) - 21.14 (140)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"reserves_team\" WHERE \"score\"='18.6 (114) - 21.14 (140)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reserves_team\" (\n \"year\" text,\n \"competition\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text\n);\n\nQuestion: At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"reserves_team\" WHERE \"competition\"='vfl reserves' AND \"score\"='18.6 (114) - 21.14 (140)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reserves_team\" (\n \"year\" text,\n \"competition\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text\n);\n\nQuestion: Where was the match with a score of 4.10 (34) - 8.12 (60)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"reserves_team\" WHERE \"score\"='4.10 (34) - 8.12 (60)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" text,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" text,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: How much is the total BBC 2 viewing in 1999?"
},
{
"role": "assistant",
"content": "SELECT \"bbc_two_total_viewing\" FROM \"tv_ratings\" WHERE \"year\"='1999';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" text,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" text,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: What was the rank of BBC 2 in 2005?"
},
{
"role": "assistant",
"content": "SELECT \"bbc_two_rank\" FROM \"tv_ratings\" WHERE \"year\"='2005';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" text,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" text,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: What is the BBC 2 rank when BBC 1 is 1st rank and the total viewing is 9,840,000?"
},
{
"role": "assistant",
"content": "SELECT \"bbc_two_rank\" FROM \"tv_ratings\" WHERE \"bbc_one_rank\"='1st' AND \"bbc_one_total_viewing\"='9,840,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" text,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" text,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: In what year was BBC 2 13th in rank?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"tv_ratings\" WHERE \"bbc_two_rank\"='13th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players\" (\n \"player\" text,\n \"country\" text,\n \"caps\" real,\n \"goals\" text,\n \"years_active\" text\n);\n\nQuestion: How many goals occurred for Stein Huysegems when the caps value is more than 8?"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"players\" WHERE \"caps\">8 AND \"player\"='stein huysegems';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players\" (\n \"player\" text,\n \"country\" text,\n \"caps\" real,\n \"goals\" text,\n \"years_active\" text\n);\n\nQuestion: What is the largest caps value for Glen Moss?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"caps\") FROM \"players\" WHERE \"player\"='glen moss';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recordings\" (\n \"cellist\" text,\n \"orchestra\" text,\n \"conductor\" text,\n \"record_company\" text,\n \"year_of_recording\" real,\n \"format\" text\n);\n\nQuestion: What is the oldest year that the Royal Philharmonic Orchestra released a record with Decca Records?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year_of_recording\") FROM \"recordings\" WHERE \"orchestra\"='royal philharmonic orchestra' AND \"record_company\"='decca records';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recordings\" (\n \"cellist\" text,\n \"orchestra\" text,\n \"conductor\" text,\n \"record_company\" text,\n \"year_of_recording\" real,\n \"format\" text\n);\n\nQuestion: What format was conductor Erich Leinsdorf's album released on?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"recordings\" WHERE \"conductor\"='erich leinsdorf';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recordings\" (\n \"cellist\" text,\n \"orchestra\" text,\n \"conductor\" text,\n \"record_company\" text,\n \"year_of_recording\" real,\n \"format\" text\n);\n\nQuestion: What record company released a CD in 1964?"
},
{
"role": "assistant",
"content": "SELECT \"record_company\" FROM \"recordings\" WHERE \"year_of_recording\"=1964 AND \"format\"='cd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text,\n \"avg_attendance\" text\n);\n\nQuestion: What division has finalist playoffs and was 3rd round Open Cup?"
},
{
"role": "assistant",
"content": "SELECT \"division\" FROM \"year_by_year\" WHERE \"playoffs\"='finalist' AND \"open_cup\"='3rd round';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text,\n \"avg_attendance\" text\n);\n\nQuestion: What year was the team 8th in the season and made it to the 3rd round in Open Cup?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"year_by_year\" WHERE \"reg_season\"='8th' AND \"open_cup\"='3rd round';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"launch_history\" (\n \"flight\" text,\n \"launch_date_time_utc\" text,\n \"variant\" text,\n \"launch_pad\" text,\n \"payload\" text,\n \"payload_mass\" text\n);\n\nQuestion: Tell me the launch date/time for payload of gsat-4"
},
{
"role": "assistant",
"content": "SELECT \"launch_date_time_utc\" FROM \"launch_history\" WHERE \"payload\"='gsat-4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"launch_history\" (\n \"flight\" text,\n \"launch_date_time_utc\" text,\n \"variant\" text,\n \"launch_pad\" text,\n \"payload\" text,\n \"payload_mass\" text\n);\n\nQuestion: Tell me the launch pad for 25 december 2010 10:34"
},
{
"role": "assistant",
"content": "SELECT \"launch_pad\" FROM \"launch_history\" WHERE \"launch_date_time_utc\"='25 december 2010 10:34';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"rank\" real,\n \"name\" text,\n \"confederation\" text,\n \"caps\" real,\n \"last\" real\n);\n\nQuestion: Who had a rank more than 48, and a last in 2005?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"women\" WHERE \"rank\">48 AND \"last\"=2005;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"rank\" real,\n \"name\" text,\n \"confederation\" text,\n \"caps\" real,\n \"last\" real\n);\n\nQuestion: Which UEFA confederation member had a rank more than 17 and caps of 114?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"women\" WHERE \"rank\">17 AND \"confederation\"='uefa' AND \"caps\"=114;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the result of july 16, 2000"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='july 16, 2000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_caps_for_estonia\" (\n \"rank\" real,\n \"player\" text,\n \"career\" text,\n \"caps\" real,\n \"goals\" real\n);\n\nQuestion: What is the maximum cap number where 0 goals were scored with a rank of 15?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"caps\") FROM \"most_caps_for_estonia\" WHERE \"goals\"=0 AND \"rank\"=15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships_served_in_by_adam_bolitho\" (\n \"ship\" text,\n \"guns\" real,\n \"class\" text,\n \"captain\" text,\n \"rank\" text,\n \"year\" text\n);\n\nQuestion: What were the fewest amount of guns possessed by a frigate that served in 1815?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"guns\") FROM \"ships_served_in_by_adam_bolitho\" WHERE \"class\"='frigate' AND \"year\"='1815';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"place\" real,\n \"title\" text,\n \"units_sold_in_japan\" text,\n \"units_sold_in_the_uk\" text,\n \"units_sold_in_the_us\" text,\n \"total_units_sold\" real\n);\n\nQuestion: Of the games that sold 321,000 units in the UK, what is their average place?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"place\") FROM \"other\" WHERE \"units_sold_in_the_uk\"='321,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"place\" real,\n \"title\" text,\n \"units_sold_in_japan\" text,\n \"units_sold_in_the_uk\" text,\n \"units_sold_in_the_us\" text,\n \"total_units_sold\" real\n);\n\nQuestion: How many units were sold in the US of the game that sold 346,000 units in japan?"
},
{
"role": "assistant",
"content": "SELECT \"units_sold_in_the_us\" FROM \"other\" WHERE \"units_sold_in_japan\"='346,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: Tell me the player from dallas burn"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"round_four\" WHERE \"mls_team\"='dallas burn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: Tell me the sum of pick number for kenny arena"
},
{
"role": "assistant",
"content": "SELECT SUM(\"pick_num\") FROM \"round_four\" WHERE \"player\"='kenny arena';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: What city is the Northeast Louisiana University located in?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"first_round\" WHERE \"host\"='northeast louisiana university';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: What region is the city of Philadelphia located in?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"first_round\" WHERE \"city\"='philadelphia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: What venue is in Long Beach?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"first_round\" WHERE \"city\"='long beach';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: What state is Knoxville and the mideast region located in?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"first_round\" WHERE \"region\"='mideast' AND \"city\"='knoxville';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: What is the host in Georgia?"
},
{
"role": "assistant",
"content": "SELECT \"host\" FROM \"first_round\" WHERE \"state\"='georgia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: What state is the University of Tennessee located in?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"first_round\" WHERE \"host\"='university of tennessee';"
}
] |
[
{
"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 \"attendance\" real\n);\n\nQuestion: Tell me the date that has a week larger than 3 and a result of w 28-27"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\">3 AND \"result\"='w 28-27';"
}
] |
[
{
"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 \"attendance\" real\n);\n\nQuestion: Tell me the sum of attendane for a result of w 12-3 and week more than 12"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"schedule\" WHERE \"result\"='w 12-3' AND \"week\">12;"
}
] |
[
{
"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 \"attendance\" real\n);\n\nQuestion: Tell me the total number of attendance for result of l 18-6"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"result\"='l 18-6';"
}
] |
[
{
"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 \"attendance\" real\n);\n\nQuestion: Tell me the total number of attendance for week of 16"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"week\"=16;"
}
] |
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many bronzes were held by those with a total of 4 and less than 3 silvers."
},
{
"role": "assistant",
"content": "SELECT SUM(\"bronze\") FROM \"medal_table\" WHERE \"total\"=4 AND \"silver\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"location\" text\n);\n\nQuestion: How many rounds did the IFL: Oakland event have?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"event\"='ifl: oakland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"location\" text\n);\n\nQuestion: Which opponent has a record of 3-0?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='3-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"driver\" text,\n \"constructor\" text,\n \"part_1\" text,\n \"grid\" text\n);\n\nQuestion: Tell me the constructor for david coulthard"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"qualifying\" WHERE \"driver\"='david coulthard';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"driver\" text,\n \"constructor\" text,\n \"part_1\" text,\n \"grid\" text\n);\n\nQuestion: Tell me the pos for adrian sutil"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"qualifying\" WHERE \"driver\"='adrian sutil';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"driver\" text,\n \"constructor\" text,\n \"part_1\" text,\n \"grid\" text\n);\n\nQuestion: Tell me the part 1 of grid of 1"
},
{
"role": "assistant",
"content": "SELECT \"part_1\" FROM \"qualifying\" WHERE \"grid\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" text,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Name the city of license for call sign of k215es"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license\" FROM \"translators\" WHERE \"call_sign\"='k215es';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" text,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Name the FCC info for call sign of k208eq"
},
{
"role": "assistant",
"content": "SELECT \"fcc_info\" FROM \"translators\" WHERE \"call_sign\"='k208eq';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"open_era_singles_finals_3_2\" (\n \"outcome\" text,\n \"date\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Tell me the total number of date for carpet"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"open_era_singles_finals_3_2\" WHERE \"surface\"='carpet';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"open_era_singles_finals_3_2\" (\n \"outcome\" text,\n \"date\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Tell me the opponent for 6\u20132, 3\u20136, 4\u20136"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_the_final\" FROM \"open_era_singles_finals_3_2\" WHERE \"score_in_the_final\"='6\u20132, 3\u20136, 4\u20136';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of Martin Lewis?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"l\" WHERE \"player\"='martin lewis';"
}
] |
[
{
"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 \"attendance\" real\n);\n\nQuestion: Tell me the opponent of week 14"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=14;"
}
] |
[
{
"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 \"attendance\" real\n);\n\nQuestion: Tell me the average attendance for week of 11"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"week\"=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 \"attendance\" real\n);\n\nQuestion: Tell me opponent for result of w 33-31"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='w 33-31';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"iodine_123\" (\n \"name\" text,\n \"investigation\" text,\n \"route_of_administration\" text,\n \"in_vitro_in_vivo\" text,\n \"imaging_non_imaging\" text\n);\n\nQuestion: What Name is administered by oral or iv, and is being investigated for thyroid imaging thyroid metastases imaging?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"iodine_123\" WHERE \"route_of_administration\"='oral or iv' AND \"investigation\"='thyroid imaging thyroid metastases imaging';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"media\" (\n \"frequency\" text,\n \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text\n);\n\nQuestion: Who is the owner with a call sign of cjgx?"
},
{
"role": "assistant",
"content": "SELECT \"owner\" FROM \"media\" WHERE \"call_sign\"='cjgx';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"media\" (\n \"frequency\" text,\n \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text\n);\n\nQuestion: Who is the owner of the branding gx94?"
},
{
"role": "assistant",
"content": "SELECT \"owner\" FROM \"media\" WHERE \"branding\"='gx94';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"media\" (\n \"frequency\" text,\n \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text\n);\n\nQuestion: What is the call frequency sign of cjjc-fm?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"media\" WHERE \"call_sign\"='cjjc-fm';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"media\" (\n \"frequency\" text,\n \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text\n);\n\nQuestion: Who is the owner with the branding fox fm?"
},
{
"role": "assistant",
"content": "SELECT \"owner\" FROM \"media\" WHERE \"branding\"='fox fm';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"media\" (\n \"frequency\" text,\n \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text\n);\n\nQuestion: What is the branding frequency of cbc radio 2?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"media\" WHERE \"branding\"='cbc radio 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"himalayan_peaks_of_uttarakhand\" (\n \"name\" text,\n \"location\" text,\n \"district\" text,\n \"altitude_metres\" real,\n \"region\" text\n);\n\nQuestion: Tell me the location for altitude being less thaan 6102"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"himalayan_peaks_of_uttarakhand\" WHERE \"altitude_metres\"<6102;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"himalayan_peaks_of_uttarakhand\" (\n \"name\" text,\n \"location\" text,\n \"district\" text,\n \"altitude_metres\" real,\n \"region\" text\n);\n\nQuestion: Say the region for 6854 altitudes"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"himalayan_peaks_of_uttarakhand\" WHERE \"altitude_metres\"=6854;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"number\" real,\n \"origin\" text,\n \"final_destination\" text,\n \"frequency\" text,\n \"distance\" text\n);\n\nQuestion: What is the frequency of number 161?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"buses\" WHERE \"number\"=161;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"number\" real,\n \"origin\" text,\n \"final_destination\" text,\n \"frequency\" text,\n \"distance\" text\n);\n\nQuestion: What is the frequency of number 3 with a bus station origin?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"buses\" WHERE \"origin\"='bus station' AND \"number\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"number\" real,\n \"origin\" text,\n \"final_destination\" text,\n \"frequency\" text,\n \"distance\" text\n);\n\nQuestion: What is the origin of the one with a number larger than 161?"
},
{
"role": "assistant",
"content": "SELECT \"origin\" FROM \"buses\" WHERE \"number\">161;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"number\" real,\n \"origin\" text,\n \"final_destination\" text,\n \"frequency\" text,\n \"distance\" text\n);\n\nQuestion: What is the origin of the one whose final destination is Brandholmen?"
},
{
"role": "assistant",
"content": "SELECT \"origin\" FROM \"buses\" WHERE \"final_destination\"='brandholmen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_isle_of_man_lightweight_tt_125cc_fi\" (\n \"place\" real,\n \"rider\" text,\n \"country\" text,\n \"machine\" text,\n \"speed\" text,\n \"time\" text,\n \"points\" real\n);\n\nQuestion: What is the highest rank of a rider whose time was 1:19.02.8?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"place\") FROM \"1970_isle_of_man_lightweight_tt_125cc_fi\" WHERE \"time\"='1:19.02.8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"hangul\" text,\n \"hanja\" text,\n \"revised\" text,\n \"mc_cune_reischauer\" text,\n \"estimated_distribution_2000\" real\n);\n\nQuestion: Tell me the revised of mccune reischauer of y\u014fn (s) ry\u014fn (n)"
},
{
"role": "assistant",
"content": "SELECT \"revised\" FROM \"notes\" WHERE \"mc_cune_reischauer\"='y\u014fn (s) ry\u014fn (n)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"hangul\" text,\n \"hanja\" text,\n \"revised\" text,\n \"mc_cune_reischauer\" text,\n \"estimated_distribution_2000\" real\n);\n\nQuestion: Name the hanja for hangul of \uc8fc"
},
{
"role": "assistant",
"content": "SELECT \"hanja\" FROM \"notes\" WHERE \"hangul\"='\uc8fc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"hangul\" text,\n \"hanja\" text,\n \"revised\" text,\n \"mc_cune_reischauer\" text,\n \"estimated_distribution_2000\" real\n);\n\nQuestion: Tell me the hanja of eum"
},
{
"role": "assistant",
"content": "SELECT \"hanja\" FROM \"notes\" WHERE \"revised\"='eum';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"track_ir_model_comparison\" (\n \"model\" text,\n \"sensor_resolution\" text,\n \"angle\" real,\n \"released\" real,\n \"latest_software\" text\n);\n\nQuestion: What model was released in 2005?"
},
{
"role": "assistant",
"content": "SELECT \"model\" FROM \"track_ir_model_comparison\" WHERE \"released\"=2005;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the score for 9 may 2001"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international_goals\" WHERE \"date\"='9 may 2001';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the competition for 25 march 2001"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='25 march 2001';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"date\" text,\n \"track\" text,\n \"event_name\" text,\n \"pole_winner\" text,\n \"race_winner\" text\n);\n\nQuestion: Who was the Race Winner of the Southern Illinois 100?"
},
{
"role": "assistant",
"content": "SELECT \"race_winner\" FROM \"schedule_and_results\" WHERE \"event_name\"='southern illinois 100';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.