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 \"po_prostu_taniec_just_dance\" (\n \"team\" text,\n \"dance\" text,\n \"music\" text,\n \"points_jury\" text,\n \"place\" text\n);\n\nQuestion: What is the Music for Team anna guzik & rafa\u0142 kami\u0144ski that has a Points Jury of 24 (7,5,6,6)?"
},
{
"role": "assistant",
"content": "SELECT \"music\" FROM \"po_prostu_taniec_just_dance\" WHERE \"team\"='anna guzik & rafa\u0142 kami\u0144ski' AND \"points_jury\"='24 (7,5,6,6)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"po_prostu_taniec_just_dance\" (\n \"team\" text,\n \"dance\" text,\n \"music\" text,\n \"points_jury\" text,\n \"place\" text\n);\n\nQuestion: Which Music has a Dance of Modern?"
},
{
"role": "assistant",
"content": "SELECT \"music\" FROM \"po_prostu_taniec_just_dance\" WHERE \"dance\"='modern';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"po_prostu_taniec_just_dance\" (\n \"team\" text,\n \"dance\" text,\n \"music\" text,\n \"points_jury\" text,\n \"place\" text\n);\n\nQuestion: What is the Points Jury for Dance pop?"
},
{
"role": "assistant",
"content": "SELECT \"points_jury\" FROM \"po_prostu_taniec_just_dance\" WHERE \"dance\"='pop';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"po_prostu_taniec_just_dance\" (\n \"team\" text,\n \"dance\" text,\n \"music\" text,\n \"points_jury\" text,\n \"place\" text\n);\n\nQuestion: Which Place has a Points Jury of 34 (7,8,9,10)?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"po_prostu_taniec_just_dance\" WHERE \"points_jury\"='34 (7,8,9,10)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_by_country\" (\n \"country\" text,\n \"freedom_in_the_world_2013\" text,\n \"2013_index_of_economic_freedom\" text,\n \"2013_press_freedom_index\" text,\n \"2012_democracy_index\" text\n);\n\nQuestion: What is the 2013 press freedom index of the country Egypt?"
},
{
"role": "assistant",
"content": "SELECT \"2013_press_freedom_index\" FROM \"list_by_country\" WHERE \"country\"='egypt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_by_country\" (\n \"country\" text,\n \"freedom_in_the_world_2013\" text,\n \"2013_index_of_economic_freedom\" text,\n \"2013_press_freedom_index\" text,\n \"2012_democracy_index\" text\n);\n\nQuestion: What is the 2013 index of economic freedom of Slovenia?"
},
{
"role": "assistant",
"content": "SELECT \"2013_index_of_economic_freedom\" FROM \"list_by_country\" WHERE \"country\"='slovenia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topscorers_in_order_of_league_goals\" (\n \"player\" text,\n \"club\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"fa_trophy\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: How many FA Trophy has a Total larger than 17 and a Player of david gamble and a League Cup larger than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fa_trophy\") FROM \"topscorers_in_order_of_league_goals\" WHERE \"total\">17 AND \"player\"='david gamble' AND \"league_cup\">0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topscorers_in_order_of_league_goals\" (\n \"player\" text,\n \"club\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"fa_trophy\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: Which League Cup that has a Total of 19 and a League smaller than 15?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"league_cup\") FROM \"topscorers_in_order_of_league_goals\" WHERE \"total\"=19 AND \"league\"<15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topscorers_in_order_of_league_goals\" (\n \"player\" text,\n \"club\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"fa_trophy\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: How many FA Trophy that have a Player of paul dobson, and a League Cup smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fa_trophy\") FROM \"topscorers_in_order_of_league_goals\" WHERE \"player\"='paul dobson' AND \"league_cup\"<2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"country\" text,\n \"home\" text,\n \"skip\" text,\n \"third\" text,\n \"second\" text,\n \"lead\" text\n);\n\nQuestion: For what country is the skip Andy Kapp?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"teams\" WHERE \"skip\"='andy kapp';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"country\" text,\n \"home\" text,\n \"skip\" text,\n \"third\" text,\n \"second\" text,\n \"lead\" text\n);\n\nQuestion: Who is the second on the North America team for which Cathy Overton-Clapham the third?"
},
{
"role": "assistant",
"content": "SELECT \"second\" FROM \"teams\" WHERE \"team\"='north america' AND \"third\"='cathy overton-clapham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"country\" text,\n \"home\" text,\n \"skip\" text,\n \"third\" text,\n \"second\" text,\n \"lead\" text\n);\n\nQuestion: Who is the lead of the team from Lockerbie?"
},
{
"role": "assistant",
"content": "SELECT \"lead\" FROM \"teams\" WHERE \"home\"='lockerbie';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"country\" text,\n \"home\" text,\n \"skip\" text,\n \"third\" text,\n \"second\" text,\n \"lead\" text\n);\n\nQuestion: What is the name of the team from Stirling?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"teams\" WHERE \"home\"='stirling';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"country\" text,\n \"home\" text,\n \"skip\" text,\n \"third\" text,\n \"second\" text,\n \"lead\" text\n);\n\nQuestion: Who is the lead on the Europe team that has a Liudmila Privivkova as the skip?"
},
{
"role": "assistant",
"content": "SELECT \"lead\" FROM \"teams\" WHERE \"team\"='europe' AND \"skip\"='liudmila privivkova';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"country\" text,\n \"home\" text,\n \"skip\" text,\n \"third\" text,\n \"second\" text,\n \"lead\" text\n);\n\nQuestion: Who is the second of the North America team from Edmonton, Canada?"
},
{
"role": "assistant",
"content": "SELECT \"second\" FROM \"teams\" WHERE \"team\"='north america' AND \"country\"='canada' AND \"home\"='edmonton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"livery\" text,\n \"locomotive_type\" text,\n \"wheel_arrangement\" text,\n \"builder\" text,\n \"year_built\" real\n);\n\nQuestion: What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2?"
},
{
"role": "assistant",
"content": "SELECT \"livery\" FROM \"locomotives\" WHERE \"locomotive_type\"='steam' AND \"year_built\">1950 AND \"wheel_arrangement\"='2-6-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"livery\" text,\n \"locomotive_type\" text,\n \"wheel_arrangement\" text,\n \"builder\" text,\n \"year_built\" real\n);\n\nQuestion: What livery belongs to the steam Locomotive type builder that was building before 1989?"
},
{
"role": "assistant",
"content": "SELECT \"livery\" FROM \"locomotives\" WHERE \"year_built\"<1989 AND \"locomotive_type\"='steam';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of medals when the gold is more than 2 and silver more than 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"medal_count\" WHERE \"gold\">2 AND \"silver\">2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the most silver medals when the total is less than 4 and the rank is 12?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"silver\") FROM \"medal_count\" WHERE \"total\"<4 AND \"rank\"='12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of bronze medals when the silver is greater than 0, and the total medals 5?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"bronze\") FROM \"medal_count\" WHERE \"silver\">0 AND \"total\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of medals when the bronze is more than 1, and Germany is the nation, and gold medals less than 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"medal_count\" WHERE \"bronze\">1 AND \"nation\"='germany' AND \"gold\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_top_association_football_goal_sc\" (\n \"rank\" real,\n \"name\" text,\n \"years\" text,\n \"matches\" real,\n \"goals\" real\n);\n\nQuestion: When Oscar M\u00edguez had over 107 goals, what was the lowest he ranked?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"list_of_top_association_football_goal_sc\" WHERE \"name\"='oscar m\u00edguez' AND \"goals\">107;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_top_association_football_goal_sc\" (\n \"rank\" real,\n \"name\" text,\n \"years\" text,\n \"matches\" real,\n \"goals\" real\n);\n\nQuestion: What was the highest number of goals for 1922\u20131935?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals\") FROM \"list_of_top_association_football_goal_sc\" WHERE \"years\"='1922\u20131935';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which pick number was there for Jason French?"
},
{
"role": "assistant",
"content": "SELECT \"pick_num\" FROM \"round_two\" WHERE \"player\"='jason french';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which cfl team was associated with the college of manitoba?"
},
{
"role": "assistant",
"content": "SELECT \"cfl_team\" FROM \"round_two\" WHERE \"college\"='manitoba';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college's cfl team is the hamilton tiger-cats?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"round_two\" WHERE \"cfl_team\"='hamilton tiger-cats';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which position's cfl team was the Montreal Alouettes when the pick number was less than 15?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_two\" WHERE \"cfl_team\"='montreal alouettes' AND \"pick_num\"<15;"
}
] |
[
{
"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 \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player was drafted by the Saskatchewan Roughriders?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"round_three\" WHERE \"cfl_team\"='saskatchewan roughriders';"
}
] |
[
{
"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 \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did Ben Wearing play for?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"round_three\" WHERE \"player\"='ben wearing';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals\" (\n \"name\" text,\n \"league_goals\" real,\n \"fa_cup_goals\" real,\n \"fl_cup_goals\" real,\n \"other_goals\" real,\n \"total\" real,\n \"career\" text\n);\n\nQuestion: What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL Cup goals, and fewer than 39 League goals?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"fa_cup_goals\") FROM \"goals\" WHERE \"other_goals\"=0 AND \"fl_cup_goals\"=0 AND \"league_goals\"<39;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_thirteen\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: On what date were the Ottawa Swans the away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_thirteen\" WHERE \"away\"='ottawa swans';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_thirteen\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What was the score of the game with the Etobicoke Kangaroos as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_thirteen\" WHERE \"home\"='etobicoke kangaroos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_thirteen\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What was the score of the game with the Broadview Hawks as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_thirteen\" WHERE \"home\"='broadview hawks';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_thirteen\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What was the score of the Broadview Hawks home game?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_thirteen\" WHERE \"home\"='broadview hawks';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_thirteen\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: Who was the away team for the Etobicoke Kangaroos home game?"
},
{
"role": "assistant",
"content": "SELECT \"away\" FROM \"round_thirteen\" WHERE \"home\"='etobicoke kangaroos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_thirteen\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What was the date for the 130-56 game?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_thirteen\" WHERE \"score\"='130-56';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"junior_champions\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Which men's singles has a women's singles of marketa koudelkov\u00e1 as well as a Men's doubles of jan lanik / pavel weigner??"
},
{
"role": "assistant",
"content": "SELECT \"men_s_singles\" FROM \"junior_champions\" WHERE \"women_s_singles\"='marketa koudelkov\u00e1' AND \"men_s_doubles\"='jan lanik / pavel weigner';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"junior_champions\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Which men's singles had a women's doubles team of irena ferencov\u00e1 / yweta trminkov\u00e1?"
},
{
"role": "assistant",
"content": "SELECT \"men_s_singles\" FROM \"junior_champions\" WHERE \"women_s_doubles\"='irena ferencov\u00e1 / yweta trminkov\u00e1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"junior_champions\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: What is the mean year when the women's doubles team was helena turcinkov\u00e1 / buresov\u00e1?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"junior_champions\" WHERE \"women_s_doubles\"='helena turcinkov\u00e1 / buresov\u00e1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_fixtures_and_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text\n);\n\nQuestion: What is the date with Cuba is Home team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2013_fixtures_and_results\" WHERE \"home_team\"='cuba';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_fixtures_and_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text\n);\n\nQuestion: What is the location with Honduras is Home team?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"2013_fixtures_and_results\" WHERE \"home_team\"='honduras';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_fixtures_and_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text\n);\n\nQuestion: What is the location of 11 April 2013 and Mexico Home team?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"2013_fixtures_and_results\" WHERE \"home_team\"='mexico' AND \"date\"='11 april 2013';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_fixtures_and_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text\n);\n\nQuestion: What is the date that is Away team is Honduras?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2013_fixtures_and_results\" WHERE \"away_team\"='honduras';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_fixtures_and_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text\n);\n\nQuestion: What is the date where Guatemala is the Away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2013_fixtures_and_results\" WHERE \"away_team\"='guatemala';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_fixtures_and_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text\n);\n\nQuestion: What is the score for 17 April 2013?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"2013_fixtures_and_results\" WHERE \"date\"='17 april 2013';"
}
] |
[
{
"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 \"time_pt\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: How many weeks have September 14, 2008 as the date?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"week\") FROM \"regular_season\" WHERE \"date\"='september 14, 2008';"
}
] |
[
{
"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 \"time_pt\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What opponent has a week less than 16, with September 7, 2008 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"week\"<16 AND \"date\"='september 7, 2008';"
}
] |
[
{
"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 \"time_pt\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What record has candlestick park as the game site, and october 12, 2008 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"game_site\"='candlestick park' AND \"date\"='october 12, 2008';"
}
] |
[
{
"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 \"time_pt\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What date has new england patriots as the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"opponent\"='new england patriots';"
}
] |
[
{
"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 \"time_pt\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What date has 10 for the week?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"week\"=10;"
}
] |
[
{
"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 \"time_pt\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What game site has w 10-3 as the result?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"regular_season\" WHERE \"result\"='w 10-3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"champion\" text,\n \"country\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"winner_s_share\" text\n);\n\nQuestion: what is the victory margin in 2013 with a Winner's share of 1,440,000"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"winners\" WHERE \"winner_s_share\"='1,440,000' AND \"year\"='2013';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"champion\" text,\n \"country\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"winner_s_share\" text\n);\n\nQuestion: what is the victory margin with a 45,000 Winner's share"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"winners\" WHERE \"winner_s_share\"='45,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"champion\" text,\n \"country\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"winner_s_share\" text\n);\n\nQuestion: what is the margin of victory with a 183,800 Winner's share"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"winners\" WHERE \"winner_s_share\"='183,800';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"champion\" text,\n \"country\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"winner_s_share\" text\n);\n\nQuestion: what is to par for the Winner's share 450,000"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"winners\" WHERE \"winner_s_share\"='450,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"total\" text\n);\n\nQuestion: What is the sum of Rank that when the Singapore Cup is 0 (1), and the Name is masrezwan masturi?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"goalscorers\" WHERE \"singapore_cup\"='0 (1)' AND \"name\"='masrezwan masturi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"total\" text\n);\n\nQuestion: What is the Name of the person with a Total of 3 (15), and Rank of more than 3?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"goalscorers\" WHERE \"total\"='3 (15)' AND \"rank\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"total\" text\n);\n\nQuestion: What is the Singapore Cup when the S-League is 5 (14)?"
},
{
"role": "assistant",
"content": "SELECT \"singapore_cup\" FROM \"goalscorers\" WHERE \"s_league\"='5 (14)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"total\" text\n);\n\nQuestion: What is the Singapore League Cup when rank is more than 4, and the S-League is 2 (12)?"
},
{
"role": "assistant",
"content": "SELECT \"singapore_league_cup\" FROM \"goalscorers\" WHERE \"rank\">4 AND \"s_league\"='2 (12)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"champions_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: In which tournament did Al Geiberger finish runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"champions_tour_wins_14\" WHERE \"runner_s_up\"='al geiberger';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"number\" text,\n \"school_club_team\" text,\n \"season\" text,\n \"acquisition_via\" text\n);\n\nQuestion: What is the Season with an Acquisition via of rookie draft, and the number is 15?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"m\" WHERE \"acquisition_via\"='rookie draft' AND \"number\"='15';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"number\" text,\n \"school_club_team\" text,\n \"season\" text,\n \"acquisition_via\" text\n);\n\nQuestion: What is the Acquisition via for Dennis Miranda?"
},
{
"role": "assistant",
"content": "SELECT \"acquisition_via\" FROM \"m\" WHERE \"name\"='dennis miranda';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"number\" text,\n \"school_club_team\" text,\n \"season\" text,\n \"acquisition_via\" text\n);\n\nQuestion: What team acquired as a rookie draft in the position of guard Dennis Miranda?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"m\" WHERE \"acquisition_via\"='rookie draft' AND \"position\"='guard' AND \"name\"='dennis miranda';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"number\" text,\n \"school_club_team\" text,\n \"season\" text,\n \"acquisition_via\" text\n);\n\nQuestion: What season was School/Club Team perpetual help in the guard position?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"m\" WHERE \"position\"='guard' AND \"school_club_team\"='perpetual help';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"number\" text,\n \"school_club_team\" text,\n \"season\" text,\n \"acquisition_via\" text\n);\n\nQuestion: What number was Rashad McCants?"
},
{
"role": "assistant",
"content": "SELECT \"number\" FROM \"m\" WHERE \"name\"='rashad mccants';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"number\" text,\n \"school_club_team\" text,\n \"season\" text,\n \"acquisition_via\" text\n);\n\nQuestion: What season did School/Club Team, East have an Acquisition via of trade?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"m\" WHERE \"acquisition_via\"='trade' AND \"school_club_team\"='east';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd_race\" text,\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is the Date for the City/State of Sydney, New South Wales?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"city_state\"='sydney, new south wales';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_daimy\" (\n \"name\" text,\n \"tenure\" text,\n \"courtesy_title\" text,\n \"court_rank\" text,\n \"revenues\" text\n);\n\nQuestion: What is the Revenues during Tenure 1854-1855?"
},
{
"role": "assistant",
"content": "SELECT \"revenues\" FROM \"list_of_daimy\" WHERE \"tenure\"='1854-1855';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_daimy\" (\n \"name\" text,\n \"tenure\" text,\n \"courtesy_title\" text,\n \"court_rank\" text,\n \"revenues\" text\n);\n\nQuestion: What is the Revenues of Ukyo-Daiyu?"
},
{
"role": "assistant",
"content": "SELECT \"revenues\" FROM \"list_of_daimy\" WHERE \"courtesy_title\"='ukyo-daiyu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_conclusion_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country was the player, rod pampling, from who placed t10?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round_conclusion_sunday\" WHERE \"place\"='t10' AND \"player\"='rod pampling';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_conclusion_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the score that thomas levet got when he placed t10?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round_conclusion_sunday\" WHERE \"place\"='t10' AND \"player\"='thomas levet';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_conclusion_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country did the player who scored 73-73-65=211 come from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round_conclusion_sunday\" WHERE \"score\"='73-73-65=211';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_conclusion_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the score that the player who placed t4 from the united states get?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round_conclusion_sunday\" WHERE \"country\"='united states' AND \"place\"='t4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_conclusion_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country is phil mickelson from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round_conclusion_sunday\" WHERE \"player\"='phil mickelson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_prix_career_statistics\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"machine\" text,\n \"points\" real,\n \"wins\" real\n);\n\nQuestion: What is the Team with a Machine that is nsr250 and has Points of 8?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"grand_prix_career_statistics\" WHERE \"machine\"='nsr250' AND \"points\"=8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"apea_s_campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"lost\") FROM \"apea_s_campeonato_paulista\" WHERE \"points\">8 AND \"difference\"='- 8' AND \"position\">5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"apea_s_campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the greatest number of points that has a lost bigger than 5, a difference of - 10 and a played bigger than 12?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"apea_s_campeonato_paulista\" WHERE \"lost\">5 AND \"difference\"='- 10' AND \"played\">12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"india\" (\n \"name\" text,\n \"innings\" real,\n \"runs_scored\" real,\n \"balls_faced\" real,\n \"average\" real,\n \"s_r\" real\n);\n\nQuestion: What is the Name with an Average that is 16.4?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"india\" WHERE \"average\"=16.4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_group\" (\n \"team\" text,\n \"match\" text,\n \"points\" text,\n \"draw\" text,\n \"lost\" text\n);\n\nQuestion: What was the match number for Start Gniezno?"
},
{
"role": "assistant",
"content": "SELECT \"match\" FROM \"north_group\" WHERE \"team\"='start gniezno';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_group\" (\n \"team\" text,\n \"match\" text,\n \"points\" text,\n \"draw\" text,\n \"lost\" text\n);\n\nQuestion: Who was the team that lost but had 10 points?"
},
{
"role": "assistant",
"content": "SELECT \"lost\" FROM \"north_group\" WHERE \"points\"='10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_group\" (\n \"team\" text,\n \"match\" text,\n \"points\" text,\n \"draw\" text,\n \"lost\" text\n);\n\nQuestion: What was the draw for Lp\u017c Gda\u0144sk with a match of 8?"
},
{
"role": "assistant",
"content": "SELECT \"draw\" FROM \"north_group\" WHERE \"match\"='8' AND \"team\"='lp\u017c gda\u0144sk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_group\" (\n \"team\" text,\n \"match\" text,\n \"points\" text,\n \"draw\" text,\n \"lost\" text\n);\n\nQuestion: What team had a draw of 0?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"north_group\" WHERE \"draw\"='0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_group\" (\n \"team\" text,\n \"match\" text,\n \"points\" text,\n \"draw\" text,\n \"lost\" text\n);\n\nQuestion: What match had 8 points?"
},
{
"role": "assistant",
"content": "SELECT \"match\" FROM \"north_group\" WHERE \"points\"='8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_group\" (\n \"team\" text,\n \"match\" text,\n \"points\" text,\n \"draw\" text,\n \"lost\" text\n);\n\nQuestion: What is the draw for a match that had 10 points?"
},
{
"role": "assistant",
"content": "SELECT \"draw\" FROM \"north_group\" WHERE \"points\"='10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"1980_1981_team\" text\n);\n\nQuestion: What was the 1980-1981 team of the player born in Warroad, Minnesota?"
},
{
"role": "assistant",
"content": "SELECT \"1980_1981_team\" FROM \"list_of_united_states_national_ice_hocke\" WHERE \"birthplace\"='warroad, minnesota';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_group\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: How many losses have a draw greater than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"lost\") FROM \"south_group\" WHERE \"draw\">0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_group\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: Which average match has points less than 6?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"match\") FROM \"south_group\" WHERE \"points\"<6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_group\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: Which average draw has points greater than 12?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"draw\") FROM \"south_group\" WHERE \"points\">12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_federico_tesio_stakes\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"distance_miles\" text,\n \"time\" text,\n \"purse\" text\n);\n\nQuestion: What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?"
},
{
"role": "assistant",
"content": "SELECT \"trainer\" FROM \"winners_of_the_federico_tesio_stakes\" WHERE \"time\"='1:44.80' AND \"jockey\"='william jenkins';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_federico_tesio_stakes\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"distance_miles\" text,\n \"time\" text,\n \"purse\" text\n);\n\nQuestion: In what Year was the Purse $150,000 with a Time of 1:49.00?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"winners_of_the_federico_tesio_stakes\" WHERE \"purse\"='$150,000' AND \"time\"='1:49.00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_federico_tesio_stakes\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"distance_miles\" text,\n \"time\" text,\n \"purse\" text\n);\n\nQuestion: What Owner's Trainer is Todd A. Pletcher?"
},
{
"role": "assistant",
"content": "SELECT \"owner\" FROM \"winners_of_the_federico_tesio_stakes\" WHERE \"trainer\"='todd a. pletcher';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_federico_tesio_stakes\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"distance_miles\" text,\n \"time\" text,\n \"purse\" text\n);\n\nQuestion: What was the Purse for Owner Harold A. Allen prior to 2009?"
},
{
"role": "assistant",
"content": "SELECT \"purse\" FROM \"winners_of_the_federico_tesio_stakes\" WHERE \"year\"<2009 AND \"owner\"='harold a. allen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economic_variation\" (\n \"s_member_state\" text,\n \"gdp_2012_millions_of_euro\" text,\n \"population_in_millions\" real,\n \"gdp_ppp_per_capita_2012_euro\" text,\n \"gdp_nominal_per_capita_2012_euro\" text,\n \"gdp_ppp_per_capita_2012_eu27_100\" text\n);\n\nQuestion: What is GDP (PPP) Per Capita 2012 Euro, when Population In Millions is greater than 10.8, and when GDP (Nominal) Per Capita 2012 Euro is 25,600?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_ppp_per_capita_2012_euro\" FROM \"economic_variation\" WHERE \"population_in_millions\">10.8 AND \"gdp_nominal_per_capita_2012_euro\"='25,600';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economic_variation\" (\n \"s_member_state\" text,\n \"gdp_2012_millions_of_euro\" text,\n \"population_in_millions\" real,\n \"gdp_ppp_per_capita_2012_euro\" text,\n \"gdp_nominal_per_capita_2012_euro\" text,\n \"gdp_ppp_per_capita_2012_eu27_100\" text\n);\n\nQuestion: What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_2012_millions_of_euro\" FROM \"economic_variation\" WHERE \"population_in_millions\"<1.3 AND \"gdp_nominal_per_capita_2012_euro\"='20,700(p)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economic_variation\" (\n \"s_member_state\" text,\n \"gdp_2012_millions_of_euro\" text,\n \"population_in_millions\" real,\n \"gdp_ppp_per_capita_2012_euro\" text,\n \"gdp_nominal_per_capita_2012_euro\" text,\n \"gdp_ppp_per_capita_2012_eu27_100\" text\n);\n\nQuestion: What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_ppp_per_capita_2012_eu27_100\" FROM \"economic_variation\" WHERE \"gdp_2012_millions_of_euro\"='309,900';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economic_variation\" (\n \"s_member_state\" text,\n \"gdp_2012_millions_of_euro\" text,\n \"population_in_millions\" real,\n \"gdp_ppp_per_capita_2012_euro\" text,\n \"gdp_nominal_per_capita_2012_euro\" text,\n \"gdp_ppp_per_capita_2012_eu27_100\" text\n);\n\nQuestion: What is Population in Millions, when GDP 2012 Millions of Euro is 600,638?"
},
{
"role": "assistant",
"content": "SELECT \"population_in_millions\" FROM \"economic_variation\" WHERE \"gdp_2012_millions_of_euro\"='600,638';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What was the Money for Player Ernie Els?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round_sunday\" WHERE \"player\"='ernie els';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What T9 Player had a Score of 70-74-69-70=283?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round_sunday\" WHERE \"place\"='t9' AND \"score\"='70-74-69-70=283';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is the Money for the T1 Player with a Score of 66-69-70-75=280?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round_sunday\" WHERE \"place\"='t1' AND \"score\"='66-69-70-75=280';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is Chris Riley's Money?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round_sunday\" WHERE \"player\"='chris riley';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.