conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Who won the gold when Kim Hyang-Mi won the bronze?"
},
{
"from": "gpt",
"value": "SELECT gold FROM table_name_97 WHERE bronze = \"kim hyang-mi\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (year INTEGER, gold VARCHAR)"
},
{
"from": "human",
"value": "What was the earliest year that Park Jung-Ah won the gold?"
},
{
"from": "gpt",
"value": "SELECT MIN(year) FROM table_name_16 WHERE gold = \"park jung-ah\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (bronze VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Who won the bronze when the Asian Games were in Doha?"
},
{
"from": "gpt",
"value": "SELECT bronze FROM table_name_70 WHERE location = \"doha\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (attendance INTEGER, date VARCHAR)"
},
{
"from": "human",
"value": "What was the Attendance on November 29, 1953?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM table_name_56 WHERE date = \"november 29, 1953\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (nfl_team VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Which NFL team picked Patrick Collins?"
},
{
"from": "gpt",
"value": "SELECT nfl_team FROM table_name_30 WHERE player = \"patrick collins\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (nfl_team VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Which NFL team picked a player for the Wide Receiver position?"
},
{
"from": "gpt",
"value": "SELECT nfl_team FROM table_name_19 WHERE position = \"wide rece... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (result VARCHAR, year INTEGER)"
},
{
"from": "human",
"value": "What result has a year after 2002?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_35 WHERE year > 2002"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (tournament VARCHAR, year INTEGER)"
},
{
"from": "human",
"value": "What tournament has a year prior to 2001?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_26 WHERE year < 2001"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (date VARCHAR, points VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "On what date does visiting team Minnesota score higher than 47 points?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_34 WHERE points ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (date VARCHAR, record VARCHAR, visitor VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What date does visitor team Toronto score less than 49 points and has record of 18-17-7?"
},
{
"from": "gpt",
"value": "SELECT dat... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (fleet_number VARCHAR, model VARCHAR)"
},
{
"from": "human",
"value": "What is the fleet number for the model of Gillig Phantom 3096TB?"
},
{
"from": "gpt",
"value": "SELECT fleet_number FROM table_name_95 WHERE model = \"gilli... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (width VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the width for the year of the 1970?"
},
{
"from": "gpt",
"value": "SELECT width FROM table_name_38 WHERE year = \"1970\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (year VARCHAR, fleet_number VARCHAR)"
},
{
"from": "human",
"value": "Which year has a fleet number of 603?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_22 WHERE fleet_number = \"603\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (length VARCHAR, fleet_number VARCHAR)"
},
{
"from": "human",
"value": "What is the length of fleet number 501-506?"
},
{
"from": "gpt",
"value": "SELECT length FROM table_name_62 WHERE fleet_number = \"501-506\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (fleet_number VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is fleet number for the year of 19xx?"
},
{
"from": "gpt",
"value": "SELECT fleet_number FROM table_name_62 WHERE year = \"19xx\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (fleet_number VARCHAR, model VARCHAR)"
},
{
"from": "human",
"value": "What is the fleet number of Model Orion 01.507?"
},
{
"from": "gpt",
"value": "SELECT fleet_number FROM table_name_23 WHERE model = \"orion 01.507\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (round INTEGER, player VARCHAR, pick VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback?"
},
{
"from": "gpt",
"value": "SELECT M... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest round of Ed Smith, who had a pick lower than 19?"
},
{
"from": "gpt",
"value": "SELECT MIN(round) FROM table_name_29 WHERE player... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "Which player had a round of 27?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_4 WHERE round = 27"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (position VARCHAR, round VARCHAR, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "What is the position of the player with a round less than 20 from the school/club Washington?"
},
{
"from": "gpt",
"value": "SELECT po... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (record VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Location of hemisfair arena had what record?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_43 WHERE location = \"hemisfair arena\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (game INTEGER, record VARCHAR)"
},
{
"from": "human",
"value": "Record of 20–4 involved what highest game?"
},
{
"from": "gpt",
"value": "SELECT MAX(game) FROM table_name_44 WHERE record = \"20–4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (game INTEGER, opponent VARCHAR)"
},
{
"from": "human",
"value": "Opponent of @ phoenix suns had what sum of game?"
},
{
"from": "gpt",
"value": "SELECT SUM(game) FROM table_name_52 WHERE opponent = \"@ phoenix suns\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (record VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Score of 122–105 had what record?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_68 WHERE score = \"122–105\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (opponents_in_the_final VARCHAR, partner VARCHAR)"
},
{
"from": "human",
"value": "In the final, who are the opponents of partner Simon Aspelin?"
},
{
"from": "gpt",
"value": "SELECT opponents_in_the_final FROM table_name_9 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "For the tournament played on 26 February 2006, what surface was used?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_35 WHERE date = \"26 february ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which Date has a Record of 58–10?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_78 WHERE record = \"58–10\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Which Date has a Score of 106–112?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_58 WHERE score = \"106–112\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (second VARCHAR, skip VARCHAR)"
},
{
"from": "human",
"value": "Who was second when Martynas Norkus was the skip?"
},
{
"from": "gpt",
"value": "SELECT second FROM table_name_86 WHERE skip = \"martynas norkus\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (second VARCHAR, lead VARCHAR)"
},
{
"from": "human",
"value": "Who was the second when Ilian Kirilov was the lead?"
},
{
"from": "gpt",
"value": "SELECT second FROM table_name_2 WHERE lead = \"ilian kirilov\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (lead VARCHAR, skip VARCHAR)"
},
{
"from": "human",
"value": "Who was the lead when Jamie Meikle was the skip?"
},
{
"from": "gpt",
"value": "SELECT lead FROM table_name_11 WHERE skip = \"jamie meikle\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (lead VARCHAR, skip VARCHAR)"
},
{
"from": "human",
"value": "Who was the lead when Ritvars Gulbis was the skip?"
},
{
"from": "gpt",
"value": "SELECT lead FROM table_name_10 WHERE skip = \"ritvars gulbis\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (third VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "Who came in third in England?"
},
{
"from": "gpt",
"value": "SELECT third FROM table_name_60 WHERE nation = \"england\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (nation VARCHAR, third VARCHAR)"
},
{
"from": "human",
"value": "In what nation did Darko Sovran place third?"
},
{
"from": "gpt",
"value": "SELECT nation FROM table_name_19 WHERE third = \"darko sovran\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the tournament with a w/o score on November 5, 2007?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_62 WHERE score = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (surface VARCHAR, tournament VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the surface of eckental tournament with a w/o score?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_94 WHERE tournamen... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the tournament with a hard surface and Ruben de Kleijn as the opponent?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (score VARCHAR, surface VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the score of the tournament on November 5, 2007 with a carpet surface?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_90 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (surface VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the surface of the tournament with Sascha Kloer as the opponent?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_37 WHERE opponent = \"s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (team VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "what team scored in gomel"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_10 WHERE location = \"gomel\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (conceded INTEGER, position VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What is the average conceded number of the team with a position lower than 8 and more than 2 wins?"
},
{
"from": "gpt",
"value": "SELECT AVG(co... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (scored INTEGER, losses VARCHAR, draws VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What is the averaged scored number of team guaraní, which has less than 6 draws and less than 5 losses?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (scored VARCHAR, position INTEGER)"
},
{
"from": "human",
"value": "What is the total number scored of the team positioned lower than 10?"
},
{
"from": "gpt",
"value": "SELECT COUNT(scored) FROM table_name_72 WHERE position > 1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (wins INTEGER, played VARCHAR, scored VARCHAR, conceded VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (points INTEGER, losses VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest number of points of the team with 2 losses and a lower than 1 position?"
},
{
"from": "gpt",
"value": "SELECT MIN(points) FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (intercontinental_cup_1993 VARCHAR, supercopa_sudamericana_1993 VARCHAR)"
},
{
"from": "human",
"value": "What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (november INTEGER, game VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?"
},
{
"from": "gpt",
"value": "SELECT MI... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (family_friendly VARCHAR, decade VARCHAR, genre VARCHAR)"
},
{
"from": "human",
"value": "What is the family friendly status of the punk genre song from the 1970s?"
},
{
"from": "gpt",
"value": "SELECT family_friendly FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (artist VARCHAR, genre VARCHAR)"
},
{
"from": "human",
"value": "Who is the artist of the rock song?"
},
{
"from": "gpt",
"value": "SELECT artist FROM table_name_7 WHERE genre = \"rock\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (bronze INTEGER, gold INTEGER)"
},
{
"from": "human",
"value": "What is the highest number of bronze medals for nations with under 0 golds?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_46 WHERE gold < 0"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (points INTEGER, player VARCHAR, extra_points VARCHAR)"
},
{
"from": "human",
"value": "How many points did Stuart have when he had 0 extra points?"
},
{
"from": "gpt",
"value": "SELECT MIN(points) FROM table_name_53 WHERE play... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR)"
},
{
"from": "human",
"value": "Who had the lowest field goals but had 10 points and more than 2 touchdowns?"
},
{
"from": "gpt",
"value": "SELECT MIN(field_goals) FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (points INTEGER, player VARCHAR, touchdowns VARCHAR)"
},
{
"from": "human",
"value": "How many points did Stuart have when he had less than 1 touchdown?"
},
{
"from": "gpt",
"value": "SELECT SUM(points) FROM table_name_80 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (points INTEGER, extra_points VARCHAR, field_goals VARCHAR)"
},
{
"from": "human",
"value": "Who had a points average with 0 extra points and 0 field goals?"
},
{
"from": "gpt",
"value": "SELECT AVG(points) FROM table_name_33 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (result VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What was the result in the Golden Reel Awards?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_38 WHERE event = \"golden reel awards\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Record of 16–29 is how many attendance?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_32 WHERE record = \"16–29\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (score VARCHAR, loss VARCHAR)"
},
{
"from": "human",
"value": "Loss of peavy (4–3) is what score?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_5 WHERE loss = \"peavy (4–3)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (attendance INTEGER, score VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "Score of 3–2, and a Opponent of reds had what sum of attendance?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM table_name_21 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "Score of 6–4, and a Opponent of @ marlins had what record?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_96 WHERE score = \"6–4\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (cuts_made INTEGER, tournament VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Which Cuts made has a Tournament of totals, and Wins smaller than 11?"
},
{
"from": "gpt",
"value": "SELECT AVG(cuts_made) FROM table_name_2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (top_25 INTEGER, top_5 INTEGER)"
},
{
"from": "human",
"value": "Which Top-25 has a Top-5 smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT SUM(top_25) FROM table_name_3 WHERE top_5 < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?"
},
{
"from": "gpt",
"value": "SELECT SUM(top_25) FROM table_name_71 WHERE top_5 >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (top_5 INTEGER, wins VARCHAR, events VARCHAR)"
},
{
"from": "human",
"value": "Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?"
},
{
"from": "gpt",
"value": "SELECT MAX(top_5) FROM table_name_47 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (top_5 INTEGER, cuts_made VARCHAR, events VARCHAR)"
},
{
"from": "human",
"value": "Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?"
},
{
"from": "gpt",
"value": "SELECT MIN(top_5) FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (events INTEGER, top_10 VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?"
},
{
"from": "gpt",
"value": "SELECT MAX(events) FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "When the surface is clay, and the tournament of barcelona what is the score?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_29 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (surface VARCHAR, outcome VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What was the surface when the opponent was judith wiesner, and the outcome was winner?"
},
{
"from": "gpt",
"value": "SELECT surface FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (opponent VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "What is the opponent for the tournament of rio de janeiro?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_22 WHERE tournament = \"rio de ja... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the opponent with the outcome of runner-up with a date of 19 september 1994?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (opponent VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "What was the opponent for the tournament of taranto?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_97 WHERE tournament = \"taranto\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (fastest_lap VARCHAR, race_winner VARCHAR)"
},
{
"from": "human",
"value": "Who had the fastest lap where Joan Lascorz was the winner?"
},
{
"from": "gpt",
"value": "SELECT fastest_lap FROM table_name_45 WHERE race_winner = \"j... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (race_winner VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "Who won the round in Europe?"
},
{
"from": "gpt",
"value": "SELECT race_winner FROM table_name_1 WHERE round = \"europe\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (game VARCHAR, score VARCHAR, january VARCHAR)"
},
{
"from": "human",
"value": "How many games have a Score of 3–0, and a January larger than 12?"
},
{
"from": "gpt",
"value": "SELECT COUNT(game) FROM table_name_16 WHERE score ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (opponent VARCHAR, score VARCHAR, january VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (game INTEGER, january VARCHAR)"
},
{
"from": "human",
"value": "Which Game is the highest that has a January of 28?"
},
{
"from": "gpt",
"value": "SELECT MAX(game) FROM table_name_51 WHERE january = 28"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR, january VARCHAR)"
},
{
"from": "human",
"value": "Which Score has a Game larger than 47, and a January smaller than 25?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_19 WHERE game > 4... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (stroke VARCHAR, max_power VARCHAR)"
},
{
"from": "human",
"value": "What stroke has a max power of 109 ps(80kw)@4000 rpm?"
},
{
"from": "gpt",
"value": "SELECT stroke FROM table_name_39 WHERE max_power = \"109 ps(80kw)@4000 rp... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (cr VARCHAR, vehicle VARCHAR)"
},
{
"from": "human",
"value": "The nissan primera p12 nissan almera n16 has what C.R.?"
},
{
"from": "gpt",
"value": "SELECT cr FROM table_name_60 WHERE vehicle = \"nissan primera p12 nissan alme... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (displacement VARCHAR, code VARCHAR)"
},
{
"from": "human",
"value": "What displacement has the code yd22ddt?"
},
{
"from": "gpt",
"value": "SELECT displacement FROM table_name_22 WHERE code = \"yd22ddt\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (code VARCHAR, cr VARCHAR)"
},
{
"from": "human",
"value": "What code has a C.R of 16.7:1?"
},
{
"from": "gpt",
"value": "SELECT code FROM table_name_97 WHERE cr = \"16.7:1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (outcome VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What Outcome happened on a Date that was 20 november 2011?"
},
{
"from": "gpt",
"value": "SELECT outcome FROM table_name_61 WHERE date = \"20 november 2011\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Which Away team has a Score of 0–3?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_4 WHERE score = \"0–3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (attendance VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "Which Attendance has a Tie number of 5?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_63 WHERE tie_no = \"5\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (score VARCHAR, attendance VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "Which Score has an Attendance of 23 january 1999, and a Tie # of 6?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_74 WHERE atten... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (tie_no VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "Which Tie #has an Attendance of 54,591?"
},
{
"from": "gpt",
"value": "SELECT tie_no FROM table_name_16 WHERE attendance = \"54,591\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_6... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (attendance VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "Which Attendance has a Tie # of 15?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_25 WHERE tie_no = \"15\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (year VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "In what Year was the Position 11th?"
},
{
"from": "gpt",
"value": "SELECT COUNT(year) FROM table_name_80 WHERE position = \"11th\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (competition VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the name of the Competition in Rome, Italy?"
},
{
"from": "gpt",
"value": "SELECT competition FROM table_name_46 WHERE venue = \"rome, italy\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What Notes after 1983 have a Position of 18th?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_64 WHERE year > 1983 AND position = \"1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (position VARCHAR, year VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "After 1983, what was the Position in Seoul, South Korea?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_92 WHERE year > 1983 AND v... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?"
},
{
"from": "gpt",
"value": "SELECT COUNT(gold) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "How many Gold medals does the country with 2 Silver and more than 2 Bronze have?"
},
{
"from": "gpt",
"value": "SELECT COUNT(gold) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (age_as_of_1_february_2014 VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the Age of dorothy Peel as of 1 February 2014 ?"
},
{
"from": "gpt",
"value": "SELECT age_as_of_1_february_2014 FROM table_name_18 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (name VARCHAR, age_as_of_1_february_2014 VARCHAR)"
},
{
"from": "human",
"value": "Who is 111years, 358days Age as of 1 February 2014?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_86 WHERE age_as_of_1_february_201... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (capacity INTEGER, city VARCHAR, stadium VARCHAR)"
},
{
"from": "human",
"value": "Which Capacity has a City of london, and a Stadium of queen's club?"
},
{
"from": "gpt",
"value": "SELECT AVG(capacity) FROM table_name_85 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (rank INTEGER, name VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which Rank has a Name of thomas morgenstern, and Points larger than 368.9?"
},
{
"from": "gpt",
"value": "SELECT AVG(rank) FROM table_name_38 WHERE n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?"
},
{
"from": "gpt",
"value": "SELECT MIN(tota... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (silver INTEGER, rank INTEGER)"
},
{
"from": "human",
"value": "What is the highest number of silvers for ranks over 7?"
},
{
"from": "gpt",
"value": "SELECT MAX(silver) FROM table_name_88 WHERE rank > 7"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent when the record recorded was 64-78?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_51 WHERE record = \"64-78\""
}
] | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.