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 \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Who won in 1997 with a finish of t48?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"finish\"='t48' AND \"year_s_won\"='1997';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What player from the United States had a total of 297?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"country\"='united states' AND \"total\"=297;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Which country won in 1988?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"deputy_ministers\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: Which party had a term start of 5 august 1999?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"deputy_ministers\" WHERE \"term_start\"='5 august 1999';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"deputy_ministers\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: What term end had minister Danny Ayalon?"
},
{
"role": "assistant",
"content": "SELECT \"term_end\" FROM \"deputy_ministers\" WHERE \"minister\"='danny ayalon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"deputy_ministers\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: Which goverment had a party of yisrael beiteinu?"
},
{
"role": "assistant",
"content": "SELECT \"governments\" FROM \"deputy_ministers\" WHERE \"party\"='yisrael beiteinu';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"deputy_ministers\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: Who was the minister of the labor party and had 26 goverments?"
},
{
"role": "assistant",
"content": "SELECT \"minister\" FROM \"deputy_ministers\" WHERE \"party\"='labor party' AND \"governments\"='26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated\" text,\n \"result\" text\n);\n\nQuestion: What is the category that came before 2011?"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"awards_and_nominations\" WHERE \"year\"<2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated\" text,\n \"result\" text\n);\n\nQuestion: What is the year of the Premios Carlos Gardel 2009 award?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"awards_and_nominations\" WHERE \"award\"='premios carlos gardel 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What is Andrea Suarez Lazaro's height?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"delegates\" WHERE \"contestant\"='andrea suarez lazaro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What is niurbi encarnaci\u00f3n ynoa's height?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"delegates\" WHERE \"contestant\"='niurbi encarnaci\u00f3n ynoa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What is the province for Jamao Afuera?"
},
{
"role": "assistant",
"content": "SELECT \"province_community\" FROM \"delegates\" WHERE \"hometown\"='jamao afuera';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What is the hometown for Santiago?"
},
{
"role": "assistant",
"content": "SELECT \"hometown\" FROM \"delegates\" WHERE \"province_community\"='santiago';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What is the geographical region for hometown Imbert?"
},
{
"role": "assistant",
"content": "SELECT \"geographical_regions\" FROM \"delegates\" WHERE \"hometown\"='imbert';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships_attacked\" (\n \"date\" text,\n \"time\" text,\n \"name_of_ship\" text,\n \"flag\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: What is the Name of the Ship attacked on 20February1942?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_ship\" FROM \"ships_attacked\" WHERE \"date\"='20february1942';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships_attacked\" (\n \"date\" text,\n \"time\" text,\n \"name_of_ship\" text,\n \"flag\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: Which ship was sunk at 01:00?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_ship\" FROM \"ships_attacked\" WHERE \"fate\"='sunk at' AND \"time\"='01:00';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the to par for the 68-72-73=213 score?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='68-72-73=213';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the to par for the 69-70-72=211 score?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='69-70-72=211';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the to par for the United States with a 67-71-73=211 score?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"country\"='united states' AND \"score\"='67-71-73=211';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country has t4 place and a 67-71-73=211 score?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"place\"='t4' AND \"score\"='67-71-73=211';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the to par for Australia and a 73-69-71=213 score?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"country\"='australia' AND \"score\"='73-69-71=213';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"plants\" (\n \"location\" text,\n \"partner\" text,\n \"construction_start\" text,\n \"inauguration_date\" text,\n \"population_served\" real,\n \"design_flow_lpm\" real\n);\n\nQuestion: What Location has a Partner of app, a Population Served larger than 2000, and a Design flow (LPM) of 375?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"plants\" WHERE \"partner\"='app' AND \"population_served\">2000 AND \"design_flow_lpm\"=375;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"plants\" (\n \"location\" text,\n \"partner\" text,\n \"construction_start\" text,\n \"inauguration_date\" text,\n \"population_served\" real,\n \"design_flow_lpm\" real\n);\n\nQuestion: What Construction Start has an Inauguration Date of 2010 june?"
},
{
"role": "assistant",
"content": "SELECT \"construction_start\" FROM \"plants\" WHERE \"inauguration_date\"='2010 june';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"plants\" (\n \"location\" text,\n \"partner\" text,\n \"construction_start\" text,\n \"inauguration_date\" text,\n \"population_served\" real,\n \"design_flow_lpm\" real\n);\n\nQuestion: What Construction Start has a Design flow (LPM) of 1300?"
},
{
"role": "assistant",
"content": "SELECT \"construction_start\" FROM \"plants\" WHERE \"design_flow_lpm\"=1300;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"plants\" (\n \"location\" text,\n \"partner\" text,\n \"construction_start\" text,\n \"inauguration_date\" text,\n \"population_served\" real,\n \"design_flow_lpm\" real\n);\n\nQuestion: What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"plants\" WHERE \"design_flow_lpm\"<1900 AND \"construction_start\"='2006 june';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"plants\" (\n \"location\" text,\n \"partner\" text,\n \"construction_start\" text,\n \"inauguration_date\" text,\n \"population_served\" real,\n \"design_flow_lpm\" real\n);\n\nQuestion: What Partner has a Construction Start of 2008 january?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"plants\" WHERE \"construction_start\"='2008 january';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"plants\" (\n \"location\" text,\n \"partner\" text,\n \"construction_start\" text,\n \"inauguration_date\" text,\n \"population_served\" real,\n \"design_flow_lpm\" real\n);\n\nQuestion: What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"design_flow_lpm\") FROM \"plants\" WHERE \"partner\"='app' AND \"construction_start\"='2008 january' AND \"population_served\">3500;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Sandy Lyle's To Par?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"player\"='sandy lyle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Australia's score where they were in place t1?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"country\"='australia' AND \"place\"='t1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place has Wales as a country?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"country\"='wales';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the To Par of Peter Senior from Australia?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"country\"='australia' AND \"player\"='peter senior';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the score of Howard Clark from England with a To Par of +1?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"to_par\"='+1' AND \"country\"='england' AND \"player\"='howard clark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the score of the player with a To Par of +1 from Spain?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"to_par\"='+1' AND \"country\"='spain';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Who won the event against U.S.A.?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"2001\" WHERE \"opposing_teams\"='u.s.a.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Where was the match on 10/11/2001 against 15?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"2001\" WHERE \"against\"=15 AND \"date\"='10/11/2001';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"against\") FROM \"2001\" WHERE \"status\"='six nations' AND \"venue\"='lansdowne road, dublin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?"
},
{
"role": "assistant",
"content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"2010\"='1r' AND \"2007\"='a' AND \"2009\"='1r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What 2008 has A as the 2007, and 2r as the 2010?"
},
{
"role": "assistant",
"content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"2007\"='a' AND \"2010\"='2r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What 2009 has lq as the 2011?"
},
{
"role": "assistant",
"content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2011\"='lq';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What 2009 has 345 as the 2007?"
},
{
"role": "assistant",
"content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2007\"='345';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"order\" real,\n \"nation\" text,\n \"chinese_name\" text,\n \"pinyin\" text,\n \"sport\" text\n);\n\nQuestion: What nation has a sport of weightlifting and a pinyin of k\u00f9k\u00e8 q\u00fand\u01ceo?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"list\" WHERE \"sport\"='weightlifting' AND \"pinyin\"='k\u00f9k\u00e8 q\u00fand\u01ceo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"date\" text,\n \"teams\" text,\n \"score\" text,\n \"team\" text,\n \"venue\" text\n);\n\nQuestion: What day did Glentoran play at Windsor Park, Belfast?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"matches\" WHERE \"team\"='glentoran' AND \"venue\"='windsor park, belfast';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"date\" text,\n \"teams\" text,\n \"score\" text,\n \"team\" text,\n \"venue\" text\n);\n\nQuestion: What day was the score 1-0?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"matches\" WHERE \"score\"='1-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"date\" text,\n \"teams\" text,\n \"score\" text,\n \"team\" text,\n \"venue\" text\n);\n\nQuestion: Which team scored 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"matches\" WHERE \"score\"='2-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1998\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career\" text\n);\n\nQuestion: What is the 1998 value with 2r in 2003?"
},
{
"role": "assistant",
"content": "SELECT \"1998\" FROM \"grand_slam_performance_timeline\" WHERE \"2003\"='2r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1998\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career\" text\n);\n\nQuestion: What is the 2004 value with 2r in 1994?"
},
{
"role": "assistant",
"content": "SELECT \"2004\" FROM \"grand_slam_performance_timeline\" WHERE \"1994\"='2r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1998\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career\" text\n);\n\nQuestion: What is the 2003 value for the french open, which has a 1r in 1994?"
},
{
"role": "assistant",
"content": "SELECT \"2003\" FROM \"grand_slam_performance_timeline\" WHERE \"1994\"='1r' 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 \"grand_slam_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1998\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career\" text\n);\n\nQuestion: What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?"
},
{
"role": "assistant",
"content": "SELECT \"2003\" FROM \"grand_slam_performance_timeline\" WHERE \"1998\"='1r' AND \"1994\"='1r' AND \"career\"='7-12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"fin_pos\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: Which driver finished in position 8?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"results\" WHERE \"fin_pos\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"fin_pos\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: How many laps have 16 points and With a Laps Led of greater than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"laps\") FROM \"results\" WHERE \"points\"='16' AND \"laps_led\">0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"fin_pos\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is the average grid for Marco Andretti with a finishing position higher than 19?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"grid\") FROM \"results\" WHERE \"driver\"='marco andretti' AND \"fin_pos\">19;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"fin_pos\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is Car number 98's lowest grid?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"grid\") FROM \"results\" WHERE \"car_no\"=98;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"fin_pos\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is the highest Laps Led with a grid of less than 4 and a finishing position of 15?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"laps_led\") FROM \"results\" WHERE \"grid\"<4 AND \"fin_pos\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_jianshu_qiangshu_combined\" (\n \"rank\" real,\n \"athlete\" text,\n \"qiangshu\" real,\n \"jianshu\" real,\n \"total\" real\n);\n\nQuestion: What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"qiangshu\") FROM \"women_s_jianshu_qiangshu_combined\" WHERE \"rank\">4 AND \"jianshu\"<9.22;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_jianshu_qiangshu_combined\" (\n \"rank\" real,\n \"athlete\" text,\n \"qiangshu\" real,\n \"jianshu\" real,\n \"total\" real\n);\n\nQuestion: What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"jianshu\") FROM \"women_s_jianshu_qiangshu_combined\" WHERE \"rank\"<2 AND \"qiangshu\"<9.85;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"princely_consort_of_monaco\" (\n \"name\" text,\n \"birth\" text,\n \"marriage\" text,\n \"became_consort\" text,\n \"ceased_to_be_consort\" text,\n \"spouse\" text\n);\n\nQuestion: On what date did the woman married to Louis II become consort?"
},
{
"role": "assistant",
"content": "SELECT \"became_consort\" FROM \"princely_consort_of_monaco\" WHERE \"spouse\"='louis ii';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What is the Date of the game when the Record is 32\u201331\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"record\"='32\u201331\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What is the Opponent at the Honda Center on March 29?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"arena\"='honda center' AND \"date\"='march 29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What is the Opponent when the Record is 34\u201331\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"record\"='34\u201331\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Away Team is \"Minehead\"?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"first_round_proper\" WHERE \"away_team\"='minehead';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Away Team is \"Barnet\"?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"first_round_proper\" WHERE \"away_team\"='barnet';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Tie no, when Home Team is \"Hull City\"?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"first_round_proper\" WHERE \"home_team\"='hull city';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Away Team, when Home Team is \"Swindon Town\"?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"first_round_proper\" WHERE \"home_team\"='swindon town';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Away Team, when Home Team is \"Boston United\"?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"first_round_proper\" WHERE \"home_team\"='boston united';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was Nick Faldo's score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='nick faldo';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country placed t8 and scored 71-71-71=213?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"place\"='t8' AND \"score\"='71-71-71=213';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the place when the score was 67-73-73=213?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='67-73-73=213';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the place when the score was 70-69-74=213?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='70-69-74=213';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was United States place when the player was Fred Couples?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='united states' AND \"player\"='fred couples';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_coubles\" (\n \"tournament\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE TOURNAMENT WITH 2008 AND 2011 WITH A?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"men_s_coubles\" WHERE \"2008\"='a' AND \"2011\"='a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_coubles\" (\n \"tournament\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2012 WITH 2005 OF 1R?"
},
{
"role": "assistant",
"content": "SELECT \"2012\" FROM \"men_s_coubles\" WHERE \"2005\"='1r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_coubles\" (\n \"tournament\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS?"
},
{
"role": "assistant",
"content": "SELECT \"2010\" FROM \"men_s_coubles\" WHERE \"2012\"='2r' AND \"tournament\"='miami masters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_coubles\" (\n \"tournament\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A?"
},
{
"role": "assistant",
"content": "SELECT \"2008\" FROM \"men_s_coubles\" WHERE \"tournament\"='win-loss' AND \"2005\"='a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_coubles\" (\n \"tournament\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2007 AT MADRID MASTERS?"
},
{
"role": "assistant",
"content": "SELECT \"2007\" FROM \"men_s_coubles\" WHERE \"tournament\"='madrid masters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_coubles\" (\n \"tournament\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R?"
},
{
"role": "assistant",
"content": "SELECT \"2011\" FROM \"men_s_coubles\" WHERE \"2007\"='a' AND \"2008\"='3r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"games\" (\n \"game_title\" text,\n \"year_released\" real,\n \"platform\" text,\n \"game_rankings\" text,\n \"metacritic\" text\n);\n\nQuestion: What game was released before 2010 with a Metacritic of 85/100?"
},
{
"role": "assistant",
"content": "SELECT \"game_title\" FROM \"games\" WHERE \"metacritic\"='85/100' AND \"year_released\"<2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"games\" (\n \"game_title\" text,\n \"year_released\" real,\n \"platform\" text,\n \"game_rankings\" text,\n \"metacritic\" text\n);\n\nQuestion: What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%?"
},
{
"role": "assistant",
"content": "SELECT \"metacritic\" FROM \"games\" WHERE \"year_released\">2005 AND \"platform\"='playstation 3' AND \"game_rankings\"='84.44%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"games\" (\n \"game_title\" text,\n \"year_released\" real,\n \"platform\" text,\n \"game_rankings\" text,\n \"metacritic\" text\n);\n\nQuestion: What is the GameRankings Released of 2011 with a Metacritic of 83/100?"
},
{
"role": "assistant",
"content": "SELECT \"game_rankings\" FROM \"games\" WHERE \"metacritic\"='83/100' AND \"year_released\"=2011;"
}
]
|
[
{
"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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks have an attendance less than 26,048?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"attendance\"<'26,048';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fall_1999\" (\n \"7_00_am\" text,\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"10_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"4_30_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: WHAT IS THE 11AM WITH LOCAL PROGRAMS AT 4PM AND GENERAL HOSPITAL AT 3PM?"
},
{
"role": "assistant",
"content": "SELECT \"11_00_am\" FROM \"fall_1999\" WHERE \"4_00_pm\"='local programs' AND \"3_00_pm\"='general hospital';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fall_1999\" (\n \"7_00_am\" text,\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"10_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"4_30_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: WHAT IS THE 4:30PM WITH AN 8:00AM CBS THIS MORNING?"
},
{
"role": "assistant",
"content": "SELECT \"4_30_pm\" FROM \"fall_1999\" WHERE \"8_00_am\"='cbs this morning';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fall_1999\" (\n \"7_00_am\" text,\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"10_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"4_30_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: WHAT IS THE 4:30PM WITH 1:30PM LOCAL PROGRAMS?"
},
{
"role": "assistant",
"content": "SELECT \"4_30_pm\" FROM \"fall_1999\" WHERE \"1_30_pm\"='local programs';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fall_1999\" (\n \"7_00_am\" text,\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"10_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"4_30_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: WHAT IS THE 8:00AM WITH PORT CHARLES AT 12:30PM?"
},
{
"role": "assistant",
"content": "SELECT \"8_00_am\" FROM \"fall_1999\" WHERE \"12_30_pm\"='port charles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record when the Denver Broncos played the New York Titans at Bears Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"game_site\"='bears stadium' AND \"opponent\"='new york titans';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the match on December 9, 1962?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"regular_season\" WHERE \"date\"='december 9, 1962';"
}
]
|
[
{
"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 To par, when Score is \"70-68-68-71=277\"?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_leaderboard\" WHERE \"score\"='70-68-68-71=277';"
}
]
|
[
{
"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: What is the score of the match on 12 September 1990?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international_goals\" WHERE \"date\"='12 september 1990';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"team_from\" text,\n \"league_from\" text\n);\n\nQuestion: For what league was the player in G position drafted?"
},
{
"role": "assistant",
"content": "SELECT \"league_from\" FROM \"round_three\" WHERE \"position\"='g';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"team_from\" text,\n \"league_from\" text\n);\n\nQuestion: What pick number was player Greg McKegg?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"pick_num\") FROM \"round_three\" WHERE \"player\"='greg mckegg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Place has a Player of tony jacklin?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='tony jacklin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Place has a Player of bernhard langer?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='bernhard langer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Player has a Country of west germany?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"country\"='west germany';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Player has a To par of \u20132?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"to_par\"='\u20132';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What To par has a Place of t2, and a Country of united states?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"place\"='t2' AND \"country\"='united states';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Score has a Place of t2, and a Country of england?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"place\"='t2' AND \"country\"='england';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"league_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);\n\nQuestion: How many tries were there for club cwmtwrch rfc?"
},
{
"role": "assistant",
"content": "SELECT \"tries_against\" FROM \"league_table\" WHERE \"club\"='cwmtwrch rfc';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"league_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);\n\nQuestion: What is the draw when the tries against was 69?"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"league_table\" WHERE \"tries_against\"='69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"league_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);\n\nQuestion: What is the try bonus when the loss is 13 and the draw is 2?"
},
{
"role": "assistant",
"content": "SELECT \"try_bonus\" FROM \"league_table\" WHERE \"lost\"='13' AND \"drawn\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"daytona_500_results\" (\n \"year\" real,\n \"manufacturer\" text,\n \"start\" real,\n \"finish\" real,\n \"team\" text\n);\n\nQuestion: What is the average Finish, when Team is \"Buck Baker\", and when Start is less than 13?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"finish\") FROM \"daytona_500_results\" WHERE \"team\"='buck baker' AND \"start\"<13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"daytona_500_results\" (\n \"year\" real,\n \"manufacturer\" text,\n \"start\" real,\n \"finish\" real,\n \"team\" text\n);\n\nQuestion: What is the average Year, when Start is \"11\"?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"daytona_500_results\" WHERE \"start\"=11;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.