conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_68 (lane INTEGER, mark VARCHAR)" }, { "from": "human", "value": "What's the lowest lane found for a mark of 8.09 pb?" }, { "from": "gpt", "value": "SELECT MIN(lane) FROM table_name_68 WHERE mark = \"8.09 pb\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (heat INTEGER, name VARCHAR)" }, { "from": "human", "value": "What's the sum of all of ivet lalova's Heat stats?" }, { "from": "gpt", "value": "SELECT SUM(heat) FROM table_name_17 WHERE name = \"ivet lalova\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (heat VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What's the total number of Heat recorded for the british virgin islands?" }, { "from": "gpt", "value": "SELECT COUNT(heat) FROM table_name_5 WHERE country = \"brit...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (heat VARCHAR, lane VARCHAR, mark VARCHAR, name VARCHAR)" }, { "from": "human", "value": "When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (time VARCHAR, competition VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What's the Time for the Competition of european cup and has a Venue of Moscow?" }, { "from": "gpt", "value": "SELECT time FROM table_name_87 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (time VARCHAR, event VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?" }, { "from": "gpt", "value": "SELECT time FROM table_name_17 WHERE event...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (competition VARCHAR, event VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What Competition has an Event of 4x100 m relay and has the Time of 38.89?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_77 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (year INTEGER, venue VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What's the lowest Year with a Venue of casablanca and has the Time of 20.63w?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_71 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (college_junior_club_team VARCHAR, nationality VARCHAR)" }, { "from": "human", "value": "What was the College/junior/club team of the player with the united states nationality?" }, { "from": "gpt", "value": "SELECT college_juni...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (pick INTEGER, round VARCHAR, nationality VARCHAR)" }, { "from": "human", "value": "What was the lowest pick number for a united states player picked before round 7?" }, { "from": "gpt", "value": "SELECT MIN(pick) FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (country VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What country was the player with the score line 69-71-72-69=281 from?" }, { "from": "gpt", "value": "SELECT country FROM table_name_6 WHERE score = 69 - 71 - 72 -...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (score VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What was the score of the player from South Africa?" }, { "from": "gpt", "value": "SELECT score FROM table_name_86 WHERE country = \"south africa\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (country VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What country did the player with the score line 73-74-72-64=283 from?" }, { "from": "gpt", "value": "SELECT country FROM table_name_65 WHERE score = 73 - 74 - 72...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (pro_stock VARCHAR)" }, { "from": "human", "value": "Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?" }, { "from": "gpt", "value": "SELECT pro_stock AS Motorcycle FROM table_name_60 WHERE pro_stock = \"tom mart...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (funny_car VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who won Funny Car in 2012?" }, { "from": "gpt", "value": "SELECT funny_car FROM table_name_64 WHERE year = 2012" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (funny_car VARCHAR, pro_stock VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who won Funny Car when Jim Yates won Pro Stock, in years after 1996?" }, { "from": "gpt", "value": "SELECT funny_car FROM table_name_57 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (pro_stock VARCHAR, top_fuel VARCHAR, funny_car VARCHAR)" }, { "from": "human", "value": "Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?" }, { "from": "gpt", "value": "SELECT pro_stock ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (year VARCHAR, funny_car VARCHAR, top_fuel VARCHAR)" }, { "from": "human", "value": "In which year did John Force win Funny Car and Mike Dunn win in Top Fuel?" }, { "from": "gpt", "value": "SELECT year FROM table_name_65 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (races VARCHAR, podiums VARCHAR, poles VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What is the total number of races in the 2006 season with 0 poles and more than 0 podiums?" }, { "from": "gpt", "value": "SELECT C...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR)" }, { "from": "human", "value": "What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?" }, { "from"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (races INTEGER, poles VARCHAR, fastest_laps VARCHAR)" }, { "from": "human", "value": "What is the total number of races when there was more than 1 pole, and the fastest number of laps was less than 4?" }, { "from": "gpt", "value...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (fastest_laps INTEGER, poles INTEGER)" }, { "from": "human", "value": "What was the average number of fastest laps with less than 0 poles?" }, { "from": "gpt", "value": "SELECT AVG(fastest_laps) FROM table_name_5 WHERE poles < 0...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (poles INTEGER, fastest_laps INTEGER)" }, { "from": "human", "value": "What is the smallest number of poles when the fastest laps are less than 0?" }, { "from": "gpt", "value": "SELECT MIN(poles) FROM table_name_52 WHERE fastes...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (wins INTEGER, podiums VARCHAR, season VARCHAR, fastest_laps VARCHAR, races VARCHAR)" }, { "from": "human", "value": "What is the total number of wins in the 2007 season when the fastest laps is 0, there are less than 0 podiums, and there ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (surface VARCHAR, partner VARCHAR)" }, { "from": "human", "value": "What surface did hayley ericksen play on?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_85 WHERE partner = \"hayley ericksen\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (opponents_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Who were the opponents on a hard surface with a score of 6-4, 7-6(2)?" }, { "from": "gpt", "value": "SELECT opponents_in_the_fina...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (score VARCHAR, partner VARCHAR)" }, { "from": "human", "value": "What was hayley ericksen's score?" }, { "from": "gpt", "value": "SELECT score FROM table_name_97 WHERE partner = \"hayley ericksen\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "Who won the Silver the Year Katie Curtis Unknown won the Bronze?" }, { "from": "gpt", "value": "SELECT silver FROM table_name_28 WHERE bronze = \"katie curtis un...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (round VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Round that greg huntington went in?" }, { "from": "gpt", "value": "SELECT round FROM table_name_54 WHERE name = \"greg huntington\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (overall INTEGER, college VARCHAR)" }, { "from": "human", "value": "Total overall from penn state?" }, { "from": "gpt", "value": "SELECT SUM(overall) FROM table_name_16 WHERE college = \"penn state\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (seasons VARCHAR, coach VARCHAR)" }, { "from": "human", "value": "How many seasons did Pat Chambers coach?" }, { "from": "gpt", "value": "SELECT COUNT(seasons) FROM table_name_2 WHERE coach = \"pat chambers\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (to_par VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What was the to par that goes with the score 68-74-69=211?" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_70 WHERE score = 68 - 74 - 69 = 211" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What country is Paul Stankowski from?" }, { "from": "gpt", "value": "SELECT country FROM table_name_21 WHERE player = \"paul stankowski\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (place VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What place goes with the score of 70-66-65=201?" }, { "from": "gpt", "value": "SELECT place FROM table_name_90 WHERE score = 70 - 66 - 65 = 201" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (score VARCHAR, to_par VARCHAR, player VARCHAR)" }, { "from": "human", "value": "When Fred Funk had a to par of E, what was the score?" }, { "from": "gpt", "value": "SELECT score FROM table_name_95 WHERE to_par = \"e\" AND play...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (location VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Where is the location where Scott Junk was the opponent?" }, { "from": "gpt", "value": "SELECT location FROM table_name_89 WHERE opponent = \"scott junk\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "what is the score on 14 december 1974 and the away team is crystal palace?" }, { "from": "gpt", "value": "SELECT score FROM table_name_69 WHERE d...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (date VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "what is the date when the away team is crystal palace?" }, { "from": "gpt", "value": "SELECT date FROM table_name_94 WHERE away_team = \"crystal palace\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (tie_no VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What was the Tie Number of the Bradford City away team?" }, { "from": "gpt", "value": "SELECT tie_no FROM table_name_7 WHERE away_team = \"bradford city\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?" }, { "from": "gpt", "value": "SELECT home_t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (date VARCHAR, tie_no VARCHAR)" }, { "from": "human", "value": "What date has a Tie Number of 4?" }, { "from": "gpt", "value": "SELECT date FROM table_name_92 WHERE tie_no = \"4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (money___ INTEGER, player VARCHAR)" }, { "from": "human", "value": "What is the average money ($) that Tom Weiskopf made?" }, { "from": "gpt", "value": "SELECT AVG(money___) AS $__ FROM table_name_54 WHERE player = \"tom weisko...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (power_notation VARCHAR, long_scale VARCHAR)" }, { "from": "human", "value": "For a long scale of one million, what is the power notion?" }, { "from": "gpt", "value": "SELECT power_notation FROM table_name_35 WHERE long_scale =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (long_scale VARCHAR, power_notation VARCHAR)" }, { "from": "human", "value": "For a power notation of 10 12, what is the long scale?" }, { "from": "gpt", "value": "SELECT long_scale FROM table_name_7 WHERE power_notation = \"10 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (long_scale VARCHAR, short_scale VARCHAR)" }, { "from": "human", "value": "For a short scale of one quadrillion a thousand trillion, what is the Long scale?" }, { "from": "gpt", "value": "SELECT long_scale FROM table_name_94 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (employee__real_name_ VARCHAR, pick__number VARCHAR, brand__to_ VARCHAR)" }, { "from": "human", "value": "what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (opponent_team VARCHAR, scorers VARCHAR)" }, { "from": "human", "value": "Who was the opposing team when the scorer was ronaldinho 90+3'?" }, { "from": "gpt", "value": "SELECT opponent_team FROM table_name_37 WHERE scorers = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (opponent_team VARCHAR, scorers VARCHAR)" }, { "from": "human", "value": "Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'?" }, { "from": "gpt", "value": "SELECT opponent_team F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (score VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What was the score when Altrincham was home?" }, { "from": "gpt", "value": "SELECT score FROM table_name_26 WHERE home_team = \"altrincham\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (goals_against INTEGER, drawn INTEGER)" }, { "from": "human", "value": "How many goals against when the draws are fewer than 3?" }, { "from": "gpt", "value": "SELECT MAX(goals_against) FROM table_name_20 WHERE drawn < 3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (goals_for INTEGER, points_1 VARCHAR, played VARCHAR)" }, { "from": "human", "value": "How many goals when the points 1 is 38 and the played number is less than 42?" }, { "from": "gpt", "value": "SELECT SUM(goals_for) FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (goals_for INTEGER, goal_difference VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What is the fewest goals for when goal difference is +10 and goals against is more than 61?" }, { "from": "gpt", "value": "SEL...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)" }, { "from": "human", "value": "What is the fewest goals for when goals against is 75 and drawn is smaller than 11?" }, { "from": "gpt", "value": "SELECT MIN(goals_for)...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (goals_for INTEGER, played VARCHAR, position VARCHAR, goal_difference VARCHAR)" }, { "from": "human", "value": "What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (goals_for INTEGER, played INTEGER)" }, { "from": "human", "value": "What is the lowest goals for more than 30 games played?" }, { "from": "gpt", "value": "SELECT MIN(goals_for) FROM table_name_88 WHERE played > 30" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (goals_for INTEGER, played VARCHAR, position VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (losses VARCHAR, played INTEGER)" }, { "from": "human", "value": "What is the total number of losses for the over 30 games played?" }, { "from": "gpt", "value": "SELECT COUNT(losses) FROM table_name_50 WHERE played > 30" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (losses VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4?" },...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (score VARCHAR, high_points VARCHAR)" }, { "from": "human", "value": "What is Score, when High Points is \"Dwight Howard (25)\"?" }, { "from": "gpt", "value": "SELECT score FROM table_name_36 WHERE high_points = \"dwight howard...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (score VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is Score, when Team is \"Washington\"?" }, { "from": "gpt", "value": "SELECT score FROM table_name_81 WHERE team = \"washington\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (record VARCHAR, location_attendance VARCHAR)" }, { "from": "human", "value": "What is Record, when Location Attendance is \"Pepsi Center 19,749\"?" }, { "from": "gpt", "value": "SELECT record FROM table_name_97 WHERE location_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (record VARCHAR, game VARCHAR)" }, { "from": "human", "value": "What is Record, when Game is \"36\"?" }, { "from": "gpt", "value": "SELECT record FROM table_name_24 WHERE game = 36" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (date VARCHAR, winning_score VARCHAR)" }, { "from": "human", "value": "What is Date, when Winning Score is −14 (68-68-67-71=274)?" }, { "from": "gpt", "value": "SELECT date FROM table_name_38 WHERE winning_score = −14(68 - 68 -...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (margin_of_victory VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "What is the Margin of Victory, when Tournament is Mercedes Championships (3)?" }, { "from": "gpt", "value": "SELECT margin_of_victory FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (date VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "What is Date, when Tournament, is Greenbrier Classic?" }, { "from": "gpt", "value": "SELECT date FROM table_name_83 WHERE tournament = \"greenbrier classic\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (runner_s__up VARCHAR, margin_of_victory VARCHAR)" }, { "from": "human", "value": "What is Runner(s)-Up when Margin of Victory is 6 Strokes?" }, { "from": "gpt", "value": "SELECT runner_s__up FROM table_name_87 WHERE margin_of_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (date VARCHAR, runner_s__up VARCHAR)" }, { "from": "human", "value": "What is Date, when Runner(s)-Up is Jonathan Kaye?" }, { "from": "gpt", "value": "SELECT date FROM table_name_18 WHERE runner_s__up = \"jonathan kaye\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (year_named INTEGER, name VARCHAR)" }, { "from": "human", "value": "What is the year that nahete colles was named?" }, { "from": "gpt", "value": "SELECT MAX(year_named) FROM table_name_1 WHERE name = \"nahete colles\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (year_named INTEGER, latitude VARCHAR, diameter__km_ VARCHAR)" }, { "from": "human", "value": "What year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (diameter__km_ VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the diameter in km of t'ien hu colles?" }, { "from": "gpt", "value": "SELECT diameter__km_ FROM table_name_62 WHERE name = \"t'ien hu colles\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (team VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "Which team has driven 134 laps?" }, { "from": "gpt", "value": "SELECT team FROM table_name_22 WHERE laps = 134" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (class VARCHAR, laps VARCHAR, pos VARCHAR)" }, { "from": "human", "value": "In what class is the laps greater than 134 and the position is 4th?" }, { "from": "gpt", "value": "SELECT class FROM table_name_74 WHERE laps > 134 AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (title VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What title did Mentuhotep IV have?" }, { "from": "gpt", "value": "SELECT title FROM table_name_11 WHERE name = \"mentuhotep iv\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (title VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the title of Amenemhat II?" }, { "from": "gpt", "value": "SELECT title FROM table_name_78 WHERE name = \"amenemhat ii\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (title VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the title of Senusret I?" }, { "from": "gpt", "value": "SELECT title FROM table_name_78 WHERE name = \"senusret i\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (title VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the title of Amenemhat I?" }, { "from": "gpt", "value": "SELECT title FROM table_name_57 WHERE name = \"amenemhat i\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR, round VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (method VARCHAR, time VARCHAR, round VARCHAR)" }, { "from": "human", "value": "What is the method when the time was 5:00, and the round higher than 4?" }, { "from": "gpt", "value": "SELECT method FROM table_name_86 WHERE time =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (polling_organisation_client VARCHAR, others VARCHAR)" }, { "from": "human", "value": "When the others had a value of 7%, what was the Polling organisation/client?" }, { "from": "gpt", "value": "SELECT polling_organisation_clien...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (player VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What player plays the position of small forward?" }, { "from": "gpt", "value": "SELECT player FROM table_name_26 WHERE position = \"small forward\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (latitude VARCHAR, diameter__km_ VARCHAR)" }, { "from": "human", "value": "What is the latitude of the 0 diameter?" }, { "from": "gpt", "value": "SELECT latitude FROM table_name_18 WHERE diameter__km_ = 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (longitude VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the longitude of Angerona Tholus?" }, { "from": "gpt", "value": "SELECT longitude FROM table_name_35 WHERE name = \"angerona tholus\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (diameter__km_ INTEGER, name VARCHAR)" }, { "from": "human", "value": "What is the smallest diameter for Eirene Tholus?" }, { "from": "gpt", "value": "SELECT MIN(diameter__km_) FROM table_name_97 WHERE name = \"eirene tholus\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (game INTEGER, date VARCHAR)" }, { "from": "human", "value": "What was the game on April 25?" }, { "from": "gpt", "value": "SELECT MIN(game) FROM table_name_88 WHERE date = \"april 25\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (wkts INTEGER, ovrs VARCHAR, econ VARCHAR)" }, { "from": "human", "value": "what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84?" }, { "from": "gpt", "value": "SELECT SUM(wkts) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (runs INTEGER, ovrs VARCHAR, wkts VARCHAR)" }, { "from": "human", "value": "What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?" }, { "from": "gpt", "value": "SELECT SUM(runs) FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (wkts INTEGER, ovrs VARCHAR, runs VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs?" }, { "from": "gpt", "value": "SELECT MAX(wkts...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (sales__billion_ INTEGER, headquarters VARCHAR, assets__billion_$_ VARCHAR)" }, { "from": "human", "value": "What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (sales__billion_ INTEGER, company VARCHAR, profits__billion_$_ VARCHAR)" }, { "from": "human", "value": "What is the average sales in billions of walmart, which has more than 15.7 billion in profits?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (rider VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "What is the rider when the grid is 21?" }, { "from": "gpt", "value": "SELECT rider FROM table_name_35 WHERE grid = 21" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR)" }, { "from": "human", "value": "What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4?" }, { "from":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (laps INTEGER, rider VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha" }, { "from": "gpt", "value": "SELECT MIN(laps) FROM table_name_10 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)" }, { "from": "human", "value": "What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20?" }, { "fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (event VARCHAR, method VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What event had a tko (punches) method and jason macdonald as the opponent?" }, { "from": "gpt", "value": "SELECT event FROM table_name_74 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (opponent VARCHAR, round VARCHAR, method VARCHAR)" }, { "from": "human", "value": "What is the opponent after round number 1 with a method of decision (unanimous)?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (partnering VARCHAR, opponents_in_final VARCHAR)" }, { "from": "human", "value": "Who is the partnering that had the opponents of Marcelo Melo André Sá?" }, { "from": "gpt", "value": "SELECT partnering FROM table_name_29 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (score_in_final VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the score on February 14, 1999?" }, { "from": "gpt", "value": "SELECT score_in_final FROM table_name_32 WHERE date = \"february 14, 1999\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (date VARCHAR, score_in_final VARCHAR)" }, { "from": "human", "value": "What date was the score 6–7(9), 6–2, (10–7)?" }, { "from": "gpt", "value": "SELECT date FROM table_name_29 WHERE score_in_final = \"6–7(9), 6–2, (10–7)\"" ...
know_sql
chosen