conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_6 (record VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was their record when they lost with Lilly (0-1) pitching?" }, { "from": "gpt", "value": "SELECT record FROM table_name_6 WHERE loss = \"lilly (0-1)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What was their record when the attendance was 26,827?" }, { "from": "gpt", "value": "SELECT record FROM table_name_51 WHERE attendance = \"26,827\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR)" }, { "from": "human", "value": "Who is the December playmate with a February playmate Anne-Marie Fox?" }, { "from": "gpt", "value": "SELECT december FROM table_name_76 WHERE february = \"an...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (august VARCHAR, october VARCHAR)" }, { "from": "human", "value": "Who is the August playmate with the October playmate Shannon Long?" }, { "from": "gpt", "value": "SELECT august FROM table_name_51 WHERE october = \"shannon lon...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR)" }, { "from": "human", "value": "Who is the December playmate with a November playmate Marlene Janssen?" }, { "from": "gpt", "value": "SELECT december FROM table_name_72 WHERE november = \"m...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR)" }, { "from": "human", "value": "Who is the November playmate with the July playmate Hope Marie Carlton?" }, { "from": "gpt", "value": "SELECT november FROM table_name_66 WHERE july = \"hope mar...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR)" }, { "from": "human", "value": "Who is the March playmate with an August playmate Gianna Amore?" }, { "from": "gpt", "value": "SELECT march FROM table_name_53 WHERE august = \"gianna amore\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (january VARCHAR, november VARCHAR)" }, { "from": "human", "value": "Who is the January playmate with the November playmate Donna Edmondson?" }, { "from": "gpt", "value": "SELECT january FROM table_name_66 WHERE november = \"do...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (stadium VARCHAR, host_team VARCHAR)" }, { "from": "human", "value": "What is the home stadium of the Tennessee Titans?" }, { "from": "gpt", "value": "SELECT stadium FROM table_name_10 WHERE host_team = \"tennessee titans\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (week INTEGER, visiting_team VARCHAR)" }, { "from": "human", "value": "When were the Houston Texans the visiting team later in the season?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table_name_29 WHERE visiting_team =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (date VARCHAR, final_score VARCHAR)" }, { "from": "human", "value": "The final score was 24-34 on what date?" }, { "from": "gpt", "value": "SELECT date FROM table_name_18 WHERE final_score = \"24-34\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?" }, { "from": "gpt", "value": "SELECT SUM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (total INTEGER, bronze VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?" }, { "from": "gpt", "value": "SELECT SUM(t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals?" }, { "from": "gpt",...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (total INTEGER, bronze VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?" }, { "from": "gpt", "value": "SELECT MAX(total...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals?" }, { "from": "gpt",...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Name the score for yuliya ustyuzhanina" }, { "from": "gpt", "value": "SELECT score FROM table_name_84 WHERE opponent = \"yuliya ustyuzhanina\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "Name the date for hard surface and tournament of fort walton beach" }, { "from": "gpt", "value": "SELECT date FROM table_name_84 WHERE surface...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Name the opponent with score of 1–6, 6–4, 6–4" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_7 WHERE score = \"1–6, 6–4, 6–4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Name the score for 10 april 2007 and opponent of selima sfar" }, { "from": "gpt", "value": "SELECT score FROM table_name_43 WHERE date = \"10 apri...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (runners VARCHAR, placing INTEGER)" }, { "from": "human", "value": "How many runners had placings over 8?" }, { "from": "gpt", "value": "SELECT COUNT(runners) FROM table_name_34 WHERE placing > 8" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (course VARCHAR, jockey VARCHAR)" }, { "from": "human", "value": "Which course had a jockey of Royston FFrench?" }, { "from": "gpt", "value": "SELECT course FROM table_name_22 WHERE jockey = \"royston ffrench\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (prize__ INTEGER, race VARCHAR)" }, { "from": "human", "value": "What is the average prize for the Buttercross Limited Stakes?" }, { "from": "gpt", "value": "SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = \"buttercr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR)" }, { "from": "human", "value": "How many total runners had jockeys of Olivier Peslier with placings under 2?" }, { "from": "gpt", "value": "SELECT SUM(runners) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (games VARCHAR, marks VARCHAR)" }, { "from": "human", "value": "Name the games with marks of 21" }, { "from": "gpt", "value": "SELECT games FROM table_name_71 WHERE marks = \"21\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (kicks VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "Name the kicks with goals of 1" }, { "from": "gpt", "value": "SELECT kicks FROM table_name_40 WHERE goals = \"1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (goals VARCHAR, games VARCHAR)" }, { "from": "human", "value": "Name the goals with games of 6" }, { "from": "gpt", "value": "SELECT goals FROM table_name_65 WHERE games = \"6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)" }, { "from": "human", "value": "What game had the date was it with the final score of 7-23" }, { "from": "gpt", "value": "SELECT date FROM table_name_35 WHERE final_score = \"7-23\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "What was the final score of the game at the astrodome?" }, { "from": "gpt", "value": "SELECT final_score FROM table_name_74 WHERE stadium = \"astrodome\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (final_score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the final score for the date of December 30?" }, { "from": "gpt", "value": "SELECT final_score FROM table_name_99 WHERE date = \"december 30\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "What was the name of the Visiting team at Jack Murphy Stadium?" }, { "from": "gpt", "value": "SELECT visiting_team FROM table_name_90 WHERE stadium = \"j...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (host_team VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "What was the name of the host team at Texas stadium?" }, { "from": "gpt", "value": "SELECT host_team FROM table_name_1 WHERE stadium = \"texas stadium\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (host_team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the name of the host team dated December 16?" }, { "from": "gpt", "value": "SELECT host_team FROM table_name_39 WHERE date = \"december 16\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (team VARCHAR, year INTEGER)" }, { "from": "human", "value": "Are there any Teams after 1997?" }, { "from": "gpt", "value": "SELECT team FROM table_name_21 WHERE year > 1997" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER)" }, { "from": "human", "value": "Which class has laps under 77?" }, { "from": "gpt", "value": "SELECT class FROM table_name_85 WHERE laps < 77" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (boarded VARCHAR, class VARCHAR)" }, { "from": "human", "value": "Who boarded first class?" }, { "from": "gpt", "value": "SELECT boarded FROM table_name_48 WHERE class = \"first\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (points INTEGER, year VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?" }, { "from": "gpt", "value": "SELECT MIN(points) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (points INTEGER, entrant VARCHAR)" }, { "from": "human", "value": "What are the highest number of points with an Entrant of warsteiner brewery?" }, { "from": "gpt", "value": "SELECT MAX(points) FROM table_name_8 WHERE entrant = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (d_43 VARCHAR, d_46 VARCHAR)" }, { "from": "human", "value": "What is the D 43 when D 46 is R 6?" }, { "from": "gpt", "value": "SELECT d_43 FROM table_name_68 WHERE d_46 = \"r 6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (d_44 VARCHAR, d_43 VARCHAR)" }, { "from": "human", "value": "What is the D44 when D43 is R 14?" }, { "from": "gpt", "value": "SELECT d_44 FROM table_name_64 WHERE d_43 = \"r 14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (d_48 VARCHAR, d_43 VARCHAR)" }, { "from": "human", "value": "What is the D48 when D 43 is plurality ↑??" }, { "from": "gpt", "value": "SELECT d_48 FROM table_name_27 WHERE d_43 = \"plurality ↑\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (d_44 VARCHAR, d_41 VARCHAR)" }, { "from": "human", "value": "What is the D44 when D41 is D 16?" }, { "from": "gpt", "value": "SELECT d_44 FROM table_name_70 WHERE d_41 = \"d 16\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (gender VARCHAR, decile VARCHAR, area VARCHAR)" }, { "from": "human", "value": "What gender is the team that has a decile of 5 and in the Dalefield area?" }, { "from": "gpt", "value": "SELECT gender FROM table_name_95 WHERE dec...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (name VARCHAR, roll VARCHAR, area VARCHAR)" }, { "from": "human", "value": "What school in Dalefield has a roll less than 81?" }, { "from": "gpt", "value": "SELECT name FROM table_name_61 WHERE roll < 81 AND area = \"dalefield\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (height__m_ INTEGER, island VARCHAR)" }, { "from": "human", "value": "What is the lowest Height (m) on the island of Burray?" }, { "from": "gpt", "value": "SELECT MIN(height__m_) FROM table_name_22 WHERE island = \"burray\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR)" }, { "from": "human", "value": "What group on the island of Faray has a Height (m) of 32 and a Population of 0?" }, { "from": "gpt", "value": "SELECT grou...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (group VARCHAR, population VARCHAR)" }, { "from": "human", "value": "What group has a Population of see hoy?" }, { "from": "gpt", "value": "SELECT group FROM table_name_23 WHERE population = \"see hoy\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (group VARCHAR, population VARCHAR, island VARCHAR)" }, { "from": "human", "value": "What group on the island of Muckle Green Holm has a population of 0?" }, { "from": "gpt", "value": "SELECT group FROM table_name_49 WHERE popu...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR)" }, { "from": "human", "value": "What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (population VARCHAR, height__m_ VARCHAR, area___ha__ VARCHAR)" }, { "from": "human", "value": "What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (roll VARCHAR, area VARCHAR, decile VARCHAR)" }, { "from": "human", "value": "What is the roll number of the school in Aramoho with a decile of 1?" }, { "from": "gpt", "value": "SELECT roll FROM table_name_86 WHERE area = \"ara...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (area VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the area of Mangamahu primary school?" }, { "from": "gpt", "value": "SELECT area FROM table_name_54 WHERE name = \"mangamahu primary school\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (area VARCHAR, roll VARCHAR, authority VARCHAR, gender VARCHAR)" }, { "from": "human", "value": "What is the area of the coed school with a state authority and a roll number of 122?" }, { "from": "gpt", "value": "SELECT area FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (result___category VARCHAR, year INTEGER)" }, { "from": "human", "value": "Which result is older than 2007?" }, { "from": "gpt", "value": "SELECT result___category FROM table_name_18 WHERE year < 2007" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR)" }, { "from": "human", "value": "What year was the Album/Song Speaking louder than before?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_39 WHERE album___song = \"speaking ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (year INTEGER, album___song VARCHAR)" }, { "from": "human", "value": "What is the most recent year with the Album/Song \"the best worst-case scenario\"?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_19 WHERE a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (score VARCHAR, surface VARCHAR, partner VARCHAR)" }, { "from": "human", "value": "What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (score VARCHAR, partner VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (score VARCHAR, partner VARCHAR)" }, { "from": "human", "value": "What was the score of the final in which Melanie South played with partner Katie O'Brien?" }, { "from": "gpt", "value": "SELECT score FROM table_name_27 WHERE pa...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (outcome VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "What was the outcome of the tournament in Edinburgh?" }, { "from": "gpt", "value": "SELECT outcome FROM table_name_82 WHERE tournament = \"edinburgh\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the total decile with an Authority of state, and a Name of newfield park school?" }, { "from": "gpt", "value": "SELECT SUM(decile) FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR)" }, { "from": "human", "value": "What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?" }, { "from": "gpt"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (name VARCHAR, area VARCHAR)" }, { "from": "human", "value": "Which name has an Area of makarewa?" }, { "from": "gpt", "value": "SELECT name FROM table_name_65 WHERE area = \"makarewa\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR)" }, { "from": "human", "value": "Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131?" }, { "from": "gpt", "value": "SELECT name FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER)" }, { "from": "human", "value": "Add up all the Ends columns that have goals smaller than 0." }, { "from": "gpt", "value": "SELECT SUM(ends) FROM table_name_65 WHERE goals < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (competition VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What was the competition in 2003?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_43 WHERE year = 2003" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (competition VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What was the competition in 2003?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_76 WHERE year = 2003" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (position INTEGER, points VARCHAR, draws VARCHAR)" }, { "from": "human", "value": "Which position has 50+12 points and fewer than 10 draws?" }, { "from": "gpt", "value": "SELECT MAX(position) FROM table_name_92 WHERE points = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR)" }, { "from": "human", "value": "How many positions have goals of fewer than 40 and more than 38 played?" }, { "from": "gpt", "value": "SELECT COUNT(position) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (losses INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)" }, { "from": "human", "value": "How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?" }, { "from": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR)" }, { "from": "human", "value": "What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 p...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR)" }, { "from": "human", "value": "What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126?" }, { "from": "gpt", "value": "SELECT COU...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (loss VARCHAR, long VARCHAR, name VARCHAR, gain VARCHAR, avg_g VARCHAR)" }, { "from": "human", "value": "What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had?" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (long VARCHAR, name VARCHAR, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)" }, { "from": "human", "value": "What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?" }, { "fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What date was the record 20–16?" }, { "from": "gpt", "value": "SELECT date FROM table_name_38 WHERE record = \"20–16\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (attendance VARCHAR, opponent VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What was the attendance in the gave versus the Brewers with a score of 9–6?" }, { "from": "gpt", "value": "SELECT attendance FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (attendance VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the attendance on May 26?" }, { "from": "gpt", "value": "SELECT attendance FROM table_name_90 WHERE date = \"may 26\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR)" }, { "from": "human", "value": "Matches of 127 has how many total number of inns?" }, { "from": "gpt", "value": "SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (runs INTEGER, name VARCHAR, inns VARCHAR)" }, { "from": "human", "value": "Name of clem hill, and Inns larger than 126 has the lowest runs?" }, { "from": "gpt", "value": "SELECT MIN(runs) FROM table_name_83 WHERE name = \"clem...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (matches VARCHAR, runs VARCHAR, inns VARCHAR)" }, { "from": "human", "value": "Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?" }, { "from": "gpt", "value": "SELECT COUNT(matches) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (inns INTEGER, seasons VARCHAR, runs VARCHAR)" }, { "from": "human", "value": "Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?" }, { "from": "gpt", "value": "SELECT MAX(inns) FROM table_name_64 WHERE sea...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (partner VARCHAR, opponents_in_the_final VARCHAR)" }, { "from": "human", "value": "Name the partner for opponents of františek čermák michal mertiňák" }, { "from": "gpt", "value": "SELECT partner FROM table_name_46 WHERE oppone...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (score_in_the_final VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Name the score in the final for january 12, 2013" }, { "from": "gpt", "value": "SELECT score_in_the_final FROM table_name_63 WHERE date = \"january 12,...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Name the opponents for outcome of runner-up and date of august 7, 2011" }, { "from": "gpt", "value": "SELECT opponents_in_the_fina...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (partner VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR)" }, { "from": "human", "value": "Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner" }, { "from": "gpt", "value": "SELECT p...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)" }, { "from": "human", "value": "Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (launched VARCHAR, ship VARCHAR)" }, { "from": "human", "value": "What date was the ship 'Wyandotte' launched?" }, { "from": "gpt", "value": "SELECT launched FROM table_name_45 WHERE ship = \"wyandotte\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (renamed VARCHAR, ship VARCHAR)" }, { "from": "human", "value": "What was the original name of the ship 'Ajax'?" }, { "from": "gpt", "value": "SELECT renamed FROM table_name_58 WHERE ship = \"ajax\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (commissioned_or_completed_ VARCHAR, _ VARCHAR, ship VARCHAR)" }, { "from": "human", "value": "What date was the ship named Manhattan completed?" }, { "from": "gpt", "value": "SELECT commissioned_or_completed_ * _ FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (class VARCHAR, laps VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What class had fewer than 336 laps in 2004?" }, { "from": "gpt", "value": "SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (attendance INTEGER, game INTEGER)" }, { "from": "human", "value": "What is the average attendance of game 1?" }, { "from": "gpt", "value": "SELECT AVG(attendance) FROM table_name_72 WHERE game < 1" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (attendance INTEGER, time VARCHAR)" }, { "from": "human", "value": "What is the attendance amount of the race with a time of 2:07?" }, { "from": "gpt", "value": "SELECT MAX(attendance) FROM table_name_38 WHERE time = \"2:07\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (club VARCHAR, goals_for VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What club has less than 61 goals for and 55 goals against?" }, { "from": "gpt", "value": "SELECT club FROM table_name_33 WHERE goals_for ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (draws VARCHAR, points VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the amount of Draws for the game that had a score of 45+7 and a position below 3?" }, { "from": "gpt", "value": "SELECT COUNT(draws) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (draws INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)" }, { "from": "human", "value": "What was the number of draws when the Elche CF club played 38 and had a goal difference of -16?" }, { "from": "gpt", "value...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (recipient VARCHAR, year INTEGER)" }, { "from": "human", "value": "Who was the recipient for Outstanding actress television series prior to 2008?" }, { "from": "gpt", "value": "SELECT recipient FROM table_name_7 WHERE year < 200...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Who was the opponent at the game when the record was 71-78?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_67 WHERE record = \"71-78\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (date VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the date of the game that had a loss of Risley (0-1)?" }, { "from": "gpt", "value": "SELECT date FROM table_name_2 WHERE loss = \"risley (0-1)\"" } ]
know_sql
chosen