conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_88 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold?" }, { "from": "gpt", "value": "SELECT AVG(to...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (gold INTEGER, silver INTEGER)" }, { "from": "human", "value": "What is the fewest number of golds for teams with 0 silver?" }, { "from": "gpt", "value": "SELECT MIN(gold) FROM table_name_54 WHERE silver < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (nations VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What nations participated in 2007?" }, { "from": "gpt", "value": "SELECT nations FROM table_name_87 WHERE year = \"2007\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (event_type VARCHAR, sport VARCHAR, body VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What event type had BODY CMAS in 1980 and underwater hockey?" }, { "from": "gpt", "value": "SELECT event_type FROM table_name_57 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (body VARCHAR, event_type VARCHAR, sport VARCHAR)" }, { "from": "human", "value": "What body is at the World Championship for Underwater Target shooting?" }, { "from": "gpt", "value": "SELECT body FROM table_name_12 WHERE event...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (body VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What body participated in 1973?" }, { "from": "gpt", "value": "SELECT body FROM table_name_43 WHERE year = \"1973\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (time VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What was the record setting time in the 800m freestyle?" }, { "from": "gpt", "value": "SELECT time FROM table_name_76 WHERE event = \"800m freestyle\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR)" }, { "from": "human", "value": "What power has A as the class, and 93.7 as the frequency?" }, { "from": "gpt", "value": "SELECT power FROM table_name_26 WHERE class = \"a\" AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (city_of_license VARCHAR, identifier VARCHAR)" }, { "from": "human", "value": "What city of license has cbon-fm-11 as the identifier?" }, { "from": "gpt", "value": "SELECT city_of_license FROM table_name_77 WHERE identifier = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (power VARCHAR, city_of_license VARCHAR)" }, { "from": "human", "value": "What power has thunder bay as the city of license?" }, { "from": "gpt", "value": "SELECT power FROM table_name_17 WHERE city_of_license = \"thunder bay\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (identifier VARCHAR, power VARCHAR)" }, { "from": "human", "value": "What identifier has 100000 watts as the power?" }, { "from": "gpt", "value": "SELECT identifier FROM table_name_98 WHERE power = \"100000 watts\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (identifier VARCHAR, frequency VARCHAR)" }, { "from": "human", "value": "What identifier has 90.3 as the frequency?" }, { "from": "gpt", "value": "SELECT identifier FROM table_name_92 WHERE frequency = \"90.3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (class VARCHAR, identifier VARCHAR)" }, { "from": "human", "value": "What class has cbon-fm-23 as the identifier?" }, { "from": "gpt", "value": "SELECT class FROM table_name_28 WHERE identifier = \"cbon-fm-23\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "What is the total number of medals for West Germany with more than 1 bronze medal and more than 2 gold medals?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (rank VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "What is Denmark's rank?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_87 WHERE nation = \"denmark\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (country VARCHAR, notes VARCHAR, athlete VARCHAR)" }, { "from": "human", "value": "What country did ekaterina karsten row for with fa listed under notes?" }, { "from": "gpt", "value": "SELECT country FROM table_name_70 WHERE no...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (time VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What time was the race for the country of france?" }, { "from": "gpt", "value": "SELECT time FROM table_name_37 WHERE country = \"france\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (time VARCHAR, notes VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What time was the race for the country of france with fb listed under notes?" }, { "from": "gpt", "value": "SELECT time FROM table_name_10 WHERE no...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (rank INTEGER, country VARCHAR)" }, { "from": "human", "value": "What is the sum of the ranks for bulgaria?" }, { "from": "gpt", "value": "SELECT SUM(rank) FROM table_name_10 WHERE country = \"bulgaria\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (rank VARCHAR, notes VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the rank of the new zealand team that had fb listed under notes?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_31 WHERE notes ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (position VARCHAR, pick VARCHAR)" }, { "from": "human", "value": "Which Position has a Pick of 74?" }, { "from": "gpt", "value": "SELECT position FROM table_name_42 WHERE pick = 74" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (team VARCHAR, position VARCHAR)" }, { "from": "human", "value": "Which Team has a Position of linebacker?" }, { "from": "gpt", "value": "SELECT team FROM table_name_86 WHERE position = \"linebacker\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (team VARCHAR, college VARCHAR)" }, { "from": "human", "value": "What is the Team for Stanford College?" }, { "from": "gpt", "value": "SELECT team FROM table_name_87 WHERE college = \"stanford\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (pick VARCHAR, college VARCHAR)" }, { "from": "human", "value": "What Pick does the College Southeastern Louisiana have?" }, { "from": "gpt", "value": "SELECT pick FROM table_name_2 WHERE college = \"southeastern louisiana\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (gold VARCHAR, total VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller than 1?" }, { "from": "gpt", "value": "SELECT gold FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (nation VARCHAR, bronze VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "Can you tell me the Nation that has the Bronze of 1, and the Gold of 0?" }, { "from": "gpt", "value": "SELECT nation FROM table_name_68 WHERE bronz...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (total INTEGER, silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "Can you tell me the average Total that has the Silver larger than 1, and the Bronze smaller than 8?" }, { "from": "gpt", "value": "SELECT AVG(tota...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals?" }, { "from":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (pommel_horse INTEGER, rings VARCHAR, team_total VARCHAR)" }, { "from": "human", "value": "Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2?" }, { "from": "gpt", "value": "SELECT SUM(po...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (parallel_bars INTEGER, country VARCHAR, vault VARCHAR)" }, { "from": "human", "value": "Name the highest Parallel Bars of the united states with a Vault smaller than 63.85?" }, { "from": "gpt", "value": "SELECT MAX(parallel_ba...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (horizontal_bar INTEGER, country VARCHAR, rings VARCHAR)" }, { "from": "human", "value": "Name the highest Horizontal Bar which is in france and Rings smaller than 58.975?" }, { "from": "gpt", "value": "SELECT MAX(horizontal_bar...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (artist VARCHAR, televote_sms VARCHAR)" }, { "from": "human", "value": "who is the artist when the televote/sms is 3.20%?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_20 WHERE televote_sms = \"3.20%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (place INTEGER, televote_sms VARCHAR)" }, { "from": "human", "value": "what is the place when the televote/sms is 2.39%?" }, { "from": "gpt", "value": "SELECT SUM(place) FROM table_name_47 WHERE televote_sms = \"2.39%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (draw VARCHAR, televote_sms VARCHAR, place VARCHAR)" }, { "from": "human", "value": "how many times was the televote/sms 2.39% and the place more than 9?" }, { "from": "gpt", "value": "SELECT COUNT(draw) FROM table_name_54 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (release_date VARCHAR, production_num VARCHAR, director VARCHAR)" }, { "from": "human", "value": "Which Release date has a Production Num larger than 5888, and a Director of hugh harman and friz freleng?" }, { "from": "gpt", "v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (production_num INTEGER, title VARCHAR)" }, { "from": "human", "value": "How many production numbers have a Title of bosko in dutch?" }, { "from": "gpt", "value": "SELECT SUM(production_num) FROM table_name_93 WHERE title = \"b...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (release_date VARCHAR, director VARCHAR, production_num VARCHAR)" }, { "from": "human", "value": "Which Release date has a Director of tom palmer, and a Production Num larger than 5956?" }, { "from": "gpt", "value": "SELECT rel...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (goals VARCHAR, years_at_club VARCHAR, debut_year VARCHAR)" }, { "from": "human", "value": "How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961?" }, { "from": "gpt", "value": "SELECT COUNT(goals) FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (debut_year INTEGER, games VARCHAR, goals VARCHAR, years_at_club VARCHAR)" }, { "from": "human", "value": "Which Debut year has Goals of 0, and Years at club of 1963, and Games larger than 5?" }, { "from": "gpt", "value": "SELE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (debut_year INTEGER, player VARCHAR, games VARCHAR)" }, { "from": "human", "value": "Which Debut year has a Player of bob hayton, and Games smaller than 2?" }, { "from": "gpt", "value": "SELECT AVG(debut_year) FROM table_name_4...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (name VARCHAR, sport VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What is the name of the player who competed in the Women's Individual Class 3 in Table Tennis?" }, { "from": "gpt", "value": "SELECT name FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (date VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What was the date of the Women's Individual Class 3?" }, { "from": "gpt", "value": "SELECT date FROM table_name_73 WHERE event = \"women's individual class 3\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (event VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What event did Rastislav Turecek participate in?" }, { "from": "gpt", "value": "SELECT event FROM table_name_88 WHERE name = \"rastislav turecek\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (sport VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What sport did Miroslav Jambor Richard Csejtey participate in?" }, { "from": "gpt", "value": "SELECT sport FROM table_name_16 WHERE name = \"miroslav jambor richard...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR)" }, { "from": "human", "value": "Which Artist has a Draw of 6?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_7 WHERE draw = 6" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (song VARCHAR, language VARCHAR, draw VARCHAR, points VARCHAR)" }, { "from": "human", "value": "Which Song has a Draw smaller than 7, and Points larger than 41, and a Language of german?" }, { "from": "gpt", "value": "SELECT so...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (result VARCHAR, year INTEGER)" }, { "from": "human", "value": "What was the result for the years after 2001?" }, { "from": "gpt", "value": "SELECT result FROM table_name_15 WHERE year > 2001" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (nominee_s_ VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who was the nominee for 2005?" }, { "from": "gpt", "value": "SELECT nominee_s_ FROM table_name_83 WHERE year = 2005" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (gp_gs VARCHAR, avg_g VARCHAR, receptions VARCHAR, long VARCHAR)" }, { "from": "human", "value": "what is the gp-gs when the receptions is more than 4, long is 55 and avg/g is 151?" }, { "from": "gpt", "value": "SELECT gp_gs FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (name VARCHAR, avg_g VARCHAR)" }, { "from": "human", "value": "what is the name when avg/g is 13.7?" }, { "from": "gpt", "value": "SELECT name FROM table_name_1 WHERE avg_g = 13.7" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (receptions VARCHAR, avg_g VARCHAR)" }, { "from": "human", "value": "How many times is avg/g 2?" }, { "from": "gpt", "value": "SELECT COUNT(receptions) FROM table_name_82 WHERE avg_g = 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (avg_g INTEGER, name VARCHAR, long VARCHAR)" }, { "from": "human", "value": "what is the avg/g for john conner when long is less than 25?" }, { "from": "gpt", "value": "SELECT SUM(avg_g) FROM table_name_75 WHERE name = \"john c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (conf VARCHAR, original_nfl_team VARCHAR)" }, { "from": "human", "value": "What conference did the player originally from the denver broncos play in?" }, { "from": "gpt", "value": "SELECT conf FROM table_name_25 WHERE original_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (player VARCHAR, college VARCHAR)" }, { "from": "human", "value": "Who was the player from texas southern?" }, { "from": "gpt", "value": "SELECT player FROM table_name_72 WHERE college = \"texas southern\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (conf VARCHAR, pos VARCHAR)" }, { "from": "human", "value": "What conference did the player with the position of rb play in?" }, { "from": "gpt", "value": "SELECT conf FROM table_name_44 WHERE pos = \"rb\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (original_nfl_team VARCHAR, conf VARCHAR)" }, { "from": "human", "value": "What was the original nfl team that the player was in from the midwestern conference?" }, { "from": "gpt", "value": "SELECT original_nfl_team FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (pos VARCHAR, college VARCHAR)" }, { "from": "human", "value": "What position did athlete play from Tennessee state?" }, { "from": "gpt", "value": "SELECT pos FROM table_name_86 WHERE college = \"tennessee state\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (affected_area_codes VARCHAR, effective_date VARCHAR)" }, { "from": "human", "value": "Which Affected area codes have an Effective date of august 30, 2014?" }, { "from": "gpt", "value": "SELECT affected_area_codes FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR)" }, { "from": "human", "value": "Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama?" }, { "from": "gpt", "value": "SELECT air...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (genre VARCHAR, english_title__chinese_title_ VARCHAR)" }, { "from": "human", "value": "Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳?" }, { "from": "gpt", "value": "SELECT genre...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (grand_finalist VARCHAR, grand_finalists VARCHAR)" }, { "from": "human", "value": "who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos?" }, { "from": "gpt", "value": "SELECT grand_f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?" }, { "from": "gpt", "value": "SELECT MAX(total) F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (nation VARCHAR, gold VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the nation that had more than 1 gold medal and a total of 62 medals?" }, { "from": "gpt", "value": "SELECT nation FROM table_name_31 WHERE g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the highest total medals when there were 0 gold medals and 1 silver?" }, { "from": "gpt", "value": "SELECT MAX(total) FROM table_name_62 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (world_record VARCHAR)" }, { "from": "human", "value": "What's the 123kg of the Total world record?" }, { "from": "gpt", "value": "SELECT 123 AS kg FROM table_name_41 WHERE world_record = \"total\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (name VARCHAR, constituency_number VARCHAR)" }, { "from": "human", "value": "What is the name for the assembly segment with a constituency number of 214?" }, { "from": "gpt", "value": "SELECT name FROM table_name_55 WHERE const...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What district has an assembly segment named mahidpur?" }, { "from": "gpt", "value": "SELECT district FROM table_name_20 WHERE name = \"mahidpur\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR)" }, { "from": "human", "value": "Who is Doug Basham's team?" }, { "from": "gpt", "value": "SELECT team FROM table_name_39 WHERE wrestler = \"doug basham\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (elimination VARCHAR, wrestler VARCHAR)" }, { "from": "human", "value": "What's Jorge Santana's elimination?" }, { "from": "gpt", "value": "SELECT elimination FROM table_name_71 WHERE wrestler = \"jorge santana\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR)" }, { "from": "human", "value": "Who's the wrestler with an elimination of 1?" }, { "from": "gpt", "value": "SELECT wrestler FROM table_name_6 WHERE elimination = \"1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (eliminated_by VARCHAR, elimination VARCHAR)" }, { "from": "human", "value": "Who's the eliminated by when the elimination was 1?" }, { "from": "gpt", "value": "SELECT eliminated_by FROM table_name_61 WHERE elimination = \"1\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (date VARCHAR, week VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What is the date where the result was L 27-10 in a week before week 9?" }, { "from": "gpt", "value": "SELECT date FROM table_name_94 WHERE week < 9 A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR)" }, { "from": "human", "value": "What sum of draw had more than 22 in Jury and a Televote of 130?" }, { "from": "gpt", "value": "SELECT SUM(draw) FROM table_name_91 WHERE jury > 22...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (jury INTEGER, place VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the total of the jury that is 2nd place and the total is larger than 190?" }, { "from": "gpt", "value": "SELECT SUM(jury) FROM table_name_86 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR)" }, { "from": "human", "value": "What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more tha...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR)" }, { "from": "human", "value": "What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is l...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (co_2_g_km VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, fuel_type VARCHAR, manufacturer VARCHAR)" }, { "from": "human", "value": "What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR)" }, { "from": "human", "value": "What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines i...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)" }, { "from": "human", "value": "What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less th...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (mpg_us_urban INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)" }, { "from": "human", "value": "What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2?" }, { "from": "gpt",...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (score VARCHAR, assist_pass VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the score on 2010-07-13 when Abby wambach had the assist/pass?" }, { "from": "gpt", "value": "SELECT score FROM table_name_56 WHERE as...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (location VARCHAR, lineup VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the location on 2008-06-17 when the lineup was start?" }, { "from": "gpt", "value": "SELECT location FROM table_name_3 WHERE lineup = \"st...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (assist_pass VARCHAR, date VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What is the assist/pass on 2008-01-16 when the score was 2-0?" }, { "from": "gpt", "value": "SELECT assist_pass FROM table_name_54 WHERE date =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (result VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What is the result at match reports?" }, { "from": "gpt", "value": "SELECT result FROM table_name_98 WHERE location = \"match reports\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What's the points if the goals against were 222?" }, { "from": "gpt", "value": "SELECT points FROM table_name_24 WHERE goals_against = \"222\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What are the points if the goals against were 260?" }, { "from": "gpt", "value": "SELECT points FROM table_name_95 WHERE goals_against = \"260\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (games VARCHAR, standing VARCHAR)" }, { "from": "human", "value": "What are the games with an Involuntary suspension of Season (hurricane Rita)?" }, { "from": "gpt", "value": "SELECT games FROM table_name_72 WHERE standing = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?" }, { "from": "gpt", "value": "SELECT goals_for FROM table_name_44 WHERE los...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "What's the season that had a lost of 9 with 72 games?" }, { "from": "gpt", "value": "SELECT season FROM table_name_10 WHERE games = \"72\" AND lost ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What event did he compete in at Taipei?" }, { "from": "gpt", "value": "SELECT format FROM table_name_42 WHERE location = \"taipei\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (season VARCHAR, event_type VARCHAR, location VARCHAR)" }, { "from": "human", "value": "In what season did he compete in the Grand Prix in Kuala Lumpur?" }, { "from": "gpt", "value": "SELECT season FROM table_name_81 WHERE even...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (position VARCHAR, pick VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the position of the player with a pick less than 3 from team san diego?" }, { "from": "gpt", "value": "SELECT position FROM table_name_82 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What location did david mccann receive a siver and morgan fox win the gold?" }, { "from": "gpt", "value": "SELECT location FROM table_name_38 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who received the bronze in 2011?" }, { "from": "gpt", "value": "SELECT bronze FROM table_name_71 WHERE year = \"2011\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (silver VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who received the silver in 2006?" }, { "from": "gpt", "value": "SELECT silver FROM table_name_31 WHERE year = \"2006\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR)" }, { "from": "human", "value": "What's the count for obese children and adolescents ranked 48?" }, { "from": "gpt", "value": "SELECT obese_children_and_adolescents ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR)" }, { "from": "human", "value": "What's the rank when the obese children and adolescent count is 14.2%?" }, { "from": "gpt", "value": "SELECT SUM(obesity_rank) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR)" }, { "from": "human", "value": "What's the rank in West Virginia when the overweight adult was 66.8%?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is reserved for Jawad?" }, { "from": "gpt", "value": "SELECT reserved_for___sc___st__none_ FROM table_name_27 WHERE name = \"jawad\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)" }, { "from": "human", "value": "What is reserved for the constituency of 228?" }, { "from": "gpt", "value": "SELECT reserved_for___sc___st__none_ FROM table_...
know_sql
chosen