conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_57 (school_club_team VARCHAR, player VARCHAR)" }, { "from": "human", "value": "what is the school that hosts jim goodman" }, { "from": "gpt", "value": "SELECT school_club_team FROM table_name_57 WHERE player = \"jim goodman\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which Surface has a Date of january 2, 2006?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_68 WHERE date = \"january 2, 2006\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (tournament VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which tournament happened on september 25, 2006?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_78 WHERE date = \"september 25, 2006\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (date VARCHAR, opponen VARCHAR)" }, { "from": "human", "value": "When did joão souza play?" }, { "from": "gpt", "value": "SELECT date FROM table_name_11 WHERE opponen = \"joão souza\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Which Surface has a Score of 7–5, 6–4?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_17 WHERE score = \"7–5, 6–4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (nfl_draft INTEGER, player VARCHAR, overall_pick VARCHAR)" }, { "from": "human", "value": "What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98?" }, { "from": "gpt", "value": "SE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (position VARCHAR, nfl_draft VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What position has 1958 as the NFL Draft, and jerry kramer as the player?" }, { "from": "gpt", "value": "SELECT position FROM table_name_55 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (overall_pick INTEGER, position VARCHAR, nfl_draft VARCHAR)" }, { "from": "human", "value": "What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What was the score at Spartan Stadium when San Jose was the Home team?" }, { "from": "gpt", "value": "SELECT score FROM table_name_18 WHERE home...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Where was the game on September 11, 2004?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_95 WHERE date = \"september 11, 2004\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the home team on September 20, 1998 at Spartan Stadium?" }, { "from": "gpt", "value": "SELECT home_team FROM table_name_39 WHERE venue = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (method VARCHAR, round VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What method has a round less than 3, and 3:36 as the time?" }, { "from": "gpt", "value": "SELECT method FROM table_name_5 WHERE round < 3 AND time = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What method has randy couture as the opponent?" }, { "from": "gpt", "value": "SELECT method FROM table_name_15 WHERE opponent = \"randy couture\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (median_household_income VARCHAR, per_capita_income VARCHAR)" }, { "from": "human", "value": "What is the median household income where the per capita is $28,789?" }, { "from": "gpt", "value": "SELECT median_household_income FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (median_family_income VARCHAR, per_capita_income VARCHAR)" }, { "from": "human", "value": "What is the median income for a family whose per capita income is $18,296?" }, { "from": "gpt", "value": "SELECT median_family_income FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (resolution VARCHAR, network VARCHAR)" }, { "from": "human", "value": "What is the resolution of the network Canal de las Estrellas?" }, { "from": "gpt", "value": "SELECT resolution FROM table_name_96 WHERE network = \"canal de...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (resolution VARCHAR, network VARCHAR)" }, { "from": "human", "value": "What is the resolution of the network Carismatv?" }, { "from": "gpt", "value": "SELECT resolution FROM table_name_47 WHERE network = \"carismatv\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (dish VARCHAR, official_website VARCHAR)" }, { "from": "human", "value": "Which dish belongs to the network that has the official website of ksat.com?" }, { "from": "gpt", "value": "SELECT dish FROM table_name_46 WHERE official...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR)" }, { "from": "human", "value": "In which city is the network latv licensed?" }, { "from": "gpt", "value": "SELECT city_of_license FROM table_name_93 WHERE network = \"latv\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (city_of_license VARCHAR, callsign VARCHAR)" }, { "from": "human", "value": "In which city is the network with the callsign kgns-dt3 licensed?" }, { "from": "gpt", "value": "SELECT city_of_license FROM table_name_71 WHERE calls...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (introduced INTEGER, retired VARCHAR, manufacturer VARCHAR, quantity VARCHAR)" }, { "from": "human", "value": "How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999?" }, { "fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (quantity INTEGER, introduced VARCHAR)" }, { "from": "human", "value": "What is the total number of quantity when the introductory year was 1984?" }, { "from": "gpt", "value": "SELECT SUM(quantity) FROM table_name_30 WHERE intr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR)" }, { "from": "human", "value": "How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?" }, { "from": "gpt", "value": "SELECT COU...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (quantity VARCHAR, manufacturer VARCHAR, retired VARCHAR)" }, { "from": "human", "value": "How many in the quantity section had Fokker as a manufacturer and retired later than 1999?" }, { "from": "gpt", "value": "SELECT COUNT(q...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (champion VARCHAR, scoreboard VARCHAR)" }, { "from": "human", "value": "Which Championship has a Scoreboard that is 22-14?" }, { "from": "gpt", "value": "SELECT champion FROM table_name_74 WHERE scoreboard = \"22-14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (year_completed INTEGER, rank VARCHAR, height_ft__m_ VARCHAR)" }, { "from": "human", "value": "What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed?" }, { "from": "gpt", "value": "SELECT MAX(ye...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (floors__stories_ INTEGER, height_ft__m_ VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "How many floors are in the 274 (84) ft (m) building that is ranked number 1?" }, { "from": "gpt", "value": "SELECT AVG(floors__sto...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (rank INTEGER, floors__stories_ INTEGER)" }, { "from": "human", "value": "Which is the highest ranked building with more than 15 floors?" }, { "from": "gpt", "value": "SELECT MAX(rank) FROM table_name_45 WHERE floors__stories_ ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (scored INTEGER, draws VARCHAR, position VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws?" }, { "f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (conceded INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the average number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10?...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (wins INTEGER, position VARCHAR, scored VARCHAR)" }, { "from": "human", "value": "What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?" }, { "from": "gpt", "value": "SELECT MI...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (scored VARCHAR, position VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What is the total number scored for the team that had 19 points and a position larger than 4?" }, { "from": "gpt", "value": "SELECT COUNT(score...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (conceded INTEGER, points VARCHAR, wins VARCHAR, scored VARCHAR)" }, { "from": "human", "value": "What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points?" }, { "from": "gpt...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (date VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which Date has a Result of l 14–13?" }, { "from": "gpt", "value": "SELECT date FROM table_name_88 WHERE result = \"l 14–13\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (date VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which Date has a Result of w 13–6?" }, { "from": "gpt", "value": "SELECT date FROM table_name_84 WHERE result = \"w 13–6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the Result of Week larger than 3 on 1971-11-07?" }, { "from": "gpt", "value": "SELECT result FROM table_name_94 WHERE week > 3 AND date = \"1...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)" }, { "from": "human", "value": "What is the pos with more than 1 tier during Pokal Slovenije 1. round?" }, { "from": "gpt", "value": "SELECT pos FROM table_name_20 WHERE ti...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (cubic_inches__exact_ VARCHAR, metric_value VARCHAR)" }, { "from": "human", "value": "What are the exact Cubic inches of the Metric value of 104.955 L?" }, { "from": "gpt", "value": "SELECT cubic_inches__exact_ FROM table_name_9...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (translation VARCHAR, us_customary VARCHAR)" }, { "from": "human", "value": "What is the Translation of the US Customary value 0.263 pt?" }, { "from": "gpt", "value": "SELECT translation FROM table_name_47 WHERE us_customary = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (metric_value VARCHAR, russian VARCHAR)" }, { "from": "human", "value": "What is the Metric value of Russian че́тверть?" }, { "from": "gpt", "value": "SELECT metric_value FROM table_name_19 WHERE russian = \"че́тверть\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (cubic_inches__exact_ VARCHAR, unit VARCHAR)" }, { "from": "human", "value": "What are the exact Cubic inches of the Unit of kruzhka?" }, { "from": "gpt", "value": "SELECT cubic_inches__exact_ FROM table_name_86 WHERE unit = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (id_code_of_his_zero_fighter VARCHAR, count VARCHAR)" }, { "from": "human", "value": "Which Zero Fighter has a count of 10?" }, { "from": "gpt", "value": "SELECT id_code_of_his_zero_fighter FROM table_name_1 WHERE count = \"10\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR)" }, { "from": "human", "value": "On which day were the subtotal hours 9:30?" }, { "from": "gpt", "value": "SELECT date FROM table_name_9 WHERE sub_total = \"9:30\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (count VARCHAR, flight_hours VARCHAR)" }, { "from": "human", "value": "What is the count for the Zero Fighter with hours of 2:00?" }, { "from": "gpt", "value": "SELECT count FROM table_name_5 WHERE flight_hours = \"2:00\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which record has Katsuomi Inagaki as an opponent?" }, { "from": "gpt", "value": "SELECT record FROM table_name_51 WHERE opponent = \"katsuomi inagaki\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (method VARCHAR, time VARCHAR)" }, { "from": "human", "value": "Which method has a 1:46 time?" }, { "from": "gpt", "value": "SELECT method FROM table_name_63 WHERE time = \"1:46\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is Henri Crockett's highest overall with more than 3 picks?" }, { "from": "gpt", "value": "SELECT MAX(overall) FROM table_name_65 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (college VARCHAR, round INTEGER)" }, { "from": "human", "value": "Which college has fewer than 2 rounds?" }, { "from": "gpt", "value": "SELECT college FROM table_name_7 WHERE round < 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (pick__number VARCHAR, position VARCHAR, round VARCHAR)" }, { "from": "human", "value": "What are the total number of picks for a guard with fewer than 6 rounds?" }, { "from": "gpt", "value": "SELECT COUNT(pick__number) FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (overall INTEGER, position VARCHAR, round VARCHAR)" }, { "from": "human", "value": "What is the lowest overall for a quarterback with fewer than 7 rounds?" }, { "from": "gpt", "value": "SELECT MIN(overall) FROM table_name_88 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (playoffs VARCHAR, open_cup VARCHAR)" }, { "from": "human", "value": "What Playoffs had an Open Cup of 3rd round?" }, { "from": "gpt", "value": "SELECT playoffs FROM table_name_83 WHERE open_cup = \"3rd round\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (segment_d VARCHAR, episode VARCHAR)" }, { "from": "human", "value": "What was the D segment for episode 60?" }, { "from": "gpt", "value": "SELECT segment_d FROM table_name_25 WHERE episode = 60" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (segment_b VARCHAR, netflix VARCHAR)" }, { "from": "human", "value": "What was the B segmint for Netlix S03E01?" }, { "from": "gpt", "value": "SELECT segment_b FROM table_name_54 WHERE netflix = \"s03e01\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (segment_d VARCHAR, episode VARCHAR)" }, { "from": "human", "value": "What was the D segment for episode 60?" }, { "from": "gpt", "value": "SELECT segment_d FROM table_name_51 WHERE episode = 60" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (supercopa_1996 VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What racing club team made supercopa 1996?" }, { "from": "gpt", "value": "SELECT supercopa_1996 FROM table_name_14 WHERE team = \"racing club\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (_number___county VARCHAR, school VARCHAR)" }, { "from": "human", "value": "Name the # country for new palestine" }, { "from": "gpt", "value": "SELECT _number___county FROM table_name_54 WHERE school = \"new palestine\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (enrollment VARCHAR, _number___county VARCHAR)" }, { "from": "human", "value": "Name the number of enrollment for county of 48 madison" }, { "from": "gpt", "value": "SELECT COUNT(enrollment) FROM table_name_47 WHERE _number___c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "Name the IHSAA class with county 18 delaware and tigers mascot" }, { "from": "gpt", "value": "SELECT ihsaa_class FROM table_name_8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (mascot VARCHAR, school VARCHAR)" }, { "from": "human", "value": "Name the mascot for shelbyville" }, { "from": "gpt", "value": "SELECT mascot FROM table_name_33 WHERE school = \"shelbyville\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (capacity INTEGER, stadium VARCHAR, highest VARCHAR)" }, { "from": "human", "value": "What's the capacity that has the highest greater than 1,763 and is at Hampden Park?" }, { "from": "gpt", "value": "SELECT MIN(capacity) FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (highest INTEGER, average VARCHAR, capacity VARCHAR)" }, { "from": "human", "value": "What's the highest with a capacity of greater than 4,000 and an average of 615?" }, { "from": "gpt", "value": "SELECT MAX(highest) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (average VARCHAR, stadium VARCHAR, lowest VARCHAR)" }, { "from": "human", "value": "At Balmoor Stadium, what's the total average having a greater than 400 lowest?" }, { "from": "gpt", "value": "SELECT COUNT(average) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (score VARCHAR, location VARCHAR, winner VARCHAR)" }, { "from": "human", "value": "What was the score of Tommy Aaron (2) when the tournament was in georgia?" }, { "from": "gpt", "value": "SELECT score FROM table_name_38 WHERE l...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (score VARCHAR, winner VARCHAR)" }, { "from": "human", "value": "What was the score of Ken Still (3) when he won first place?" }, { "from": "gpt", "value": "SELECT score FROM table_name_14 WHERE winner = \"ken still (3)\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (beat_by VARCHAR, distance VARCHAR)" }, { "from": "human", "value": "Who beat Chic by 8fm?" }, { "from": "gpt", "value": "SELECT beat_by FROM table_name_9 WHERE distance = \"8fm\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (placing VARCHAR, beat_by VARCHAR, distance VARCHAR)" }, { "from": "human", "value": "What was the placing of the race in which Chic won by 8gf?" }, { "from": "gpt", "value": "SELECT placing FROM table_name_58 WHERE beat_by = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (date VARCHAR, beat_by VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What was the date in which Chic won at CHS?" }, { "from": "gpt", "value": "SELECT date FROM table_name_50 WHERE beat_by = \"won\" AND location =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (opponent VARCHAR, game VARCHAR, location_attendance VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who is the opponent of game 54, which was in Los Angeles and was before day 18?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (date INTEGER, score VARCHAR)" }, { "from": "human", "value": "What is the earliest date of the game with a score of 2-2?" }, { "from": "gpt", "value": "SELECT MIN(date) FROM table_name_14 WHERE score = \"2-2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR)" }, { "from": "human", "value": "What is the average date of the game with the Detroit Red Wings as the opponent?" }, { "from": "gpt", "value": "SELECT AVG(date) FROM table_name_19 WHERE opponen...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (date VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What is the date of the game with a score of 4-2?" }, { "from": "gpt", "value": "SELECT date FROM table_name_51 WHERE score = \"4-2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (loss VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the loss of the game that had a record of 3-3?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_41 WHERE record = \"3-3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (score VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the score of the game with a loss of Mercedes (0-1)?" }, { "from": "gpt", "value": "SELECT score FROM table_name_47 WHERE loss = \"mercedes (0-1)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (opponent VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "Who was the opponent at the game with a loss of Weaver (1-2)?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_71 WHERE loss = \"weaver (1-2)\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (remixed_by VARCHAR, version VARCHAR)" }, { "from": "human", "value": "What's the Remixed by with a Version of Strings for Soul's Mix?" }, { "from": "gpt", "value": "SELECT remixed_by FROM table_name_47 WHERE version = \"string...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR)" }, { "from": "human", "value": "What the highest Year with a Remixed by Laurent Boutonnat?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_38 WHERE remixed_by = \"laurent bout...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (year INTEGER, length VARCHAR, album VARCHAR)" }, { "from": "human", "value": "What's the total Year with a Length of 4:45 an has an Album of Les Mots?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_36 WHERE le...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (length VARCHAR, version VARCHAR)" }, { "from": "human", "value": "What's the Length with the Version of Album Version?" }, { "from": "gpt", "value": "SELECT length FROM table_name_60 WHERE version = \"album version\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (album VARCHAR, year INTEGER)" }, { "from": "human", "value": "What Album has a Year that's larger than 2001?" }, { "from": "gpt", "value": "SELECT album FROM table_name_39 WHERE year > 2001" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (position INTEGER, pilot VARCHAR)" }, { "from": "human", "value": "What is the lowest position for bruce taylor?" }, { "from": "gpt", "value": "SELECT MIN(position) FROM table_name_6 WHERE pilot = \"bruce taylor\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (pilot VARCHAR, position VARCHAR, speed VARCHAR)" }, { "from": "human", "value": "Which pilot has a position above 5 and a speed of 118.8km/h?" }, { "from": "gpt", "value": "SELECT pilot FROM table_name_98 WHERE position > 5 AN...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (position INTEGER, pilot VARCHAR)" }, { "from": "human", "value": "What is Erwin Sommer's average position?" }, { "from": "gpt", "value": "SELECT AVG(position) FROM table_name_18 WHERE pilot = \"erwin sommer\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (rank INTEGER, gross VARCHAR, screens VARCHAR)" }, { "from": "human", "value": "What is the highest rank of the day with a gross of $38,916 and more than 6 screens?" }, { "from": "gpt", "value": "SELECT MAX(rank) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR)" }, { "from": "human", "value": "What is the gross in the United Kingdom?" }, { "from": "gpt", "value": "SELECT gross FROM table_name_33 WHERE territory = \"united kingdom\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (territory VARCHAR, screens VARCHAR)" }, { "from": "human", "value": "What is the territory with 17 screens?" }, { "from": "gpt", "value": "SELECT territory FROM table_name_91 WHERE screens = 17" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (gold INTEGER, total VARCHAR, participants VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?" }, { "from": "gpt"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "On what date was the record 39–54?" }, { "from": "gpt", "value": "SELECT date FROM table_name_69 WHERE record = \"39–54\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the record on July 1?" }, { "from": "gpt", "value": "SELECT record FROM table_name_58 WHERE date = \"july 1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (matches INTEGER, wins VARCHAR, pos VARCHAR)" }, { "from": "human", "value": "How many total matches with less than 1 win and a position higher than 8?" }, { "from": "gpt", "value": "SELECT SUM(matches) FROM table_name_13 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR, seats_won VARCHAR, seats_in_house VARCHAR)" }, { "from": "human", "value": "Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (popular_vote INTEGER, year VARCHAR, liberal_leader VARCHAR, seats_won VARCHAR)" }, { "from": "human", "value": "Which Popular vote has a Liberal leader of king, and Seats won larger than 116, and a Year of 1921?" }, { "from": "gpt...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR)" }, { "from": "human", "value": "How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (score VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the score during the 2006-2007 year?" }, { "from": "gpt", "value": "SELECT score FROM table_name_81 WHERE year = \"2006-2007\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (winners VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who were the winners in 2010-2011?" }, { "from": "gpt", "value": "SELECT winners FROM table_name_4 WHERE year = \"2010-2011\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR)" }, { "from": "human", "value": "What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?" }, { "from": "gpt", "value": "SELECT score F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winners VARCHAR)" }, { "from": "human", "value": "Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?" }, { "from": "gpt", "value": "SELECT year FROM table_name_3 WHERE r...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (venue VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What is the venue of the match with a score of 33-22?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_45 WHERE score = \"33-22\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (high_assists VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who had the highest assists during the game on February 22?" }, { "from": "gpt", "value": "SELECT high_assists FROM table_name_28 WHERE date = \"february 22\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (team VARCHAR, location_attendance VARCHAR)" }, { "from": "human", "value": "What team did the Heat play against at the TD Waterhouse Centre?" }, { "from": "gpt", "value": "SELECT team FROM table_name_55 WHERE location_attendan...
know_sql
chosen