conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_49 (power VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)" }, { "from": "human", "value": "What is the Power when the acceleration 0–100km/h (0–62mph) is 9.1 s?" }, { "from": "gpt", "value": "SELECT power FROM table_name_49 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)" }, { "from": "human", "value": "What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?" }, { "from": "gpt"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (production VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)" }, { "from": "human", "value": "What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (transmission VARCHAR, production VARCHAR)" }, { "from": "human", "value": "What is the transmission when the production was 2002-2005?" }, { "from": "gpt", "value": "SELECT transmission FROM table_name_29 WHERE production = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (acceleration_0_100km_h__0_62mph_ VARCHAR, transmission VARCHAR)" }, { "from": "human", "value": "What is the acceleration 0–100km/h (0–62mph) when the transmission is 5-speed manual?" }, { "from": "gpt", "value": "SELECT accel...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (year INTEGER, developer_s_ VARCHAR)" }, { "from": "human", "value": "What is the highest year for the Bethesda Game Studios Developer?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_68 WHERE developer_s_ = \"b...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (year INTEGER, game VARCHAR)" }, { "from": "human", "value": "What is the lowest year for the game called The Elder Scrolls v: Skyrim?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_99 WHERE game = \"the elder ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (genre VARCHAR, developer_s_ VARCHAR)" }, { "from": "human", "value": "What game was developed by Naughty Dog?" }, { "from": "gpt", "value": "SELECT genre FROM table_name_33 WHERE developer_s_ = \"naughty dog\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (imed_avicenna_listed VARCHAR, established VARCHAR, degree VARCHAR, regional_offshore VARCHAR, country_territory VARCHAR)" }, { "from": "human", "value": "What is the imed/avicenna listed for a medical school offshore in saint kitts and ne...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (country_territory VARCHAR, imed_avicenna_listed VARCHAR, established VARCHAR)" }, { "from": "human", "value": "What country has a medical school established in 1969 with both an IMED and avicenna?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (established INTEGER, country_territory VARCHAR)" }, { "from": "human", "value": "What is the average year that the medical school in dominican republic was established?" }, { "from": "gpt", "value": "SELECT AVG(established) FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (wins INTEGER, against VARCHAR, byes VARCHAR)" }, { "from": "human", "value": "What are the most wins with byes more than 0 and 1637 against?" }, { "from": "gpt", "value": "SELECT MAX(wins) FROM table_name_99 WHERE against = 16...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (byes VARCHAR, against VARCHAR, losses VARCHAR, sunrayia_fl VARCHAR)" }, { "from": "human", "value": "What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (wins VARCHAR, sunrayia_fl VARCHAR, byes VARCHAR)" }, { "from": "human", "value": "What's the total wins for Wentworth with less than 0 byes?" }, { "from": "gpt", "value": "SELECT COUNT(wins) FROM table_name_45 WHERE sunrayia_f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (venue VARCHAR, opponent VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which venue had an opponent of Sunderland and a result of a 1-1 draw?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_40 WHERE oppon...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (venue VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which venue ended in a 3-0 result?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_35 WHERE result = \"3-0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Where was a 0-5 game played?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_7 WHERE result = \"0-5\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (rank INTEGER, matches INTEGER)" }, { "from": "human", "value": "What is the average rank of a player with fewer than 3 matches?" }, { "from": "gpt", "value": "SELECT AVG(rank) FROM table_name_38 WHERE matches < 3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the opponent on April 21?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_24 WHERE date = \"april 21\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (record VARCHAR, location_attendance VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What's the record on April 12 when the location was The Omni?" }, { "from": "gpt", "value": "SELECT record FROM table_name_25 WHERE lo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (date VARCHAR)" }, { "from": "human", "value": "What date was the score \"score\"?" }, { "from": "gpt", "value": "SELECT date FROM table_name_91 WHERE \"score\" = \"score\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (score VARCHAR, game VARCHAR)" }, { "from": "human", "value": "What's the score of game 77?" }, { "from": "gpt", "value": "SELECT score FROM table_name_20 WHERE game = \"77\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What date had a record of 43-34?" }, { "from": "gpt", "value": "SELECT date FROM table_name_17 WHERE record = \"43-34\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (artist VARCHAR, percentage VARCHAR)" }, { "from": "human", "value": "What Artist had a Percentage of 17.14%?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_5 WHERE percentage = \"17.14%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (percentage VARCHAR, place VARCHAR)" }, { "from": "human", "value": "What Percentage has a Place of 5?" }, { "from": "gpt", "value": "SELECT percentage FROM table_name_73 WHERE place = 5" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (br_number VARCHAR, lms_number INTEGER)" }, { "from": "human", "value": "Which BR number has an LMS number over 14768?" }, { "from": "gpt", "value": "SELECT br_number FROM table_name_5 WHERE lms_number > 14768" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (frequency VARCHAR, city_of_license VARCHAR)" }, { "from": "human", "value": "what is the frequency when the city of license is belleville?" }, { "from": "gpt", "value": "SELECT frequency FROM table_name_42 WHERE city_of_licens...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (class VARCHAR, power VARCHAR)" }, { "from": "human", "value": "what is the class when the power is 22500 watts?" }, { "from": "gpt", "value": "SELECT class FROM table_name_17 WHERE power = \"22500 watts\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (class VARCHAR, identifier VARCHAR)" }, { "from": "human", "value": "what is the class when the identifier is cjbc-1-fm?" }, { "from": "gpt", "value": "SELECT class FROM table_name_60 WHERE identifier = \"cjbc-1-fm\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (recnet VARCHAR, city_of_license VARCHAR)" }, { "from": "human", "value": "what is the recnet when the city of license is peterborough?" }, { "from": "gpt", "value": "SELECT recnet FROM table_name_68 WHERE city_of_license = \"p...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (power VARCHAR, city_of_license VARCHAR)" }, { "from": "human", "value": "what is the power when the city of license is belleville?" }, { "from": "gpt", "value": "SELECT power FROM table_name_71 WHERE city_of_license = \"bellev...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (identifier VARCHAR, power VARCHAR)" }, { "from": "human", "value": "what is the identifier when the power is 22500 watts?" }, { "from": "gpt", "value": "SELECT identifier FROM table_name_17 WHERE power = \"22500 watts\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (opponents INTEGER, date VARCHAR)" }, { "from": "human", "value": "What is the Opponents in the game with a Date of nov. 25?" }, { "from": "gpt", "value": "SELECT MIN(opponents) FROM table_name_80 WHERE date = \"nov. 25\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (games VARCHAR, name VARCHAR)" }, { "from": "human", "value": "How many games does leandro love have?" }, { "from": "gpt", "value": "SELECT games FROM table_name_96 WHERE name = \"leandro love\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (goals INTEGER, assists VARCHAR, years VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?" }, { "from": "gpt", "value": "SELECT MI...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (goals INTEGER, games VARCHAR, assists VARCHAR)" }, { "from": "human", "value": "What is the lowest number of goals of the player with 9 (0) games and less than 0 assists?" }, { "from": "gpt", "value": "SELECT MIN(goals) FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (finals VARCHAR, goals VARCHAR, assists VARCHAR)" }, { "from": "human", "value": "How many finals had more than 0 goals and 8 assists?" }, { "from": "gpt", "value": "SELECT finals FROM table_name_14 WHERE goals > 0 AND assists ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (rank INTEGER, heat VARCHAR, nationality VARCHAR, time VARCHAR)" }, { "from": "human", "value": "When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank?" }, { "from": "gpt...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (rank INTEGER, nationality VARCHAR, lane VARCHAR, heat VARCHAR)" }, { "from": "human", "value": "What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (lane VARCHAR, heat INTEGER)" }, { "from": "human", "value": "What is the total lane for a heat larger than 7?" }, { "from": "gpt", "value": "SELECT COUNT(lane) FROM table_name_16 WHERE heat > 7" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (heat INTEGER, nationality VARCHAR, lane VARCHAR)" }, { "from": "human", "value": "What is the highest heat when the nationality is poland, and the lane is smaller than 6?" }, { "from": "gpt", "value": "SELECT MAX(heat) FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (lead_pitch_mm INTEGER, body_width_mm INTEGER)" }, { "from": "human", "value": "Which Lead Pitch/mm has a Body Width/mm larger than 10.16?" }, { "from": "gpt", "value": "SELECT SUM(lead_pitch_mm) FROM table_name_28 WHERE body_w...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (body_width_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)" }, { "from": "human", "value": "How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (lead_pitch_mm INTEGER, part_number VARCHAR)" }, { "from": "human", "value": "Which Lead Pitch/mm has a Part Number of tsop24/28?" }, { "from": "gpt", "value": "SELECT MAX(lead_pitch_mm) FROM table_name_13 WHERE part_number = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (silver INTEGER, gold VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "What is the highest amount of silver when gold is 1 and bronze larger than 0?" }, { "from": "gpt", "value": "SELECT MAX(silver) FROM table_name_40 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (time INTEGER, reaction_time VARCHAR)" }, { "from": "human", "value": "What is the Time of the Athlete with a Reaction time of 0.164?" }, { "from": "gpt", "value": "SELECT SUM(time) FROM table_name_48 WHERE reaction_time = 0.16...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (time VARCHAR, lane VARCHAR)" }, { "from": "human", "value": "What is the Time of the Athlete in Lane 4?" }, { "from": "gpt", "value": "SELECT COUNT(time) FROM table_name_34 WHERE lane = 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (lane INTEGER, nationality VARCHAR, reaction_time VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (tv_time VARCHAR, week VARCHAR)" }, { "from": "human", "value": "What is the time in week 3?" }, { "from": "gpt", "value": "SELECT tv_time FROM table_name_29 WHERE week = 3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (week INTEGER, attendance VARCHAR)" }, { "from": "human", "value": "What is the week with attendance of 73,572?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table_name_61 WHERE attendance = \"73,572\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (week VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What week was the opponent the San Diego Chargers?" }, { "from": "gpt", "value": "SELECT COUNT(week) FROM table_name_94 WHERE opponent = \"san diego chargers\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (week INTEGER, result VARCHAR)" }, { "from": "human", "value": "What week was the result of l 38–21?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table_name_63 WHERE result = \"l 38–21\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (rank INTEGER, county VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What's the total of Rank for the County of Galway and has a Total that's larger than 13?" }, { "from": "gpt", "value": "SELECT SUM(rank) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (county VARCHAR, opposition VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What County has an Opposition of Antrim and the Player Bernie Forde?" }, { "from": "gpt", "value": "SELECT county FROM table_name_53 WHERE op...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (rank INTEGER, total VARCHAR, county VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?" }, { "from": "gpt"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (channel VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which Channel has an Opponent of washington redskins?" }, { "from": "gpt", "value": "SELECT channel FROM table_name_41 WHERE opponent = \"washington redskins\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which attendance has a Channel of espn, and a Date of september 5, 2002?" }, { "from": "gpt", "value": "SELECT attendance FROM table_name_57 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (date VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which Date has a Result of w 27–20?" }, { "from": "gpt", "value": "SELECT date FROM table_name_30 WHERE result = \"w 27–20\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (week VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "Which Week has an Attendance of 63,447?" }, { "from": "gpt", "value": "SELECT week FROM table_name_35 WHERE attendance = \"63,447\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (date VARCHAR, opponent VARCHAR, stadium VARCHAR, week VARCHAR)" }, { "from": "human", "value": "Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (athlete VARCHAR, react VARCHAR)" }, { "from": "human", "value": "Who was the athlete with react of 0.185?" }, { "from": "gpt", "value": "SELECT athlete FROM table_name_79 WHERE react = 0.185" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (react INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?" }, { "from": "gpt",...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (white__both_hispanic_and_non_hispanic_ VARCHAR, black__both_hispanic_and_non_hispanic_ VARCHAR, hispanic__of_any_race_ VARCHAR)" }, { "from": "human", "value": "What is the total number of white (Hispanic/Non-Hispanic) having a black (His...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (black__both_hispanic_and_non_hispanic_ INTEGER, hispanic__of_any_race_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, multiracial__both_hispanic_and_non_hispanic_ VARCHAR)" }, { "from": "human", "value": "What is the average bla...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (amerindian__both_hispanic_and_non_hispanic_ INTEGER, black__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR)" }, { "from": "human", "value": "What is the highest Amerindian (Hispanic/Non-Hispanic) v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (black__both_hispanic_and_non_hispanic_ VARCHAR, municipality__2010_ VARCHAR, amerindian__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, n_asia__both_hispanic_and_non_hispanic_ VARCHAR)" }, { "from": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (season VARCHAR, div VARCHAR, pos VARCHAR, pld VARCHAR)" }, { "from": "human", "value": "What season had 3rd position, a 36 pld, and a bbl div?" }, { "from": "gpt", "value": "SELECT season FROM table_name_81 WHERE pos = \"3rd\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (season VARCHAR, pos VARCHAR, pld VARCHAR, div VARCHAR)" }, { "from": "human", "value": "What season has 36 pld, a bbl div, and 6th position?" }, { "from": "gpt", "value": "SELECT season FROM table_name_87 WHERE pld = \"36\" AN...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (season VARCHAR, pos VARCHAR, pts VARCHAR)" }, { "from": "human", "value": "What season had 6th position and 36 points?" }, { "from": "gpt", "value": "SELECT season FROM table_name_40 WHERE pos = \"6th\" AND pts = \"36\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (season VARCHAR, pts VARCHAR, pos VARCHAR, pld VARCHAR)" }, { "from": "human", "value": "What season had 1st position, 33 pld, and 58 points?" }, { "from": "gpt", "value": "SELECT season FROM table_name_21 WHERE pos = \"1st\" A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (school VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "Which School has a Mascot of generals?" }, { "from": "gpt", "value": "SELECT school FROM table_name_21 WHERE mascot = \"generals\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "Which School has an IHSAA Class of aaa, and a Mascot of saints?" }, { "from": "gpt", "value": "SELECT school FROM table_name_76 WHERE ihsaa_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (enrollment INTEGER, location VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "What is the highest enrollment in Lagrange where the mascot is panthers?" }, { "from": "gpt", "value": "SELECT MAX(enrollment) FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (enrollment INTEGER, school VARCHAR)" }, { "from": "human", "value": "What is the enrollment at the school of Hamilton community?" }, { "from": "gpt", "value": "SELECT AVG(enrollment) FROM table_name_3 WHERE school = \"hamilton ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (school VARCHAR, ihsaa_class VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What school that has a IHSAA Class of AA, in Butler?" }, { "from": "gpt", "value": "SELECT school FROM table_name_62 WHERE ihsaa_class = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (mascot VARCHAR, school VARCHAR)" }, { "from": "human", "value": "What is the mascot at Hamilton Community?" }, { "from": "gpt", "value": "SELECT mascot FROM table_name_62 WHERE school = \"hamilton community\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (school VARCHAR, location VARCHAR, ihsaa_class VARCHAR)" }, { "from": "human", "value": "What school is in Lagrange, with an IHSAA Class of aaa?" }, { "from": "gpt", "value": "SELECT school FROM table_name_80 WHERE location = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (school VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What school is in Ligonier?" }, { "from": "gpt", "value": "SELECT school FROM table_name_11 WHERE location = \"ligonier\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, bronze VARCHAR, years VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (nation VARCHAR, years VARCHAR, sport VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What nation scored 7 in shooting in 1920?" }, { "from": "gpt", "value": "SELECT nation FROM table_name_39 WHERE sport = \"shooting\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (round INTEGER, player VARCHAR)" }, { "from": "human", "value": "What's the average Round of Pete Laframboise?" }, { "from": "gpt", "value": "SELECT AVG(round) FROM table_name_59 WHERE player = \"pete laframboise\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (nationality VARCHAR, pick VARCHAR)" }, { "from": "human", "value": "What country is Pick 100?" }, { "from": "gpt", "value": "SELECT nationality FROM table_name_97 WHERE pick = 100" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (rowers VARCHAR, country VARCHAR)" }, { "from": "human", "value": "Who were the rowers for Great britain?" }, { "from": "gpt", "value": "SELECT rowers FROM table_name_50 WHERE country = \"great britain\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (country VARCHAR, rank VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What country has a time of 7:28.66 and a rank less than 3?" }, { "from": "gpt", "value": "SELECT country FROM table_name_27 WHERE rank < 3 AND time ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (notes VARCHAR, rank VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What are the notes when the time was 7:42.92 and the rank is more than 1?" }, { "from": "gpt", "value": "SELECT notes FROM table_name_65 WHERE rank > ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (score VARCHAR, tie_no VARCHAR)" }, { "from": "human", "value": "What's the score of Tie number 11?" }, { "from": "gpt", "value": "SELECT score FROM table_name_48 WHERE tie_no = \"11\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (tie_no VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What's the tie number when the away team was Mansfield Town?" }, { "from": "gpt", "value": "SELECT tie_no FROM table_name_3 WHERE away_team = \"mansfield town\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What date was Newcastle United the away team?" }, { "from": "gpt", "value": "SELECT date FROM table_name_42 WHERE away_team = \"newcastle united\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "Who was the away team when Brighton & Hove Albion was home?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_95 WHERE home_team = \"brighton...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What's the tie number of Chelsea when they were home?" }, { "from": "gpt", "value": "SELECT tie_no FROM table_name_96 WHERE home_team = \"chelsea\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (score VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What's the score when Orient was home?" }, { "from": "gpt", "value": "SELECT score FROM table_name_10 WHERE home_team = \"orient\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (designer VARCHAR, restaurant_name VARCHAR)" }, { "from": "human", "value": "What designer has a restaurant named The Citizen?" }, { "from": "gpt", "value": "SELECT designer FROM table_name_42 WHERE restaurant_name = \"the citi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (original_name VARCHAR, designer VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What is the original name of the place by designer Glen Peloso with a Location of n/a?" }, { "from": "gpt", "value": "SELECT original_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (chef VARCHAR, restaurant_name VARCHAR, location VARCHAR, original_name VARCHAR)" }, { "from": "human", "value": "What chef that has a location in Toronto, ON, that has n/a as the original name, and a Restaurant Name of Bagel World?" }, ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (restaurant_name VARCHAR, original_name VARCHAR)" }, { "from": "human", "value": "What is the name of the restaurant originally named Essence?" }, { "from": "gpt", "value": "SELECT restaurant_name FROM table_name_93 WHERE origi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (designer VARCHAR, restaurant_name VARCHAR)" }, { "from": "human", "value": "What designer has a restaurant named of Cork & Cabbage?" }, { "from": "gpt", "value": "SELECT designer FROM table_name_53 WHERE restaurant_name = \"co...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (athlete VARCHAR, punishment VARCHAR)" }, { "from": "human", "value": "Which athlete had a six month suspension from IIHF?" }, { "from": "gpt", "value": "SELECT athlete FROM table_name_55 WHERE punishment = \"six month suspensi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (bronze VARCHAR, total VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "How many bronze medals did the team have with 0 total silver and less than 3 total medals?" }, { "from": "gpt", "value": "SELECT bronze FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "What is the total number of bronze medals for the team with more than 4 silver and less than 30 gold medals?" }, { "from": "gpt", "...
know_sql
chosen