conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_36 (title VARCHAR, number VARCHAR)" }, { "from": "human", "value": "What is number 4's title?" }, { "from": "gpt", "value": "SELECT title FROM table_name_36 WHERE number = 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (number VARCHAR, born VARCHAR)" }, { "from": "human", "value": "How many people were born in 1368?" }, { "from": "gpt", "value": "SELECT COUNT(number) FROM table_name_52 WHERE born = \"1368\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR)" }, { "from": "human", "value": "Who was number 12's mother?" }, { "from": "gpt", "value": "SELECT mother FROM table_name_90 WHERE number = 12" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (week VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the week number when they played on Dec. 19?" }, { "from": "gpt", "value": "SELECT COUNT(week) FROM table_name_79 WHERE date = \"dec. 19\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (founded INTEGER, location VARCHAR)" }, { "from": "human", "value": "What is the average number of students in East Lansing, MI?" }, { "from": "gpt", "value": "SELECT AVG(founded) FROM table_name_70 WHERE location = \"east lans...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (founded INTEGER, affiliation VARCHAR)" }, { "from": "human", "value": "What is the lowest number of students at the community college?" }, { "from": "gpt", "value": "SELECT MIN(founded) FROM table_name_8 WHERE affiliation = \"c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR)" }, { "from": "human", "value": "What is Joanne Carner's average score in Canadian Women's Open games that she has won?" }, { "from": "gpt", "value": "SELECT AVG(score) FROM table_name_70 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (country VARCHAR, champion VARCHAR)" }, { "from": "human", "value": "What country does jocelyne bourassa play for?" }, { "from": "gpt", "value": "SELECT country FROM table_name_73 WHERE champion = \"jocelyne bourassa\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR)" }, { "from": "human", "value": "Which Performance has a Test Standard of bs en779, and a Particulate size approach...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (performance VARCHAR, usage VARCHAR, class VARCHAR)" }, { "from": "human", "value": "Which Performance has a Usage of hepa and a Class of h14?" }, { "from": "gpt", "value": "SELECT performance FROM table_name_38 WHERE usage = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR)" }, { "from": "human", "value": "Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?" }, { "fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (test_standard VARCHAR, usage VARCHAR, class VARCHAR)" }, { "from": "human", "value": "Which Test Standard has a Usage of secondary filters, and a Class of f5? Question 4" }, { "from": "gpt", "value": "SELECT test_standard FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which Score has a To par of –1, and a Player of mick soli?" }, { "from": "gpt", "value": "SELECT score FROM table_name_7 WHERE to_par = \"–1\" AND ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which Score has a Place of t1, and a Player of hubert green?" }, { "from": "gpt", "value": "SELECT AVG(score) FROM table_name_35 WHERE place = \"t1...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (country VARCHAR, score VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which Country has a Score of 69, and a Player of mick soli?" }, { "from": "gpt", "value": "SELECT country FROM table_name_92 WHERE score = 69 AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR)" }, { "from": "human", "value": "Which Country has a Place of t1?" }, { "from": "gpt", "value": "SELECT country FROM table_name_38 WHERE place = \"t1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR)" }, { "from": "human", "value": "Where is the moving from location with a transfer window of summer and the source kerkida.net?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (name VARCHAR, source VARCHAR, type VARCHAR)" }, { "from": "human", "value": "Which name has the source apoelfc.com.cy and a type of transfer?" }, { "from": "gpt", "value": "SELECT name FROM table_name_94 WHERE source = \"apoel...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the Fate of the San Pablo ship?" }, { "from": "gpt", "value": "SELECT fate FROM table_name_48 WHERE name = \"san pablo\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the date of attack of the Circe Shell Ship?" }, { "from": "gpt", "value": "SELECT date FROM table_name_55 WHERE name = \"circe shell\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR)" }, { "from": "human", "value": "What fuel system was used in 1960-62?" }, { "from": "gpt", "value": "SELECT fuel_system FROM table_name_95 WHERE years = \"1960-62\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR)" }, { "from": "human", "value": "How much power does the 1500 model have with a displacement of 1490cc?" }, { "from": "gpt", "value": "SELECT power FROM table_name_22 WHERE m...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (years VARCHAR, displacement VARCHAR)" }, { "from": "human", "value": "Which years have a displacement of 1816cc?" }, { "from": "gpt", "value": "SELECT years FROM table_name_44 WHERE displacement = \"1816cc\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (power VARCHAR, fuel_system VARCHAR, displacement VARCHAR)" }, { "from": "human", "value": "How much power does the fuel injection system have with a displacement of 1991cc?" }, { "from": "gpt", "value": "SELECT power FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR)" }, { "from": "human", "value": "Which fuel system has a displacement of 1490cc?" }, { "from": "gpt", "value": "SELECT fuel_system FROM table_name_68 WHERE displacement = \"1490cc\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (fuel_system VARCHAR, displacement VARCHAR, model VARCHAR)" }, { "from": "human", "value": "Which fuel system has a displacement of 1500cc for the Berlina model?" }, { "from": "gpt", "value": "SELECT fuel_system FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (industry INTEGER, year VARCHAR, agriculture VARCHAR)" }, { "from": "human", "value": "What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (industry INTEGER, agriculture INTEGER)" }, { "from": "human", "value": "What is the average Industry, when Agriculture is greater than 11?" }, { "from": "gpt", "value": "SELECT AVG(industry) FROM table_name_44 WHERE agricultur...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER)" }, { "from": "human", "value": "When the points scored was over 110.25%, what's the average amount lost?" }, { "from": "gpt", "value": "SELECT AVG(lost) FROM table_name_69 WHERE _percent...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR)" }, { "from": "human", "value": "If the points scored were 93.45%, what's the lowest amount of games lost?" }, { "from": "gpt", "value": "SELECT MIN(lost) FROM table_name_27 WHERE _percen...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR)" }, { "from": "human", "value": "What is the rank of the film directed by Kevin Costner?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_14 WHERE director = \"kevin costner\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (director VARCHAR, gross VARCHAR)" }, { "from": "human", "value": "What director grossed $200,512,643" }, { "from": "gpt", "value": "SELECT director FROM table_name_96 WHERE gross = \"$200,512,643\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (rank INTEGER, studio VARCHAR, gross VARCHAR)" }, { "from": "human", "value": "What is the average rank of the movie from Paramount Studios that grossed $200,512,643?" }, { "from": "gpt", "value": "SELECT AVG(rank) FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (director VARCHAR, title VARCHAR)" }, { "from": "human", "value": "Who directed Teenage Mutant Ninja Turtles?" }, { "from": "gpt", "value": "SELECT director FROM table_name_81 WHERE title = \"teenage mutant ninja turtles\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (director VARCHAR, gross VARCHAR, rank VARCHAR, studio VARCHAR)" }, { "from": "human", "value": "What director ranked higher than 1 from Universal Studios and grossed $201,957,688?" }, { "from": "gpt", "value": "SELECT director...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR)" }, { "from": "human", "value": "When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?" }, { "from": "gpt", "value": "SELECT time...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (laps INTEGER, rider VARCHAR)" }, { "from": "human", "value": "What's the highest amount of laps Garry Mccoy drove?" }, { "from": "gpt", "value": "SELECT MAX(laps) FROM table_name_73 WHERE rider = \"garry mccoy\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR, manufacturer VARCHAR)" }, { "from": "human", "value": "If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?" }, { "from": "gpt", "value": "SELECT time_retire...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (height VARCHAR, year VARCHAR)" }, { "from": "human", "value": "The year 1974 has what listed as the Height?" }, { "from": "gpt", "value": "SELECT height FROM table_name_38 WHERE year = 1974" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (country VARCHAR, structure VARCHAR)" }, { "from": "human", "value": "The OMEGA transmitter Chabrier has what country listed?" }, { "from": "gpt", "value": "SELECT country FROM table_name_59 WHERE structure = \"omega transmitte...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (structure VARCHAR, year VARCHAR, continent VARCHAR)" }, { "from": "human", "value": "Listed with a continent of Africa and before 2009 this structure is called what?" }, { "from": "gpt", "value": "SELECT structure FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (height VARCHAR, year VARCHAR)" }, { "from": "human", "value": "The year 1972 has what written in Height column?" }, { "from": "gpt", "value": "SELECT height FROM table_name_40 WHERE year = 1972" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (continent VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the Continent that also has the United States listed as a country?" }, { "from": "gpt", "value": "SELECT continent FROM table_name_30 WHERE country =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (ends_won INTEGER, ends_lost VARCHAR, shot__percentage VARCHAR)" }, { "from": "human", "value": "What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?" }, { "from": "gpt", "value": "SELECT MAX(ends_wo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (poll VARCHAR, april_14 VARCHAR)" }, { "from": "human", "value": "What Poll was on April 14 of 13?" }, { "from": "gpt", "value": "SELECT poll FROM table_name_71 WHERE april_14 = \"13\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (mar_17 VARCHAR, april_21 VARCHAR)" }, { "from": "human", "value": "What is the rank for Mar 17 when the April 21 rank is 10?" }, { "from": "gpt", "value": "SELECT mar_17 FROM table_name_96 WHERE april_21 = \"10\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (mar_24 VARCHAR, may_26 VARCHAR, may_12 VARCHAR)" }, { "from": "human", "value": "What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?" }, { "from": "gpt", "value": "SELECT mar_24 FROM table_name_93 WHERE may_26 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (april_28 VARCHAR, mar_24 VARCHAR)" }, { "from": "human", "value": "What is the April 28 rank when the Mar 24 is 17?" }, { "from": "gpt", "value": "SELECT april_28 FROM table_name_92 WHERE mar_24 = \"17\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (april_14 VARCHAR, mar_3 VARCHAR, april_21 VARCHAR)" }, { "from": "human", "value": "What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?" }, { "from": "gpt", "value": "SELECT april_14 FROM table_name_78 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR)" }, { "from": "human", "value": "What is the April 28th rank when the Final is 20, and Mar 17 is 22?" }, { "from": "gpt", "value": "SELECT april_28 FROM table_name_91 WHERE fina...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (podiums VARCHAR, poles VARCHAR, position VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What is the total number of Podiums, when Position is \"2nd\", when Wins is less than 6, and when Poles is greater than 0?" }, { "fro...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (poles INTEGER, season VARCHAR, podiums VARCHAR)" }, { "from": "human", "value": "What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?" }, { "from": "gpt", "value": "SELECT SUM(poles) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the average Poles, when Wins is 0, when Position is \"nc\", and when Season is before 2004?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the sum of Poles, when Season is before 2005, when Position is \"2nd\", and when Wins is less than 6?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (pos VARCHAR)" }, { "from": "human", "value": "What is the 2012 club of the cf pos. player?" }, { "from": "gpt", "value": "SELECT 2012 AS _club FROM table_name_85 WHERE pos = \"cf\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (years_in_the_acc VARCHAR, founded VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?" }, { "from": "gp...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "Who was the partner for the tournament in Lyon, France?" }, { "from": "gpt", "value": "SELECT partnering FROM table_name_29 WHERE tournament = \"lyon, fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (opponent VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "Who were the opponents for the event in Milan, Italy?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_78 WHERE tournament = \"milan, italy\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the record on the date of december 1, 1968?" }, { "from": "gpt", "value": "SELECT record FROM table_name_55 WHERE date = \"december 1, 1968\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the record on the date of september 15, 1968?" }, { "from": "gpt", "value": "SELECT record FROM table_name_89 WHERE date = \"september 15, 1968\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the record on the date of november 10, 1968?" }, { "from": "gpt", "value": "SELECT record FROM table_name_27 WHERE date = \"november 10, 1968\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (game INTEGER, date VARCHAR)" }, { "from": "human", "value": "What was the first game played on February 28?" }, { "from": "gpt", "value": "SELECT MIN(game) FROM table_name_95 WHERE date = \"february 28\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (points_2 INTEGER, goals_for VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?" }, { "from": "gpt", "value": "SELECT SUM(points_2) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (date VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What date was the team @ Detroit?" }, { "from": "gpt", "value": "SELECT date FROM table_name_28 WHERE team = \"@ detroit\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (score VARCHAR, high_assists VARCHAR)" }, { "from": "human", "value": "What was the score of the game when Maurice Williams (7) had the high assists?" }, { "from": "gpt", "value": "SELECT score FROM table_name_8 WHERE high_assis...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (record VARCHAR, high_assists VARCHAR)" }, { "from": "human", "value": "What was the record of the game when Lebron James (4) had the high assists?" }, { "from": "gpt", "value": "SELECT record FROM table_name_43 WHERE high_assi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (game VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the total of the game that the team was @ new york?" }, { "from": "gpt", "value": "SELECT COUNT(game) FROM table_name_58 WHERE team = \"@ new york\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (round INTEGER, player VARCHAR)" }, { "from": "human", "value": "Which round was Joe Taylor selected in?" }, { "from": "gpt", "value": "SELECT SUM(round) FROM table_name_40 WHERE player = \"joe taylor\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (player VARCHAR, pick VARCHAR, college VARCHAR)" }, { "from": "human", "value": "Which player went to Wake Forest and was selected with a pick after 145?" }, { "from": "gpt", "value": "SELECT player FROM table_name_6 WHERE pick ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (pick VARCHAR, round VARCHAR)" }, { "from": "human", "value": "How many picks were from round 6?" }, { "from": "gpt", "value": "SELECT COUNT(pick) FROM table_name_84 WHERE round = 6" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (round INTEGER, college VARCHAR, pick VARCHAR)" }, { "from": "human", "value": "What is the largest round of a pick smaller than 92 from Toledo University?" }, { "from": "gpt", "value": "SELECT MAX(round) FROM table_name_34 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (nationality VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which nationality is Dick Walker?" }, { "from": "gpt", "value": "SELECT nationality FROM table_name_35 WHERE player = \"dick walker\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (college VARCHAR, pick VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "What college has a pick greater than 4 and an overall of 21?" }, { "from": "gpt", "value": "SELECT college FROM table_name_9 WHERE pick > 4 AND ov...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR)" }, { "from": "human", "value": "What is the overall sum of round 3?" }, { "from": "gpt", "value": "SELECT SUM(overall) FROM table_name_55 WHERE round = 3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "What is the position of the player with a round less than 8 and an overall of 48?" }, { "from": "gpt", "value": "SELECT position FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (position VARCHAR, overall VARCHAR, college VARCHAR)" }, { "from": "human", "value": "What is the position of the player from the college of North Carolina with an overall less than 100?" }, { "from": "gpt", "value": "SELECT po...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (pick INTEGER, round VARCHAR)" }, { "from": "human", "value": "What is the sum of the pick in round 17?" }, { "from": "gpt", "value": "SELECT SUM(pick) FROM table_name_10 WHERE round = 17" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (team_2 VARCHAR)" }, { "from": "human", "value": "What was the 1st leg when team 2 was nov milenium?" }, { "from": "gpt", "value": "SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = \"nov milenium\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (team_1 VARCHAR)" }, { "from": "human", "value": "What was the 1st leg for a team 1 of Teteks?" }, { "from": "gpt", "value": "SELECT 1 AS st_leg FROM table_name_25 WHERE team_1 = \"teteks\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (date_of_official_foundation_of_municipality INTEGER, rank VARCHAR, province VARCHAR)" }, { "from": "human", "value": "What is the sum of Date of Official Foundation of Municipality, when Province is \"Kermān\", when 2006 us \"167014\", an...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (rank VARCHAR, date_of_official_foundation_of_municipality VARCHAR, province VARCHAR)" }, { "from": "human", "value": "What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is \"Sis...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)" }, { "from": "human", "value": "What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and whe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (rank INTEGER, date_of_official_foundation_of_municipality VARCHAR)" }, { "from": "human", "value": "What is the highest Rank, when Date of Official Foundation of Municipality is \"1952\", and when 2006 is less than 189120?" }, { "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (province VARCHAR, city VARCHAR, date_of_official_foundation_of_municipality VARCHAR)" }, { "from": "human", "value": "What is Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and whe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what is the place when the score is 68-70-68=206?" }, { "from": "gpt", "value": "SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what is the country when the score is 71-65-69=205?" }, { "from": "gpt", "value": "SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what is the country when the score is 72-68-67=207?" }, { "from": "gpt", "value": "SELECT country FROM table_name_79 WHERE score = 72 - 68 - 67 = 207" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (country VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what is the country when the score is 68-72-67=207?" }, { "from": "gpt", "value": "SELECT country FROM table_name_75 WHERE score = 68 - 72 - 67 = 207" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR)" }, { "from": "human", "value": "who is the player when the place is t5 and the score is 69-66-71=206?" }, { "from": "gpt", "value": "SELECT player FROM table_name_51 WHERE place =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (laps INTEGER, class VARCHAR, entrant VARCHAR)" }, { "from": "human", "value": "What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?" }, { "from": "gpt", "value": "SELECT MAX(laps) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What is the tie with a win of 0?" }, { "from": "gpt", "value": "SELECT ties FROM table_name_38 WHERE wins = \"0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (final_position VARCHAR, ties VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What is the final position with ties of 0, and wins of 5?" }, { "from": "gpt", "value": "SELECT final_position FROM table_name_87 WHERE ties ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (ties VARCHAR, division VARCHAR)" }, { "from": "human", "value": "What are the ties for division of bafl division two south?" }, { "from": "gpt", "value": "SELECT ties FROM table_name_8 WHERE division = \"bafl division two south...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (final_position VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What is the final position for the season 2008?" }, { "from": "gpt", "value": "SELECT final_position FROM table_name_76 WHERE season = \"2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (final_position VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What is the final position for the season 2012?" }, { "from": "gpt", "value": "SELECT final_position FROM table_name_70 WHERE season = \"2012\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (division VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What is the division with wins of 2?" }, { "from": "gpt", "value": "SELECT division FROM table_name_76 WHERE wins = \"2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (location VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "What is the Location of the Hietalahti Stadium?" }, { "from": "gpt", "value": "SELECT location FROM table_name_46 WHERE stadium = \"hietalahti stadium\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (location VARCHAR, manager VARCHAR)" }, { "from": "human", "value": "What is the Location of the Stadium where Job Dragtsma is Manager?" }, { "from": "gpt", "value": "SELECT location FROM table_name_5 WHERE manager = \"job dragt...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (react VARCHAR, lane VARCHAR, heat VARCHAR)" }, { "from": "human", "value": "what is the react when the lane is 3 and heat is 2?" }, { "from": "gpt", "value": "SELECT react FROM table_name_98 WHERE lane = 3 AND heat = 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR)" }, { "from": "human", "value": "what is the highest lane number for johan wissman when the react is less than 0.242?" }, { "from": "gpt", "value": "SELECT MAX(lane) FROM table_name_4...
know_sql
chosen