conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR)" }, { "from": "human", "value": "Which Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for?" }, { "from": "gpt", "value": "SELECT category FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR)" }, { "from": "human", "value": "what is the highest runners when the jockey is frankie dettori and the placing is higher than 1?" }, { "from": "gpt", "value": "SELECT MAX(runn...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR)" }, { "from": "human", "value": "what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Who is the Partner in the match with a Score of 6-4, 2-6, 7-6?" }, { "from": "gpt", "value": "SELECT partnering FROM table_name_52 WHERE score = \"6-4, 2-6, 7...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR)" }, { "from": "human", "value": "what is the competition when the result is won and the date is september 13, 1996?" }, { "from": "gpt", "value": "SELECT competition FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR)" }, { "from": "human", "value": "what is the date when the competition is 1996 tiger cup and the result is drew?" }, { "from": "gpt", "value": "SELECT date FROM table_name_60 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "what is the score when the competition is 1995 southeast asian games?" }, { "from": "gpt", "value": "SELECT score FROM table_name_1 WHERE competition = \"1995...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (result VARCHAR, venue VARCHAR, date VARCHAR)" }, { "from": "human", "value": "what is the result when the venue is singapore on september 8, 1996?" }, { "from": "gpt", "value": "SELECT result FROM table_name_37 WHERE venue = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (competition VARCHAR, result VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what is the competition when the result is won and the score is 8-0?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_11 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, points VARCHAR, team VARCHAR)" }, { "from": "human", "value": "Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13?" }, { "from": "gpt", "value": "SELE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?" }, { "from": "gpt", "value": "SELECT MIN(points) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR)" }, { "from": "human", "value": "Who was the team 2 in the game with a team 1 of Liege Basket?" }, { "from": "gpt", "value": "SELECT team__number2 FROM table_name_88 WHERE team__nu...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (team__number2 VARCHAR)" }, { "from": "human", "value": "What was the 2nd leg score in the matchup with a team 2 of KK Borac?" }, { "from": "gpt", "value": "SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = \"kk borac...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR)" }, { "from": "human", "value": "What are the serial numbers for the locomotives of Class 4-8-4 β€” oooooooo β€” northern?" }, { "from": "gpt", "value": "SELECT serial_numbers FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR)" }, { "from": "human", "value": "What is the fleet number for the model with Serial number 68056?" }, { "from": "gpt", "value": "SELECT fleet_number_s_ FROM table_name_27 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR)" }, { "from": "human", "value": "What is the serial number of the model made in 1930?" }, { "from": "gpt", "value": "SELECT serial_numbers FROM table_name_82 WHERE year_made = \"1930\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (wheel_arrangement VARCHAR, year_s__retired VARCHAR)" }, { "from": "human", "value": "What is the wheel arrangement for the model that was retired in 1955?" }, { "from": "gpt", "value": "SELECT wheel_arrangement FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (matches INTEGER, clubs VARCHAR)" }, { "from": "human", "value": "What is the lowest number of matches that has a Clubs of 46 β†’ 32?" }, { "from": "gpt", "value": "SELECT MIN(matches) FROM table_name_99 WHERE clubs = \"46 β†’ 32\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR)" }, { "from": "human", "value": "What is the highest number of matches that has a round of Third Round?" }, { "from": "gpt", "value": "SELECT MAX(matches) FROM table_name_22 WHERE round = \"thir...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR)" }, { "from": "human", "value": "What is the prize money for the final round?" }, { "from": "gpt", "value": "SELECT prize_money FROM table_name_58 WHERE round = \"final\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR)" }, { "from": "human", "value": "What is the date for the row with a new entries this round of 44?" }, { "from": "gpt", "value": "SELECT date FROM table_name_71 WHERE new_entries_t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (against INTEGER, wins VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "Which Against has Wins of 11, and Losses smaller than 7?" }, { "from": "gpt", "value": "SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR)" }, { "from": "human", "value": "Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?" }, { "from": "gpt", "value": "SELECT draws FROM table_name_18 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (byes INTEGER, losses INTEGER)" }, { "from": "human", "value": "Which Byes have Losses smaller than 4?" }, { "from": "gpt", "value": "SELECT AVG(byes) FROM table_name_38 WHERE losses < 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (draws VARCHAR, byes VARCHAR, losses VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins?" }, { "from": "gpt", "value": "SELECT COUNT(dr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (draws INTEGER, wimmera_fl VARCHAR, byes VARCHAR)" }, { "from": "human", "value": "What's the total draws for Ararat when the byes are less than 2?" }, { "from": "gpt", "value": "SELECT SUM(draws) FROM table_name_97 WHERE wimme...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR)" }, { "from": "human", "value": "What's the total losses when there are 8 wins and less than 2 byes?" }, { "from": "gpt", "value": "SELECT SUM(losses) FROM table_name_91 WHERE wins =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR)" }, { "from": "human", "value": "What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER)" }, { "from": "human", "value": "What are the draws when the losses are less than 1?" }, { "from": "gpt", "value": "SELECT SUM(draws) FROM table_name_30 WHERE losses < 1" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR)" }, { "from": "human", "value": "What are the amount of wins when the draws are less than 0 and the against is 1348?" }, { "from": "gpt", "value": "SELECT MIN(wins) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR)" }, { "from": "human", "value": "What was the total city area for vehari city with a serial number bigger than 36?" }, { "from": "gpt", "value": "SELECT C...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a se...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (serial_no INTEGER, headquartered_city VARCHAR)" }, { "from": "human", "value": "What is the sum of the serial numbers for narowal city?" }, { "from": "gpt", "value": "SELECT SUM(serial_no) FROM table_name_22 WHERE headquartere...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR)" }, { "from": "human", "value": "What is the sum of the area for the bahawalnagar district with a population more than 134,936?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (district VARCHAR, city_area_km_2__ VARCHAR, serial_no VARCHAR)" }, { "from": "human", "value": "What district was the city with an area smaller than 12 square kilometers and a serial number of 35?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (round INTEGER, school VARCHAR, pick VARCHAR)" }, { "from": "human", "value": "After pick number 158, what is the next round a USC player was picked?" }, { "from": "gpt", "value": "SELECT MIN(round) FROM table_name_20 WHERE sch...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (position VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR)" }, { "from": "human", "value": "Jim Obradovich, picked after round 2, but before pick 183, plays what position?" }, { "from": "gpt", "value": "SELECT position FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What time has q as the notes, and Australia as the country?" }, { "from": "gpt", "value": "SELECT time FROM table_name_95 WHERE notes = \"q\" AND c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What notes have a rank greater than 2, with mexico as the country?" }, { "from": "gpt", "value": "SELECT notes FROM table_name_64 WHERE rank > 2 AN...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the sum of bronzes for teams with more than 0 silver and a total under 1?" }, { "from": "gpt", "value": "SELECT SUM(bronze) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?" }, { "from": "gpt", "value": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (yacht VARCHAR, loa__metres_ VARCHAR)" }, { "from": "human", "value": "What type of yacht has a LOA of 15.15 metres?" }, { "from": "gpt", "value": "SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.15" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR)" }, { "from": "human", "value": "What Soap Opera with the character Teemu Luotola?" }, { "from": "gpt", "value": "SELECT soap_opera FROM table_name_81 WHERE character = \"teemu luotola\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (beer VARCHAR, recorded VARCHAR)" }, { "from": "human", "value": "What beer has a record of 4.08?" }, { "from": "gpt", "value": "SELECT beer FROM table_name_67 WHERE recorded = 4.08" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR)" }, { "from": "human", "value": "Which round has an Opposing Team of manchester united?" }, { "from": "gpt", "value": "SELECT round FROM table_name_64 WHERE opposing_team = \"manchester un...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (date VARCHAR, against INTEGER)" }, { "from": "human", "value": "Which Date has an Against larger than 0?" }, { "from": "gpt", "value": "SELECT date FROM table_name_28 WHERE against > 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (against INTEGER, round VARCHAR)" }, { "from": "human", "value": "Which Against has a Round of fourth round?" }, { "from": "gpt", "value": "SELECT MIN(against) FROM table_name_69 WHERE round = \"fourth round\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (venue VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the venue on 17/02/2008?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_1 WHERE date = \"17/02/2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR)" }, { "from": "human", "value": "What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?" }, { "from": "gpt", "value": "SELECT AVG(qu...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR)" }, { "from": "human", "value": "Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (quantity INTEGER, class_to_1928 VARCHAR)" }, { "from": "human", "value": "What is the smallest quantity having a Class to 1928 of BDi-21?" }, { "from": "gpt", "value": "SELECT MIN(quantity) FROM table_name_79 WHERE class_to_19...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR)" }, { "from": "human", "value": "Which class from 1928 had a class to 1928 of BDi-21?" }, { "from": "gpt", "value": "SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR)" }, { "from": "human", "value": "What were the remarks for the coach having a class from 1928 of Cid-21B?" }, { "from": "gpt", "value": "SELECT remarks FROM table_name_99 WHERE class_f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (b_score INTEGER, total VARCHAR, a_score VARCHAR)" }, { "from": "human", "value": "Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?" }, { "from": "gpt", "value": "SELECT SUM(b_score) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR)" }, { "from": "human", "value": "Which Total has an A Score of 6.5, and a Position larger than 5?" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_name_79 WHERE a_sc...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (date VARCHAR, week VARCHAR)" }, { "from": "human", "value": "What is the date of week 11?" }, { "from": "gpt", "value": "SELECT date FROM table_name_20 WHERE week = 11" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (week INTEGER, opponent VARCHAR)" }, { "from": "human", "value": "What is the latest week when the chicago bears are the opponent?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table_name_27 WHERE opponent = \"chicago be...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (song VARCHAR, place INTEGER)" }, { "from": "human", "value": "What song placed higher than#4?" }, { "from": "gpt", "value": "SELECT song FROM table_name_41 WHERE place > 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (artist VARCHAR, draw INTEGER)" }, { "from": "human", "value": "Who is the artist that drew higher than 4?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_33 WHERE draw > 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?" }, { "from": "gpt", "value": "SELECT COUNT(starts) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (podiums INTEGER, finishes VARCHAR, starts VARCHAR)" }, { "from": "human", "value": "What's the smallest number of podiums having more than 6 starts and 5 finishes?" }, { "from": "gpt", "value": "SELECT MIN(podiums) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (stage_wins VARCHAR, starts VARCHAR, driver VARCHAR, finishes VARCHAR, podiums VARCHAR)" }, { "from": "human", "value": "What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 po...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR)" }, { "from": "human", "value": "What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?" }, { "from": "gpt", "value": "SELECT SUM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)" }, { "from": "human", "value": "What is the average number of electorates (2003) reserved for sc with a constituency number of 50?"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER)" }, { "from": "human", "value": "Which Finals have a Pre-Season larger than 0?" }, { "from": "gpt", "value": "SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER)" }, { "from": "human", "value": "How much A-League has a Pre-Season larger than 0?" }, { "from": "gpt", "value": "SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (last_issue VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What is the last issue entry for Aron's Absurd Armada?" }, { "from": "gpt", "value": "SELECT last_issue FROM table_name_49 WHERE title = \"aron's absurd armad...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR)" }, { "from": "human", "value": "What is the title that was first published in August 2010?" }, { "from": "gpt", "value": "SELECT title FROM table_name_39 WHERE first_issue = \"august 2010\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR)" }, { "from": "human", "value": "What is the title that was first published in February 2009 and is still ongoing?" }, { "from": "gpt", "value": "SELECT title FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (last_issue VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What is the last issue entry of Time and Again?" }, { "from": "gpt", "value": "SELECT last_issue FROM table_name_55 WHERE title = \"time and again\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR)" }, { "from": "human", "value": "What the rank of the Virgin Islands athlete with react under 0.168?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_44 WHERE react <...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR)" }, { "from": "human", "value": "What is the lowest rank for Chris Brown with react greater than 0.244?" }, { "from": "gpt", "value": "SELECT MIN(rank) FROM table_name_44 WHERE ath...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (rank INTEGER, nationality VARCHAR, react VARCHAR)" }, { "from": "human", "value": "What is the highest rank of an athlete from Belgium with react greater than 0.162?" }, { "from": "gpt", "value": "SELECT MAX(rank) FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (Id VARCHAR)" }, { "from": "human", "value": "What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?" }, { "from": "gpt", "value": "SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (Id VARCHAR)" }, { "from": "human", "value": "What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?" }, { "from": "gpt", "value": "SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (Id VARCHAR)" }, { "from": "human", "value": "What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?" }, { "from": "gpt", "value": "SELECT COUNT(2005...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (Id VARCHAR)" }, { "from": "human", "value": "What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006?" }, { "from": "gpt", "value": "SELECT MIN(2009) FROM table_name_45 WHERE 2005 = 11.8 AND 2006 < 12.6" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR)" }, { "from": "human", "value": "What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?" }, { "from": "gpt", "value": "SELECT MAX(2005) FROM table_name_36 WHERE 200...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?" }, { "from": "gpt", "value": "SELECT date FROM table_name_2 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR)" }, { "from": "human", "value": "Which IHSAA Class has a Mascot of eagles, and a City of evansville?" }, { "from": "gpt", "value": "SELECT ihsaa_class FROM table_name_93 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR)" }, { "from": "human", "value": "Which City has a School of indianapolis brebeuf?" }, { "from": "gpt", "value": "SELECT city FROM table_name_54 WHERE school = \"indianapolis brebeuf\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR)" }, { "from": "human", "value": "How much Enrollment has a School of indianapolis tindley?" }, { "from": "gpt", "value": "SELECT COUNT(enrollment) FROM table_name_32 WHERE school = \"indiana...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "Which County has an IHSAA Class of aaaa, and a Mascot of cardinals?" }, { "from": "gpt", "value": "SELECT county FROM table_name_70 WHERE ih...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (total_goals VARCHAR, league_cup_goals INTEGER)" }, { "from": "human", "value": "How many Total Goals values have 0 League Cup Goals?" }, { "from": "gpt", "value": "SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)" }, { "from": "human", "value": "What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (league_goals INTEGER, fa_cup_goals INTEGER)" }, { "from": "human", "value": "What is the average number of League Goals for palyers with 0 FA Cup Goals?" }, { "from": "gpt", "value": "SELECT AVG(league_goals) FROM table_name_2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "what is the highest silver when the total is 4 and bronze is less than 1?" }, { "from": "gpt", "value": "SELECT MAX(silver) FROM table_name_54 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)" }, { "from": "human", "value": "what is the gold when the bronze is 1, total is 6 and silver is less than 3?" }, { "from": "gpt", "value": "SELECT SUM(gold) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR)" }, { "from": "human", "value": "What is province of community with height larger than 1.8 and is in el cibao region?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR)" }, { "from": "human", "value": "What contestant is from santo domingo este and has height smaller than 1.79?" }, { "from": "gpt", "value": "SELECT contestant FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "what is the previous conference when the year joined is 1932 and the mascot is tigers?" }, { "from": "gpt", "value": "SELECT pr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (school VARCHAR, location VARCHAR)" }, { "from": "human", "value": "what is the school when the location is rochester?" }, { "from": "gpt", "value": "SELECT school FROM table_name_60 WHERE location = \"rochester\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR)" }, { "from": "human", "value": "what is the location when the school is muncie burris?" }, { "from": "gpt", "value": "SELECT location FROM table_name_71 WHERE school = \"muncie burris\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (mascot VARCHAR, school VARCHAR)" }, { "from": "human", "value": "what is the mascot when the school is warsaw?" }, { "from": "gpt", "value": "SELECT mascot FROM table_name_25 WHERE school = \"warsaw\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR)" }, { "from": "human", "value": "what is the mascot when the county is 43 kosciusko?" }, { "from": "gpt", "value": "SELECT mascot FROM table_name_82 WHERE county = \"43 kosciusko\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR)" }, { "from": "human", "value": "what is the county when the year left is 1998?" }, { "from": "gpt", "value": "SELECT county FROM table_name_36 WHERE year_left = \"1998\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (film VARCHAR, category VARCHAR, lost_to VARCHAR)" }, { "from": "human", "value": "which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?" }, { "from": "gpt", "value": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR)" }, { "from": "human", "value": "which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Which the Lost to is in 2000" }, { "from": "gpt", "value": "SELECT lost_to FROM table_name_35 WHERE year = 2000" } ]
know_sql
chosen