conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_84 (name VARCHAR, result VARCHAR, heat VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91?" }, { "from": "gpt", "value": "SELECT name FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (heat VARCHAR, rank VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What is the Heat of the Player with a Rank of 18 or less and Result of 55.15?" }, { "from": "gpt", "value": "SELECT heat FROM table_name_54 WHERE ran...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (quantity_preserved VARCHAR, fleet_number_s_ VARCHAR)" }, { "from": "human", "value": "What is the quantity preserved for fleet number(s) 3000–3015?" }, { "from": "gpt", "value": "SELECT quantity_preserved FROM table_name_11 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (manufacturer VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)" }, { "from": "human", "value": "What manufacturer has a wheel arrangement of 4-6-6-4, and a Class of z-7?" }, { "from": "gpt", "value": "SELECT manufacturer FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (year_made VARCHAR, fleet_number_s_ VARCHAR)" }, { "from": "human", "value": "What is the Year for fleet number 5000?" }, { "from": "gpt", "value": "SELECT year_made FROM table_name_98 WHERE fleet_number_s_ = \"5000\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (year_made VARCHAR, quantity_made VARCHAR)" }, { "from": "human", "value": "What year made has a Quantity made of 4?" }, { "from": "gpt", "value": "SELECT year_made FROM table_name_63 WHERE quantity_made = \"4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (quantity_preserved VARCHAR, serial_numbers VARCHAR)" }, { "from": "human", "value": "What is the quantity preserved for the serial number of mallet and simple articulated locomotives?" }, { "from": "gpt", "value": "SELECT quan...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (silver VARCHAR, nation VARCHAR, gold VARCHAR, total VARCHAR)" }, { "from": "human", "value": "How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win?" }, { "from": "gpt", "value": "SE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR)" }, { "from": "human", "value": "How many gold medals did Denmark win?" }, { "from": "gpt", "value": "SELECT MIN(gold) FROM table_name_65 WHERE nation = \"denmark\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (gold VARCHAR, bronze VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (gold VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "How many gold medals were won by the nation that won over 4 silver medals, over 14 bronze, and 97 medals total?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (championship INTEGER, league_cup VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the highest championship that has 1 as the league cup, and 17 as the total?" }, { "from": "gpt", "value": "SELECT MAX(championsh...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (league_cup VARCHAR, fa_cup INTEGER)" }, { "from": "human", "value": "How many league cups have an FA Cup less than 0?" }, { "from": "gpt", "value": "SELECT COUNT(league_cup) FROM table_name_70 WHERE fa_cup < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (rank INTEGER, nation VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the average rank of west germany (frg), which has more than 1 silver, less than 11 gold, and 2 bronze medals?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (date VARCHAR, athlete VARCHAR, nation VARCHAR, place VARCHAR)" }, { "from": "human", "value": "What's the date when Yelena Isinbayeva for Russia was in Beijing, China?" }, { "from": "gpt", "value": "SELECT date FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (performance VARCHAR, athlete VARCHAR)" }, { "from": "human", "value": "What's the performance of Dire Tune?" }, { "from": "gpt", "value": "SELECT performance FROM table_name_89 WHERE athlete = \"dire tune\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (place VARCHAR, performance VARCHAR)" }, { "from": "human", "value": "What place had 14:11.15 as the performance?" }, { "from": "gpt", "value": "SELECT place FROM table_name_33 WHERE performance = \"14:11.15\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (event VARCHAR, nation VARCHAR, performance VARCHAR)" }, { "from": "human", "value": "What's the event that had a performance of 14:11.15 by Ethiopia?" }, { "from": "gpt", "value": "SELECT event FROM table_name_51 WHERE nation ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (position VARCHAR, pick VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What was the position of the player picked after 94, by the Boston Patriots?" }, { "from": "gpt", "value": "SELECT position FROM table_name_96 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (college VARCHAR, pick VARCHAR)" }, { "from": "human", "value": "What college had the 93 pick?" }, { "from": "gpt", "value": "SELECT college FROM table_name_50 WHERE pick = 93" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (venue VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What venue has euro 2004 q. as the competition?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_60 WHERE competition = \"euro 2004 q.\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (county VARCHAR, school VARCHAR)" }, { "from": "human", "value": "What county is Whiteland Community School in?" }, { "from": "gpt", "value": "SELECT county FROM table_name_72 WHERE school = \"whiteland community\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (county VARCHAR, ihsaa_football_class VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (county VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "What county has a school mascot of the Pioneers?" }, { "from": "gpt", "value": "SELECT county FROM table_name_71 WHERE mascot = \"pioneers\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (ihsaa_class VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What are the IHSAA classes of the Indianapolis schools?" }, { "from": "gpt", "value": "SELECT ihsaa_class FROM table_name_34 WHERE location = \"indianapol...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (song VARCHAR, draw VARCHAR, points VARCHAR, place VARCHAR)" }, { "from": "human", "value": "Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?" }, { "from": "gpt", "value": "SELECT song...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (green_communist VARCHAR, left_bloc VARCHAR)" }, { "from": "human", "value": "What is the result for the Green-Communist party when the Left Bloc has 3.6%?" }, { "from": "gpt", "value": "SELECT green_communist FROM table_name_6...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (green_communist VARCHAR, left_bloc VARCHAR)" }, { "from": "human", "value": "What is the result for the Green-Communist party when the Left Bloc has 3.0%?" }, { "from": "gpt", "value": "SELECT green_communist FROM table_name_8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (date_released VARCHAR, left_bloc VARCHAR)" }, { "from": "human", "value": "What is the date released when the Left Bloc had 3.2%?" }, { "from": "gpt", "value": "SELECT date_released FROM table_name_35 WHERE left_bloc = \"3.2%\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (cardinalatial_order_and_title VARCHAR, elevated VARCHAR)" }, { "from": "human", "value": "What is the cardinalatial order of the elector elevated circa 1116?" }, { "from": "gpt", "value": "SELECT cardinalatial_order_and_title ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (elevated VARCHAR, nationality VARCHAR)" }, { "from": "human", "value": "When was the elector from pisa elevated?" }, { "from": "gpt", "value": "SELECT elevated FROM table_name_13 WHERE nationality = \"pisa\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (cardinalatial_order_and_title VARCHAR, elector VARCHAR)" }, { "from": "human", "value": "What is the cardinalatial order and title of bosone?" }, { "from": "gpt", "value": "SELECT cardinalatial_order_and_title FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (elevator VARCHAR, nationality VARCHAR)" }, { "from": "human", "value": "Who is the elevator from crema?" }, { "from": "gpt", "value": "SELECT elevator FROM table_name_83 WHERE nationality = \"crema\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (name VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)" }, { "from": "human", "value": "What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?" }, { "from": "gpt", "value": "SELECT name FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (heat INTEGER, time VARCHAR)" }, { "from": "human", "value": "What is the lowest heat number for a swimmer with a time of 2:34.94?" }, { "from": "gpt", "value": "SELECT MIN(heat) FROM table_name_5 WHERE time = \"2:34.94\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (rank VARCHAR, nationality VARCHAR, react VARCHAR)" }, { "from": "human", "value": "What is the rank of the player from Ukraine with react less than 0.26?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_29 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (week INTEGER, result VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What was the highest week with a w 21-17 result, and more than 45,254 in attendance?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (proto_germanic VARCHAR, old_english VARCHAR)" }, { "from": "human", "value": "What's the Proto-Germanic when the Old English is /d/?" }, { "from": "gpt", "value": "SELECT proto_germanic FROM table_name_3 WHERE old_english = \"/...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (proto_germanic VARCHAR, german VARCHAR)" }, { "from": "human", "value": "What's the Proto Germanic when then German is /s/ or /ts/?" }, { "from": "gpt", "value": "SELECT proto_germanic FROM table_name_41 WHERE german = \"/s/ o...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (dutch VARCHAR, old_english VARCHAR)" }, { "from": "human", "value": "What's the Dutch when then Old English is /d/?" }, { "from": "gpt", "value": "SELECT dutch FROM table_name_66 WHERE old_english = \"/d/\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (west_germanic VARCHAR, german VARCHAR)" }, { "from": "human", "value": "What's the West Germanic when the German is /s/ or /ts/?" }, { "from": "gpt", "value": "SELECT west_germanic FROM table_name_90 WHERE german = \"/s/ or /t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (proto_germanic VARCHAR, german VARCHAR)" }, { "from": "human", "value": "What's the Proto-Germanic when the German is /t/?" }, { "from": "gpt", "value": "SELECT proto_germanic FROM table_name_48 WHERE german = \"/t/\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (to_par VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the to par for japan" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_49 WHERE country = \"japan\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what player has $187,500 and score 66-75-71-69=281" }, { "from": "gpt", "value": "SELECT player FROM table_name_4 WHERE money___$__ = \"187,50...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (place VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what place has score 66-74-68-73=281" }, { "from": "gpt", "value": "SELECT place FROM table_name_74 WHERE score = 66 - 74 - 68 - 73 = 281" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (player VARCHAR, place VARCHAR)" }, { "from": "human", "value": "what player has place t10" }, { "from": "gpt", "value": "SELECT player FROM table_name_37 WHERE place = \"t10\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)" }, { "from": "human", "value": "what is the to par for $242,813 with score 68-72-74-66=280" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_83 WHERE money___$__ ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (school VARCHAR, size VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "Which School has a Size larger than 408, and a Mascot of pacers?" }, { "from": "gpt", "value": "SELECT school FROM table_name_59 WHERE size > 408 A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (size INTEGER, ihsaa_class VARCHAR, location VARCHAR)" }, { "from": "human", "value": "Which Size has an IHSAA Class of aa, and a Location of milan?" }, { "from": "gpt", "value": "SELECT SUM(size) FROM table_name_76 WHERE ihsaa...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (county VARCHAR, mascot VARCHAR)" }, { "from": "human", "value": "Which County has a Mascot of pacers?" }, { "from": "gpt", "value": "SELECT county FROM table_name_36 WHERE mascot = \"pacers\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (mascot VARCHAR, school VARCHAR, county VARCHAR, ihsaa_class VARCHAR)" }, { "from": "human", "value": "Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (name VARCHAR, heat VARCHAR, lane VARCHAR)" }, { "from": "human", "value": "Who was in Lane 5 and had a heat of 7?" }, { "from": "gpt", "value": "SELECT name FROM table_name_32 WHERE heat = 7 AND lane = 5" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)" }, { "from": "human", "value": "What lane number was Hungary and had a heat of 4?" }, { "from": "gpt", "value": "SELECT COUNT(lane) FROM table_name_22 WHERE heat = 4 AND nation...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (date VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What's the date when the score was 690.3?" }, { "from": "gpt", "value": "SELECT date FROM table_name_77 WHERE score = \"690.3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (place VARCHAR, comp VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What's the place of 1989 with a comp of ECH?" }, { "from": "gpt", "value": "SELECT place FROM table_name_94 WHERE comp = \"ech\" AND date = \"1989\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (shooter VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Who was the shooter with a score of 686.4?" }, { "from": "gpt", "value": "SELECT shooter FROM table_name_59 WHERE score = \"686.4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (year VARCHAR, game VARCHAR)" }, { "from": "human", "value": "what is the year for borderlands 2?" }, { "from": "gpt", "value": "SELECT year FROM table_name_81 WHERE game = \"borderlands 2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (year VARCHAR, game VARCHAR)" }, { "from": "human", "value": "what is the year for the game dead space 2?" }, { "from": "gpt", "value": "SELECT year FROM table_name_53 WHERE game = \"dead space 2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (developer_s_ VARCHAR, game VARCHAR)" }, { "from": "human", "value": "who is the developers for demon's souls?" }, { "from": "gpt", "value": "SELECT developer_s_ FROM table_name_8 WHERE game = \"demon's souls\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (year VARCHAR, standalone VARCHAR)" }, { "from": "human", "value": "In what year is Zaxxon the Standalone?" }, { "from": "gpt", "value": "SELECT year FROM table_name_88 WHERE standalone = \"zaxxon\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (standalone VARCHAR, console VARCHAR)" }, { "from": "human", "value": "What is the Standalone in the year when Space Invaders is the Console?" }, { "from": "gpt", "value": "SELECT standalone FROM table_name_43 WHERE console = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (standalone VARCHAR, arcade VARCHAR)" }, { "from": "human", "value": "What is the Standalone when Tron is the Arcade?" }, { "from": "gpt", "value": "SELECT standalone FROM table_name_99 WHERE arcade = \"tron\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (console VARCHAR, arcade VARCHAR)" }, { "from": "human", "value": "What is the Console when Space Invaders is the Arcade?" }, { "from": "gpt", "value": "SELECT console FROM table_name_59 WHERE arcade = \"space invaders\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (position VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What position does the player from the Arizona Diamondbacks play?" }, { "from": "gpt", "value": "SELECT position FROM table_name_6 WHERE team = \"arizona diamondb...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (school VARCHAR, player VARCHAR, position VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What school did P Jay Gehrke of the Kansas City Royals attend?" }, { "from": "gpt", "value": "SELECT school FROM table_name_30 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (country VARCHAR, athletes VARCHAR)" }, { "from": "human", "value": "What country does Adam van Koeverden play for?" }, { "from": "gpt", "value": "SELECT country FROM table_name_31 WHERE athletes = \"adam van koeverden\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (pick VARCHAR, school VARCHAR)" }, { "from": "human", "value": "what is the pick when the school is jasper hs (jasper, texas)?" }, { "from": "gpt", "value": "SELECT pick FROM table_name_63 WHERE school = \"jasper hs (jasper, te...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, team VARCHAR)" }, { "from": "human", "value": "who is the player when the position is p and the team is oakland athletics?" }, { "from": "gpt", "value": "SELECT player FROM table_name_99 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (school VARCHAR, team VARCHAR)" }, { "from": "human", "value": "what is the school when the team is new york yankees?" }, { "from": "gpt", "value": "SELECT school FROM table_name_1 WHERE team = \"new york yankees\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (player VARCHAR, school VARCHAR)" }, { "from": "human", "value": "who is the player when the school is spring hs (spring, texas)?" }, { "from": "gpt", "value": "SELECT player FROM table_name_24 WHERE school = \"spring hs (sprin...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (melamine_content_mg_kg_ VARCHAR, samples_failed VARCHAR, product VARCHAR)" }, { "from": "human", "value": "What's the melamine content of θ‹±ι›„η‰Œε¬°εΉΌε…’ι…ζ–ΉδΉ³η²‰ having more than 1 samples failed?" }, { "from": "gpt", "value": "SELECT mela...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (melamine_content_mg_kg_ INTEGER, producer VARCHAR, samples_failed VARCHAR)" }, { "from": "human", "value": "What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (product VARCHAR, samples_taken VARCHAR, melamine_content_mg_kg_ VARCHAR, samples_failed VARCHAR)" }, { "from": "human", "value": "What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (samples_failed INTEGER, product VARCHAR, samples_taken VARCHAR)" }, { "from": "human", "value": "What the most samples failed for ε―ζ·‡η‰Œε¬°εΉΌε…’ι…ζ–ΉδΉ³η²‰ and had less than 1 samples taken?" }, { "from": "gpt", "value": "SELECT MAX(samples_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR)" }, { "from": "human", "value": "How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?" }, { "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What did the golfer from Australia score?" }, { "from": "gpt", "value": "SELECT score FROM table_name_13 WHERE country = \"australia\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (date VARCHAR, opera VARCHAR, internet_explorer VARCHAR)" }, { "from": "human", "value": "Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?" }, { "from": "gpt", "value": "SELECT date FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (source VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which source has a date of June 2008?" }, { "from": "gpt", "value": "SELECT source FROM table_name_28 WHERE date = \"june 2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (source VARCHAR, internet_explorer VARCHAR)" }, { "from": "human", "value": "Which source date has an Internet Explorer usage of 60.2%?" }, { "from": "gpt", "value": "SELECT source FROM table_name_52 WHERE internet_explorer = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (city VARCHAR, home_team_s VARCHAR)" }, { "from": "human", "value": "What city has the home team of the brisbane broncos?" }, { "from": "gpt", "value": "SELECT city FROM table_name_88 WHERE home_team_s = \"brisbane broncos\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (closed__as_a_rl_stadium_ INTEGER, country VARCHAR)" }, { "from": "human", "value": "What is the earliest closed year in the country of france?" }, { "from": "gpt", "value": "SELECT MIN(closed__as_a_rl_stadium_) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (res VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the result for the event that lasted 2:20?" }, { "from": "gpt", "value": "SELECT res FROM table_name_7 WHERE time = \"2:20\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)" }, { "from": "human", "value": "Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?" }, { "from": "gpt", "value": "SELECT opp...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (record VARCHAR, event VARCHAR)" }, { "from": "human", "value": "For the Cage Combat Fighting Championships: Mayhem, what was the record?" }, { "from": "gpt", "value": "SELECT record FROM table_name_13 WHERE event = \"cage comb...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (designer VARCHAR, restaurant_name VARCHAR)" }, { "from": "human", "value": "Who was the designer for The Grapefruit Moon?" }, { "from": "gpt", "value": "SELECT designer FROM table_name_89 WHERE restaurant_name = \"the grapefru...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (chef VARCHAR, restaurant_name VARCHAR)" }, { "from": "human", "value": "Who is the chef at Lakes Bar and Grill?" }, { "from": "gpt", "value": "SELECT chef FROM table_name_21 WHERE restaurant_name = \"lakes bar and grill\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (restaurant_name VARCHAR, designer VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?" }, { "from": "gpt", "value": "SELECT restaurant...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (european_competitions VARCHAR, tier VARCHAR, pos VARCHAR)" }, { "from": "human", "value": "What European competitions have a tier of 2 and a position of 3?" }, { "from": "gpt", "value": "SELECT european_competitions FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (nation VARCHAR, silver VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "Which Nation won 5 Silver, and more than 4 Gold?" }, { "from": "gpt", "value": "SELECT nation FROM table_name_2 WHERE silver = 5 AND gold > 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (heat VARCHAR, lane VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the sum of heat for christophe lebon when lane is less than 4?" }, { "from": "gpt", "value": "SELECT COUNT(heat) FROM table_name_74 WHERE lane ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (name VARCHAR, nationality VARCHAR, rank VARCHAR, heat VARCHAR)" }, { "from": "human", "value": "Who is from the united states, has a rank less than 9, and heat more than 5?" }, { "from": "gpt", "value": "SELECT name FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (rank VARCHAR, nationality VARCHAR, heat VARCHAR)" }, { "from": "human", "value": "Serbia has a heat less than 2 and what sum of rank?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_38 WHERE nationality = \"s...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (lane INTEGER, rank VARCHAR)" }, { "from": "human", "value": "When rank is 33, what is the smallest lane?" }, { "from": "gpt", "value": "SELECT MIN(lane) FROM table_name_38 WHERE rank = 33" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (model VARCHAR, number_of_cpus VARCHAR, performance__mips_ VARCHAR)" }, { "from": "human", "value": "Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?" }, { "from": "gpt", "value": "SELECT model FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (year_introduced INTEGER, memory__gb_ VARCHAR)" }, { "from": "human", "value": "Which Year Introduced has a Memory (GB) of 0.125–2?" }, { "from": "gpt", "value": "SELECT MAX(year_introduced) FROM table_name_26 WHERE memory__gb_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (number_of_cpus VARCHAR, memory__gb_ VARCHAR)" }, { "from": "human", "value": "Which Number of CPUs has a Memory (GB) of 0.5–16?" }, { "from": "gpt", "value": "SELECT number_of_cpus FROM table_name_59 WHERE memory__gb_ = \"0.5–...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (memory__gb_ VARCHAR, number_of_cpus VARCHAR)" }, { "from": "human", "value": "Which Memory (GB) has a Number of CPUs of 1–6?" }, { "from": "gpt", "value": "SELECT memory__gb_ FROM table_name_57 WHERE number_of_cpus = \"1–6\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (fuel_type VARCHAR, manufacturer VARCHAR, mpg_us_extra_urban VARCHAR, mpg_us_combined VARCHAR)" }, { "from": "human", "value": "Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renau...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (country VARCHAR, rank VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?" }, { "from": "gpt", "value": "SELECT country FROM table_name_26 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (time VARCHAR, country VARCHAR, rank VARCHAR, notes VARCHAR)" }, { "from": "human", "value": "What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?" }, { "from": "gpt", "value": "SELECT time FROM tab...
know_sql
chosen