conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_57 (silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR)" }, { "from": "human", "value": "How many silvers for a school with 2 golds and over 2 total?" }, { "from": "gpt", "value": "SELECT silver_medals FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (gold_medals VARCHAR, total_medals INTEGER)" }, { "from": "human", "value": "How many gold medals for the school with less than 1 total?" }, { "from": "gpt", "value": "SELECT COUNT(gold_medals) FROM table_name_43 WHERE total_me...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (entrant VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the entrant for 1967?" }, { "from": "gpt", "value": "SELECT entrant FROM table_name_76 WHERE year = 1967" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "What ist he entrant later than 1963 with an eagle MK1 chassis?" }, { "from": "gpt", "value": "SELECT entrant FROM table_name_11 WHERE year > 1963...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (entrant VARCHAR, pts VARCHAR)" }, { "from": "human", "value": "What is the entrant that has 0 points?" }, { "from": "gpt", "value": "SELECT entrant FROM table_name_65 WHERE pts = \"0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (year INTEGER, pts VARCHAR)" }, { "from": "human", "value": "What is the earliest year with 16 points?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_33 WHERE pts = \"16\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Name the venue for margin less than 66 and opponent of north queensland cowboys" }, { "from": "gpt", "value": "SELECT venue FROM table_name_60 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (year INTEGER, opponent VARCHAR)" }, { "from": "human", "value": "Name the sum of year for penrith panthers opponent" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_93 WHERE opponent = \"penrith panthers\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (opponent VARCHAR, venue VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the opponent for 1996 at the mt smart stadium venue" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_52 WHERE venue = \"mt smar...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (year INTEGER, margin VARCHAR)" }, { "from": "human", "value": "Name the average year for 46 margin" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_95 WHERE margin = 46" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (margin VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the margin for 2002" }, { "from": "gpt", "value": "SELECT margin FROM table_name_89 WHERE year = 2002" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (affiliation VARCHAR, enrollment INTEGER)" }, { "from": "human", "value": "Which Affiliation has an Enrollement larger than 502?" }, { "from": "gpt", "value": "SELECT affiliation FROM table_name_54 WHERE enrollment > 502" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (school VARCHAR, enrollment INTEGER)" }, { "from": "human", "value": "What School has an Enrollement smaller than 301?" }, { "from": "gpt", "value": "SELECT school FROM table_name_76 WHERE enrollment < 301" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (grades VARCHAR, enrollment VARCHAR, student_body VARCHAR)" }, { "from": "human", "value": "Which Grades has an Enrollment larger htan 443 with a Student body of Co-ed?" }, { "from": "gpt", "value": "SELECT grades FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (student_body VARCHAR, affiliation VARCHAR, enrollment VARCHAR)" }, { "from": "human", "value": "What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (year INTEGER, final_position___tour VARCHAR, final_position___vuelta VARCHAR)" }, { "from": "human", "value": "What is the average year that has a final Tour position of 54 and a final Vuelta position over 55?" }, { "from": "gpt",...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (final_position___vuelta VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR)" }, { "from": "human", "value": "What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 9...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR)" }, { "from": "human", "value": "How many Giro positions are associated with the year 1971 and Tour final positions over 50?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (laps INTEGER, rider VARCHAR)" }, { "from": "human", "value": "How many laps did the rider Alex Baldolini take?" }, { "from": "gpt", "value": "SELECT SUM(laps) FROM table_name_94 WHERE rider = \"alex baldolini\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "How many laps were completed in the time of +7.213 with a grid number larger than 7?" }, { "from": "gpt", "value": "SELECT COUNT(laps) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)" }, { "from": "human", "value": "What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4?" }, { "from...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (surface VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the surface for the May 10, 2009 tournament?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_91 WHERE date = \"may 10, 2009\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (co_drivers VARCHAR, laps VARCHAR, tyres VARCHAR)" }, { "from": "human", "value": "Which co-driver has fewer than 282 laps and type P tyres?" }, { "from": "gpt", "value": "SELECT co_drivers FROM table_name_44 WHERE laps < 282 A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (class VARCHAR, tyres VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Which class more recent than 1988 has G tyres?" }, { "from": "gpt", "value": "SELECT class FROM table_name_24 WHERE tyres = \"g\" AND year > 1988" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (caps INTEGER, player VARCHAR)" }, { "from": "human", "value": "What is the greatest number of caps for Bruce Djite?" }, { "from": "gpt", "value": "SELECT MAX(caps) FROM table_name_54 WHERE player = \"bruce djite\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (goals VARCHAR, player VARCHAR)" }, { "from": "human", "value": "How many goals were scored by Eugene Galeković?" }, { "from": "gpt", "value": "SELECT goals FROM table_name_54 WHERE player = \"eugene galeković\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (goals VARCHAR, caps INTEGER)" }, { "from": "human", "value": "How many goals were scored by players with more than 16 caps?" }, { "from": "gpt", "value": "SELECT goals FROM table_name_45 WHERE caps > 16" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (rank INTEGER, nationality VARCHAR)" }, { "from": "human", "value": "What is the highest place of a swimmer from the Netherlands?" }, { "from": "gpt", "value": "SELECT MAX(rank) FROM table_name_75 WHERE nationality = \"netherla...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR)" }, { "from": "human", "value": "Name the authority for te akau with roll less than 254 and decile of 8" }, { "from": "gpt", "value": "SELECT authority FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (name VARCHAR, decile VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "Tell me the name with decile of 6 and roll of 93" }, { "from": "gpt", "value": "SELECT name FROM table_name_63 WHERE decile = \"6\" AND roll = 93" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (result VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the result of the match on January 26, 2006?" }, { "from": "gpt", "value": "SELECT result FROM table_name_44 WHERE date = \"january 26, 2006\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR)" }, { "from": "human", "value": "What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (ram___mib__ VARCHAR, model VARCHAR)" }, { "from": "human", "value": "What is the RAM (MiB) value for the X30 Mid-Range model?" }, { "from": "gpt", "value": "SELECT ram___mib__ FROM table_name_71 WHERE model = \"x30 mid-range\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR)" }, { "from": "human", "value": "How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (event VARCHAR, time VARCHAR)" }, { "from": "human", "value": "Which event had the time 45.74?" }, { "from": "gpt", "value": "SELECT event FROM table_name_42 WHERE time = \"45.74\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (time VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the time of December 15, 2010?" }, { "from": "gpt", "value": "SELECT time FROM table_name_3 WHERE date = \"december 15, 2010\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (notes VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What were the notes for the time 45.74?" }, { "from": "gpt", "value": "SELECT notes FROM table_name_89 WHERE time = \"45.74\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (player VARCHAR, tries VARCHAR)" }, { "from": "human", "value": "What Player has 23 Tries?" }, { "from": "gpt", "value": "SELECT player FROM table_name_61 WHERE tries = 23" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (goals VARCHAR, player VARCHAR)" }, { "from": "human", "value": "How many Goals did Matt Cook have?" }, { "from": "gpt", "value": "SELECT goals FROM table_name_89 WHERE player = \"matt cook\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (player VARCHAR, position VARCHAR, apps VARCHAR)" }, { "from": "human", "value": "What Full Back Player has 0 Apps?" }, { "from": "gpt", "value": "SELECT player FROM table_name_32 WHERE position = \"full back\" AND apps = 0" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR)" }, { "from": "human", "value": "With 0 Goals and less than 1 Tries, what is Matt James position?" }, { "from": "gpt", "value": "SELECT position FROM table_name_3...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (round INTEGER, school VARCHAR)" }, { "from": "human", "value": "What is the earliest round drafted for a University of Southern California player?" }, { "from": "gpt", "value": "SELECT MIN(round) FROM table_name_91 WHERE schoo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (round VARCHAR, position VARCHAR, signed VARCHAR)" }, { "from": "human", "value": "What round drafted was the 1b and a Signed of no cardinals - 1969 june?" }, { "from": "gpt", "value": "SELECT COUNT(round) FROM table_name_24 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (event VARCHAR, opponent VARCHAR, method VARCHAR)" }, { "from": "human", "value": "Which event has an Opponent of akihiro gono, and a Method of decision?" }, { "from": "gpt", "value": "SELECT event FROM table_name_60 WHERE oppo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (location VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which location has an Opponent of masanori suda?" }, { "from": "gpt", "value": "SELECT location FROM table_name_84 WHERE opponent = \"masanori suda\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (opponent VARCHAR, time VARCHAR)" }, { "from": "human", "value": "Which opponent has a Time of 1:34?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_46 WHERE time = \"1:34\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (event VARCHAR, res VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which event resulted in loss with an Opponent of maurice smith?" }, { "from": "gpt", "value": "SELECT event FROM table_name_52 WHERE res = \"loss\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR, sport VARCHAR)" }, { "from": "human", "value": "What is the winner of gold that also has ↓ 1 in the sport of cycling?" }, { "from": "gpt", "value": "SELECT gold FROM table_name_97 WHERE bronze = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (year INTEGER, team VARCHAR)" }, { "from": "human", "value": "What is the most recent year that Gulf Racing Middle East won?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_91 WHERE team = \"gulf racing middle e...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR)" }, { "from": "human", "value": "What is the class of the co-driver emanuele pirro jj lehto?" }, { "from": "gpt", "value": "SELECT class FROM table_name_58 WHERE co_drivers = \"emanuele pirro...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What was the final position of Arena Motorsports International?" }, { "from": "gpt", "value": "SELECT pos FROM table_name_95 WHERE team = \"arena motorsports internat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (co_drivers VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who was the Co-Driver of the winner of 1992's race?" }, { "from": "gpt", "value": "SELECT co_drivers FROM table_name_24 WHERE year = 1992" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)" }, { "from": "human", "value": "What is the score in the final with runner-up as the outcome and hard (i) as the surface?" }, { "from": "gpt", "value": "SELECT sco...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (team_1 VARCHAR)" }, { "from": "human", "value": "What is the 1st leg score when US Mbila Nzambi is team 1?" }, { "from": "gpt", "value": "SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = \"us mbila nzambi\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the opponent on May 20?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_16 WHERE date = \"may 20\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who took the loss on May 25?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_85 WHERE date = \"may 25\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (record VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What was the record after the game that ended in a 2-3 loss?" }, { "from": "gpt", "value": "SELECT record FROM table_name_74 WHERE score = \"2-3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (date VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the date of the game that had a loss of Politte (0-2)?" }, { "from": "gpt", "value": "SELECT date FROM table_name_25 WHERE loss = \"politte (0-2)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (opponent VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "Who was the opponent at the game that had a loss of Hendrickson (0-1)?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_93 WHERE loss = \"hendricks...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)" }, { "from": "human", "value": "What was the smallest attendance at a game when the record was 7-15?" }, { "from": "gpt", "value": "SELECT MIN(attendance) FROM table_name_7 WHERE record = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (attendance INTEGER, record VARCHAR)" }, { "from": "human", "value": "What was the average attendance at a game when the record was 6-13?" }, { "from": "gpt", "value": "SELECT AVG(attendance) FROM table_name_71 WHERE record = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (_neutrons_per_fission VARCHAR, yield INTEGER, group VARCHAR, decay_constant__s_−1__ VARCHAR, half_life__s_ VARCHAR)" }, { "from": "human", "value": "What is the yield, neutrons per fission of the group with decay constants less than 0.301...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (overall INTEGER, round VARCHAR, pick__number VARCHAR)" }, { "from": "human", "value": "With Round 3 and Pick # over 10, what is the higher Overall number?" }, { "from": "gpt", "value": "SELECT MAX(overall) FROM table_name_38 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (round INTEGER, college VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "What is the highest round for College of Nebraska if the Overall is under 190?" }, { "from": "gpt", "value": "SELECT MAX(round) FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (college VARCHAR, round VARCHAR, pick__number VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "Which college has a Pick # 1, Overall more than one, and Round is 7?" }, { "from": "gpt", "value": "SELECT college FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR)" }, { "from": "human", "value": "What was the attendance on 21 August 2004?" }, { "from": "gpt", "value": "SELECT SUM(attendance) FROM table_name_43 WHERE date = \"21 august 2004\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (rank INTEGER, time INTEGER)" }, { "from": "human", "value": "What is the average rank of an athlete that holds a time higher than 53.38?" }, { "from": "gpt", "value": "SELECT AVG(rank) FROM table_name_76 WHERE time > 53.38" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR)" }, { "from": "human", "value": "What lane did the swimmer with a time of 52.84 have?" }, { "from": "gpt", "value": "SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (lane INTEGER, rank VARCHAR)" }, { "from": "human", "value": "What lane did the rank 3 swimmer use?" }, { "from": "gpt", "value": "SELECT MAX(lane) FROM table_name_57 WHERE rank = 3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which opponent played on July 15?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_3 WHERE date = \"july 15\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Where has Jimmy Demaret as a player?" }, { "from": "gpt", "value": "SELECT place FROM table_name_94 WHERE player = \"jimmy demaret\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (money___ VARCHAR, country VARCHAR, player VARCHAR)" }, { "from": "human", "value": "How much does it cost for United States and Byron nelson?" }, { "from": "gpt", "value": "SELECT COUNT(money___) AS $__ FROM table_name_94 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (country VARCHAR, place VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which Country has a Place of t8 and byron nelson?" }, { "from": "gpt", "value": "SELECT country FROM table_name_11 WHERE place = \"t8\" AND playe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (pop_¹ INTEGER, region VARCHAR, prefecture VARCHAR)" }, { "from": "human", "value": "Name the average pop for chūgoku and prefecture of okayama" }, { "from": "gpt", "value": "SELECT AVG(pop_¹) FROM table_name_75 WHERE region = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (pop_¹ INTEGER, prefecture VARCHAR)" }, { "from": "human", "value": "Name the highest pop for tottori" }, { "from": "gpt", "value": "SELECT MAX(pop_¹) FROM table_name_11 WHERE prefecture = \"tottori\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR)" }, { "from": "human", "value": "Name the sum of pop for shizuoka" }, { "from": "gpt", "value": "SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = \"shizuoka\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (pop_¹ VARCHAR, prefecture VARCHAR)" }, { "from": "human", "value": "Name the total number of pop for ibaraki" }, { "from": "gpt", "value": "SELECT COUNT(pop_¹) FROM table_name_10 WHERE prefecture = \"ibaraki\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (mascot VARCHAR, location VARCHAR)" }, { "from": "human", "value": "Who is the mascot for Mishawaka?" }, { "from": "gpt", "value": "SELECT mascot FROM table_name_16 WHERE location = \"mishawaka\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (previous_conference VARCHAR, school VARCHAR)" }, { "from": "human", "value": "Which previous conference is associated with Penn school?" }, { "from": "gpt", "value": "SELECT previous_conference FROM table_name_67 WHERE school ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (location VARCHAR, county VARCHAR, school VARCHAR)" }, { "from": "human", "value": "Which location is in 71 St. Joseph county with South Bend Washington school?" }, { "from": "gpt", "value": "SELECT location FROM table_name_97 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (mascot VARCHAR, school VARCHAR)" }, { "from": "human", "value": "What is the mascot for South Bend Clay?" }, { "from": "gpt", "value": "SELECT mascot FROM table_name_8 WHERE school = \"south bend clay\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (street_address VARCHAR, architect VARCHAR)" }, { "from": "human", "value": "What was the address of the building with architects Edmund Woolley and Andrew Hamilton?" }, { "from": "gpt", "value": "SELECT street_address FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (years_as_tallest VARCHAR, name VARCHAR)" }, { "from": "human", "value": "How many years as tallest building was the Tenth Presbyterian Church?" }, { "from": "gpt", "value": "SELECT years_as_tallest FROM table_name_78 WHERE nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (years_as_tallest VARCHAR, name VARCHAR)" }, { "from": "human", "value": "How many years as tallest building was Independence Hall?" }, { "from": "gpt", "value": "SELECT years_as_tallest FROM table_name_6 WHERE name = \"independ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (height_ft__m_ VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the height of the Tenth Presbyterian Church?" }, { "from": "gpt", "value": "SELECT height_ft__m_ FROM table_name_69 WHERE name = \"tenth presbyteria...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (record VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "For the Loss of Plesac (1-5), what is the Record?" }, { "from": "gpt", "value": "SELECT record FROM table_name_63 WHERE loss = \"plesac (1-5)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (record VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "For the Loss of Plesac (1-5), what is the Record?" }, { "from": "gpt", "value": "SELECT record FROM table_name_18 WHERE loss = \"plesac (1-5)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "Name the entrant for year less than 1990 and chassis of eurobrun er189" }, { "from": "gpt", "value": "SELECT entrant FROM table_name_98 WHERE yea...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "Name the engine for years before 1990 and chassis of eurobrun er189" }, { "from": "gpt", "value": "SELECT engine FROM table_name_57 WHERE year < 1...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (touchdowns INTEGER, receptions VARCHAR, games_started VARCHAR)" }, { "from": "human", "value": "With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (games_played INTEGER, fumbles VARCHAR, receptions VARCHAR, games_started VARCHAR)" }, { "from": "human", "value": "What are the highest number of games played that had game starts of 10, receptions of 6 and fumbles smaller than 3?" }, ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR)" }, { "from": "human", "value": "When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (date VARCHAR, location VARCHAR)" }, { "from": "human", "value": "When was the incident in Pol-E Khomri?" }, { "from": "gpt", "value": "SELECT date FROM table_name_17 WHERE location = \"pol-e khomri\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (nature_of_incident VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What was the incident in imam sahib area, kunduz province?" }, { "from": "gpt", "value": "SELECT nature_of_incident FROM table_name_99 WHERE locati...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (gender VARCHAR, romanized_name VARCHAR)" }, { "from": "human", "value": "What gender has Romanized name and kim yoon-yeong?" }, { "from": "gpt", "value": "SELECT gender FROM table_name_14 WHERE romanized_name = \"kim yoon-yeon...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR)" }, { "from": "human", "value": "What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_97 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (games INTEGER, year INTEGER)" }, { "from": "human", "value": "After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season?" }, { "from": "gpt", "value": "SELECT MIN(games) FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (result VARCHAR, competition VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?" }, { "fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What is the name of the venue when the competition was friendly, with a Result of 2–3?" }, { "from": "gpt", "value": "SELECT venue FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier?" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen