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 \"west_donegal_railway\" (\n \"class\" text,\n \"type\" text,\n \"fleet_numbers\" text,\n \"quantity_made\" real,\n \"manufacturer\" text,\n \"date_made\" real,\n \"date_withdrawn\" text\n);\n\nQuestion: Which locomotive class had 5 items made?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"west_donegal_railway\" WHERE \"quantity_made\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"west_donegal_railway\" (\n \"class\" text,\n \"type\" text,\n \"fleet_numbers\" text,\n \"quantity_made\" real,\n \"manufacturer\" text,\n \"date_made\" real,\n \"date_withdrawn\" text\n);\n\nQuestion: Which manufacturer made a locomotive with a type of 4-6-4t?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"west_donegal_railway\" WHERE \"type\"='4-6-4t';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"miscellaneous\" (\n \"aces\" real,\n \"player\" real,\n \"opponent\" text,\n \"round\" text,\n \"year\" text,\n \"event\" real,\n \"surface\" text,\n \"sets\" text\n);\n\nQuestion: What is the event year radek \u0161t\u011bp\u00e1nek was the round and there were less than 3 aces?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"event\") FROM \"miscellaneous\" WHERE \"round\"='radek \u0161t\u011bp\u00e1nek' AND \"aces\"<3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"miscellaneous\" (\n \"aces\" real,\n \"player\" real,\n \"opponent\" text,\n \"round\" text,\n \"year\" text,\n \"event\" real,\n \"surface\" text,\n \"sets\" text\n);\n\nQuestion: How many players were in the event after 2011 with less than 9 aces?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"player\") FROM \"miscellaneous\" WHERE \"event\">2011 AND \"aces\"<9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"miscellaneous\" (\n \"aces\" real,\n \"player\" real,\n \"opponent\" text,\n \"round\" text,\n \"year\" text,\n \"event\" real,\n \"surface\" text,\n \"sets\" text\n);\n\nQuestion: Who was the opponent in the 2011 event with less than 113 players?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"miscellaneous\" WHERE \"player\"<113 AND \"event\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"miscellaneous\" (\n \"aces\" real,\n \"player\" real,\n \"opponent\" text,\n \"round\" text,\n \"year\" text,\n \"event\" real,\n \"surface\" text,\n \"sets\" text\n);\n\nQuestion: What is the highest number of players during 1r year with a clay set and more than 4 aces?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"player\") FROM \"miscellaneous\" WHERE \"year\"='1r' AND \"sets\"='clay' AND \"aces\">4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who played as Team 2 against Team 1 SC Gagnoa?"
},
{
"role": "assistant",
"content": "SELECT \"team_2\" FROM \"second_round\" WHERE \"team_1\"='sc gagnoa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What was the 1st leg score when Mufulira Wanderers played as Team 2?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"second_round\" WHERE \"team_2\"='mufulira wanderers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's the score of the 1st leg when Water Corporation was Team 1?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"second_round\" WHERE \"team_1\"='water corporation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's the 1st leg score when Team 1 was Gor Mahia?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"second_round\" WHERE \"team_1\"='gor mahia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who played as Team 1 against Lom\u00e9 i?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"second_round\" WHERE \"team_2\"='lom\u00e9 i';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the entrant for year of 1952"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\"=1952;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the total number of points for 1952"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"complete_formula_one_world_championship_\" WHERE \"year\"=1952;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the total number of years for talbot-lago t26c and points less than 3"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"complete_formula_one_world_championship_\" WHERE \"chassis\"='talbot-lago t26c' AND \"points\"<3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_11\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: What episode featured entrepreneur Richard Ernest?"
},
{
"role": "assistant",
"content": "SELECT \"first_aired\" FROM \"series_11\" WHERE \"entrepreneur_s\"='richard ernest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_11\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: What Investing Dragons had a request of \u00a3100,000?"
},
{
"role": "assistant",
"content": "SELECT \"investing_dragon_s\" FROM \"series_11\" WHERE \"money_requested\"='100,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_11\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: What Entrepreneurs requested \u00a360,000?"
},
{
"role": "assistant",
"content": "SELECT \"entrepreneur_s\" FROM \"series_11\" WHERE \"money_requested\"='60,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_11\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" text,\n \"investing_dragon_s\" text\n);\n\nQuestion: How much was requested from Investing Dragon Peter Jones request in episode 2?"
},
{
"role": "assistant",
"content": "SELECT \"money_requested\" FROM \"series_11\" WHERE \"investing_dragon_s\"='peter jones' AND \"episode\"='episode 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" real,\n \"investing_dragon_s\" text\n);\n\nQuestion: Name the investing dragon for razzamataz"
},
{
"role": "assistant",
"content": "SELECT \"investing_dragon_s\" FROM \"series_4\" WHERE \"company_or_product_name\"='razzamataz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" real,\n \"investing_dragon_s\" text\n);\n\nQuestion: Name the first aired with money requested more than 85,000"
},
{
"role": "assistant",
"content": "SELECT \"first_aired\" FROM \"series_4\" WHERE \"money_requested\">'85,000';"
}
]
|
[
{
"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 competition type of the event with a result of 3-2 and a score of 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"result\"='3-2' AND \"score\"='2-1';"
}
]
|
[
{
"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: Which date has a competition type of friendly and a score of 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"competition\"='friendly' AND \"score\"='2-1';"
}
]
|
[
{
"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 event with a competition type of friendly and a result of 4-5?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='friendly' AND \"result\"='4-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which date has a score of 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" 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 \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which date has a competition type of British home championship?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"competition\"='british home championship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"location_state\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"team\" text\n);\n\nQuestion: what date was mallala motor sport park the circuit?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"circuit\"='mallala motor sport park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"location_state\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"team\" text\n);\n\nQuestion: what date did the m3 motorsport team compete at winton motor raceway?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"team\"='m3 motorsport' AND \"circuit\"='winton motor raceway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Name the agg for team 2 of asl sport guyanais."
},
{
"role": "assistant",
"content": "SELECT \"agg\" FROM \"first_round\" WHERE \"team_2\"='asl sport guyanais';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Name the agg for seba united"
},
{
"role": "assistant",
"content": "SELECT \"agg\" FROM \"first_round\" WHERE \"team_1\"='seba united';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Name the 2nd leg for defence force"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"first_round\" WHERE \"team_2\"='defence force';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"club_career_stats\" (\n \"season\" real,\n \"team\" text,\n \"country\" text,\n \"apps\" real,\n \"goals\" real\n);\n\nQuestion: Which country does FC Atyrau represent after the 2006 season?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"club_career_stats\" WHERE \"season\">2006 AND \"team\"='fc atyrau';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"club_career_stats\" (\n \"season\" real,\n \"team\" text,\n \"country\" text,\n \"apps\" real,\n \"goals\" real\n);\n\nQuestion: In which season did Fc Pakhtakor Tashkent represent the country of Uzbekistan with more than 6 apps?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"club_career_stats\" WHERE \"country\"='uzbekistan' AND \"team\"='fc pakhtakor tashkent' AND \"apps\">6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"club_career_stats\" (\n \"season\" real,\n \"team\" text,\n \"country\" text,\n \"apps\" real,\n \"goals\" real\n);\n\nQuestion: How many seasons have 1 goals and more than 11 apps?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"club_career_stats\" WHERE \"goals\"=1 AND \"apps\">11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What game that had a record of 39-44 had the lowest attendance?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"game_log\" WHERE \"record\"='39-44';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the opponent at the game that had a loss of Saarloos (7-7)?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"loss\"='saarloos (7-7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the date of the game attended by more than 24,383 with a score of 4-3?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"attendance\">'24,383' AND \"score\"='4-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score of the game with a record of 81-60?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='81-60';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the lowest attendance at a game that had a score of 5-4 and a loss of Williams (2-4)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"game_log\" WHERE \"score\"='5-4' AND \"loss\"='williams (2-4)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"honours\" (\n \"year\" text,\n \"division\" text,\n \"place\" text,\n \"played\" real,\n \"drawn\" text,\n \"lost\" text,\n \"g_f\" text,\n \"g_a\" text,\n \"g_d\" text,\n \"points\" real\n);\n\nQuestion: What year did the 11th place play 26 games?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"honours\" WHERE \"place\"='11th' AND \"played\"=26;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"honours\" (\n \"year\" text,\n \"division\" text,\n \"place\" text,\n \"played\" real,\n \"drawn\" text,\n \"lost\" text,\n \"g_f\" text,\n \"g_a\" text,\n \"g_d\" text,\n \"points\" real\n);\n\nQuestion: What is the total played games of a 22 G.A.?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"played\") FROM \"honours\" WHERE \"g_a\"='22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"winner\" text,\n \"race_leader\" text\n);\n\nQuestion: Name the winner for genoa to livorno"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"stage_results\" WHERE \"course\"='genoa to livorno';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"winner\" text,\n \"race_leader\" text\n);\n\nQuestion: Name the winner for 5 june"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"stage_results\" WHERE \"date\"='5 june';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"winner\" text,\n \"race_leader\" text\n);\n\nQuestion: Name the winner for rest day race leader"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"stage_results\" WHERE \"race_leader\"='rest day';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: Name the least rank for lane less than 5 for germany and sandra v\u00f6lker"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"semifinal_1\" WHERE \"lane\"<5 AND \"nationality\"='germany' AND \"name\"='sandra v\u00f6lker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: Name the total number of rank for lane 7"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"semifinal_1\" WHERE \"lane\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: Name the most time for katrin mei\u00dfner and rank less than 5"
},
{
"role": "assistant",
"content": "SELECT MAX(\"time\") FROM \"semifinal_1\" WHERE \"name\"='katrin mei\u00dfner' AND \"rank\"<5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: Tell me the name for time of 25.74"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"semifinal_1\" WHERE \"time\"=25.74;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"june_secondary_phase\" (\n \"round\" real,\n \"name\" text,\n \"position\" text,\n \"school\" text,\n \"signed\" text\n);\n\nQuestion: Was the University of Southern California Signed?"
},
{
"role": "assistant",
"content": "SELECT \"signed\" FROM \"june_secondary_phase\" WHERE \"school\"='university of southern california';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"june_secondary_phase\" (\n \"round\" real,\n \"name\" text,\n \"position\" text,\n \"school\" text,\n \"signed\" text\n);\n\nQuestion: Was the University of Michigan Signed?"
},
{
"role": "assistant",
"content": "SELECT \"signed\" FROM \"june_secondary_phase\" WHERE \"school\"='university of michigan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"june_secondary_phase\" (\n \"round\" real,\n \"name\" text,\n \"position\" text,\n \"school\" text,\n \"signed\" text\n);\n\nQuestion: What is the University of Southern California's highest Round?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"june_secondary_phase\" WHERE \"school\"='university of southern california';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"england_in_west_indies\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Who was the home captain at Sabina Park?"
},
{
"role": "assistant",
"content": "SELECT \"home_captain\" FROM \"england_in_west_indies\" WHERE \"venue\"='sabina park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"england_in_west_indies\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the game hosted at Queen's Park Oval?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"england_in_west_indies\" WHERE \"venue\"='queen''s park oval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"80_million_to_99_million_records\" (\n \"artist\" text,\n \"country_of_origin\" text,\n \"period_active\" text,\n \"release_year_of_first_charted_record\" real,\n \"genre\" text,\n \"claimed_sales\" text\n);\n\nQuestion: Name the genre for release-year of first charted record of 1988"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"80_million_to_99_million_records\" WHERE \"release_year_of_first_charted_record\"=1988;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the loss of the game with a record of 77-65?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='77-65';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the loss of the game with a record of 84-71?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='84-71';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What date was the record 34-41?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='34-41';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"type\" text,\n \"winner\" text\n);\n\nQuestion: What type had a course of Grosseto To Rieti?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"stage_results\" WHERE \"course\"='grosseto to rieti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_champions\" (\n \"season\" text,\n \"league\" text,\n \"winner\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: In what Season were there 86 Assists in the WCJHL League?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"scoring_champions\" WHERE \"league\"='wcjhl' AND \"assists\"=86;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_champions\" (\n \"season\" text,\n \"league\" text,\n \"winner\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: In the WCHL League, what is the last Assists with less than 65 Goals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"assists\") FROM \"scoring_champions\" WHERE \"league\"='wchl' AND \"goals\"<65;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_champions\" (\n \"season\" text,\n \"league\" text,\n \"winner\" text,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What are the most Points with an Assist of 46?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"scoring_champions\" WHERE \"assists\"=46;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_6_f1_tyre_compounds_as_supplied_by_p\" (\n \"compound_name\" text,\n \"colour\" text,\n \"tread\" text,\n \"driving_conditions\" text,\n \"dry_type\" text,\n \"grip\" text,\n \"durability\" text\n);\n\nQuestion: What compound is yellow?"
},
{
"role": "assistant",
"content": "SELECT \"compound_name\" FROM \"the_6_f1_tyre_compounds_as_supplied_by_p\" WHERE \"colour\"='yellow';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_6_f1_tyre_compounds_as_supplied_by_p\" (\n \"compound_name\" text,\n \"colour\" text,\n \"tread\" text,\n \"driving_conditions\" text,\n \"dry_type\" text,\n \"grip\" text,\n \"durability\" text\n);\n\nQuestion: What grip has a dry option?"
},
{
"role": "assistant",
"content": "SELECT \"grip\" FROM \"the_6_f1_tyre_compounds_as_supplied_by_p\" WHERE \"dry_type\"='option';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_6_f1_tyre_compounds_as_supplied_by_p\" (\n \"compound_name\" text,\n \"colour\" text,\n \"tread\" text,\n \"driving_conditions\" text,\n \"dry_type\" text,\n \"grip\" text,\n \"durability\" text\n);\n\nQuestion: What color is the super-soft compound?"
},
{
"role": "assistant",
"content": "SELECT \"colour\" FROM \"the_6_f1_tyre_compounds_as_supplied_by_p\" WHERE \"compound_name\"='super-soft';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"box_office_score_data\" (\n \"venue\" text,\n \"city\" text,\n \"tickets_sold_available\" text,\n \"gross_revenue_1979\" text,\n \"gross_revenue_2012\" text\n);\n\nQuestion: Which venue has Tickets Sold/ Available with a Gross Revenue (1979) of $665,232?"
},
{
"role": "assistant",
"content": "SELECT \"tickets_sold_available\" FROM \"box_office_score_data\" WHERE \"gross_revenue_1979\"='$665,232';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"box_office_score_data\" (\n \"venue\" text,\n \"city\" text,\n \"tickets_sold_available\" text,\n \"gross_revenue_1979\" text,\n \"gross_revenue_2012\" text\n);\n\nQuestion: What is the Gross Revenue (1979) of the Venue, lyceum theatre?"
},
{
"role": "assistant",
"content": "SELECT \"gross_revenue_1979\" FROM \"box_office_score_data\" WHERE \"venue\"='lyceum theatre';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"box_office_score_data\" (\n \"venue\" text,\n \"city\" text,\n \"tickets_sold_available\" text,\n \"gross_revenue_1979\" text,\n \"gross_revenue_2012\" text\n);\n\nQuestion: What is the amount of Tickets Sold/ Available at the Venue of hippodrome?"
},
{
"role": "assistant",
"content": "SELECT \"tickets_sold_available\" FROM \"box_office_score_data\" WHERE \"venue\"='hippodrome';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"box_office_score_data\" (\n \"venue\" text,\n \"city\" text,\n \"tickets_sold_available\" text,\n \"gross_revenue_1979\" text,\n \"gross_revenue_2012\" text\n);\n\nQuestion: Which Venue has a Gross Revenue (2012) of $179,712?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"box_office_score_data\" WHERE \"gross_revenue_2012\"='$179,712';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"box_office_score_data\" (\n \"venue\" text,\n \"city\" text,\n \"tickets_sold_available\" text,\n \"gross_revenue_1979\" text,\n \"gross_revenue_2012\" text\n);\n\nQuestion: Which Venue has an amount of Tickets Sold/ Available of 4,700 / 4,700 (100%)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"box_office_score_data\" WHERE \"tickets_sold_available\"='4,700 / 4,700 (100%)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the date of the game that had a loss of Willis (0\u20131)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"loss\"='willis (0\u20131)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the opponent at the game that had a loss of Travers (0\u20132)?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"loss\"='travers (0\u20132)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the Loss when the Record was 50-54?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='50-54';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Who was the opponent when the loss was Wells (4-7)?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"loss\"='wells (4-7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forwards\" (\n \"number\" real,\n \"player\" text,\n \"shoots\" text,\n \"position\" text,\n \"acquired\" real,\n \"place_of_birth\" text,\n \"joined_from\" text\n);\n\nQuestion: What shows for shoots for craig peacock a?"
},
{
"role": "assistant",
"content": "SELECT \"shoots\" FROM \"forwards\" WHERE \"player\"='craig peacock a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"forwards\" (\n \"number\" real,\n \"player\" text,\n \"shoots\" text,\n \"position\" text,\n \"acquired\" real,\n \"place_of_birth\" text,\n \"joined_from\" text\n);\n\nQuestion: What is the average Acquired when the Number shows as 7?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"acquired\") FROM \"forwards\" WHERE \"number\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_appearances\" (\n \"2001\" text,\n \"2004\" text,\n \"2009\" text,\n \"2013\" text,\n \"total\" real\n);\n\nQuestion: What is the total of 2013 with 6th?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total\") FROM \"team_appearances\" WHERE \"2013\"='6th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_appearances\" (\n \"2001\" text,\n \"2004\" text,\n \"2009\" text,\n \"2013\" text,\n \"total\" real\n);\n\nQuestion: Which 2009 year has a total of 1, and 2004 year of 7th?"
},
{
"role": "assistant",
"content": "SELECT \"2009\" FROM \"team_appearances\" WHERE \"total\"=1 AND \"2004\"='7th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_appearances\" (\n \"2001\" text,\n \"2004\" text,\n \"2009\" text,\n \"2013\" text,\n \"total\" real\n);\n\nQuestion: What is the year 2013 with a total of 5, and 5th in 2009?"
},
{
"role": "assistant",
"content": "SELECT \"2013\" FROM \"team_appearances\" WHERE \"total\"=5 AND \"2009\"='5th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_appearances\" (\n \"2001\" text,\n \"2004\" text,\n \"2009\" text,\n \"2013\" text,\n \"total\" real\n);\n\nQuestion: What is the year 2001 with a total larger than 1, and 2009 with 8?"
},
{
"role": "assistant",
"content": "SELECT \"2001\" FROM \"team_appearances\" WHERE \"total\">1 AND \"2009\"='8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What opponents have a record of 90-70?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"record\"='90-70';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What game had more than 50,324 in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"attendance\">'50,324';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" text,\n \"finish\" text,\n \"entrant\" text\n);\n\nQuestion: What is the start of Offy engine and in 1972?"
},
{
"role": "assistant",
"content": "SELECT \"start\" FROM \"indy_500_results\" WHERE \"engine\"='offy' AND \"year\"=1972;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" text,\n \"finish\" text,\n \"entrant\" text\n);\n\nQuestion: What is the chassis for offy engine and 25th finish?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"indy_500_results\" WHERE \"engine\"='offy' AND \"finish\"='25th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" text,\n \"finish\" text,\n \"entrant\" text\n);\n\nQuestion: What is the finish of Mclaren chassis?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"indy_500_results\" WHERE \"chassis\"='mclaren';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"title_history\" (\n \"wrestlers\" text,\n \"reign\" text,\n \"days_held\" text,\n \"location\" text,\n \"event\" text\n);\n\nQuestion: Name the wrestlers with days held of 428"
},
{
"role": "assistant",
"content": "SELECT \"wrestlers\" FROM \"title_history\" WHERE \"days_held\"='428';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"title_history\" (\n \"wrestlers\" text,\n \"reign\" text,\n \"days_held\" text,\n \"location\" text,\n \"event\" text\n);\n\nQuestion: Name the wrestlers for days held of 69"
},
{
"role": "assistant",
"content": "SELECT \"wrestlers\" FROM \"title_history\" WHERE \"days_held\"='69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_22_15_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which opponent has a Surface of clay, an Outcome of winner, a Tournament of bogot\u00e1, and a Score of 6\u20130, 6\u20134?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_22_15_7\" WHERE \"surface\"='clay' AND \"outcome\"='winner' AND \"tournament\"='bogot\u00e1' AND \"score\"='6\u20130, 6\u20134';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_22_15_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which opponent has a Score of 6\u20134, 3\u20136, 6\u20133?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_22_15_7\" WHERE \"score\"='6\u20134, 3\u20136, 6\u20133';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_22_15_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the score for 04 september 2006?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"singles_22_15_7\" WHERE \"date\"='04 september 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_22_15_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament has a Score of 4-6 6-2 6-1?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_22_15_7\" WHERE \"score\"='4-6 6-2 6-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_22_15_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which outcome has a Surface of clay and a Score of 4\u20136, 7\u20135, 2\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_22_15_7\" WHERE \"surface\"='clay' AND \"score\"='4\u20136, 7\u20135, 2\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_22_15_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What date was versmold?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"singles_22_15_7\" WHERE \"tournament\"='versmold';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_record\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opponents\" text,\n \"home_leg\" text,\n \"away_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: Name the competition for motherwell opponents"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"european_record\" WHERE \"opponents\"='motherwell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_record\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opponents\" text,\n \"home_leg\" text,\n \"away_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: Name the home leg for uefa europa league and round of q1 with opponents of motherwell"
},
{
"role": "assistant",
"content": "SELECT \"home_leg\" FROM \"european_record\" WHERE \"competition\"='uefa europa league' AND \"round\"='q1' AND \"opponents\"='motherwell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_record\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opponents\" text,\n \"home_leg\" text,\n \"away_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: Name the aggregate with opponents of tauras"
},
{
"role": "assistant",
"content": "SELECT \"aggregate\" FROM \"european_record\" WHERE \"opponents\"='tauras';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What date was 53-75 recorded?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='53-75';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Overall of 62 is what average round?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"round\") FROM \"indianapolis_colts_draft_history\" WHERE \"overall\"=62;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: College of san diego state, and a Pick # smaller than 30 is what lowest overall?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"overall\") FROM \"indianapolis_colts_draft_history\" WHERE \"college\"='san diego state' AND \"pick_num\"<30;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: College of san diego state, and a Pick # smaller than 30 has what lowest overall?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"overall\") FROM \"indianapolis_colts_draft_history\" WHERE \"college\"='san diego state' AND \"pick_num\"<30;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fm\" (\n \"station\" text,\n \"frequency\" real,\n \"network_affiliation\" text,\n \"format\" text,\n \"city_of_license\" text,\n \"status\" text\n);\n\nQuestion: Which city of license has an independent network affiliation, a variety format and is station KKUP?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license\" FROM \"fm\" WHERE \"network_affiliation\"='independent' AND \"format\"='variety' AND \"station\"='kkup';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fm\" (\n \"station\" text,\n \"frequency\" real,\n \"network_affiliation\" text,\n \"format\" text,\n \"city_of_license\" text,\n \"status\" text\n);\n\nQuestion: What is the status of the independent station KPFB?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"fm\" WHERE \"network_affiliation\"='independent' AND \"station\"='kpfb';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.