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 \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: What score did Ed Furgol get to come in at T6?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='t6' AND \"player\"='ed furgol';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: What score did Ted Kroll get to come in at T2?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='t2' AND \"player\"='ted kroll';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: Where is Fred Haas from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='fred haas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: Where is Fred Haas from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='fred haas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is Position, when School/Club Team is McMaster?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"cfl_draft\" WHERE \"school_club_team\"='mcmaster';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the lowest Round, when Pick is 9 (via Hamilton)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"cfl_draft\" WHERE \"pick\"='9 (via hamilton)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is Pick, when Position is OL, and when Round is less than 6?"
},
{
"role": "assistant",
"content": "SELECT \"pick\" FROM \"cfl_draft\" WHERE \"position\"='ol' AND \"round\"<6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is School/Club Team, when Pick is 9 (via Hamilton)?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"cfl_draft\" WHERE \"pick\"='9 (via hamilton)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Result of the game with an Attendance of 55,353?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"='55,353';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: In what Week was the Attendance 39,923?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"attendance\"='39,923';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Result of the game after Week 9 with an Attendance of 69,714?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\">9 AND \"attendance\"='69,714';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What Week falls on September 4, 1994?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"date\"='september 4, 1994';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What is Pos., when Player is \"Nigel De Jong\"?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"first_team\" WHERE \"player\"='nigel de jong';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What is From Club, when Player is \"Robinho\"?"
},
{
"role": "assistant",
"content": "SELECT \"from_club\" FROM \"first_team\" WHERE \"player\"='robinho';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What is Pos., when From Club is \"CSKA Moscow\"?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"first_team\" WHERE \"from_club\"='cska moscow';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What is Pos., when From Club is \"Chelsea\", and when Date is \"30 July 2008\"?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"first_team\" WHERE \"from_club\"='chelsea' AND \"date\"='30 july 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the team 2 for the match with a team 1 of Panathinaikos?"
},
{
"role": "assistant",
"content": "SELECT \"team_2\" FROM \"round_of_16\" WHERE \"team_1\"='panathinaikos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\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 first leg score for the match with a team 1 of Panathinaikos?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"round_of_16\" WHERE \"team_1\"='panathinaikos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 2nd leg score for the match with a team 2 of Werder Bremen?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"round_of_16\" WHERE \"team_2\"='werder bremen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the kitmaker for Fc Augsburg?"
},
{
"role": "assistant",
"content": "SELECT \"kitmaker\" FROM \"personnel_and_sponsoring\" WHERE \"team\"='fc augsburg';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?"
},
{
"role": "assistant",
"content": "SELECT \"head_coach\" FROM \"personnel_and_sponsoring\" WHERE \"shirt_sponsor\"='karstadt quelle versicherungen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the kitmaker for the team that Uwe Rapolder is the head coach of."
},
{
"role": "assistant",
"content": "SELECT \"kitmaker\" FROM \"personnel_and_sponsoring\" WHERE \"head_coach\"='uwe rapolder';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the team captain of the team that L\u00fcbzer is the shirt sponsor for?"
},
{
"role": "assistant",
"content": "SELECT \"team_captain\" FROM \"personnel_and_sponsoring\" WHERE \"shirt_sponsor\"='l\u00fcbzer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the shirt sponsor of the team Andreas Wolf is the captain of?"
},
{
"role": "assistant",
"content": "SELECT \"shirt_sponsor\" FROM \"personnel_and_sponsoring\" WHERE \"team_captain\"='andreas wolf';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the shirt sponsor for the team Daniel Thioune captains?"
},
{
"role": "assistant",
"content": "SELECT \"shirt_sponsor\" FROM \"personnel_and_sponsoring\" WHERE \"team_captain\"='daniel thioune';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What was the date of the game number 22?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_schedule\" WHERE \"game\"=22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_grossing_films_u_s\" (\n \"rank\" real,\n \"title\" text,\n \"studio\" text,\n \"director\" text,\n \"gross\" text\n);\n\nQuestion: What is the Director from Paramount with a Film with a Gross of $128,152,301?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"highest_grossing_films_u_s\" WHERE \"studio\"='paramount' AND \"gross\"='$128,152,301';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_grossing_films_u_s\" (\n \"rank\" real,\n \"title\" text,\n \"studio\" text,\n \"director\" text,\n \"gross\" text\n);\n\nQuestion: What is the Studio of the Rank 10 Film?"
},
{
"role": "assistant",
"content": "SELECT \"studio\" FROM \"highest_grossing_films_u_s\" WHERE \"rank\"=10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_gu\" (\n \"source\" text,\n \"dates_administered\" text,\n \"democrat_christine_gregoire\" text,\n \"republican_dino_rossi\" text,\n \"lead_margin\" real\n);\n\nQuestion: What is the source of the poll that had Republican: Dino Rossi at 46%, Democrat: Christine Gregoire at 50%, and the lead margin was larger than 3?"
},
{
"role": "assistant",
"content": "SELECT \"source\" FROM \"opinion_polling_for_the_united_states_gu\" WHERE \"republican_dino_rossi\"='46%' AND \"lead_margin\">3 AND \"democrat_christine_gregoire\"='50%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_gu\" (\n \"source\" text,\n \"dates_administered\" text,\n \"democrat_christine_gregoire\" text,\n \"republican_dino_rossi\" text,\n \"lead_margin\" real\n);\n\nQuestion: What was the percentage for Republican: Dino Rossi when Democrat: Christine Gregoire polled at 53.7% and the lead margin was larger than 7?"
},
{
"role": "assistant",
"content": "SELECT \"republican_dino_rossi\" FROM \"opinion_polling_for_the_united_states_gu\" WHERE \"lead_margin\">7 AND \"democrat_christine_gregoire\"='53.7%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_doctor_who_audio_releases\" (\n \"title\" text,\n \"writer\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text\n);\n\nQuestion: What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"list_of_doctor_who_audio_releases\" WHERE \"company\"='bbc audio' AND \"writer\"='ford, phil phil ford';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_doctor_who_audio_releases\" (\n \"title\" text,\n \"writer\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text\n);\n\nQuestion: What is the release date of the album written by Goss, James James Goss under Audiogo?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"list_of_doctor_who_audio_releases\" WHERE \"writer\"='goss, james james goss' AND \"company\"='audiogo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_doctor_who_audio_releases\" (\n \"title\" text,\n \"writer\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text\n);\n\nQuestion: Who is the company that released the album on 2008-09-18 18 September 2008?"
},
{
"role": "assistant",
"content": "SELECT \"company\" FROM \"list_of_doctor_who_audio_releases\" WHERE \"release_date\"='2008-09-18 18 september 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Notre-Dame-De-Lourdes has what average area km 2?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"area_km_2\") FROM \"parishes\" WHERE \"official_name\"='notre-dame-de-lourdes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Saint-Jacques has what as the area km 2?"
},
{
"role": "assistant",
"content": "SELECT \"area_km_2\" FROM \"parishes\" WHERE \"official_name\"='saint-jacques';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: With an area km 2 of 343.95 what is the official name?"
},
{
"role": "assistant",
"content": "SELECT \"official_name\" FROM \"parishes\" WHERE \"area_km_2\"=343.95;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Saint-Basile has what status?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"parishes\" WHERE \"official_name\"='saint-basile';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"y\" (\n \"discipline\" text,\n \"circuit\" text,\n \"event\" text,\n \"session\" text,\n \"cause\" text\n);\n\nQuestion: What circuit has qualifying as the session?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"y\" WHERE \"session\"='qualifying';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"y\" (\n \"discipline\" text,\n \"circuit\" text,\n \"event\" text,\n \"session\" text,\n \"cause\" text\n);\n\nQuestion: The 1997 Japanese Formula 3 Championship is part of what circuit?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"y\" WHERE \"event\"='1997 japanese formula 3 championship';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"y\" (\n \"discipline\" text,\n \"circuit\" text,\n \"event\" text,\n \"session\" text,\n \"cause\" text\n);\n\nQuestion: The Fall Nationals has what sessions?"
},
{
"role": "assistant",
"content": "SELECT \"session\" FROM \"y\" WHERE \"event\"='fall nationals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"y\" (\n \"discipline\" text,\n \"circuit\" text,\n \"event\" text,\n \"session\" text,\n \"cause\" text\n);\n\nQuestion: The 1977 Japanese Grand Prix in the open wheel discipline has what session?"
},
{
"role": "assistant",
"content": "SELECT \"session\" FROM \"y\" WHERE \"discipline\"='open wheel' AND \"event\"='1977 japanese grand prix';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"y\" (\n \"discipline\" text,\n \"circuit\" text,\n \"event\" text,\n \"session\" text,\n \"cause\" text\n);\n\nQuestion: What circuit has a race for the session, and open wheel as the discipline, and the 1977 Japanese Grand Prix as the event?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"y\" WHERE \"session\"='race' AND \"discipline\"='open wheel' AND \"event\"='1977 japanese grand prix';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"y\" (\n \"discipline\" text,\n \"circuit\" text,\n \"event\" text,\n \"session\" text,\n \"cause\" text\n);\n\nQuestion: For what cause is Touring Car Racing the discipline?"
},
{
"role": "assistant",
"content": "SELECT \"cause\" FROM \"y\" WHERE \"discipline\"='touring car racing';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What player scored 70-73-69-72=284?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_leaderboard\" WHERE \"score\"='70-73-69-72=284';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the lowest amount of money that Craig Stadler won?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"money\") FROM \"final_leaderboard\" WHERE \"player\"='craig stadler';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What country is David Graham from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_leaderboard\" WHERE \"player\"='david graham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the total amount of money that the United States one with a To par of \u20132?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"money\") FROM \"final_leaderboard\" WHERE \"country\"='united states' AND \"to_par\"='\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What score did Jack Nicklaus have when he placed t6?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_leaderboard\" WHERE \"place\"='t6' AND \"player\"='jack nicklaus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: How much money has a to par of E?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"money\") FROM \"final_round\" WHERE \"to_par\"='e';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1930s_giants_11_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What was the location on October 16?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"1930s_giants_11_3\" WHERE \"date\"='october 16';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1930s_giants_11_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: Who was the winner when the result was 56-0 before 1935?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"1930s_giants_11_3\" WHERE \"year\"<1935 AND \"result\"='56-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1930s_giants_11_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: Who was the winner in philadelphia municipal stadium in 1939?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"1930s_giants_11_3\" WHERE \"location\"='philadelphia municipal stadium' AND \"year\"=1939;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1930s_giants_11_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What was the earliest year that the result 21-17?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"1930s_giants_11_3\" WHERE \"result\"='21-17';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1930s_giants_11_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What was the location after 1934 that Philadelphia Eagles lost on October 15?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"1930s_giants_11_3\" WHERE \"year\">1934 AND \"loser\"='philadelphia eagles' AND \"date\"='october 15';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"republic_of_korea_1948_presents\" (\n \"president\" text,\n \"vice\" real,\n \"romanized_hangul\" text,\n \"took_office\" text,\n \"left_office\" text,\n \"political_party\" text\n);\n\nQuestion: When did chang myon (\uc7a5\uba74) leave office?"
},
{
"role": "assistant",
"content": "SELECT \"left_office\" FROM \"republic_of_korea_1948_presents\" WHERE \"romanized_hangul\"='chang myon (\uc7a5\uba74)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"republic_of_korea_1948_presents\" (\n \"president\" text,\n \"vice\" real,\n \"romanized_hangul\" text,\n \"took_office\" text,\n \"left_office\" text,\n \"political_party\" text\n);\n\nQuestion: When did the vice president with a vice over 6 take office?"
},
{
"role": "assistant",
"content": "SELECT \"took_office\" FROM \"republic_of_korea_1948_presents\" WHERE \"vice\">6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"provinces_table\" (\n \"province\" text,\n \"region\" text,\n \"capital\" text,\n \"districts\" real,\n \"ubigeo\" real\n);\n\nQuestion: What province in Tumbes has less than 11 districts and a UBIGEO of 2401?"
},
{
"role": "assistant",
"content": "SELECT \"province\" FROM \"provinces_table\" WHERE \"districts\"<11 AND \"region\"='tumbes' AND \"ubigeo\"=2401;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"provinces_table\" (\n \"province\" text,\n \"region\" text,\n \"capital\" text,\n \"districts\" real,\n \"ubigeo\" real\n);\n\nQuestion: What is Chep\u00e9n's average UBIGEO?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"ubigeo\") FROM \"provinces_table\" WHERE \"province\"='chep\u00e9n';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"provinces_table\" (\n \"province\" text,\n \"region\" text,\n \"capital\" text,\n \"districts\" real,\n \"ubigeo\" real\n);\n\nQuestion: What is the region for Chep\u00e9n with 3 districts?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"provinces_table\" WHERE \"districts\"=3 AND \"capital\"='chep\u00e9n';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"valles\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" real,\n \"year_named\" real\n);\n\nQuestion: What is the Diameter (km) of the Valle with a Longitude of 152.5e named before 1997?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"diameter_km\") FROM \"valles\" WHERE \"longitude\"='152.5e' AND \"year_named\"<1997;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"valles\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" real,\n \"year_named\" real\n);\n\nQuestion: What is the Year named of the Ganga Valles?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year_named\") FROM \"valles\" WHERE \"name\"='ganga valles';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"valles\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" real,\n \"year_named\" real\n);\n\nQuestion: What is the Latitude of the Alajen Vallis named after 1997?"
},
{
"role": "assistant",
"content": "SELECT \"latitude\" FROM \"valles\" WHERE \"year_named\">1997 AND \"name\"='alajen vallis';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"releases\" (\n \"cat_num\" text,\n \"artist\" text,\n \"title\" text,\n \"release_date\" text,\n \"format\" text,\n \"other_information\" text\n);\n\nQuestion: What is the release date with par116 as the cat. #?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"releases\" WHERE \"cat_num\"='par116';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"releases\" (\n \"cat_num\" text,\n \"artist\" text,\n \"title\" text,\n \"release_date\" text,\n \"format\" text,\n \"other_information\" text\n);\n\nQuestion: What is the title released on 24 July 2005?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"releases\" WHERE \"release_date\"='24 july 2005';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Record, when High Points is \"Thaddeus Young (19)\", and when Team is \"@ Orlando\"?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='thaddeus young (19)' AND \"team\"='@ orlando';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is High Rebounds, when Location Attendance is \"Time Warner Cable Arena 10,848\"?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"location_attendance\"='time warner cable arena 10,848';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gains_holds_and_losses_by_party\" (\n \"party\" text,\n \"seats_dissol\" real,\n \"seats_2012\" real,\n \"gains\" real,\n \"holds\" real,\n \"losses\" real,\n \"net_change\" text\n);\n\nQuestion: Can you tell me the lowest Losses that has the Gains smaller than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"losses\") FROM \"gains_holds_and_losses_by_party\" WHERE \"gains\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: what is the record when marc gasol (8) had the high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_rebounds\"='marc gasol (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 \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: what is the score on march 8?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='march 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 \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: who had the high assists on march 30?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='march 30';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stadiums_and_locations\" (\n \"team\" text,\n \"location\" text,\n \"venue\" text,\n \"capacity\" real,\n \"avg_attendance\" real\n);\n\nQuestion: Which location has a capacity greater than 51,500?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"stadiums_and_locations\" WHERE \"capacity\">'51,500';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Who was the rider who had less than 30 laps, ended in an accident with a car manufactured by yamaha on a grid larger than 3?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"moto_gp_classification\" WHERE \"laps\"<30 AND \"manufacturer\"='yamaha' AND \"time\"='accident' AND \"grid\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Who was the manufacturer for the race on grid 12?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"moto_gp_classification\" WHERE \"grid\"=12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"moto_gp_classification\" WHERE \"laps\"<9 AND \"rider\"='dani pedrosa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: How many laps did the driver with the yamaha manufacturer go on grid 3?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"moto_gp_classification\" WHERE \"manufacturer\"='yamaha' AND \"grid\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"21st_century_comeback\" (\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"score\" text,\n \"site\" text,\n \"city\" text\n);\n\nQuestion: What is the time in Baltimore?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"21st_century_comeback\" WHERE \"city\"='baltimore';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"21st_century_comeback\" (\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"score\" text,\n \"site\" text,\n \"city\" text\n);\n\nQuestion: What date was the score 1-8?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"21st_century_comeback\" WHERE \"score\"='1-8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the event where the opponent was Chris Barden?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='chris barden';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_26_18_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Surface of the Court in Napoli?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_26_18_8\" WHERE \"tournament\"='napoli';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_26_18_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Outcome of the game with a Score of 6\u20134, 6\u20134?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_26_18_8\" WHERE \"score\"='6\u20134, 6\u20134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_26_18_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Outcome of the game against Frederic Jeanclaude?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_26_18_8\" WHERE \"opponent\"='frederic jeanclaude';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_26_18_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Opponent in a game with a Score of 6\u20132, 6\u20132?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_26_18_8\" WHERE \"score\"='6\u20132, 6\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_26_18_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Surface of the court against Ivo Klec with a Score of 6\u20133, 6\u20133?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_26_18_8\" WHERE \"opponent\"='ivo klec' AND \"score\"='6\u20133, 6\u20133';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Who was the player with a score of 70-69=139?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"score\"='70-69=139';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country did Bart Bryant with a score of 69-70=139 belong to?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='69-70=139' AND \"player\"='bart bryant';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the country that the player with a score of 70-69=139 from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='70-69=139';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: In what place did the player with a score of 66-67=133 come in?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='66-67=133';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country was the player from who placed t3 with a score of 70-68=138?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t3' AND \"score\"='70-68=138';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the score for the player from Scotland?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"country\"='scotland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What week had a game that was played on November 11, 1962?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"date\"='november 11, 1962';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_female_characters_rankings\" (\n \"year\" real,\n \"character\" text,\n \"title\" text,\n \"author\" text,\n \"artist\" text,\n \"imprint\" text\n);\n\nQuestion: Who is the author of Bludgeoning Angel Dokuro-Chan?"
},
{
"role": "assistant",
"content": "SELECT \"author\" FROM \"top_10_female_characters_rankings\" WHERE \"title\"='bludgeoning angel dokuro-chan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_departure\" text,\n \"incoming_manager\" text,\n \"date_hired\" text,\n \"position_in_table\" text\n);\n\nQuestion: What was the manner of departure for the outgoing manager, miguel brindisi?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='miguel brindisi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_departure\" text,\n \"incoming_manager\" text,\n \"date_hired\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who was the outgoing manager for the team, necaxa?"
},
{
"role": "assistant",
"content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"team\"='necaxa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"german_cup_finals_under_the_gauliga_syst\" (\n \"year\" real,\n \"winner\" text,\n \"finalist\" text,\n \"result\" text,\n \"date\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the winner when the finalist was fsv frankfurt?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"german_cup_finals_under_the_gauliga_syst\" WHERE \"finalist\"='fsv frankfurt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"german_cup_finals_under_the_gauliga_syst\" (\n \"year\" real,\n \"winner\" text,\n \"finalist\" text,\n \"result\" text,\n \"date\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the finalist when the winner was First Vienna FC?"
},
{
"role": "assistant",
"content": "SELECT \"finalist\" FROM \"german_cup_finals_under_the_gauliga_syst\" WHERE \"winner\"='first vienna fc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How did the manager replaced by Wolfgang Frank depart?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"replaced_by\"='wolfgang frank';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was hired to fill the spot that became vacant on 3 March 2009?"
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='3 march 2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What is the name of the person that was appointed on 13 May 2009?"
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='13 may 2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How did the manager replaced by Michael Oenning depart?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"replaced_by\"='michael oenning';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What is the name of the manager that was replaced by Michael Oenning?"
},
{
"role": "assistant",
"content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"replaced_by\"='michael oenning';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.