conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_89 (date VARCHAR, opponent_in_the_final VARCHAR)" }, { "from": "human", "value": "What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final?" }, { "from": "gpt", "value": "SELECT date FROM table_name_8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (surface VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "What is the surface at the tournament of Vaihingen?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_24 WHERE tournament = \"vaihingen\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (surface VARCHAR, opponent_in_the_final VARCHAR)" }, { "from": "human", "value": "What was the surface of the tournament where Anna Benzon was the opponent in the final?" }, { "from": "gpt", "value": "SELECT surface FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (position INTEGER, points VARCHAR, goals_ VARCHAR, __ VARCHAR)" }, { "from": "human", "value": "What is the average position of Eesti Põlevkivi Jõhvi when they had less than 13 points and worse than a -12 goal differential?" }, { "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What is the to par for the player who had a score of 70-72-70-69=281?" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_18 WHERE score = 70 - 72 - 70 -...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (year VARCHAR, qual VARCHAR)" }, { "from": "human", "value": "What year had the qual of totals" }, { "from": "gpt", "value": "SELECT year FROM table_name_88 WHERE qual = \"totals\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (qual VARCHAR, finish VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What qual had a finish of 16 in 1968?" }, { "from": "gpt", "value": "SELECT qual FROM table_name_64 WHERE finish = \"16\" AND year = \"1968\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (finish VARCHAR, start VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What was the finish with the start of 25 and a lap larger than 46?" }, { "from": "gpt", "value": "SELECT finish FROM table_name_21 WHERE start = \"2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (laps INTEGER, start VARCHAR)" }, { "from": "human", "value": "What was the lowest lap with the ranking of 19?" }, { "from": "gpt", "value": "SELECT MIN(laps) FROM table_name_99 WHERE start = \"19\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (ovrs INTEGER, wkts VARCHAR)" }, { "from": "human", "value": "Name the least ovrs for wkts of 0" }, { "from": "gpt", "value": "SELECT MIN(ovrs) FROM table_name_89 WHERE wkts = 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (econ INTEGER, ovrs VARCHAR, runs VARCHAR)" }, { "from": "human", "value": "Name the average econ for runs more than 703 and ovrs more than 25.5" }, { "from": "gpt", "value": "SELECT AVG(econ) FROM table_name_2 WHERE ovrs > 25.5...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, class VARCHAR, stages_won VARCHAR)" }, { "from": "human", "value": "What is the average year that has a car that won 0 stages with a position of DNF?" }, { "from": "gpt", "value": "SELECT AVG(ye...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (class VARCHAR, stages_won VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the class that that won 2 stages and has a position of DNF?" }, { "from": "gpt", "value": "SELECT class FROM table_name_20 WHERE sta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (position VARCHAR, vehicle VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What position did the BMW vehicle made in 2006 hold?" }, { "from": "gpt", "value": "SELECT position FROM table_name_89 WHERE vehicle = \"bmw\" A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (builder VARCHAR, order_year VARCHAR, fuel_propulsion VARCHAR, model VARCHAR)" }, { "from": "human", "value": "Which builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (model VARCHAR, fleet_series__quantity_ VARCHAR)" }, { "from": "human", "value": "Which model has a Fleet Series (Quantity) of 11081-11092 (12)?" }, { "from": "gpt", "value": "SELECT model FROM table_name_1 WHERE fleet_series__q...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (order_year VARCHAR, fleet_series__quantity_ VARCHAR)" }, { "from": "human", "value": "Which order year has a Fleet Series (Quantity) of 12081-12090 (10)?" }, { "from": "gpt", "value": "SELECT order_year FROM table_name_73 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (fleet_series__quantity_ VARCHAR, builder VARCHAR, order_year VARCHAR)" }, { "from": "human", "value": "Which Fleet Series (Quantity) that has a Builder of mci, and an Order Year of 2002?" }, { "from": "gpt", "value": "SELECT f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)" }, { "from": "human", "value": "Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?" }, { "from": "gpt", "value": "SELECT fleet_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR)" }, { "from": "human", "value": "Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)?" }, { "from": "gpt", "value": "SELECT fuel_propulsion FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (roll INTEGER, name VARCHAR)" }, { "from": "human", "value": "Name the sum of roll for morrinsville school" }, { "from": "gpt", "value": "SELECT SUM(roll) FROM table_name_65 WHERE name = \"morrinsville school\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (authority VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the authority for morrinsville college" }, { "from": "gpt", "value": "SELECT authority FROM table_name_88 WHERE name = \"morrinsville college\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (years VARCHAR, decile VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the years when decile was less than 7 for waitoa school" }, { "from": "gpt", "value": "SELECT years FROM table_name_67 WHERE decile < 7 AND nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (roll VARCHAR, decile VARCHAR, authority VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the total number of roll for state authority and stanley avenue school with decile more than 5" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (grid VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What is the grid total associated with 18 laps?" }, { "from": "gpt", "value": "SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What rider is on an aprilia that went under 18 laps with a grid total of 17?" }, { "from": "gpt", "value": "SELECT rider FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (manufacturer VARCHAR, rider VARCHAR)" }, { "from": "human", "value": "What is the Manufacturer for simone corsi?" }, { "from": "gpt", "value": "SELECT manufacturer FROM table_name_85 WHERE rider = \"simone corsi\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What is the grid total associated with a Time/Retired of +33.634, and a Laps smaller than 19?" }, { "from": "gpt", "value": "SELECT MIN(grid) F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)" }, { "from": "human", "value": "Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750" }, { "from": "gpt", "value": "SELECT power_rpm FROM table_name_37 WHERE torque__...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (capacity VARCHAR, model_engine VARCHAR)" }, { "from": "human", "value": "Name the capacity for the engine of 2.0 duratorq" }, { "from": "gpt", "value": "SELECT capacity FROM table_name_84 WHERE model_engine = \"2.0 duratorq\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (capacity VARCHAR, torque__nm__rpm VARCHAR)" }, { "from": "human", "value": "Name the capacity for the torque of n·m (lb·ft) @4150" }, { "from": "gpt", "value": "SELECT capacity FROM table_name_90 WHERE torque__nm__rpm = \"n·m ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (power_rpm VARCHAR, model_engine VARCHAR)" }, { "from": "human", "value": "Name the power for 1.8 duratorq" }, { "from": "gpt", "value": "SELECT power_rpm FROM table_name_91 WHERE model_engine = \"1.8 duratorq\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)" }, { "from": "human", "value": "Name the power for when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750" }, { "from": "gpt", "value": "SELECT power_rpm FROM table_name_62 WHERE torque_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (goals INTEGER, goal_ratio VARCHAR, debut_in_europe VARCHAR)" }, { "from": "human", "value": "What are the smallest goals with a Goal Ratio of 0.14, and a Debut in Europe smaller than 1995?" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (goal_ratio INTEGER, debut_in_europe VARCHAR, goals VARCHAR, games VARCHAR)" }, { "from": "human", "value": "What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (games INTEGER, goals VARCHAR, goal_ratio VARCHAR)" }, { "from": "human", "value": "What lowest games have 20 goals and a Goal Ratio smaller than 0.14?" }, { "from": "gpt", "value": "SELECT MIN(games) FROM table_name_51 WHERE g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (goal_ratio INTEGER, goals INTEGER)" }, { "from": "human", "value": "What is the largest goal ratio with Goals smaller than 0?" }, { "from": "gpt", "value": "SELECT MAX(goal_ratio) FROM table_name_73 WHERE goals < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (games INTEGER, goal_ratio VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "What lowest games have a Goal Ratio of 0, and Goals smaller than 0?" }, { "from": "gpt", "value": "SELECT MIN(games) FROM table_name_87 WHERE g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (debut_in_europe VARCHAR, rank VARCHAR, goals VARCHAR, games VARCHAR)" }, { "from": "human", "value": "How many debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (points INTEGER, chassis VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the average points of the Ferrari 1512 Chassis after 1965?" }, { "from": "gpt", "value": "SELECT AVG(points) FROM table_name_18 WHERE chas...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (chassis VARCHAR, engine VARCHAR, year VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?" }, { "from": "gpt", "value": "SELECT c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (location VARCHAR, round VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which location had a round of 3, and an Opponent of matt horwich?" }, { "from": "gpt", "value": "SELECT location FROM table_name_9 WHERE round ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (time VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What was the time of sportfight 10?" }, { "from": "gpt", "value": "SELECT time FROM table_name_45 WHERE event = \"sportfight 10\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (opponent VARCHAR, time VARCHAR)" }, { "from": "human", "value": "Which opponent had a time of 0:29?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_71 WHERE time = \"0:29\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (number VARCHAR, name VARCHAR, builder VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What number has the builder ruston hornsby, the date 1961, and the name Topsy?" }, { "from": "gpt", "value": "SELECT COUNT(number) F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (number VARCHAR, builder VARCHAR, works_number VARCHAR)" }, { "from": "human", "value": "What is the number with the builder hunslet and a works number greater than 822?" }, { "from": "gpt", "value": "SELECT COUNT(number) FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the score of the March 14 game?" }, { "from": "gpt", "value": "SELECT score FROM table_name_95 WHERE date = \"march 14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (score VARCHAR, visitor VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the score for the December 11 game against the Ottawa Senators?" }, { "from": "gpt", "value": "SELECT score FROM table_name_52 WHERE visit...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (project VARCHAR, length_overall_in_meters__without_bowsprit_ VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the project with length overall being 25 and name of levante" }, { "from": "gpt", "value": "SELECT proje...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (hull_no INTEGER, destination VARCHAR)" }, { "from": "human", "value": "Name the sum of Hull number with portugal destination" }, { "from": "gpt", "value": "SELECT SUM(hull_no) FROM table_name_84 WHERE destination = \"portugal\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (hull_no INTEGER, destination VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the sum of hull number for italy and year more than 1999" }, { "from": "gpt", "value": "SELECT SUM(hull_no) FROM table_name_37 WHERE des...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (result_s_ VARCHAR, format_s_ VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Give me the result for a format saying album with 1994 as the year." }, { "from": "gpt", "value": "SELECT result_s_ FROM table_name_91 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (award_description_s_ VARCHAR, year VARCHAR)" }, { "from": "human", "value": "List the Award Descriptions for the year of 1989." }, { "from": "gpt", "value": "SELECT award_description_s_ FROM table_name_17 WHERE year = 1989" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the score of the game played on August 5?" }, { "from": "gpt", "value": "SELECT score FROM table_name_66 WHERE date = \"august 5\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "On what date was the Blue Jays record 60-56?" }, { "from": "gpt", "value": "SELECT date FROM table_name_25 WHERE record = \"60-56\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (name VARCHAR, first_elected VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Tell me the name for first elected more than 1988 and district of mason" }, { "from": "gpt", "value": "SELECT name FROM table_name_4 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (party VARCHAR, name VARCHAR, first_elected VARCHAR, position VARCHAR)" }, { "from": "human", "value": "Name the party with first elected more than 1999 and position of supervisor for john foust" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (first_elected VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the total number of first elected for dranesville" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_name_20 WHERE district = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (year VARCHAR, venue VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels?" }, { "from": "gpt", "value": "SELECT COUNT(year) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (competition VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What was the competition in 1978?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_71 WHERE year = 1978" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (year INTEGER, attendance VARCHAR)" }, { "from": "human", "value": "What year was the average attendance 80,388?" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_24 WHERE attendance = \"80,388\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (score VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What was the score with the opponent being New Zealand Warriors?" }, { "from": "gpt", "value": "SELECT score FROM table_name_67 WHERE opponent = \"new zealand w...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (election VARCHAR)" }, { "from": "human", "value": "Which 1st Party has an election in 1847?" }, { "from": "gpt", "value": "SELECT 1 AS st_party FROM table_name_28 WHERE election = \"1847\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (election VARCHAR)" }, { "from": "human", "value": "Which 1st Party has an election in 1865?" }, { "from": "gpt", "value": "SELECT 1 AS st_party FROM table_name_92 WHERE election = \"1865\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (total_points INTEGER, rider VARCHAR, bonus_pts VARCHAR)" }, { "from": "human", "value": "What was the average number of points with bonus pts less than 31 with the rider dennis gavros?" }, { "from": "gpt", "value": "SELECT AVG...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (matches VARCHAR, rider VARCHAR, total_points VARCHAR)" }, { "from": "human", "value": "How many total matches involving dennis gavros had total points less than 167?" }, { "from": "gpt", "value": "SELECT COUNT(matches) FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (matches INTEGER, bonus_pts VARCHAR, total_points VARCHAR)" }, { "from": "human", "value": "What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?" }, { "from": "gpt", "value": "SELECT MI...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (category VARCHAR, date VARCHAR, rider_2 VARCHAR)" }, { "from": "human", "value": "Which category earlier than 2006 has Bart Brentjens as rider 2?" }, { "from": "gpt", "value": "SELECT category FROM table_name_33 WHERE date < 2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (date VARCHAR, category VARCHAR, team VARCHAR)" }, { "from": "human", "value": "How many dates does the ladies category correspond to Rothaus-Cube?" }, { "from": "gpt", "value": "SELECT COUNT(date) FROM table_name_37 WHERE cate...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (category VARCHAR, team VARCHAR)" }, { "from": "human", "value": "Which category has a team of Cannondale Vredestein?" }, { "from": "gpt", "value": "SELECT category FROM table_name_28 WHERE team = \"cannondale vredestein\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (qual VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the qual with a rank 9?" }, { "from": "gpt", "value": "SELECT qual FROM table_name_9 WHERE rank = \"9\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (finish VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the finish in 1956?" }, { "from": "gpt", "value": "SELECT finish FROM table_name_17 WHERE year = \"1956\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (finish VARCHAR, laps VARCHAR, start VARCHAR)" }, { "from": "human", "value": "What is the finish with 200 laps and a start of 3?" }, { "from": "gpt", "value": "SELECT finish FROM table_name_91 WHERE laps = 200 AND start = \"3\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (qual VARCHAR, laps VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the qual with 200 laps and a rank of 27?" }, { "from": "gpt", "value": "SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = \"27\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (rank VARCHAR, finish VARCHAR)" }, { "from": "human", "value": "What is the rank with a 14 finish?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_13 WHERE finish = \"14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (cuts_made INTEGER, tournament VARCHAR, top_25 VARCHAR)" }, { "from": "human", "value": "What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0?" }, { "from": "gpt", "value": "SELECT MIN(cuts_mad...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (wins INTEGER, events VARCHAR, cuts_made VARCHAR, top_25 VARCHAR)" }, { "from": "human", "value": "What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has?" }, { "from": "g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (events INTEGER, tournament VARCHAR, top_25 VARCHAR)" }, { "from": "human", "value": "What is the average number of events the Masters tournament, which has more than 0 top-25, has?" }, { "from": "gpt", "value": "SELECT AVG(eve...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (top_25 VARCHAR, events INTEGER)" }, { "from": "human", "value": "What is the total number of top-25 a tournament with less than 2 events has?" }, { "from": "gpt", "value": "SELECT COUNT(top_25) FROM table_name_93 WHERE events ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (date VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the date of the game that had a loss of Gott (2-7)?" }, { "from": "gpt", "value": "SELECT date FROM table_name_98 WHERE loss = \"gott (2-7)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Who was the opponent at the game when the record was 54-58?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_13 WHERE record = \"54-58\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the score of the game when the record was 59-65?" }, { "from": "gpt", "value": "SELECT score FROM table_name_77 WHERE record = \"59-65\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "Who was the opponent at the game that had a loss of Caldwell (10-11)?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_35 WHERE loss = \"caldwell (...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR)" }, { "from": "human", "value": "Which opponent had a time of 1:26?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_1 WHERE time = \"1:26\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12?" }, { "from": "gpt", "value": "SELECT date FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (catalogue VARCHAR, date VARCHAR, region VARCHAR, format VARCHAR)" }, { "from": "human", "value": "Which catalogue is from the UK region, and is on vinyl, and was dated in 1986?" }, { "from": "gpt", "value": "SELECT catalogue F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR)" }, { "from": "human", "value": "What region has a bronze label and a catalogue of 202 876-270?" }, { "from": "gpt", "value": "SELECT region FROM table_name_82 WHERE label = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (label VARCHAR, region VARCHAR)" }, { "from": "human", "value": "Which label is from the Germany region?" }, { "from": "gpt", "value": "SELECT label FROM table_name_52 WHERE region = \"germany\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (label VARCHAR, catalogue VARCHAR)" }, { "from": "human", "value": "What label has brol 34531 as it's catalogue?" }, { "from": "gpt", "value": "SELECT label FROM table_name_31 WHERE catalogue = \"brol 34531\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (label VARCHAR, format VARCHAR, region VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which label has UK for its region, is on a CD, and is dated from 1986?" }, { "from": "gpt", "value": "SELECT label FROM table_name_6...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR)" }, { "from": "human", "value": "Which catalogue has essential, castle music as it's label?" }, { "from": "gpt", "value": "SELECT catalogue FROM table_name_46 WHERE label = \"essential, castle...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (period_active VARCHAR, release_year_of_first_charted_record VARCHAR, genre VARCHAR)" }, { "from": "human", "value": "What's the period of a rock album released in 1973?" }, { "from": "gpt", "value": "SELECT period_active FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the pick number for bill atessis" }, { "from": "gpt", "value": "SELECT pick__number FROM table_name_15 WHERE name = \"bill atessis\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR)" }, { "from": "human", "value": "Name the total number of overall for defensive tackle" }, { "from": "gpt", "value": "SELECT COUNT(overall) FROM table_name_6 WHERE position = \"defensive tackl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (engine VARCHAR, entrant VARCHAR)" }, { "from": "human", "value": "Which engine has daimler benz ag as an entrant?" }, { "from": "gpt", "value": "SELECT engine FROM table_name_7 WHERE entrant = \"daimler benz ag\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR)" }, { "from": "human", "value": "In which years was the to par +6?" }, { "from": "gpt", "value": "SELECT year_s__won FROM table_name_86 WHERE to_par = \"+6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (total INTEGER, year_s__won VARCHAR)" }, { "from": "human", "value": "In 1991, what was the lowest total?" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_name_31 WHERE year_s__won = \"1991\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER)" }, { "from": "human", "value": "What are the total lanes that have a rank larger than 22?" }, { "from": "gpt", "value": "SELECT SUM(lane) FROM table_name_11 WHERE rank > 22" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)" }, { "from": "human", "value": "Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?" }, { "from": "gpt", "value": "SELECT name FROM table_name_5...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR)" }, { "from": "human", "value": "What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?" }, { "from": "gpt", "value": "SELECT SUM(rank) FROM...
know_sql
chosen