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 \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: Name the to par for score of 74-74-74-71=293"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_leaderboard\" WHERE \"score\"='74-74-74-71=293';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: Name the player for 68-68-75-74=285"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_leaderboard\" WHERE \"score\"='68-68-75-74=285';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: Name the to par for gene kunes"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_leaderboard\" WHERE \"player\"='gene kunes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What is the average Points for a year before 1955?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"complete_formula_one_results\" WHERE \"year\"<1955;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What is the total year with a Team of scuderia ferrari, an Engine of ferrari 106 2.5 l4, and more than 12 points?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"complete_formula_one_results\" WHERE \"team\"='scuderia ferrari' AND \"engine\"='ferrari 106 2.5 l4' AND \"points\">12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real\n);\n\nQuestion: How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"career_summary\" WHERE \"podiums\">1 AND \"races\"=9 AND \"season\">1984;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real\n);\n\nQuestion: What is the highest Podiums with 0 as wins, and a season later than 1985?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"podiums\") FROM \"career_summary\" WHERE \"wins\"=0 AND \"season\">1985;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"specials\" (\n \"month_year\" text,\n \"episode\" text,\n \"title\" text,\n \"hammond_s_vehicle\" text,\n \"clarkson_s_vehicle\" text,\n \"may_s_vehicle\" text,\n \"back_up\" text,\n \"budget\" text\n);\n\nQuestion: What was the Top Gear budget in March 2013?"
},
{
"role": "assistant",
"content": "SELECT \"budget\" FROM \"specials\" WHERE \"month_year\"='march 2013';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"specials\" (\n \"month_year\" text,\n \"episode\" text,\n \"title\" text,\n \"hammond_s_vehicle\" text,\n \"clarkson_s_vehicle\" text,\n \"may_s_vehicle\" text,\n \"back_up\" text,\n \"budget\" text\n);\n\nQuestion: Which episode of Top Gear had a budget of \u00a37,000?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"specials\" WHERE \"budget\"='\u00a37,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"specials\" (\n \"month_year\" text,\n \"episode\" text,\n \"title\" text,\n \"hammond_s_vehicle\" text,\n \"clarkson_s_vehicle\" text,\n \"may_s_vehicle\" text,\n \"back_up\" text,\n \"budget\" text\n);\n\nQuestion: Which month and year held the Bolivia Special title?"
},
{
"role": "assistant",
"content": "SELECT \"month_year\" FROM \"specials\" WHERE \"title\"='bolivia special';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"specials\" (\n \"month_year\" text,\n \"episode\" text,\n \"title\" text,\n \"hammond_s_vehicle\" text,\n \"clarkson_s_vehicle\" text,\n \"may_s_vehicle\" text,\n \"back_up\" text,\n \"budget\" text\n);\n\nQuestion: When Hammond had the 1974 Toyota Land Cruiser, what was May's vehicle?"
},
{
"role": "assistant",
"content": "SELECT \"may_s_vehicle\" FROM \"specials\" WHERE \"hammond_s_vehicle\"='1974 toyota land cruiser';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which team has a right wing position listed?"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team\" FROM \"round_five\" WHERE \"position\"='right wing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position is the player that is from Canada and on the Boston Bruins"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_five\" WHERE \"nationality\"='canada' AND \"nhl_team\"='boston bruins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the position of the player on the Los Angeles Kings?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_five\" WHERE \"nhl_team\"='los angeles kings';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which team has the # 64 pick?"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team\" FROM \"round_five\" WHERE \"pick_num\"='64';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What nationality is the #63 pick?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_five\" WHERE \"pick_num\"='63';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the name of the player that is pick #69?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"round_five\" WHERE \"pick_num\"='69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" real\n);\n\nQuestion: Which tyres received 8 points?"
},
{
"role": "assistant",
"content": "SELECT \"tyres\" FROM \"complete_formula_one_results\" WHERE \"points\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" real\n);\n\nQuestion: How many points were awarded to the Ford DFZ 3.5 V8?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"complete_formula_one_results\" WHERE \"engine_s\"='ford dfz 3.5 v8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" real\n);\n\nQuestion: Which engine received 0 points in 1988?"
},
{
"role": "assistant",
"content": "SELECT \"engine_s\" FROM \"complete_formula_one_results\" WHERE \"points\"=0 AND \"year\"=1988;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_chart\" (\n \"week\" real,\n \"issue_date\" text,\n \"artist\" text,\n \"single\" text,\n \"download\" text,\n \"title\" text\n);\n\nQuestion: What's the Issue Date for an Eric Prydz song with a no available Download information?"
},
{
"role": "assistant",
"content": "SELECT \"issue_date\" FROM \"singles_chart\" WHERE \"download\"='no available' AND \"artist\"='eric prydz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_chart\" (\n \"week\" real,\n \"issue_date\" text,\n \"artist\" text,\n \"single\" text,\n \"download\" text,\n \"title\" text\n);\n\nQuestion: What's the Download information for the song from Week 44?"
},
{
"role": "assistant",
"content": "SELECT \"download\" FROM \"singles_chart\" WHERE \"week\"=44;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_chart\" (\n \"week\" real,\n \"issue_date\" text,\n \"artist\" text,\n \"single\" text,\n \"download\" text,\n \"title\" text\n);\n\nQuestion: What is the title of the July 2 song that is downloaded as Crazy Frog?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"singles_chart\" WHERE \"download\"='crazy frog' AND \"issue_date\"='july 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_regular_season_football_standings\" (\n \"school\" text,\n \"team\" text,\n \"division_record\" text,\n \"overall_record\" text,\n \"season_outcome\" text\n);\n\nQuestion: What is the division record for Woodbridge?"
},
{
"role": "assistant",
"content": "SELECT \"division_record\" FROM \"2009_regular_season_football_standings\" WHERE \"school\"='woodbridge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"runner_up\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who was the runner-up when Polonia Bydgoszcz won and Mega-Lada Togliatti finished 3rd?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"previous_winners\" WHERE \"winners\"='polonia bydgoszcz' AND \"3rd_place\"='mega-lada togliatti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"runner_up\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who was the runner-up in 2004?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"previous_winners\" WHERE \"year\"='2004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"runner_up\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who was the 3rd place team at Pardubice?"
},
{
"role": "assistant",
"content": "SELECT \"3rd_place\" FROM \"previous_winners\" WHERE \"venue\"='pardubice';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"currency\" (\n \"country\" text,\n \"currency\" text,\n \"1_euro\" real,\n \"1_usd\" text,\n \"central_bank\" text\n);\n\nQuestion: Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"currency\" WHERE \"1_euro\">1.46611 AND \"1_usd\"='1.76650';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"currency\" (\n \"country\" text,\n \"currency\" text,\n \"1_euro\" real,\n \"1_usd\" text,\n \"central_bank\" text\n);\n\nQuestion: Which Chile central bank has a Euro larger than 297.547?"
},
{
"role": "assistant",
"content": "SELECT \"central_bank\" FROM \"currency\" WHERE \"1_euro\">297.547 AND \"country\"='chile';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_saturday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the To par for denmark"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round_saturday\" WHERE \"country\"='denmark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_saturday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Nam ethe place for pat perez"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round_saturday\" WHERE \"player\"='pat perez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round_saturday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the country vijay singh is from"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round_saturday\" WHERE \"player\"='vijay singh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which city has frequency under 106.5MHz and a callsign of w218ck?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license\" FROM \"translators\" WHERE \"frequency_m_hz\"<106.5 AND \"call_sign\"='w218ck';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which class has a city of Richmond, Virginia?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"translators\" WHERE \"city_of_license\"='richmond, virginia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the ERP W for the frequency of 91.3MHz?"
},
{
"role": "assistant",
"content": "SELECT \"erp_w\" FROM \"translators\" WHERE \"frequency_m_hz\"=91.3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which call sign has a frequency greater than 98.5MHz and ERP W under 155?"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"translators\" WHERE \"frequency_m_hz\">98.5 AND \"erp_w\"<155;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"disc_list\" (\n \"disc\" text,\n \"title\" text,\n \"type\" text,\n \"length\" text,\n \"tracks\" real\n);\n\nQuestion: Which tracks have a length of 18:36?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"tracks\") FROM \"disc_list\" WHERE \"length\"='18:36';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"disc_list\" (\n \"disc\" text,\n \"title\" text,\n \"type\" text,\n \"length\" text,\n \"tracks\" real\n);\n\nQuestion: What is the length of disc 67?"
},
{
"role": "assistant",
"content": "SELECT \"length\" FROM \"disc_list\" WHERE \"disc\"='67';"
}
]
|
[
{
"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: What points larger than 1950 has a maserati straight-6 engine?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\">1950 AND \"engine\"='maserati straight-6';"
}
]
|
[
{
"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: What is the chassis for a 1952 officine alfieri maserati with an entrant?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"complete_formula_one_world_championship_\" WHERE \"entrant\"='officine alfieri maserati' AND \"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: What type of engine does a 1951 alfa romeo 159m chasis have?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\"=1951 AND \"chassis\"='alfa romeo 159m';"
}
]
|
[
{
"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: What Entrant has a 1952 maserati straight-6 engine?"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"engine\"='maserati straight-6' AND \"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: What Entrant older than 1950 has points smaller than 7?"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\">1950 AND \"points\"<7;"
}
]
|
[
{
"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: What is the total points that an 1951 Entrant alfa romeo spa have?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"complete_formula_one_world_championship_\" WHERE \"entrant\"='alfa romeo spa' AND \"year\"<1951;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bathurst_1000_results\" (\n \"year\" real,\n \"number\" real,\n \"team\" text,\n \"co_driver\" text,\n \"position\" text,\n \"laps\" real\n);\n\nQuestion: Who is the co-driver in 1999 with more than 32 laps?"
},
{
"role": "assistant",
"content": "SELECT \"co_driver\" FROM \"bathurst_1000_results\" WHERE \"laps\">32 AND \"year\"=1999;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix"
},
{
"role": "assistant",
"content": "SELECT \"winning_constructor\" FROM \"drivers_standings\" WHERE \"fastest_lap\"='mark webber' AND \"grand_prix\"='malaysian grand prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the winning constructor for abu dhabi grand prix"
},
{
"role": "assistant",
"content": "SELECT \"winning_constructor\" FROM \"drivers_standings\" WHERE \"grand_prix\"='abu dhabi grand prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the pole position for belgian grand prix"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"drivers_standings\" WHERE \"grand_prix\"='belgian grand prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the pole positon for korean grand prix"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"drivers_standings\" WHERE \"grand_prix\"='korean grand prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the pole position at the german grand prix"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"drivers_standings\" WHERE \"grand_prix\"='german grand prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"erm_ii_members\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: What is the code for Latvian Lats?"
},
{
"role": "assistant",
"content": "SELECT \"code\" FROM \"erm_ii_members\" WHERE \"currency\"='latvian lats';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"erm_ii_members\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: Which currency has a central rate of 3.45280?"
},
{
"role": "assistant",
"content": "SELECT \"currency\" FROM \"erm_ii_members\" WHERE \"central_rate\"='3.45280';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"erm_ii_members\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: Which currency has a central rate of 0.702804?"
},
{
"role": "assistant",
"content": "SELECT \"currency\" FROM \"erm_ii_members\" WHERE \"central_rate\"='0.702804';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"erm_ii_members\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: What is the entry ERM II for the Hungarian Forint?"
},
{
"role": "assistant",
"content": "SELECT \"entry_erm_ii\" FROM \"erm_ii_members\" WHERE \"currency\"='hungarian forint';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"erm_ii_members\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: What is the official target date for the Swedish Krona?"
},
{
"role": "assistant",
"content": "SELECT \"official_target_date\" FROM \"erm_ii_members\" WHERE \"currency\"='swedish krona';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: The EPT German open was won by which listed winner?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"european_poker_tour\" WHERE \"event\"='ept german open';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What event did Will Fry win?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"european_poker_tour\" WHERE \"winner\"='will fry';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: The EPT German Open took place in what city?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"european_poker_tour\" WHERE \"event\"='ept german open';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: When did an event take place in the City of Copenhagen?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"european_poker_tour\" WHERE \"city\"='copenhagen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: The prize of \u00a31,000,000 was given by an event in what city?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"european_poker_tour\" WHERE \"prize\"='\u00a31,000,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: Jo\u00e3o Barbosa was the winner of which event?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"european_poker_tour\" WHERE \"winner\"='jo\u00e3o barbosa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scottish_premier_league\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result_celtic_score_first\" text,\n \"attendance\" real,\n \"match_report\" text\n);\n\nQuestion: What was the Attendance during the Home game where St. Johnstone was the Opponent?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"scottish_premier_league\" WHERE \"opponent\"='st. johnstone' AND \"venue\"='home';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: Which class has a Class Position of 6th?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"class_pos\"='6th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: Which class has a Year of 1968?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"year\"=1968;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: Which class has a Team of kouros racing team?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"team\"='kouros racing team';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970s_colts_11_9\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"1970s_colts_11_9\" WHERE \"loser\"='baltimore colts' AND \"location\"='schaefer stadium' AND \"result\"='42-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970s_colts_11_9\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"1970s_colts_11_9\" WHERE \"winner\"='baltimore colts' AND \"year\"<1972 AND \"result\"='14-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970s_colts_11_9\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What is the Date, when the Year is after 1978, and when the Location is Memorial Stadium (Baltimore)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1970s_colts_11_9\" WHERE \"year\">1978 AND \"location\"='memorial stadium (baltimore)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_one_world_championship_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which engine has a Chassis of lotus 44 f2?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"formula_one_world_championship_results\" WHERE \"chassis\"='lotus 44 f2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_one_world_championship_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What entrant appeared in 1969?"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"formula_one_world_championship_results\" WHERE \"year\"=1969;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_one_world_championship_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which engine has a Year larger than 1969?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"formula_one_world_championship_results\" WHERE \"year\">1969;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_one_world_championship_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What is the largest year with an Entrant of ron harris / team lotus?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"formula_one_world_championship_results\" WHERE \"entrant\"='ron harris / team lotus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: During stage 21, who held the Intergiro classification?"
},
{
"role": "assistant",
"content": "SELECT \"intergiro_classification\" FROM \"classification_leadership_by_stage\" WHERE \"stage\"='21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: During which stage was gatorade the Trofeo Fast Team?"
},
{
"role": "assistant",
"content": "SELECT \"stage\" FROM \"classification_leadership_by_stage\" WHERE \"trofeo_fast_team\"='gatorade';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?"
},
{
"role": "assistant",
"content": "SELECT \"intergiro_classification\" FROM \"classification_leadership_by_stage\" WHERE \"trofeo_fast_team\"='gb-mg maglificio';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?"
},
{
"role": "assistant",
"content": "SELECT \"stage\" FROM \"classification_leadership_by_stage\" WHERE \"intergiro_classification\"='miguel indurain' AND \"points_classification\"='mario cipollini' AND \"young_rider_classification\"='leonardo sierra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"classification_leadership_by_stage\" WHERE \"general_classification\"='miguel indurain' AND \"points_classification\"='mario cipollini' AND \"mountains_classification\"='claudio chiappucci' AND \"young_rider_classification\"='pavel tonkov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strong_s_num\" text,\n \"hebrew_word\" text,\n \"strong_s_transliteration\" text,\n \"strong_s_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: What is the rank of Strong's Words Compounded of yasha [# 3467] & yahu?"
},
{
"role": "assistant",
"content": "SELECT \"strong_s_num\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"strong_s_words_compounded\"='yasha [# 3467] & yahu';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strong_s_num\" text,\n \"hebrew_word\" text,\n \"strong_s_transliteration\" text,\n \"strong_s_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: How to spell Strong's # of 5166 in English?"
},
{
"role": "assistant",
"content": "SELECT \"english_spelling\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"strong_s_num\"='5166';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strong_s_num\" text,\n \"hebrew_word\" text,\n \"strong_s_transliteration\" text,\n \"strong_s_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: What is the Words with a Strong's # of 5418?"
},
{
"role": "assistant",
"content": "SELECT \"strong_s_words_compounded\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"strong_s_num\"='5418';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"player\" text,\n \"club\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"goals_against\" real,\n \"ga_average\" real,\n \"wins\" real,\n \"loses\" real\n);\n\nQuestion: What is the goals against for the goalkeeper with 2520 minutes?"
},
{
"role": "assistant",
"content": "SELECT \"goals_against\" FROM \"goalkeeping_leaders\" WHERE \"minutes\"=2520;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"player\" text,\n \"club\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"goals_against\" real,\n \"ga_average\" real,\n \"wins\" real,\n \"loses\" real\n);\n\nQuestion: What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"games_played\") FROM \"goalkeeping_leaders\" WHERE \"loses\"=10 AND \"player\"='bo oshoniyi' AND \"minutes\">1170;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"player\" text,\n \"club\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"goals_against\" real,\n \"ga_average\" real,\n \"wins\" real,\n \"loses\" real\n);\n\nQuestion: What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals_against\") FROM \"goalkeeping_leaders\" WHERE \"club\"='dallas burn' AND \"ga_average\">1.46;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"player\" text,\n \"club\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"goals_against\" real,\n \"ga_average\" real,\n \"wins\" real,\n \"loses\" real\n);\n\nQuestion: What is the lowest number of losses a goalkeeper with more than 2776 minutes had?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"loses\") FROM \"goalkeeping_leaders\" WHERE \"minutes\">2776;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"player\" text,\n \"club\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"goals_against\" real,\n \"ga_average\" real,\n \"wins\" real,\n \"loses\" real\n);\n\nQuestion: What is the lowest minutes a goalkeeper with 13 games played has?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"minutes\") FROM \"goalkeeping_leaders\" WHERE \"games_played\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"biggest_losses\" (\n \"margin\" real,\n \"score\" text,\n \"opponent\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: Which round resulted in 10-52?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"biggest_losses\" WHERE \"score\"='10-52';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"biggest_losses\" (\n \"margin\" real,\n \"score\" text,\n \"opponent\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What venue did Melbourne Storm played in Rd 7, 2006?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"biggest_losses\" WHERE \"opponent\"='melbourne storm' AND \"round\"='rd 7, 2006';"
}
]
|
[
{
"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: In which venue was the result a draw?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"result\"='draw';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comedy_circus_ke_taansen\" (\n \"pair_no\" real,\n \"comedian_1\" text,\n \"comedian_ii\" text,\n \"tansen_singers\" text,\n \"place_result\" text\n);\n\nQuestion: Who is the singer that has Comedian; II of Preeti Amin?"
},
{
"role": "assistant",
"content": "SELECT \"tansen_singers\" FROM \"comedy_circus_ke_taansen\" WHERE \"comedian_ii\"='preeti amin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comedy_circus_ke_taansen\" (\n \"pair_no\" real,\n \"comedian_1\" text,\n \"comedian_ii\" text,\n \"tansen_singers\" text,\n \"place_result\" text\n);\n\nQuestion: Who is the comedian that has a pair no larger than 5 with a comedian II: Jimmy Moses?"
},
{
"role": "assistant",
"content": "SELECT \"comedian_1\" FROM \"comedy_circus_ke_taansen\" WHERE \"pair_no\">5 AND \"comedian_ii\"='jimmy moses';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comedy_circus_ke_taansen\" (\n \"pair_no\" real,\n \"comedian_1\" text,\n \"comedian_ii\" text,\n \"tansen_singers\" text,\n \"place_result\" text\n);\n\nQuestion: What is the result of Comedian : II of Ali Asgar?"
},
{
"role": "assistant",
"content": "SELECT \"place_result\" FROM \"comedy_circus_ke_taansen\" WHERE \"comedian_ii\"='ali asgar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: Which School Colors were Founded of 1969, with an Institution of barton community college?"
},
{
"role": "assistant",
"content": "SELECT \"school_colors\" FROM \"western_division\" WHERE \"founded\"=1969 AND \"institution\"='barton community college';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: Which Institution has a Mascot of broncbusters?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"western_division\" WHERE \"mascot\"='broncbusters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: What is the largest Founded with an Institution of cloud county community college?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"founded\") FROM \"western_division\" WHERE \"institution\"='cloud county community college';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: What is the total Founded with a Main Campus Location of liberal?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"western_division\" WHERE \"main_campus_location\"='liberal';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"encounters\" (\n \"1_person_dive\" text,\n \"2_person_dive\" text,\n \"3_person_dive\" text,\n \"surface\" text,\n \"cage_dive\" text,\n \"seal_turtle_decoy\" text,\n \"catch_release\" text,\n \"attached_camera\" text,\n \"remote_camera\" text\n);\n\nQuestion: What is the 3-person dive that has none as the 2-person dive?"
},
{
"role": "assistant",
"content": "SELECT \"3_person_dive\" FROM \"encounters\" WHERE \"2_person_dive\"='none';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"encounters\" (\n \"1_person_dive\" text,\n \"2_person_dive\" text,\n \"3_person_dive\" text,\n \"surface\" text,\n \"cage_dive\" text,\n \"seal_turtle_decoy\" text,\n \"catch_release\" text,\n \"attached_camera\" text,\n \"remote_camera\" text\n);\n\nQuestion: What is the 2-person dive that has 2 as the surface?"
},
{
"role": "assistant",
"content": "SELECT \"2_person_dive\" FROM \"encounters\" WHERE \"surface\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"encounters\" (\n \"1_person_dive\" text,\n \"2_person_dive\" text,\n \"3_person_dive\" text,\n \"surface\" text,\n \"cage_dive\" text,\n \"seal_turtle_decoy\" text,\n \"catch_release\" text,\n \"attached_camera\" text,\n \"remote_camera\" text\n);\n\nQuestion: What surface has 2 as a cage dive?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"encounters\" WHERE \"cage_dive\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"encounters\" (\n \"1_person_dive\" text,\n \"2_person_dive\" text,\n \"3_person_dive\" text,\n \"surface\" text,\n \"cage_dive\" text,\n \"seal_turtle_decoy\" text,\n \"catch_release\" text,\n \"attached_camera\" text,\n \"remote_camera\" text\n);\n\nQuestion: Which cage dive has none as a 3-person dive?"
},
{
"role": "assistant",
"content": "SELECT \"cage_dive\" FROM \"encounters\" WHERE \"3_person_dive\"='none';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"encounters\" (\n \"1_person_dive\" text,\n \"2_person_dive\" text,\n \"3_person_dive\" text,\n \"surface\" text,\n \"cage_dive\" text,\n \"seal_turtle_decoy\" text,\n \"catch_release\" text,\n \"attached_camera\" text,\n \"remote_camera\" text\n);\n\nQuestion: Which 3-person dive has 0 as a remote camera?"
},
{
"role": "assistant",
"content": "SELECT \"3_person_dive\" FROM \"encounters\" WHERE \"remote_camera\"='0';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.