conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_56 (record VARCHAR, team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the Record with a Team that is detroit and a Date that is june 10?" }, { "from": "gpt", "value": "SELECT record FROM table_name_56 WHERE team...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (location_attendance VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What is the Location Attendance with a Record that is 1-4?" }, { "from": "gpt", "value": "SELECT location_attendance FROM table_name_31 WHERE record...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (gdp__ppp__$m_usd VARCHAR, population_density__per_km²_ VARCHAR)" }, { "from": "human", "value": "How much is the GDP for a population density of 254.7?" }, { "from": "gpt", "value": "SELECT gdp__ppp__$m_usd FROM table_name_7 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (country VARCHAR, population_density__per_km²_ VARCHAR)" }, { "from": "human", "value": "Which country has a population density of 50.3?" }, { "from": "gpt", "value": "SELECT country FROM table_name_46 WHERE population_density_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (gdp__ppp__$m_usd VARCHAR, area__km²_ VARCHAR)" }, { "from": "human", "value": "How much is the GDP for an area of 61,395?" }, { "from": "gpt", "value": "SELECT gdp__ppp__$m_usd FROM table_name_86 WHERE area__km²_ = \"61,395\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (population_density__per_km²_ VARCHAR, gdp__ppp__$m_usd VARCHAR)" }, { "from": "human", "value": "How much is the population density with a GDP at $188,112?" }, { "from": "gpt", "value": "SELECT population_density__per_km²_ FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (gdp__ppp__$m_usd VARCHAR, area__km²_ VARCHAR)" }, { "from": "human", "value": "How much is the GDP for an area of 116?" }, { "from": "gpt", "value": "SELECT gdp__ppp__$m_usd FROM table_name_26 WHERE area__km²_ = \"116\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (country VARCHAR, population__2011_est_ VARCHAR)" }, { "from": "human", "value": "Which country has a population of 3,221,216?" }, { "from": "gpt", "value": "SELECT country FROM table_name_79 WHERE population__2011_est_ = \"3,2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (wins VARCHAR, top_5 VARCHAR, events VARCHAR)" }, { "from": "human", "value": "What was Miller Barber wins with Top-5 less than 2 and 19 Events?" }, { "from": "gpt", "value": "SELECT COUNT(wins) FROM table_name_77 WHERE top_5 <...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (wins INTEGER, tournament VARCHAR, top_5 VARCHAR)" }, { "from": "human", "value": "What is the average number of Wins in a PGA Championship with a Top-5 less than 2?" }, { "from": "gpt", "value": "SELECT AVG(wins) FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (top_5 INTEGER, events INTEGER)" }, { "from": "human", "value": "What is the highest Top-5 ranking with Events less than 4?" }, { "from": "gpt", "value": "SELECT MAX(top_5) FROM table_name_63 WHERE events < 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (week VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "Which week's game was attended by 65,272 people?" }, { "from": "gpt", "value": "SELECT week FROM table_name_18 WHERE attendance = \"65,272\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR)" }, { "from": "human", "value": "How many people attended the game in week 13?" }, { "from": "gpt", "value": "SELECT attendance FROM table_name_60 WHERE week = 13" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (week INTEGER, attendance VARCHAR)" }, { "from": "human", "value": "During which week was the earliest game with an attendance of 65,904 people?" }, { "from": "gpt", "value": "SELECT MIN(week) FROM table_name_58 WHERE attendanc...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (height INTEGER, position VARCHAR)" }, { "from": "human", "value": "What height is the tallest for an outside hitter?" }, { "from": "gpt", "value": "SELECT MAX(height) FROM table_name_94 WHERE position = \"outside hitter\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (silver INTEGER, total VARCHAR)" }, { "from": "human", "value": "What is the highest silver rank with a total of 27?" }, { "from": "gpt", "value": "SELECT MAX(silver) FROM table_name_65 WHERE total = 27" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (temperature_classification VARCHAR, glass_bulb_color VARCHAR)" }, { "from": "human", "value": "What is the temperature classification of a purple colored glass bulb?" }, { "from": "gpt", "value": "SELECT temperature_classifica...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (color_code__with_fusible_link_ VARCHAR, temperature_classification VARCHAR)" }, { "from": "human", "value": "What is the color code with a temperature classification of ordinary?" }, { "from": "gpt", "value": "SELECT color_cod...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (temperature_rating VARCHAR, temperature_classification VARCHAR)" }, { "from": "human", "value": "What is the temperature rating of the intermediate temperature classification?" }, { "from": "gpt", "value": "SELECT temperature_r...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (goals INTEGER, apps VARCHAR, team VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?" }, { "from": "gpt", "value": "SELECT AVG(goals)...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (country VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What is the Country for the 2006-07 season?" }, { "from": "gpt", "value": "SELECT country FROM table_name_11 WHERE season = \"2006-07\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (apps INTEGER, team VARCHAR, level VARCHAR)" }, { "from": "human", "value": "What is the average Apps for the team Kairat with level larger than 1?" }, { "from": "gpt", "value": "SELECT AVG(apps) FROM table_name_51 WHERE team =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (laps VARCHAR, time VARCHAR, grid VARCHAR, bike VARCHAR)" }, { "from": "human", "value": "How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?" }, { "from": "gpt", "value": "SEL...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (rider VARCHAR, laps VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "Who was teh rider with 18 laps and a grid of 25?" }, { "from": "gpt", "value": "SELECT rider FROM table_name_43 WHERE laps = 18 AND grid = 25" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (rider VARCHAR, time VARCHAR, bike VARCHAR)" }, { "from": "human", "value": "Who was the rider who had an accident time and a kawasaki zx-10r bike?" }, { "from": "gpt", "value": "SELECT rider FROM table_name_49 WHERE time = \"a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?" }, { "from": "gpt", "value": "SELECT time...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (laps VARCHAR, grid VARCHAR, time VARCHAR)" }, { "from": "human", "value": "How many laps did the rider with a grid larger than 14 and a time of +33.150 have?" }, { "from": "gpt", "value": "SELECT laps FROM table_name_82 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (away VARCHAR, home VARCHAR)" }, { "from": "human", "value": "What is Away, when Home is Guelph Gargoyles?" }, { "from": "gpt", "value": "SELECT away FROM table_name_24 WHERE home = \"guelph gargoyles\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is Home, when Ground is Humber College North, and when Time is 15:00?" }, { "from": "gpt", "value": "SELECT home FROM table_name_58 WHERE ground...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (date VARCHAR, away VARCHAR)" }, { "from": "human", "value": "What is Date, when Away is High Park Demons?" }, { "from": "gpt", "value": "SELECT date FROM table_name_6 WHERE away = \"high park demons\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (date VARCHAR, away VARCHAR)" }, { "from": "human", "value": "What is Date, when Away is High Park Demons?" }, { "from": "gpt", "value": "SELECT date FROM table_name_43 WHERE away = \"high park demons\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (time VARCHAR, away VARCHAR)" }, { "from": "human", "value": "What is Time, when Away is Central Blues?" }, { "from": "gpt", "value": "SELECT time FROM table_name_95 WHERE away = \"central blues\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (cover VARCHAR, published VARCHAR)" }, { "from": "human", "value": "What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?" }, { "from": "gpt", "value": "SELECT cover FROM table_name_12 WHERE published = \"may...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (volume VARCHAR, isbn VARCHAR)" }, { "from": "human", "value": "What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?" }, { "from": "gpt", "value": "SELECT volume FROM table_name_4...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (series VARCHAR, isbn VARCHAR)" }, { "from": "human", "value": "What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?" }, { "from": "gpt", "value": "SELECT series FROM table_name_22 WHERE isbn = \"978-1-59582-...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (volume VARCHAR, isbn VARCHAR)" }, { "from": "human", "value": "What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?" }, { "from": "gpt", "value": "SELECT volume FROM table_name_38 WHERE isbn = \"9...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (isbn VARCHAR, series VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast?" }, { "from": "gpt", "value": "SELECT isbn FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (cover VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What cover has Throne of Aquilonia as the title?" }, { "from": "gpt", "value": "SELECT cover FROM table_name_46 WHERE title = \"throne of aquilonia\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (games VARCHAR, name VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "With a Rank of less than 4, what is Pablo Prigioni's total number of Games?" }, { "from": "gpt", "value": "SELECT COUNT(games) FROM table_name_44 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (assists INTEGER, games INTEGER)" }, { "from": "human", "value": "How many Assists for the Player with more than 25 Games?" }, { "from": "gpt", "value": "SELECT SUM(assists) FROM table_name_45 WHERE games > 25" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (rank VARCHAR, games VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the Rank of the Maccabi Tel Aviv Player with 25 Games?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_82 WHERE games = 25 A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (assists INTEGER, rank VARCHAR, games VARCHAR)" }, { "from": "human", "value": "How many Assists for the Player with a Rank greater than 3 in less than 25 Games?" }, { "from": "gpt", "value": "SELECT AVG(assists) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (games INTEGER, name VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "How many Games for Rank 2 Terrell McIntyre?" }, { "from": "gpt", "value": "SELECT MIN(games) FROM table_name_8 WHERE name = \"terrell mcintyre\" AND ra...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (venue VARCHAR, notes VARCHAR, year VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR)" }, { "from": "human", "value": "In what Year did Chernova come in 1st in Götzis, Austria?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_37 WHERE venue = \"götzi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (cover_model VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which Cover Model was featured on 8-03?" }, { "from": "gpt", "value": "SELECT cover_model FROM table_name_8 WHERE date = \"8-03\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (centerfold_model VARCHAR, interview_subject VARCHAR)" }, { "from": "human", "value": "Who was the Centerfold model when O.J. Simpson was the Interview Subject?" }, { "from": "gpt", "value": "SELECT centerfold_model FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (cover_model VARCHAR, centerfold_model VARCHAR)" }, { "from": "human", "value": "Who was the Cover model when the Centerfold Model was Marketa Janska?" }, { "from": "gpt", "value": "SELECT cover_model FROM table_name_43 WHERE c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (cover_model VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the Cover model on 11-03?" }, { "from": "gpt", "value": "SELECT cover_model FROM table_name_96 WHERE date = \"11-03\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (centerfold_model VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the Centerfold Model on 9-03?" }, { "from": "gpt", "value": "SELECT centerfold_model FROM table_name_79 WHERE date = \"9-03\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (round INTEGER, selection VARCHAR)" }, { "from": "human", "value": "How many rounds had a selection of 165?" }, { "from": "gpt", "value": "SELECT SUM(round) FROM table_name_74 WHERE selection = 165" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (height__cm_ INTEGER, position VARCHAR, birthplace VARCHAR)" }, { "from": "human", "value": "What is the average Height for the Position of d, with a Birthplace of new hope, minnesota?" }, { "from": "gpt", "value": "SELECT AVG(...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (birthplace VARCHAR)" }, { "from": "human", "value": "What is the 1990–1991 Team when the Birthplace shows as new york?" }, { "from": "gpt", "value": "SELECT 1990 AS _1991_team FROM table_name_23 WHERE birthplace = \"new york\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (position VARCHAR, birthplace VARCHAR)" }, { "from": "human", "value": "What is the Position when the person's birthplace was toledo, ohio?" }, { "from": "gpt", "value": "SELECT position FROM table_name_32 WHERE birthplace = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (name VARCHAR)" }, { "from": "human", "value": "What is the 1990–1991 Team that had Joel Otto?" }, { "from": "gpt", "value": "SELECT 1990 AS _1991_team FROM table_name_41 WHERE name = \"joel otto\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (tc VARCHAR, year VARCHAR, dc VARCHAR)" }, { "from": "human", "value": "Which T.C. has a Year larger than 2007, and a D.C. of 21st?" }, { "from": "gpt", "value": "SELECT tc FROM table_name_26 WHERE year > 2007 AND dc = \"21st\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (dc VARCHAR, wins VARCHAR, drivers VARCHAR, races VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (races INTEGER, tc VARCHAR, dc VARCHAR)" }, { "from": "human", "value": "Which Races has a T.C. of 3rd, and a D.C. of 7th?" }, { "from": "gpt", "value": "SELECT MIN(races) FROM table_name_14 WHERE tc = \"3rd\" AND dc = \"7th\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (Id VARCHAR)" }, { "from": "human", "value": "What is the 2007 of the Grand Slam Tournaments in 2008?" }, { "from": "gpt", "value": "SELECT 2007 FROM table_name_16 WHERE 2008 = \"grand slam tournaments\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (tournament VARCHAR)" }, { "from": "human", "value": "What is the Tournament with a 3r 2011 and A 2010?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_63 WHERE 2011 = \"3r\" AND 2010 = \"a\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (Id VARCHAR)" }, { "from": "human", "value": "What is the 2008 of the 2r 2011 and A 2010?" }, { "from": "gpt", "value": "SELECT 2008 FROM table_name_38 WHERE 2011 = \"2r\" AND 2010 = \"a\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (Id VARCHAR)" }, { "from": "human", "value": "What is the 2010 of the Grand Slam Tournaments in 2011?" }, { "from": "gpt", "value": "SELECT 2010 FROM table_name_66 WHERE 2011 = \"grand slam tournaments\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (runners_up VARCHAR, winning_years VARCHAR)" }, { "from": "human", "value": "What is the total number of runners-up for a club with winning years of 2010?" }, { "from": "gpt", "value": "SELECT COUNT(runners_up) FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (runners_up VARCHAR, club VARCHAR)" }, { "from": "human", "value": "Who were the runners-up for the FC Viktoria Plzeň club?" }, { "from": "gpt", "value": "SELECT runners_up FROM table_name_7 WHERE club = \"fc viktoria plzeň\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (con__gress VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which congress was held in 2010?" }, { "from": "gpt", "value": "SELECT con__gress FROM table_name_50 WHERE date = \"2010\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (casting_at__°c_ VARCHAR, hardness VARCHAR)" }, { "from": "human", "value": "What is the casting temperature for a hardness of 22?" }, { "from": "gpt", "value": "SELECT casting_at__°c_ FROM table_name_88 WHERE hardness = \"22\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (hardness VARCHAR, liquid_at__°c_ VARCHAR)" }, { "from": "human", "value": "What is the hardness for the alloy that is liquid at 243 degrees C?" }, { "from": "gpt", "value": "SELECT hardness FROM table_name_45 WHERE liquid_at__...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (sn_sb___percentage_ VARCHAR, liquid_at__°c_ VARCHAR)" }, { "from": "human", "value": "What is the Sn/Sb percentage that is liquid at 258 degrees C?" }, { "from": "gpt", "value": "SELECT sn_sb___percentage_ FROM table_name_4 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (remelting_at__°c_ VARCHAR, sn_sb___percentage_ VARCHAR)" }, { "from": "human", "value": "What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?" }, { "from": "gpt", "value": "SELECT remelting_at__°c_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (casting_at__°c_ VARCHAR, hardness VARCHAR)" }, { "from": "human", "value": "What is the casting temperature for the alloy with hardness 21?" }, { "from": "gpt", "value": "SELECT casting_at__°c_ FROM table_name_98 WHERE hardnes...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR)" }, { "from": "human", "value": "What's the most laps when grid is 16?" }, { "from": "gpt", "value": "SELECT MAX(laps) FROM table_name_93 WHERE grid = 16" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (laps VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "How many laps were there for a grid of 13?" }, { "from": "gpt", "value": "SELECT COUNT(laps) FROM table_name_35 WHERE grid = 13" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (week VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "How many weeks had an attendance at 69,149?" }, { "from": "gpt", "value": "SELECT COUNT(week) FROM table_name_12 WHERE attendance = \"69,149\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (date VARCHAR, week VARCHAR)" }, { "from": "human", "value": "On what date did week 6 occur?" }, { "from": "gpt", "value": "SELECT date FROM table_name_40 WHERE week = 6" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the opponent on December 18, 2005?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_80 WHERE date = \"december 18, 2005\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (result_score VARCHAR, match_report VARCHAR, week VARCHAR)" }, { "from": "human", "value": "What is the result/score for the match report recap on week 14?" }, { "from": "gpt", "value": "SELECT result_score FROM table_name_25 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (week INTEGER, result_score VARCHAR)" }, { "from": "human", "value": "How many weeks have w 51-29 as the result/score?" }, { "from": "gpt", "value": "SELECT SUM(week) FROM table_name_34 WHERE result_score = \"w 51-29\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (result_score VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What is the result/score that has 6-5 as the record?" }, { "from": "gpt", "value": "SELECT result_score FROM table_name_45 WHERE record = \"6-5\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (match_report VARCHAR, result_score VARCHAR)" }, { "from": "human", "value": "Which match report has l 7-30 as the result/score?" }, { "from": "gpt", "value": "SELECT match_report FROM table_name_98 WHERE result_score = \"l 7-3...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (game_site VARCHAR, match_report VARCHAR, week VARCHAR)" }, { "from": "human", "value": "Which game site has a recap as the match report for week 7?" }, { "from": "gpt", "value": "SELECT game_site FROM table_name_84 WHERE match...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (shooter VARCHAR, time VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Which shooter's time is more than 8.97 and has a year prior to 2013?" }, { "from": "gpt", "value": "SELECT shooter FROM table_name_56 WHERE time > 8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (country VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What country was the race in on April 27?" }, { "from": "gpt", "value": "SELECT country FROM table_name_53 WHERE date = \"april 27\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the name of the team leading on August 17?" }, { "from": "gpt", "value": "SELECT team FROM table_name_6 WHERE date = \"august 17\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (ranking_round_rank INTEGER, nation VARCHAR, final_rank VARCHAR)" }, { "from": "human", "value": "What is the highest Ranking Round Rank for Russia with a Final Rank over 11?" }, { "from": "gpt", "value": "SELECT MAX(ranking_rou...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR)" }, { "from": "human", "value": "Which Music has a Points Jury of 18 (5,5,4,4)?" }, { "from": "gpt", "value": "SELECT music FROM table_name_32 WHERE points_jury = \"18 (5,5,4,4)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (music VARCHAR, dance VARCHAR)" }, { "from": "human", "value": "What is the Music if the Dance is Jive?" }, { "from": "gpt", "value": "SELECT music FROM table_name_75 WHERE dance = \"jive\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (music VARCHAR, team VARCHAR, points_jury VARCHAR)" }, { "from": "human", "value": "What is the Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)?" }, { "from": "gpt", "value": "SELECT music FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (music VARCHAR, dance VARCHAR)" }, { "from": "human", "value": "Which Music has a Dance of Modern?" }, { "from": "gpt", "value": "SELECT music FROM table_name_79 WHERE dance = \"modern\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (points_jury VARCHAR, dance VARCHAR)" }, { "from": "human", "value": "What is the Points Jury for Dance pop?" }, { "from": "gpt", "value": "SELECT points_jury FROM table_name_39 WHERE dance = \"pop\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (place VARCHAR, points_jury VARCHAR)" }, { "from": "human", "value": "Which Place has a Points Jury of 34 (7,8,9,10)?" }, { "from": "gpt", "value": "SELECT place FROM table_name_78 WHERE points_jury = \"34 (7,8,9,10)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (country VARCHAR)" }, { "from": "human", "value": "What is the 2013 press freedom index of the country Egypt?" }, { "from": "gpt", "value": "SELECT 2013 AS _press_freedom_index FROM table_name_20 WHERE country = \"egypt\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (country VARCHAR)" }, { "from": "human", "value": "What is the 2013 index of economic freedom of Slovenia?" }, { "from": "gpt", "value": "SELECT 2013 AS _index_of_economic_freedom FROM table_name_22 WHERE country = \"slovenia\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (league INTEGER, total VARCHAR)" }, { "from": "human", "value": "Which League Cup that has a Total of 19 and a League smaller than 15?" }, { "from": "gpt", "value": "SELECT AVG(league) AS Cup FROM table_name_87 WHERE total = 19...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (country VARCHAR, skip VARCHAR)" }, { "from": "human", "value": "For what country is the skip Andy Kapp?" }, { "from": "gpt", "value": "SELECT country FROM table_name_49 WHERE skip = \"andy kapp\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (second VARCHAR, team VARCHAR, third VARCHAR)" }, { "from": "human", "value": "Who is the second on the North America team for which Cathy Overton-Clapham the third?" }, { "from": "gpt", "value": "SELECT second FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (lead VARCHAR, home VARCHAR)" }, { "from": "human", "value": "Who is the lead of the team from Lockerbie?" }, { "from": "gpt", "value": "SELECT lead FROM table_name_81 WHERE home = \"lockerbie\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (team VARCHAR, home VARCHAR)" }, { "from": "human", "value": "What is the name of the team from Stirling?" }, { "from": "gpt", "value": "SELECT team FROM table_name_70 WHERE home = \"stirling\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (lead VARCHAR, team VARCHAR, skip VARCHAR)" }, { "from": "human", "value": "Who is the lead on the Europe team that has a Liudmila Privivkova as the skip?" }, { "from": "gpt", "value": "SELECT lead FROM table_name_18 WHERE team...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR)" }, { "from": "human", "value": "Who is the second of the North America team from Edmonton, Canada?" }, { "from": "gpt", "value": "SELECT second FROM table_name_58 W...
know_sql
chosen