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 \"see_also\" (\n \"volume_issue\" text,\n \"issue_date\" text,\n \"weeks_on_numbe_one\" text,\n \"song\" text,\n \"artist_s\" text\n);\n\nQuestion: Which song is from Volume:Issue 64:11-12?"
},
{
"role": "assistant",
"content": "SELECT \"song\" FROM \"see_also\" WHERE \"volume_issue\"='64:11-12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"volume_issue\" text,\n \"issue_date\" text,\n \"weeks_on_numbe_one\" text,\n \"song\" text,\n \"artist_s\" text\n);\n\nQuestion: Which Artist's song is listed as \" missing \"?"
},
{
"role": "assistant",
"content": "SELECT \"artist_s\" FROM \"see_also\" WHERE \"song\"='\\\" missing \\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"volume_issue\" text,\n \"issue_date\" text,\n \"weeks_on_numbe_one\" text,\n \"song\" text,\n \"artist_s\" text\n);\n\nQuestion: Which song is from Volume:Issue 63:5?"
},
{
"role": "assistant",
"content": "SELECT \"song\" FROM \"see_also\" WHERE \"volume_issue\"='63:5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"volume_issue\" text,\n \"issue_date\" text,\n \"weeks_on_numbe_one\" text,\n \"song\" text,\n \"artist_s\" text\n);\n\nQuestion: Which song is linked to Volume:Issue 64:14-18?"
},
{
"role": "assistant",
"content": "SELECT \"song\" FROM \"see_also\" WHERE \"volume_issue\"='64:14-18';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score_1\" text,\n \"comp\" text,\n \"match_report\" text\n);\n\nQuestion: What is the match report of the match on 20 August?"
},
{
"role": "assistant",
"content": "SELECT \"match_report\" FROM \"national_team\" WHERE \"date\"='20 august';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"animation_channels\" (\n \"name\" text,\n \"hanzi\" text,\n \"origin\" text,\n \"launch\" real,\n \"owner\" text\n);\n\nQuestion: What is the origin for the launch taking place in 2010?"
},
{
"role": "assistant",
"content": "SELECT \"origin\" FROM \"animation_channels\" WHERE \"launch\"=2010;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"animation_channels\" (\n \"name\" text,\n \"hanzi\" text,\n \"origin\" text,\n \"launch\" real,\n \"owner\" text\n);\n\nQuestion: What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?"
},
{
"role": "assistant",
"content": "SELECT \"origin\" FROM \"animation_channels\" WHERE \"owner\"='hunan broadcasting system (hbs)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: If the college is Trinity, what position is listed?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"college\"='trinity';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many picks did the College of USC wind up getting?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pick_num\") FROM \"nfl_draft\" WHERE \"college\"='usc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: For Pick #323, which round is it?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"nfl_draft\" WHERE \"pick_num\"=323;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_margin_of_runs_victory\" (\n \"score\" text,\n \"opposition\" text,\n \"venue\" text,\n \"city\" text,\n \"year\" real\n);\n\nQuestion: What score has amblecote as the venue?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"largest_margin_of_runs_victory\" WHERE \"venue\"='amblecote';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_margin_of_runs_victory\" (\n \"score\" text,\n \"opposition\" text,\n \"venue\" text,\n \"city\" text,\n \"year\" real\n);\n\nQuestion: What city has riverside ground as the venue, with a year prior to 1998?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"largest_margin_of_runs_victory\" WHERE \"venue\"='riverside ground' AND \"year\"<1998;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_margin_of_runs_victory\" (\n \"score\" text,\n \"opposition\" text,\n \"venue\" text,\n \"city\" text,\n \"year\" real\n);\n\nQuestion: What is the lowest year that has chester-le-street as the city, with 345 runs as the score?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"largest_margin_of_runs_victory\" WHERE \"city\"='chester-le-street' AND \"score\"='345 runs';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_margin_of_runs_victory\" (\n \"score\" text,\n \"opposition\" text,\n \"venue\" text,\n \"city\" text,\n \"year\" real\n);\n\nQuestion: What year has 385 runs as the score?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"largest_margin_of_runs_victory\" WHERE \"score\"='385 runs';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_margin_of_runs_victory\" (\n \"score\" text,\n \"opposition\" text,\n \"venue\" text,\n \"city\" text,\n \"year\" real\n);\n\nQuestion: What score has 1998 as the year?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"largest_margin_of_runs_victory\" WHERE \"year\"=1998;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"villach\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the 2nd (m) value for Gregor Schlierenzauer?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2nd_m\") FROM \"villach\" WHERE \"name\"='gregor schlierenzauer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What is the Date of the tournament with a score of 199 (\u201317)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"score\"='199 (\u201317)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What was the amount of the 1st prize when paul azinger (9) was the winner?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"1st_prize\") FROM \"tournament_results\" WHERE \"winner\"='paul azinger (9)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What is the name of the winner of the tour championship tournament?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"tournament\"='the tour championship';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What is the Date of the at&t pebble beach national pro-am Tournament?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"tournament\"='at&t pebble beach national pro-am';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008\" (\n \"date\" text,\n \"site\" text,\n \"sport\" text,\n \"winning_team\" text,\n \"series\" text\n);\n\nQuestion: Which Site has a Sport of w swimming?"
},
{
"role": "assistant",
"content": "SELECT \"site\" FROM \"2007_2008\" WHERE \"sport\"='w swimming';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008\" (\n \"date\" text,\n \"site\" text,\n \"sport\" text,\n \"winning_team\" text,\n \"series\" text\n);\n\nQuestion: Which Series are on september 15, 2007?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"2007_2008\" WHERE \"date\"='september 15, 2007';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defensive_player_of_the_year\" (\n \"season\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text\n);\n\nQuestion: What position did the 2010-11 USA \u00edr player have?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"defensive_player_of_the_year\" WHERE \"nationality\"='usa' AND \"team\"='\u00edr' AND \"season\"='2010-11';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defensive_player_of_the_year\" (\n \"season\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text\n);\n\nQuestion: What position did the kr team player play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"defensive_player_of_the_year\" WHERE \"team\"='kr';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defensive_player_of_the_year\" (\n \"season\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text\n);\n\nQuestion: What team has Steinar Kaldal, a guard / forward?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"defensive_player_of_the_year\" WHERE \"position\"='guard / forward' AND \"player\"='steinar kaldal';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defensive_player_of_the_year\" (\n \"season\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text\n);\n\nQuestion: What team did the 2003-04 winner play for?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"defensive_player_of_the_year\" WHERE \"season\"='2003-04';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: Which catalogue is on 12\" vinyl?"
},
{
"role": "assistant",
"content": "SELECT \"catalogue\" FROM \"release_history\" WHERE \"format\"='12\\\" vinyl';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: Which region has and eyeball label and catalogue 7200222?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"release_history\" WHERE \"label\"='eyeball' AND \"catalogue\"='7200222';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: Which catalogue is from Japan?"
},
{
"role": "assistant",
"content": "SELECT \"catalogue\" FROM \"release_history\" WHERE \"region\"='japan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What is the format for the United States dated July 23, 2002?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_history\" WHERE \"region\"='united states' AND \"date\"='july 23, 2002';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What is the label for catalogue 7200222?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"catalogue\"='7200222';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_roster\" (\n \"surname\" text,\n \"first\" text,\n \"d_o_b\" text,\n \"uninum\" real,\n \"bats\" text,\n \"throws\" text,\n \"position\" text\n);\n\nQuestion: What is Marc's Surname?"
},
{
"role": "assistant",
"content": "SELECT \"surname\" FROM \"player_roster\" WHERE \"first\"='marc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_roster\" (\n \"surname\" text,\n \"first\" text,\n \"d_o_b\" text,\n \"uninum\" real,\n \"bats\" text,\n \"throws\" text,\n \"position\" text\n);\n\nQuestion: What is the highest uni# of the person with the first name Todd?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"uninum\") FROM \"player_roster\" WHERE \"first\"='todd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_roster\" (\n \"surname\" text,\n \"first\" text,\n \"d_o_b\" text,\n \"uninum\" real,\n \"bats\" text,\n \"throws\" text,\n \"position\" text\n);\n\nQuestion: Which position does #14 play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"player_roster\" WHERE \"uninum\"=14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_roster\" (\n \"surname\" text,\n \"first\" text,\n \"d_o_b\" text,\n \"uninum\" real,\n \"bats\" text,\n \"throws\" text,\n \"position\" text\n);\n\nQuestion: Which does the lhp player with the first name lachlan bat?"
},
{
"role": "assistant",
"content": "SELECT \"bats\" FROM \"player_roster\" WHERE \"position\"='lhp' AND \"first\"='lachlan';"
}
] |
[
{
"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 \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How many were in Attendance on December 11, 1954?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"date\"='december 11, 1954';"
}
] |
[
{
"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 \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: In what Week were there more than 23,875 in Attendance at Memorial Stadium with Detroit Lions as the Opponent?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"attendance\">'23,875' AND \"game_site\"='memorial stadium' AND \"opponent\"='detroit lions';"
}
] |
[
{
"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 \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the Result on Week 3?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"=3;"
}
] |
[
{
"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 \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: On what Week was the Detroit Lions the Opponent?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"schedule\" WHERE \"opponent\"='detroit lions';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What was the rangers' record on Game 14?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"game\"=14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"schedule_and_results\" WHERE \"record\"='11-11-1' AND \"november\">29;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"nationality\" text,\n \"position\" text,\n \"years\" text,\n \"appearances\" real,\n \"goals\" real\n);\n\nQuestion: What's Francis Harris' position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"list\" WHERE \"name\"='francis harris';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_places\" (\n \"place\" text,\n \"code\" real,\n \"area_km_2\" real,\n \"population\" real,\n \"most_spoken_language\" text\n);\n\nQuestion: Which place has more area (km 2) than 34.42?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"main_places\" WHERE \"area_km_2\">34.42;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"groups_all_around\" (\n \"place\" real,\n \"nation\" text,\n \"6_ropes\" real,\n \"4_hoops_2_clubs\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"4_hoops_2_clubs\") FROM \"groups_all_around\" WHERE \"total\"=38.25;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"groups_all_around\" (\n \"place\" real,\n \"nation\" text,\n \"6_ropes\" real,\n \"4_hoops_2_clubs\" real,\n \"total\" real\n);\n\nQuestion: What is the total of Greece, which is placed below 8?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"groups_all_around\" WHERE \"nation\"='greece' AND \"place\">8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"groups_all_around\" (\n \"place\" real,\n \"nation\" text,\n \"6_ropes\" real,\n \"4_hoops_2_clubs\" real,\n \"total\" real\n);\n\nQuestion: What is the palce number of Russia, which has 6 ropes of 19.425 and a total less than 38.925?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"place\") FROM \"groups_all_around\" WHERE \"6_ropes\"=19.425 AND \"nation\"='russia' AND \"total\"<38.925;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"groups_all_around\" (\n \"place\" real,\n \"nation\" text,\n \"6_ropes\" real,\n \"4_hoops_2_clubs\" real,\n \"total\" real\n);\n\nQuestion: What is the place of the nation with a total greater than 37.85 and 4 hoops, 2 clubs of 19.15?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"place\") FROM \"groups_all_around\" WHERE \"total\">37.85 AND \"4_hoops_2_clubs\"=19.15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"groups_all_around\" (\n \"place\" real,\n \"nation\" text,\n \"6_ropes\" real,\n \"4_hoops_2_clubs\" real,\n \"total\" real\n);\n\nQuestion: What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"4_hoops_2_clubs\") FROM \"groups_all_around\" WHERE \"nation\"='belarus' AND \"total\"<38.25;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"groups_all_around\" (\n \"place\" real,\n \"nation\" text,\n \"6_ropes\" real,\n \"4_hoops_2_clubs\" real,\n \"total\" real\n);\n\nQuestion: What is the total of the nation with 19.025 4 hoops, 2 clubs?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"groups_all_around\" WHERE \"4_hoops_2_clubs\"=19.025;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"points\" real,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which Nationality has a Name of janne happonen?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"kuopio\" WHERE \"name\"='janne happonen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"points\" real,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which Nationality has a Rank larger than 3, and a Name of tom hilde?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"kuopio\" WHERE \"rank\">3 AND \"name\"='tom hilde';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"points\" real,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which Name has a Nationality of nor, and Points of 136?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"kuopio\" WHERE \"nationality\"='nor' AND \"points\"=136;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"points\" real,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which Points have a 1st (m) smaller than 132.5, and a Nationality of aut, and a Rank larger than 2?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"kuopio\" WHERE \"1st_m\"<132.5 AND \"nationality\"='aut' AND \"rank\">2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"points\" real,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which Points have a Rank of 3, and a 1st (m) smaller than 132?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"kuopio\" WHERE \"rank\"=3 AND \"1st_m\"<132;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"places\" real\n);\n\nQuestion: What was the average rank of Wolfgang Schwarz with greater than 13 places?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"rank\") FROM \"men\" WHERE \"name\"='wolfgang schwarz' AND \"places\">13;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"places\" real\n);\n\nQuestion: What nation had 1399.3 points?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"men\" WHERE \"points\"=1399.3;"
}
] |
[
{
"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 lowest round number for the fight that had a time of 1:09?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"time\"='1:09';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jacksonville_jaguars_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How much Overall has a Pick # smaller than 20, and a Round smaller than 6?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"overall\") FROM \"jacksonville_jaguars_draft_history\" WHERE \"pick_num\"<20 AND \"round\"<6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jacksonville_jaguars_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"round\") FROM \"jacksonville_jaguars_draft_history\" WHERE \"pick_num\">20 AND \"college\"='virginia' AND \"overall\">127;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jacksonville_jaguars_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many picks does chad owens have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pick_num\") FROM \"jacksonville_jaguars_draft_history\" WHERE \"name\"='chad owens';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the lowest value in April with New York Rangers as opponent for a game less than 82?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"april\") FROM \"regular_season\" WHERE \"opponent\"='new york rangers' AND \"game\"<82;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the highest value in April with a record of 35\u201337\u201311 and more than 81 points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"april\") FROM \"regular_season\" WHERE \"record\"='35\u201337\u201311' AND \"points\">81;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the record of the game played at home by the Blues where the attendance was larger than 4,719?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"attendance\">'4,719' AND \"home\"='blues';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the name of the winner when the Score was 274 (\u201314) in tennessee?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"score\"='274 (\u201314)' AND \"location\"='tennessee';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the Score when the 1st prize was 63,000, and a Winner of keith fergus (1)?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"tournament_results\" WHERE \"1st_prize\"='63,000' AND \"winner\"='keith fergus (1)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the winners name at the western open?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"tournament\"='western open';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the score of the Tournament named danny thomas memphis classic?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"tournament_results\" WHERE \"tournament\"='danny thomas memphis classic';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the name of the Winner in north carolina at the greater greensboro open?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"location\"='north carolina' AND \"tournament\"='greater greensboro open';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the Location of the byron nelson golf classic?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"tournament_results\" WHERE \"tournament\"='byron nelson golf classic';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_of_the_week\" (\n \"week\" text,\n \"division\" text,\n \"position\" text,\n \"player\" text,\n \"school\" text\n);\n\nQuestion: What is the position of player Tiffany Garofano (2)?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"players_of_the_week\" WHERE \"player\"='tiffany garofano (2)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_of_the_week\" (\n \"week\" text,\n \"division\" text,\n \"position\" text,\n \"player\" text,\n \"school\" text\n);\n\nQuestion: What is the week with a school that is ball state?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"players_of_the_week\" WHERE \"school\"='ball state';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_of_indian_teams\" (\n \"club\" text,\n \"wins\" real,\n \"last_win\" text,\n \"runners_up\" real,\n \"last_runners_up\" real\n);\n\nQuestion: What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"last_runners_up\") FROM \"performance_of_indian_teams\" WHERE \"last_win\"='1999' AND \"runners_up\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_of_indian_teams\" (\n \"club\" text,\n \"wins\" real,\n \"last_win\" text,\n \"runners_up\" real,\n \"last_runners_up\" real\n);\n\nQuestion: What is the number of Last Runners-up that has the club name of dempo sc?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"last_runners_up\") FROM \"performance_of_indian_teams\" WHERE \"club\"='dempo sc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Position has a Round larger than 6, and a Player of neil pilon?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"round\">6 AND \"player\"='neil pilon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Nationality has a Player of rudy poeschek?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"player\"='rudy poeschek';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Position has a Player of steve nemeth?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"player\"='steve nemeth';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Position has a Nationality of canada, and a Player of pat janostin?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"nationality\"='canada' AND \"player\"='pat janostin';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_runner_ups_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the score of the match on April 23, 2007?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_runner_ups_6\" WHERE \"date\"='april 23, 2007';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Which Date has a Game site of shea stadium, and a Week of 5?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='shea stadium' AND \"week\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24\u201323?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"week\"<9 AND \"result\"='l 24\u201323';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"opponent\"='baltimore colts' AND \"attendance\"<'55,137';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"game\") FROM \"regular_season\" WHERE \"points\"=53 AND \"opponent\"='@ minnesota north stars' AND \"december\">30;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which December has a Record of 21\u20136\u20135?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"december\") FROM \"regular_season\" WHERE \"record\"='21\u20136\u20135';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Points have an Opponent of @ pittsburgh penguins?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"regular_season\" WHERE \"opponent\"='@ pittsburgh penguins';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_list_of_projects_for_2010\" (\n \"country\" text,\n \"project_name\" text,\n \"year_startup\" text,\n \"operator\" text,\n \"peak\" text\n);\n\nQuestion: What year was the startup for the Project Named of taq taq ph 2?"
},
{
"role": "assistant",
"content": "SELECT \"year_startup\" FROM \"detailed_list_of_projects_for_2010\" WHERE \"project_name\"='taq taq ph 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_list_of_projects_for_2010\" (\n \"country\" text,\n \"project_name\" text,\n \"year_startup\" text,\n \"operator\" text,\n \"peak\" text\n);\n\nQuestion: What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?"
},
{
"role": "assistant",
"content": "SELECT \"operator\" FROM \"detailed_list_of_projects_for_2010\" WHERE \"peak\"='90' AND \"year_startup\"='2010' AND \"project_name\"='aosp expansion 1 (jackpine ph 1a)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_list_of_projects_for_2010\" (\n \"country\" text,\n \"project_name\" text,\n \"year_startup\" text,\n \"operator\" text,\n \"peak\" text\n);\n\nQuestion: What country has peak 20 and a project named jarn yabhour; ramhan?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"detailed_list_of_projects_for_2010\" WHERE \"peak\"='20' AND \"project_name\"='jarn yabhour; ramhan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" real,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"competition\" text\n);\n\nQuestion: How much Attendance has an Opponent of swindon wildcats?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"january\" WHERE \"opponent\"='swindon wildcats';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" real,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"competition\" text\n);\n\nQuestion: Which Attendance is the lowest one that has a Venue of away, and a Date of 19?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"january\" WHERE \"venue\"='away' AND \"date\"=19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" real,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"competition\" text\n);\n\nQuestion: Which Venue has a Result of won 5-4?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"january\" WHERE \"result\"='won 5-4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"structures_between_metres_ft_and_metres_\" (\n \"planned_pinnacle_height\" text,\n \"expected_year_of_completion\" real,\n \"structural_type\" text,\n \"country\" text,\n \"town\" text\n);\n\nQuestion: what country has dubai"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"structures_between_metres_ft_and_metres_\" WHERE \"town\"='dubai';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"structures_between_metres_ft_and_metres_\" (\n \"planned_pinnacle_height\" text,\n \"expected_year_of_completion\" real,\n \"structural_type\" text,\n \"country\" text,\n \"town\" text\n);\n\nQuestion: what country is dubai in"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"structures_between_metres_ft_and_metres_\" WHERE \"town\"='dubai';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What home team has june 22 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"series_summary\" WHERE \"date\"='june 22';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What road team has 86-84 as the result?"
},
{
"role": "assistant",
"content": "SELECT \"road_team\" FROM \"series_summary\" WHERE \"result\"='86-84';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What road team has 91-82 as the result?"
},
{
"role": "assistant",
"content": "SELECT \"road_team\" FROM \"series_summary\" WHERE \"result\"='91-82';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: Which game has houston as the road team, and june 15 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"series_summary\" WHERE \"road_team\"='houston' AND \"date\"='june 15';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"player\" text,\n \"hometown\" text,\n \"occupation\" text,\n \"education\" text,\n \"game_status\" text\n);\n\nQuestion: What is listed under occupation for someone from Santa Monica, California?"
},
{
"role": "assistant",
"content": "SELECT \"occupation\" FROM \"contestants\" WHERE \"hometown\"='santa monica, california';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"player\" text,\n \"hometown\" text,\n \"occupation\" text,\n \"education\" text,\n \"game_status\" text\n);\n\nQuestion: For natives of St. Louis, Missouri, what was listed under education?"
},
{
"role": "assistant",
"content": "SELECT \"education\" FROM \"contestants\" WHERE \"hometown\"='st. louis, missouri';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"player\" text,\n \"hometown\" text,\n \"occupation\" text,\n \"education\" text,\n \"game_status\" text\n);\n\nQuestion: When the occupation was utility worker on-air talent, what was the game status?"
},
{
"role": "assistant",
"content": "SELECT \"game_status\" FROM \"contestants\" WHERE \"occupation\"='utility worker on-air talent';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_tournament_performance_timeli\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"win_pct\" real\n);\n\nQuestion: Which 2005 has a 2004 of 3\u20132?"
},
{
"role": "assistant",
"content": "SELECT \"2005\" FROM \"grand_slam_tournament_performance_timeli\" WHERE \"2004\"='3\u20132';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.