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 \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What Height has a 2008 Club of Itas Diatec?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='itas diatec';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What Name has a 2008 Club of Sisley Treviso?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='sisley treviso';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What Weight has a 2008 Club of Acqua Paradiso Gabeca?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='acqua paradiso gabeca';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"namur\" (\n \"location\" text,\n \"name_of_mill\" text,\n \"type\" text,\n \"built\" text,\n \"notes\" text\n);\n\nQuestion: What are the Notes of the Mill Built in the 19th Century?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"namur\" WHERE \"built\"='19th century';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"namur\" (\n \"location\" text,\n \"name_of_mill\" text,\n \"type\" text,\n \"built\" text,\n \"notes\" text\n);\n\nQuestion: What is the Type of Mill at Molen de Stud?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"namur\" WHERE \"name_of_mill\"='molen de stud';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"namur\" (\n \"location\" text,\n \"name_of_mill\" text,\n \"type\" text,\n \"built\" text,\n \"notes\" text\n);\n\nQuestion: What is the Name of the Mill Built in 1802?" }, { "role": "assistant", "content": "SELECT \"name_of_mill\" FROM \"namur\" WHERE \"built\"='1802';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"namur\" (\n \"location\" text,\n \"name_of_mill\" text,\n \"type\" text,\n \"built\" text,\n \"notes\" text\n);\n\nQuestion: What is the Location of the Mill Built in the Early 19th Century?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"namur\" WHERE \"built\"='early 19th century';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record for the game played by the home team San Francisco 49ers and visitor Philadelphia Eagles?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"home\"='san francisco 49ers' AND \"visitor\"='philadelphia eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the home team for the game with attendance larger than 59,064 and a record of 7-4-0?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"schedule\" WHERE \"attendance\">'59,064' AND \"record\"='7-4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the record for the game played on September 27?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"date\"='september 27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"language\" text,\n \"artist\" text,\n \"song\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: What is the highest place of a song by Henri D\u00e8s that has fewer than 8 points?" }, { "role": "assistant", "content": "SELECT MAX(\"place\") FROM \"results\" WHERE \"artist\"='henri d\u00e8s' AND \"points\"<8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"team_1\" text,\n \"result\" text,\n \"team_2\" text,\n \"ground\" text\n);\n\nQuestion: What team was 2 on November 22, 2008 when the result was 1-0?" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"results\" WHERE \"date\"='november 22, 2008' AND \"result\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"team_1\" text,\n \"result\" text,\n \"team_2\" text,\n \"ground\" text\n);\n\nQuestion: What team was 2 when Tatung was team 1 at National Pei Men Senior High School?" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"results\" WHERE \"team_1\"='tatung' AND \"ground\"='national pei men senior high school';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"team_1\" text,\n \"result\" text,\n \"team_2\" text,\n \"ground\" text\n);\n\nQuestion: Where was the game played that has a result of 0-4?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"results\" WHERE \"result\"='0-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"team_1\" text,\n \"result\" text,\n \"team_2\" text,\n \"ground\" text\n);\n\nQuestion: What team is 2 when 1 is Taipower and the result is 0-1?" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"results\" WHERE \"team_1\"='taipower' AND \"result\"='0-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"team_1\" text,\n \"result\" text,\n \"team_2\" text,\n \"ground\" text\n);\n\nQuestion: What team is 2 when the game result is 0-4 at Pailing Sport Park?" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"results\" WHERE \"ground\"='pailing sport park' AND \"result\"='0-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"draw\" real,\n \"language\" text,\n \"artist\" text,\n \"english_translation\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"results\" WHERE \"draw\"<12 AND \"artist\"='philipp kirkorov' AND \"place\"<17;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"draw\" real,\n \"language\" text,\n \"artist\" text,\n \"english_translation\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: What is the total ranking when there are less than 16 draws, less than 1 point, and the English translation is in love with you?" }, { "role": "assistant", "content": "SELECT SUM(\"place\") FROM \"results\" WHERE \"draw\"<16 AND \"english_translation\"='in love with you' AND \"points\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"draw\" real,\n \"language\" text,\n \"artist\" text,\n \"english_translation\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?" }, { "role": "assistant", "content": "SELECT MAX(\"draw\") FROM \"results\" WHERE \"points\">31 AND \"place\">6 AND \"english_translation\"='listen to me';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wisconsin_counties_ranked_by_per_capita_\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What was the population of Green County?" }, { "role": "assistant", "content": "SELECT MIN(\"population\") FROM \"wisconsin_counties_ranked_by_per_capita_\" WHERE \"county\"='green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wisconsin_counties_ranked_by_per_capita_\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: Which county had 6,807 households and a median family income of $49,865?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"wisconsin_counties_ranked_by_per_capita_\" WHERE \"number_of_households\">'6,807' AND \"median_family_income\"='$49,865';" } ]
[ { "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 \"date\" text,\n \"opponent\" 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 was the score of the game against Minnesota?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"opponent\"='minnesota';" } ]
[ { "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 \"date\" text,\n \"opponent\" 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 player had the high point on July 7?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"regular_season\" WHERE \"date\"='july 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What's the format of the single, I Can't Stay?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"singles\" WHERE \"single\"='i can''t stay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What's the Backed after 2008 with a label of Wild World?" }, { "role": "assistant", "content": "SELECT \"backed_with\" FROM \"singles\" WHERE \"record_label\"='wild world' AND \"date\">2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What's the date for Details of 1000 copies?" }, { "role": "assistant", "content": "SELECT MIN(\"date\") FROM \"singles\" WHERE \"other_details\"='1000 copies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline\" (\n \"medal_count\" real,\n \"date\" text,\n \"athlete\" text,\n \"nation\" text,\n \"sport\" text,\n \"record_medal_event\" text\n);\n\nQuestion: What nation has paavo nurmi as the athlete, with a medal count less than 12?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"timeline\" WHERE \"athlete\"='paavo nurmi' AND \"medal_count\"<12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline\" (\n \"medal_count\" real,\n \"date\" text,\n \"athlete\" text,\n \"nation\" text,\n \"sport\" text,\n \"record_medal_event\" text\n);\n\nQuestion: Which sport has 17 as the medal count?" }, { "role": "assistant", "content": "SELECT \"sport\" FROM \"timeline\" WHERE \"medal_count\"=17;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline\" (\n \"medal_count\" real,\n \"date\" text,\n \"athlete\" text,\n \"nation\" text,\n \"sport\" text,\n \"record_medal_event\" text\n);\n\nQuestion: What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3?" }, { "role": "assistant", "content": "SELECT \"record_medal_event\" FROM \"timeline\" WHERE \"sport\"='athletics' AND \"athlete\"='robert garrett' AND \"medal_count\"<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 \"attendance\" text\n);\n\nQuestion: What is the Opponent of the game in Week 3?" }, { "role": "assistant", "content": "SELECT \"opponent\" 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 \"attendance\" text\n);\n\nQuestion: What is the Attendance of the game on December 12, 2004?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='december 12, 2004';" } ]
[ { "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 Attendance of the game against Jacksonville Jaguars?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='jacksonville jaguars';" } ]
[ { "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\" text\n);\n\nQuestion: Which Score has a Money ( \u00a3 ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"money\"='90,400' AND \"country\"='south africa' AND \"player\"='thomas aiken';" } ]
[ { "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\" text\n);\n\nQuestion: How much Money( \u00a3 )australia has ?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_round\" WHERE \"country\"='australia';" } ]
[ { "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\" text\n);\n\nQuestion: Count the Money ( \u00a3 ) of south africa with a To par of +1, and a Player of ernie els?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_round\" WHERE \"country\"='south africa' AND \"to_par\"='+1' AND \"player\"='ernie els';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: Where has a Player of tom watson?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_round\" WHERE \"player\"='tom watson';" } ]
[ { "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\" text\n);\n\nQuestion: Which Score has a To par of +1 in sweden?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"to_par\"='+1' AND \"country\"='sweden';" } ]
[ { "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\" text\n);\n\nQuestion: Which To par is of thomas aiken?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"player\"='thomas aiken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"rank\" real,\n \"country_region\" text,\n \"expenditures_on_r_d_billions_of_us_ppp\" real,\n \"pct_of_gdp_ppp\" text,\n \"year\" real\n);\n\nQuestion: What is the average expenditures on R&D for Croatia after 2007?" }, { "role": "assistant", "content": "SELECT AVG(\"expenditures_on_r_d_billions_of_us_ppp\") FROM \"list\" WHERE \"country_region\"='croatia' AND \"year\">2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"rank\" real,\n \"country_region\" text,\n \"expenditures_on_r_d_billions_of_us_ppp\" real,\n \"pct_of_gdp_ppp\" text,\n \"year\" real\n);\n\nQuestion: What is the lowest expenditures on R&D for Poland after 2011?" }, { "role": "assistant", "content": "SELECT MIN(\"expenditures_on_r_d_billions_of_us_ppp\") FROM \"list\" WHERE \"country_region\"='poland' AND \"year\">2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opposition\" text,\n \"score\" text\n);\n\nQuestion: What is the Opposition in the First Round of the UEFA Cup with a Score of 3\u20131 (h), 2\u20130 (a)?" }, { "role": "assistant", "content": "SELECT \"opposition\" FROM \"matches\" WHERE \"round\"='first round' AND \"competition\"='uefa cup' AND \"score\"='3\u20131 (h), 2\u20130 (a)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opposition\" text,\n \"score\" text\n);\n\nQuestion: What is the Season of the game with a Score of 0\u20132 (a), 3\u20131 (h)?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"matches\" WHERE \"score\"='0\u20132 (a), 3\u20131 (h)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text,\n \"year_left\" real,\n \"conference_joined\" text\n);\n\nQuestion: Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"former_members\" WHERE \"year_joined\"=1966 AND \"previous_conference\"='noble county' AND \"school\"='wawaka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text,\n \"year_left\" real,\n \"conference_joined\" text\n);\n\nQuestion: How much Year Left has a Location of howe?" }, { "role": "assistant", "content": "SELECT SUM(\"year_left\") FROM \"former_members\" WHERE \"location\"='howe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text,\n \"year_left\" real,\n \"conference_joined\" text\n);\n\nQuestion: Which School has a Year Left of 1966, and a Mascot of indians?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"former_members\" WHERE \"year_left\"=1966 AND \"mascot\"='indians';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_elections\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: Who was the Elevator of Giacomo Colonna?" }, { "role": "assistant", "content": "SELECT \"elevator\" FROM \"cardinal_elections\" WHERE \"elector\"='giacomo colonna';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_elections\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio?" }, { "role": "assistant", "content": "SELECT \"elevated\" FROM \"cardinal_elections\" WHERE \"elevator\"='nicholas iii' AND \"cardinalatial_order_and_title\"='cardinal-deacon of s. eustachio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_elections\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?" }, { "role": "assistant", "content": "SELECT \"elevated\" FROM \"cardinal_elections\" WHERE \"cardinalatial_order_and_title\"='cardinal-priest of s. pudenziana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"seasons\" (\n \"season\" text,\n \"team\" text,\n \"conference_conf\" text,\n \"division_div\" text,\n \"div_finish\" text,\n \"games_behind_gb\" text,\n \"head_coach\" text\n);\n\nQuestion: What are the games behind for the Oklahoma City Thunder division?" }, { "role": "assistant", "content": "SELECT \"games_behind_gb\" FROM \"seasons\" WHERE \"division_div\"='oklahoma city thunder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"canton\" text,\n \"highest_point\" text,\n \"highest_elevation\" text,\n \"lowest_point\" text,\n \"lowest_elevation\" text\n);\n\nQuestion: What is the highest elevation of a place where the lowest point is the Allaine River, National border?" }, { "role": "assistant", "content": "SELECT \"highest_elevation\" FROM \"references\" WHERE \"lowest_point\"='allaine river, national border';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"canton\" text,\n \"highest_point\" text,\n \"highest_elevation\" text,\n \"lowest_point\" text,\n \"lowest_elevation\" text\n);\n\nQuestion: What is the lowest elevation value whose highest point is Mont Raimeux?" }, { "role": "assistant", "content": "SELECT \"lowest_elevation\" FROM \"references\" WHERE \"highest_point\"='mont raimeux';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"canton\" text,\n \"highest_point\" text,\n \"highest_elevation\" text,\n \"lowest_point\" text,\n \"lowest_elevation\" text\n);\n\nQuestion: What rank is Vaud with the lowest point is Lake Geneva?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"references\" WHERE \"lowest_point\"='lake geneva' AND \"canton\"='vaud';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"canton\" text,\n \"highest_point\" text,\n \"highest_elevation\" text,\n \"lowest_point\" text,\n \"lowest_elevation\" text\n);\n\nQuestion: Wich rank is given to the Canton of Schaffhausen?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"references\" WHERE \"canton\"='schaffhausen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"canton\" text,\n \"highest_point\" text,\n \"highest_elevation\" text,\n \"lowest_point\" text,\n \"lowest_elevation\" text\n);\n\nQuestion: What is the highest elevation for the highest point of Schnebelhorn?" }, { "role": "assistant", "content": "SELECT \"highest_elevation\" FROM \"references\" WHERE \"highest_point\"='schnebelhorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"canton\" text,\n \"highest_point\" text,\n \"highest_elevation\" text,\n \"lowest_point\" text,\n \"lowest_elevation\" text\n);\n\nQuestion: What is the Canton of Vaud's highest point?" }, { "role": "assistant", "content": "SELECT \"highest_point\" FROM \"references\" WHERE \"canton\"='vaud';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vessels\" (\n \"vessel\" text,\n \"origin\" text,\n \"type\" text,\n \"in_service\" real,\n \"unit\" text\n);\n\nQuestion: What type of ship is a Kobben class vessel that has been in service longer than 2?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"vessels\" WHERE \"in_service\">2 AND \"vessel\"='kobben class';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vessels\" (\n \"vessel\" text,\n \"origin\" text,\n \"type\" text,\n \"in_service\" real,\n \"unit\" text\n);\n\nQuestion: What is the unit for a submarine type ship from Norway?" }, { "role": "assistant", "content": "SELECT \"unit\" FROM \"vessels\" WHERE \"type\"='submarine' AND \"origin\"='norway';" } ]
[ { "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\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the opponent with a 32-25 record?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"record\"='32-25';" } ]
[ { "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\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the location/ attendance for a 35-28 record?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='35-28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wga_awards\" (\n \"year\" real,\n \"category\" text,\n \"nominee_s\" text,\n \"episode\" text,\n \"result\" text\n);\n\nQuestion: What is the latest year when Neal Baer was a nominee, and the result was nominated?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"wga_awards\" WHERE \"result\"='nominated' AND \"nominee_s\"='neal baer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wga_awards\" (\n \"year\" real,\n \"category\" text,\n \"nominee_s\" text,\n \"episode\" text,\n \"result\" text\n);\n\nQuestion: That is the total year that Neal Baer is a nominee?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"wga_awards\" WHERE \"nominee_s\"='neal baer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wga_awards\" (\n \"year\" real,\n \"category\" text,\n \"nominee_s\" text,\n \"episode\" text,\n \"result\" text\n);\n\nQuestion: For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"wga_awards\" WHERE \"result\"='nominated' AND \"nominee_s\"='walon green, joe sachs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wga_awards\" (\n \"year\" real,\n \"category\" text,\n \"nominee_s\" text,\n \"episode\" text,\n \"result\" text\n);\n\nQuestion: Nominee Neal Baer had what result?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"wga_awards\" WHERE \"nominee_s\"='neal baer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wga_awards\" (\n \"year\" real,\n \"category\" text,\n \"nominee_s\" text,\n \"episode\" text,\n \"result\" text\n);\n\nQuestion: What episode after 1998 had John Wells as the nominee?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"wga_awards\" WHERE \"year\">1998 AND \"nominee_s\"='john wells';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"snatch\" text,\n \"shi_zhiyong_chn\" text,\n \"153kg\" text,\n \"izmir_turkey\" text\n);\n\nQuestion: Who has the world record of 153kg in the clean & jerk?" }, { "role": "assistant", "content": "SELECT \"153kg\" FROM \"records\" WHERE \"world_record\"='clean & jerk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the release date for the processor spec number SLBEQ(d0)?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"45_nm\" WHERE \"s_spec_number\"='slbeq(d0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the release date of model number CORE I7-940?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"45_nm\" WHERE \"model_number\"='core i7-940';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 \u00d7 6.4 gt/s qpi I/O?" }, { "role": "assistant", "content": "SELECT \"release_price_usd\" FROM \"45_nm\" WHERE \"i_o_bus\"='1 \u00d7 6.4 gt/s qpi' AND \"part_number_s\"='bx80601975at80601002274aa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the release price of a processor that has a frequency of 3.2 ghz and 1 \u00d7 6.4 gt/s qpi I/O?" }, { "role": "assistant", "content": "SELECT \"release_price_usd\" FROM \"45_nm\" WHERE \"frequency\"='3.2 ghz' AND \"i_o_bus\"='1 \u00d7 6.4 gt/s qpi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"licensed_titles\" (\n \"title\" text,\n \"localized_title\" text,\n \"creator\" text,\n \"years\" text,\n \"origin\" text\n);\n\nQuestion: Who is the creator of the title \uc560\uc7a5\ud310 \ud64d\ucc28\uc655\uc790, aejangpan hongchawangja?" }, { "role": "assistant", "content": "SELECT \"creator\" FROM \"licensed_titles\" WHERE \"localized_title\"='\uc560\uc7a5\ud310 \ud64d\ucc28\uc655\uc790, aejangpan hongchawangja';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"licensed_titles\" (\n \"title\" text,\n \"localized_title\" text,\n \"creator\" text,\n \"years\" text,\n \"origin\" text\n);\n\nQuestion: What is the title in English for \uc560\uc7a5\ud310 \ud64d\ucc28\uc655\uc790, aejangpan hongchawangja?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"licensed_titles\" WHERE \"localized_title\"='\uc560\uc7a5\ud310 \ud64d\ucc28\uc655\uc790, aejangpan hongchawangja';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"licensed_titles\" (\n \"title\" text,\n \"localized_title\" text,\n \"creator\" text,\n \"years\" text,\n \"origin\" text\n);\n\nQuestion: What years did \ud64d\ucc28\uc655\uc790 air?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"licensed_titles\" WHERE \"localized_title\"='\ud64d\ucc28\uc655\uc790';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"populations\" (\n \"country\" text,\n \"orphans_as_pct_of_all_children\" real,\n \"aids_orphans_as_pct_of_orphans\" real,\n \"total_orphans_total\" real,\n \"total_orphans_aids_related\" text,\n \"maternal_total\" real,\n \"maternal_aids_related\" text,\n \"paternal_total\" real,\n \"paternal_aids_related\" text,\n \"double_total\" real,\n \"double_aids_related\" text\n);\n\nQuestion: What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000?" }, { "role": "assistant", "content": "SELECT SUM(\"aids_orphans_as_pct_of_orphans\") FROM \"populations\" WHERE \"double_aids_related\"='41,000' AND \"paternal_total\">'442,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"populations\" (\n \"country\" text,\n \"orphans_as_pct_of_all_children\" real,\n \"aids_orphans_as_pct_of_orphans\" real,\n \"total_orphans_total\" real,\n \"total_orphans_aids_related\" text,\n \"maternal_total\" real,\n \"maternal_aids_related\" text,\n \"paternal_total\" real,\n \"paternal_aids_related\" text,\n \"double_total\" real,\n \"double_aids_related\" text\n);\n\nQuestion: What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000?" }, { "role": "assistant", "content": "SELECT MIN(\"total_orphans_total\") FROM \"populations\" WHERE \"total_orphans_aids_related\"='< 100' AND \"maternal_total\"<'31,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"deputy_ministers\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: What's the term start date for Meretz?" }, { "role": "assistant", "content": "SELECT \"term_start\" FROM \"deputy_ministers\" WHERE \"party\"='meretz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: How many clubs are involved when the clubs remaining are 2?" }, { "role": "assistant", "content": "SELECT SUM(\"clubs_involved\") FROM \"team_distribution\" WHERE \"clubs_remaining\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?" }, { "role": "assistant", "content": "SELECT \"new_entries_this_round\" FROM \"team_distribution\" WHERE \"leagues_entering_at_this_round\"='tff third league & turkish regional amateur league';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: What is the number of clubs remaining in the second round?" }, { "role": "assistant", "content": "SELECT MIN(\"clubs_remaining\") FROM \"team_distribution\" WHERE \"round\"='second round';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: Which round has 4 clubs involved?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"team_distribution\" WHERE \"clubs_involved\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_distribution\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" text,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?" }, { "role": "assistant", "content": "SELECT MIN(\"clubs_involved\") FROM \"team_distribution\" WHERE \"winners_from_previous_round\"='4' AND \"clubs_remaining\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Away team at the game with a Score of 4 \u2013 2?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"northern_section\" WHERE \"score\"='4 \u2013 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Tie no of the game with an Attendance of 4,658?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"northern_section\" WHERE \"attendance\"='4,658';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Home team at the Lincoln City Away game?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"northern_section\" WHERE \"away_team\"='lincoln city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Away team at the game with a Score of 1 \u2013 0 and Attendance of 1,791?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"northern_section\" WHERE \"score\"='1 \u2013 0' AND \"attendance\"='1,791';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Home team of the game with a Score of 2 \u2013 2?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"northern_section\" WHERE \"score\"='2 \u2013 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Attendance of the game with a Score of 0 \u2013 0?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"northern_section\" WHERE \"score\"='0 \u2013 0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What is the weight for Iraklis in 2008?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='iraklis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g4\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: What year had Nintendo EAD, Monolith Soft as developers?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"g4\" WHERE \"developer_s\"='nintendo ead, monolith soft';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"season_5\" WHERE \"designer\"='glen peloso' AND \"restaurant_name\"='joe boo''s cookoos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: Is the restaurant still open that had the original name of n/a, location of toronto, on and the designer meredith heron?" }, { "role": "assistant", "content": "SELECT \"still_open\" FROM \"season_5\" WHERE \"original_name\"='n/a' AND \"location\"='toronto, on' AND \"designer\"='meredith heron';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: is the restaurant locavore still open?" }, { "role": "assistant", "content": "SELECT \"still_open\" FROM \"season_5\" WHERE \"restaurant_name\"='locavore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: is the restaurant bacchus roti with meredith heron as the designer still open?" }, { "role": "assistant", "content": "SELECT \"still_open\" FROM \"season_5\" WHERE \"designer\"='meredith heron' AND \"restaurant_name\"='bacchus roti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"city\" text,\n \"team_name\" text,\n \"enrollment_08_09\" real,\n \"ihsaa_class\" text,\n \"ihsaa_class_football\" text,\n \"county\" text,\n \"year_joined_or_joining\" real,\n \"previous_conference\" text\n);\n\nQuestion: What year did the team from City of Aurora join?" }, { "role": "assistant", "content": "SELECT AVG(\"year_joined_or_joining\") FROM \"membership\" WHERE \"city\"='aurora';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"city\" text,\n \"team_name\" text,\n \"enrollment_08_09\" real,\n \"ihsaa_class\" text,\n \"ihsaa_class_football\" text,\n \"county\" text,\n \"year_joined_or_joining\" real,\n \"previous_conference\" text\n);\n\nQuestion: What was the total enrollment 08-09 of Franklin County?" }, { "role": "assistant", "content": "SELECT COUNT(\"enrollment_08_09\") FROM \"membership\" WHERE \"school\"='franklin county';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"city\" text,\n \"team_name\" text,\n \"enrollment_08_09\" real,\n \"ihsaa_class\" text,\n \"ihsaa_class_football\" text,\n \"county\" text,\n \"year_joined_or_joining\" real,\n \"previous_conference\" text\n);\n\nQuestion: What school has a team called the Pirates?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"membership\" WHERE \"team_name\"='pirates';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the rank of the team with a time of 1:00.61?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"semifinal_1\" WHERE \"time\"='1:00.61';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's the lane with a time of 1:00.66?" }, { "role": "assistant", "content": "SELECT AVG(\"lane\") FROM \"semifinal_1\" WHERE \"time\"='1:00.66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's the rank when the time was 59.65?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"semifinal_1\" WHERE \"time\"='59.65';" } ]
[ { "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 \"date\" text,\n \"opponent\" 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 they played New York?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"opponent\"='new york';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"county\" text,\n \"year_joined\" real,\n \"year_left\" text,\n \"conference_joined\" text\n);\n\nQuestion: Can you tell me the County that has the Year Joined of 1964, and the Location of montezuma?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"former_members\" WHERE \"year_joined\"=1964 AND \"location\"='montezuma';" } ]