conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_66 (score VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What was the score against fabrice martin?" }, { "from": "gpt", "value": "SELECT score FROM table_name_66 WHERE opponent = \"fabrice martin\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (surface VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What was the surface of the score of 7–5, 3–6, 7–6?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_58 WHERE score = \"7–5, 3–6, 7–6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (order VARCHAR, elector VARCHAR)" }, { "from": "human", "value": "What's the Order with an Elector of Marino Bulcani?" }, { "from": "gpt", "value": "SELECT order FROM table_name_61 WHERE elector = \"marino bulcani\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, order VARCHAR)" }, { "from": "human", "value": "What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (elector VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?" }, { "from": "gpt", "value": "SELECT elector FROM table_name_62 WHERE title = \"d...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (elevated VARCHAR, order VARCHAR)" }, { "from": "human", "value": "What's listed for the Elevated category that has an Order of Cardinal-Bishop?" }, { "from": "gpt", "value": "SELECT elevated FROM table_name_78 WHERE order = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (division_record VARCHAR, school VARCHAR)" }, { "from": "human", "value": "The Milford School has what Division Record?" }, { "from": "gpt", "value": "SELECT division_record FROM table_name_79 WHERE school = \"milford\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (team VARCHAR, school VARCHAR)" }, { "from": "human", "value": "What is the name of the School of the Sussex Tech's Team?" }, { "from": "gpt", "value": "SELECT team FROM table_name_29 WHERE school = \"sussex tech\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (score VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What was Arnold Palmer's score in the tournamnet?" }, { "from": "gpt", "value": "SELECT score FROM table_name_5 WHERE player = \"arnold palmer\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (party VARCHAR, member VARCHAR)" }, { "from": "human", "value": "What the name of Peter White's party?" }, { "from": "gpt", "value": "SELECT party FROM table_name_31 WHERE member = \"peter white\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (term_in_office VARCHAR, electorate VARCHAR)" }, { "from": "human", "value": "What term did an Electorate of indi have in office?" }, { "from": "gpt", "value": "SELECT term_in_office FROM table_name_73 WHERE electorate = \"indi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (term_in_office VARCHAR, member VARCHAR)" }, { "from": "human", "value": "What term did hon ralph hunt serve in office?" }, { "from": "gpt", "value": "SELECT term_in_office FROM table_name_9 WHERE member = \"hon ralph hunt\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (party VARCHAR, state VARCHAR, member VARCHAR)" }, { "from": "human", "value": "What party is Peter Fisher from Vic serve in office?" }, { "from": "gpt", "value": "SELECT party FROM table_name_65 WHERE state = \"vic\" AND membe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (laps INTEGER, year VARCHAR)" }, { "from": "human", "value": "How many laps were done in 2012?" }, { "from": "gpt", "value": "SELECT SUM(laps) FROM table_name_26 WHERE year = 2012" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (date VARCHAR, score VARCHAR)" }, { "from": "human", "value": "On what day was the score of 1–6 6–1 3–6 achieved?" }, { "from": "gpt", "value": "SELECT date FROM table_name_12 WHERE score = \"1–6 6–1 3–6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (gold INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "Name the average gold for czech republic and bronze less than 1 when total is less than 14" }, { "from": "gpt", "value": "SELECT AVG...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (rank INTEGER, silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "Name the highest rank when silver is 4 and bronze is less than 3" }, { "from": "gpt", "value": "SELECT MAX(rank) FROM table_name_13 WHERE silver = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (total VARCHAR, bronze VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "Name the total number of total for bronze of 4 and silver more than 6" }, { "from": "gpt", "value": "SELECT COUNT(total) FROM table_name_59 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (outcome VARCHAR, surface VARCHAR)" }, { "from": "human", "value": "When the Surface was Carpet (i), what was the Outcome?" }, { "from": "gpt", "value": "SELECT outcome FROM table_name_11 WHERE surface = \"carpet (i)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (draw INTEGER, place VARCHAR, votes VARCHAR)" }, { "from": "human", "value": "What is the draw number of the song with a place lower than 6 and more than 38 votes?" }, { "from": "gpt", "value": "SELECT SUM(draw) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (votes VARCHAR, artist VARCHAR, place VARCHAR)" }, { "from": "human", "value": "What is the total number of votes Sahlene with a place below 1 has?" }, { "from": "gpt", "value": "SELECT COUNT(votes) FROM table_name_4 WHERE artis...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (place INTEGER, votes VARCHAR, draw VARCHAR)" }, { "from": "human", "value": "What is the highest place of the song with 38 votes and a draw great than 3?" }, { "from": "gpt", "value": "SELECT MAX(place) FROM table_name_8 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (votes INTEGER, draw VARCHAR, artist VARCHAR)" }, { "from": "human", "value": "How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?" }, { "from": "gpt", "value": "SELECT SUM(votes) FROM table_name_93 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (year VARCHAR, finish VARCHAR)" }, { "from": "human", "value": "What year was there a finish of 3?" }, { "from": "gpt", "value": "SELECT year FROM table_name_27 WHERE finish = \"3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (year INTEGER, start VARCHAR)" }, { "from": "human", "value": "What year was the start 33?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_97 WHERE start = \"33\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (year VARCHAR, team VARCHAR, start VARCHAR)" }, { "from": "human", "value": "When was there a team of Simon and the start was 3?" }, { "from": "gpt", "value": "SELECT year FROM table_name_48 WHERE team = \"simon\" AND start = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (city VARCHAR, built VARCHAR, spire__m_ VARCHAR, roof___m__ VARCHAR)" }, { "from": "human", "value": "What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller than 96?" }, { "from": "gpt", "value": "SELE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (floors INTEGER, built VARCHAR, roof___m__ VARCHAR)" }, { "from": "human", "value": "What's the average number of floors that were built in 2004, and have a roof (m) of 106?" }, { "from": "gpt", "value": "SELECT AVG(floors) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (floors INTEGER, built VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What's the total number of floors built after 2006, and have a rank of 12?" }, { "from": "gpt", "value": "SELECT SUM(floors) FROM table_name_73 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (attendance INTEGER, h___a VARCHAR)" }, { "from": "human", "value": "What is the sum of attendance for H/A values of \"n\"?" }, { "from": "gpt", "value": "SELECT SUM(attendance) FROM table_name_80 WHERE h___a = \"n\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (score VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Name the score which has opponent of stefano galvani" }, { "from": "gpt", "value": "SELECT score FROM table_name_85 WHERE opponent = \"stefano galvani\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Name the score with opponent of javier genaro-martinez" }, { "from": "gpt", "value": "SELECT score FROM table_name_44 WHERE opponent = \"javier genaro-martinez\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (outcome VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "Name the outcome for dunlop world challenge" }, { "from": "gpt", "value": "SELECT outcome FROM table_name_58 WHERE tournament = \"dunlop world challenge\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (visiting_team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the visiting team on December 6?" }, { "from": "gpt", "value": "SELECT visiting_team FROM table_name_31 WHERE date = \"december 6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (host_team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the host team on October 4?" }, { "from": "gpt", "value": "SELECT host_team FROM table_name_31 WHERE date = \"october 4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (value___usd__ VARCHAR, country VARCHAR, date VARCHAR, business VARCHAR)" }, { "from": "human", "value": "In New Zealand, what's the value that has an unknown date and is an energy business?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (company VARCHAR, business VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What company has an unknown date and is an energy business?" }, { "from": "gpt", "value": "SELECT company FROM table_name_20 WHERE business = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (company VARCHAR, country VARCHAR, business VARCHAR, date VARCHAR)" }, { "from": "human", "value": "In the United Kingdom, what company has an unknown date and is an energy business?" }, { "from": "gpt", "value": "SELECT compan...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (date VARCHAR, country VARCHAR)" }, { "from": "human", "value": "For the United Kingdom, what's the date?" }, { "from": "gpt", "value": "SELECT date FROM table_name_88 WHERE country = \"united kingdom\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (country VARCHAR, date VARCHAR, company VARCHAR)" }, { "from": "human", "value": "For the Enernoc Australia Pty Ltd, what's the country with an unknown date?" }, { "from": "gpt", "value": "SELECT country FROM table_name_15 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Which date is associated with a venue of Luxembourg?" }, { "from": "gpt", "value": "SELECT date FROM table_name_29 WHERE venue = \"luxembourg\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (year INTEGER, chassis VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What is the year with a Kurtis Kraft 500a chassis, and less than 1.5 points?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_10 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)" }, { "from": "human", "value": "What is the year with a kurtis kraft 500a chassis?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_86 WHERE chassis = \"kurtis kraft 500a\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (pick__number INTEGER, college VARCHAR)" }, { "from": "human", "value": "What is the lowest Pick # of Saint Vincent College?" }, { "from": "gpt", "value": "SELECT MIN(pick__number) FROM table_name_78 WHERE college = \"saint vin...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (overall INTEGER, name VARCHAR, pick__number VARCHAR)" }, { "from": "human", "value": "What is the Overall for Pick # less than 5 Jack Harmon?" }, { "from": "gpt", "value": "SELECT MIN(overall) FROM table_name_45 WHERE name = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (rank VARCHAR, total_gdp__€_bn__ VARCHAR)" }, { "from": "human", "value": "Which rank has a Total GDP (€ bn) of €11.243??" }, { "from": "gpt", "value": "SELECT rank FROM table_name_98 WHERE total_gdp__€_bn__ = \"€11.243\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (region VARCHAR, total_gdp__€_bn__ VARCHAR)" }, { "from": "human", "value": "What is the Region that has a Total GDP (€ bn ) of €11,745.353?" }, { "from": "gpt", "value": "SELECT region FROM table_name_58 WHERE total_gdp__€_bn_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (region VARCHAR, _percentage_growth VARCHAR)" }, { "from": "human", "value": "Which Region that has a growth of βˆ’3.6%?" }, { "from": "gpt", "value": "SELECT region FROM table_name_24 WHERE _percentage_growth = \"βˆ’3.6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (per_capita VARCHAR, region VARCHAR)" }, { "from": "human", "value": "What is the per capita of Greece?" }, { "from": "gpt", "value": "SELECT per_capita FROM table_name_42 WHERE region = \"greece\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (silver INTEGER, bronze VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the fewest number of silver medals received by a nation who received 40 bronze medals and more than 42 gold medals?" }, { "from": "gpt", "v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (silver INTEGER, nation VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "What is the lowest number of silver medals received by Austria when they receive more than 3 total medals, more than 22 bronze m...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (silver INTEGER, gold VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "What is the average number of silver medals with more than 6 gold meals and less than 5 bronze medals?" }, { "from": "gpt", "value": "SELECT AVG(si...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR)" }, { "from": "human", "value": "How many ranks are for Switzerland with more than 2 total medals?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_39 WHERE nation ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (event VARCHAR, round VARCHAR, method VARCHAR)" }, { "from": "human", "value": "What is the event of the match with a round larger than 2 and ended with a method of ko (kick)?" }, { "from": "gpt", "value": "SELECT event FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (method VARCHAR, round VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final?" }, { "from": "gpt", "value": "SELECT method FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (round INTEGER, opponent VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan?" }, { "from": "gpt", "value": "SELECT MAX(round) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (round INTEGER, time VARCHAR)" }, { "from": "human", "value": "What is the highest round of the match with a time of 0:57?" }, { "from": "gpt", "value": "SELECT MAX(round) FROM table_name_97 WHERE time = \"0:57\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (points_for VARCHAR, tries_for VARCHAR, try_bonus VARCHAR)" }, { "from": "human", "value": "How many points did the Club score that has a try bonus of 7 and 52 tries for ?" }, { "from": "gpt", "value": "SELECT points_for FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (losing_bonus VARCHAR, tries_against VARCHAR)" }, { "from": "human", "value": "What is the Losing bonus of the club that has 80 tries against ?" }, { "from": "gpt", "value": "SELECT losing_bonus FROM table_name_64 WHERE tries_a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (tries_for VARCHAR, club VARCHAR)" }, { "from": "human", "value": "How many tries for does waunarlwydd rfc have ?" }, { "from": "gpt", "value": "SELECT tries_for FROM table_name_2 WHERE club = \"waunarlwydd rfc\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (lost VARCHAR, points VARCHAR)" }, { "from": "human", "value": "How many losses did the club with 47 points have ?" }, { "from": "gpt", "value": "SELECT lost FROM table_name_7 WHERE points = \"47\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (points_against VARCHAR, try_bonus VARCHAR, tries_against VARCHAR)" }, { "from": "human", "value": "How many points against does the club that has a try bonus of 6 and tries against of 54 have ?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (co_drivers VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who were the co-drivers in 2008?" }, { "from": "gpt", "value": "SELECT co_drivers FROM table_name_81 WHERE year = 2008" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (pos VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What was the position in 2006?" }, { "from": "gpt", "value": "SELECT pos FROM table_name_66 WHERE year = 2006" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (class VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What was the class when there were 325 laps?" }, { "from": "gpt", "value": "SELECT class FROM table_name_32 WHERE laps = 325" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (english_title VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the English title of the film from 2001?" }, { "from": "gpt", "value": "SELECT english_title FROM table_name_89 WHERE year = 2001" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (original_title VARCHAR, year VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the original title of the film from Japan/Taiwan before 2003?" }, { "from": "gpt", "value": "SELECT original_title FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR)" }, { "from": "human", "value": "What is the English title of the film directed by Fernando Meirelles?" }, { "from": "gpt", "value": "SELECT english_title FROM table_name_53 WHERE di...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (country VARCHAR, original_title VARCHAR)" }, { "from": "human", "value": "What is the country of the original title Cidade de deus?" }, { "from": "gpt", "value": "SELECT country FROM table_name_69 WHERE original_title = \"cida...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (year INTEGER, country VARCHAR)" }, { "from": "human", "value": "What is the earliest year of a film from Mexico?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_44 WHERE country = \"mexico\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (year INTEGER, country VARCHAR)" }, { "from": "human", "value": "What is the average year of the film from France/Hong Kong?" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_74 WHERE country = \"france/hong kong\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (country VARCHAR, place VARCHAR)" }, { "from": "human", "value": "Name the country for t3 place" }, { "from": "gpt", "value": "SELECT country FROM table_name_45 WHERE place = \"t3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (country VARCHAR, to_par VARCHAR)" }, { "from": "human", "value": "Name the country with +2 to par" }, { "from": "gpt", "value": "SELECT country FROM table_name_28 WHERE to_par = \"+2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (to_par VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Name the to par for colin montgomerie" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_30 WHERE player = \"colin montgomerie\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (score VARCHAR, country VARCHAR)" }, { "from": "human", "value": "Name the score for scotland" }, { "from": "gpt", "value": "SELECT score FROM table_name_64 WHERE country = \"scotland\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (island VARCHAR, area___ha__ VARCHAR, population VARCHAR, height__m_ VARCHAR)" }, { "from": "human", "value": "What island has a population over 76, a height over 210, and an area larger than 12068?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (population INTEGER, location VARCHAR, island VARCHAR)" }, { "from": "human", "value": "What is the highest population of Trondra Island in the Scalloway Islands?" }, { "from": "gpt", "value": "SELECT MAX(population) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (drawn VARCHAR, percentage VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?" }, { "from": "gpt", "value": "SELECT COUNT(drawn) FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (percentage VARCHAR, played VARCHAR, first_game VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (drawn INTEGER, first_game VARCHAR, played VARCHAR)" }, { "from": "human", "value": "What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?" }, { "from": "gpt", "value": "SE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (lost INTEGER, drawn VARCHAR, played VARCHAR, first_game VARCHAR)" }, { "from": "human", "value": "What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws?" }, { "from":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?" }, { "from": "gpt", "value": "SELECT result FROM table_name_53 WHERE date = \"5,...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the Date of the Test match of Australia in England at The Oval Venue?" }, { "from": "gpt", "value": "SELECT date FROM table_name_12 WHERE venue = \"the oval...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (away_captain VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Who was the Away captain for the Test match of Australia in England where the Result was AUS by 264 runs?" }, { "from": "gpt", "value": "SELECT away_captai...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (home_captain VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue?" }, { "from": "gpt", "value": "SELECT home_captain FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (role VARCHAR, notes VARCHAR, year VARCHAR)" }, { "from": "human", "value": "what is the name of the role that has co-protagonist in the notes field and the years of 2008-2009?" }, { "from": "gpt", "value": "SELECT role FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (role VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What is the name of the role that has a Title of Olvidarte Jamas?" }, { "from": "gpt", "value": "SELECT role FROM table_name_41 WHERE title = \"olvidarte jamas\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (production_company VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Which production company has the year of 2005 listed?" }, { "from": "gpt", "value": "SELECT production_company FROM table_name_45 WHERE year = \"2005\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (role VARCHAR, notes VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field?" }, { "from": "gpt", "value": "SELECT role F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (production_company VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the name of the production company that has a year of 2008-2009?" }, { "from": "gpt", "value": "SELECT production_company FROM table_name_19 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (authority VARCHAR, area VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the Authority for Kuranui Primary School that is located in the Area of Tirau?" }, { "from": "gpt", "value": "SELECT authority FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (name VARCHAR, decile INTEGER)" }, { "from": "human", "value": "Which Names have Deciles larger than 7?" }, { "from": "gpt", "value": "SELECT name FROM table_name_38 WHERE decile > 7" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (gender VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "What Gender are the schools that have a Roll of 135?" }, { "from": "gpt", "value": "SELECT gender FROM table_name_62 WHERE roll = \"135\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (name VARCHAR, authority VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "What is the Name of a state Authority that has a Roll of 72?" }, { "from": "gpt", "value": "SELECT name FROM table_name_13 WHERE authority = \"sta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (score VARCHAR, competition VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which friendly competition took place on 19 April 1979?" }, { "from": "gpt", "value": "SELECT score FROM table_name_37 WHERE competition = \"fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (team_1 VARCHAR, team_2 VARCHAR)" }, { "from": "human", "value": "Which Team 1 faced Dynamos FC?" }, { "from": "gpt", "value": "SELECT team_1 FROM table_name_83 WHERE team_2 = \"dynamos fc\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (agg VARCHAR, team_1 VARCHAR)" }, { "from": "human", "value": "What is Team 1 Al-Hilal's Agg.?" }, { "from": "gpt", "value": "SELECT agg FROM table_name_81 WHERE team_1 = \"al-hilal\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which record happened on the date of May 7?" }, { "from": "gpt", "value": "SELECT record FROM table_name_34 WHERE date = \"may 7\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (tournament VARCHAR, opponent_in_the_final VARCHAR)" }, { "from": "human", "value": "Which tournament had Lubomira Bacheva as the opponent in the final?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_53 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (opponent_in_the_final VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the opponent in the final on 5 July 1992?" }, { "from": "gpt", "value": "SELECT opponent_in_the_final FROM table_name_46 WHERE date = \"5 ju...
know_sql
chosen