conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_88 (date VARCHAR, format VARCHAR)" }, { "from": "human", "value": "Tell me the date for format of cd/dvd" }, { "from": "gpt", "value": "SELECT date FROM table_name_88 WHERE format = \"cd/dvd\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (format VARCHAR, region VARCHAR)" }, { "from": "human", "value": "Tell me the format for european union" }, { "from": "gpt", "value": "SELECT format FROM table_name_99 WHERE region = \"european union\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (catalog VARCHAR, date INTEGER)" }, { "from": "human", "value": "Tell me the catalog for date larger than 2004" }, { "from": "gpt", "value": "SELECT catalog FROM table_name_72 WHERE date > 2004" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (date INTEGER, catalog VARCHAR)" }, { "from": "human", "value": "I want the lowest date for catalog of 6561910008-1" }, { "from": "gpt", "value": "SELECT MIN(date) FROM table_name_87 WHERE catalog = \"6561910008-1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (date VARCHAR, crowd INTEGER)" }, { "from": "human", "value": "What date was there a crowd larger than 30,343?" }, { "from": "gpt", "value": "SELECT date FROM table_name_97 WHERE crowd > 30 OFFSET 343" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)" }, { "from": "human", "value": "What was the lowest Crowd total from a game in which Essendon was the Away team?" }, { "from": "gpt", "value": "SELECT MIN(crowd) FROM table_name_35 WHERE away...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "Which Venue was used when the Home team was geelong?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_47 WHERE home_team = \"geelong\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (scored INTEGER, competition VARCHAR)" }, { "from": "human", "value": "What is the highest scored in the 2010 east asian football championship?" }, { "from": "gpt", "value": "SELECT MAX(scored) FROM table_name_66 WHERE competit...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (country VARCHAR, city VARCHAR)" }, { "from": "human", "value": "Which country is Wellington located in?" }, { "from": "gpt", "value": "SELECT country FROM table_name_48 WHERE city = \"wellington\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (label VARCHAR, region VARCHAR, format VARCHAR)" }, { "from": "human", "value": "What label is in download format in the United States?" }, { "from": "gpt", "value": "SELECT label FROM table_name_42 WHERE region = \"united stat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (label VARCHAR, region VARCHAR, format VARCHAR)" }, { "from": "human", "value": "What label is in download format in the United States?" }, { "from": "gpt", "value": "SELECT label FROM table_name_88 WHERE region = \"united stat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (label VARCHAR, catalogue VARCHAR)" }, { "from": "human", "value": "What label has RTRADLP 346 as catalogue?" }, { "from": "gpt", "value": "SELECT label FROM table_name_90 WHERE catalogue = \"rtradlp 346\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (label VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What label has 22 January 2008 date?" }, { "from": "gpt", "value": "SELECT label FROM table_name_8 WHERE date = \"22 january 2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (label VARCHAR, catalogue VARCHAR)" }, { "from": "human", "value": "What is the label for catalogue of RT-346-5?" }, { "from": "gpt", "value": "SELECT label FROM table_name_93 WHERE catalogue = \"rt-346-5\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (position VARCHAR, school_club_team VARCHAR)" }, { "from": "human", "value": "What position is mentioned for Rice school?" }, { "from": "gpt", "value": "SELECT position FROM table_name_34 WHERE school_club_team = \"rice\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, overall VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the average round for Wisconsin when the overall is larger than 238 and there is a defensive end?" }, { "from": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (round INTEGER, position VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "What is the average round when there is a defensive back and an overall smaller than 199?" }, { "from": "gpt", "value": "SELECT AVG(round) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (date VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What was the date of game with a score of 42-6?" }, { "from": "gpt", "value": "SELECT date FROM table_name_23 WHERE score = \"42-6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (stadium VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What stadium was the game played at when the result was hunter mariners def. sheffield eagles?" }, { "from": "gpt", "value": "SELECT stadium FROM table_name_43 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (city VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What city has a Result of brisbane broncos def. halifax blue sox?" }, { "from": "gpt", "value": "SELECT city FROM table_name_22 WHERE result = \"brisbane broncos d...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (player VARCHAR, round VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "Which player was drafted after round 9 and number 464 overall?" }, { "from": "gpt", "value": "SELECT player FROM table_name_83 WHERE round > 9 AN...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (round VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What was James Reed's draft round number?" }, { "from": "gpt", "value": "SELECT COUNT(round) FROM table_name_90 WHERE player = \"james reed\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What was the overall draft number of Tom Fleming, a wide receiver?" }, { "from": "gpt", "value": "SELECT COUNT(overall) FROM table_name_28 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (player VARCHAR, school_club_team VARCHAR)" }, { "from": "human", "value": "Which player is from Dartmouth?" }, { "from": "gpt", "value": "SELECT player FROM table_name_41 WHERE school_club_team = \"dartmouth\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (position VARCHAR, school_country VARCHAR)" }, { "from": "human", "value": "What position does the player from tulsa play?" }, { "from": "gpt", "value": "SELECT position FROM table_name_17 WHERE school_country = \"tulsa\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (magnitude INTEGER, date VARCHAR)" }, { "from": "human", "value": "What is the sum of Magnitude on february 12, 1953?" }, { "from": "gpt", "value": "SELECT SUM(magnitude) FROM table_name_44 WHERE date = \"february 12, 1953\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (final_score VARCHAR, sport VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What was the final score of a baseball game that happened before 2005?" }, { "from": "gpt", "value": "SELECT final_score FROM table_name_41 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What venue did Richmond play as the away team?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_29 WHERE away_team = \"richmond\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (home_team VARCHAR)" }, { "from": "human", "value": "What is the team of Essendon's score in the game where they were the home team?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_92 WHERE home_team = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "Who is the away side when st kilda is the home side?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_59 WHERE home_team = \"st kilda\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What is the away side score when footscray is the home side?" }, { "from": "gpt", "value": "SELECT away_team AS score FROM table_name_38 WHERE home_team = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (home_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the home team's score at kardinia park?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_85 WHERE venue = \"kardinia park\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (crowd INTEGER, away_team VARCHAR)" }, { "from": "human", "value": "What was the lowest crowd seen at a game that Richmond was the Away team in?" }, { "from": "gpt", "value": "SELECT MIN(crowd) FROM table_name_57 WHERE away_tea...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR)" }, { "from": "human", "value": "What was the highest crowd count seen in the Windy Hill venue?" }, { "from": "gpt", "value": "SELECT MAX(crowd) FROM table_name_48 WHERE venue = \"windy hill\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What was the score of the Away team that played against the Home team of Fitzroy?" }, { "from": "gpt", "value": "SELECT away_team AS score FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (overall INTEGER, school_club_team VARCHAR)" }, { "from": "human", "value": "Which was the lowest overall that Wisconsin's team managed?" }, { "from": "gpt", "value": "SELECT MIN(overall) FROM table_name_78 WHERE school_club_te...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (school_club_team VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which team was Roy de Walt a player on?" }, { "from": "gpt", "value": "SELECT school_club_team FROM table_name_20 WHERE player = \"roy de walt\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "In which round did Paul McDonald have an overall greater than 109?" }, { "from": "gpt", "value": "SELECT MAX(round) FROM table_name_22 WHERE play...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (overall INTEGER, player VARCHAR, round VARCHAR)" }, { "from": "human", "value": "What is the total overall in round 1, in which Charles White was a player?" }, { "from": "gpt", "value": "SELECT SUM(overall) FROM table_name_2 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the name of a running back in a round before round 3?" }, { "from": "gpt", "value": "SELECT player FROM table_name_4 WHERE round < 3 AND ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (w_l__percentage VARCHAR, wins VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "What is the win/loss percentage with wins of 63 and losses smaller than 76?" }, { "from": "gpt", "value": "SELECT w_l__percentage FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What is the away team score when the home team is Geelong?" }, { "from": "gpt", "value": "SELECT away_team AS score FROM table_name_25 WHERE home_team = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (order INTEGER, weeks VARCHAR, majors VARCHAR)" }, { "from": "human", "value": "What was the highest order amount in weeks prier to 15 and a major less than 1?" }, { "from": "gpt", "value": "SELECT MAX(order) FROM table_name_55...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (position VARCHAR, school_country VARCHAR)" }, { "from": "human", "value": "What is the position of the player from Temple?" }, { "from": "gpt", "value": "SELECT position FROM table_name_7 WHERE school_country = \"temple\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (player VARCHAR, school_country VARCHAR)" }, { "from": "human", "value": "Which player is associated with Temple?" }, { "from": "gpt", "value": "SELECT player FROM table_name_22 WHERE school_country = \"temple\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (nationality VARCHAR, school_country VARCHAR)" }, { "from": "human", "value": "Which nationality is associated with Temple?" }, { "from": "gpt", "value": "SELECT nationality FROM table_name_72 WHERE school_country = \"temple\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (goals VARCHAR, current_club VARCHAR, debut_year VARCHAR)" }, { "from": "human", "value": "How many goals were achieved when Chievo was the club and the debut year was before 2002?" }, { "from": "gpt", "value": "SELECT COUNT(go...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (goals VARCHAR, name VARCHAR, debut_year VARCHAR)" }, { "from": "human", "value": "How many goals occurred with Diego Milito in a debut year later than 2008?" }, { "from": "gpt", "value": "SELECT COUNT(goals) FROM table_name_40...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who is the home team at the Punt Road Oval?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_99 WHERE venue = \"punt road oval\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who is the away team at Windy Hill?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_69 WHERE venue = \"windy hill\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (date VARCHAR, crowd INTEGER)" }, { "from": "human", "value": "What is the date of the game that had a crowd larger than 25,000?" }, { "from": "gpt", "value": "SELECT date FROM table_name_3 WHERE crowd > 25 OFFSET 000" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (home_team VARCHAR)" }, { "from": "human", "value": "What was South Melbourne's score as the home team?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_19 WHERE home_team = \"south melbourne\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (crowd INTEGER, away_team VARCHAR)" }, { "from": "human", "value": "What was the largest crowd of a game where Collingwood was the away team?" }, { "from": "gpt", "value": "SELECT MAX(crowd) FROM table_name_52 WHERE away_team =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (round INTEGER, method VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What's the lowest round with the opponent John Howard that had a method of Decision (unanimous)?" }, { "from": "gpt", "value": "SELECT MIN(round...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (time VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What's the time for the match with a record of 2-0?" }, { "from": "gpt", "value": "SELECT time FROM table_name_74 WHERE record = \"2-0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (location VARCHAR, method VARCHAR)" }, { "from": "human", "value": "Where was the match with a method of submission (standing guillotine choke)?" }, { "from": "gpt", "value": "SELECT location FROM table_name_92 WHERE method = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (language VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR)" }, { "from": "human", "value": "What language is the moviein that is on UMP movies network through Sky service?" }, { "from": "gpt", "value": "SELECT language...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (language VARCHAR, network VARCHAR, service VARCHAR)" }, { "from": "human", "value": "What language is the movie in that is on SAB network through Sky service?" }, { "from": "gpt", "value": "SELECT language FROM table_name_97 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (overall INTEGER, position VARCHAR, round VARCHAR)" }, { "from": "human", "value": "What was the overall pick for the player who was a guard and had a round less than 9?" }, { "from": "gpt", "value": "SELECT AVG(overall) FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR)" }, { "from": "human", "value": "What was the lowest round number that had an overall pick up 92?" }, { "from": "gpt", "value": "SELECT MIN(round) FROM table_name_9 WHERE overall = 92" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (open_source_movie VARCHAR, cc_license VARCHAR)" }, { "from": "human", "value": "What open source movie has a CC License of by-nc-sa 1.0?" }, { "from": "gpt", "value": "SELECT open_source_movie FROM table_name_90 WHERE cc_licen...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which venue had the result 7-1?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_50 WHERE result = \"7-1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (date VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What date was the Competition of rothmans cup?" }, { "from": "gpt", "value": "SELECT date FROM table_name_67 WHERE competition = \"rothmans cup\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (result VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What was the result of the Competition of friendly?" }, { "from": "gpt", "value": "SELECT result FROM table_name_61 WHERE competition = \"friendly\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (competition VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which competition was played on 8 June 2005?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_90 WHERE date = \"8 june 2005\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (competition VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Which competition had the score 1-0?" }, { "from": "gpt", "value": "SELECT competition FROM table_name_4 WHERE score = \"1-0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (country VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "Timsah arena is in what country?" }, { "from": "gpt", "value": "SELECT country FROM table_name_32 WHERE stadium = \"timsah arena\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (country VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What country is Relax-Gam from?" }, { "from": "gpt", "value": "SELECT country FROM table_name_83 WHERE team = \"relax-gam\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (cyclist VARCHAR, team VARCHAR)" }, { "from": "human", "value": "Who is Gerolsteiner's cyclist?" }, { "from": "gpt", "value": "SELECT cyclist FROM table_name_89 WHERE team = \"gerolsteiner\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (uci_protour_points VARCHAR, cyclist VARCHAR)" }, { "from": "human", "value": "What is Davide Rebellin' UCI ProTour Points?" }, { "from": "gpt", "value": "SELECT uci_protour_points FROM table_name_33 WHERE cyclist = \"davide re...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (home_team VARCHAR)" }, { "from": "human", "value": "What was North Melbourne's score when they were the home team?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_22 WHERE home_team = \"north melbourne...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "Where did Footscray play as the away team?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_76 WHERE away_team = \"footscray\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What was the away team's score in the match at Lake Oval?" }, { "from": "gpt", "value": "SELECT away_team AS score FROM table_name_77 WHERE venue = \"lake oval...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (crowd INTEGER, away_team VARCHAR)" }, { "from": "human", "value": "What was the sum of the crowds that watched Fitzroy play as the away team?" }, { "from": "gpt", "value": "SELECT SUM(crowd) FROM table_name_81 WHERE away_team ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (rank INTEGER, years VARCHAR, apps VARCHAR)" }, { "from": "human", "value": "What is the sum of rank with years 1996–2012 and apps greater than 340?" }, { "from": "gpt", "value": "SELECT SUM(rank) FROM table_name_15 WHERE year...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What was the away team that faced Carlton?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_6 WHERE home_team = \"carlton\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (crowd VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What is the total crowd size that saw Geelong play as the away team?" }, { "from": "gpt", "value": "SELECT COUNT(crowd) FROM table_name_17 WHERE away_team = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (wins VARCHAR, poles VARCHAR, final_placing VARCHAR)" }, { "from": "human", "value": "How many wins did Hobbs had a 15th finish at poles 0?" }, { "from": "gpt", "value": "SELECT wins FROM table_name_89 WHERE poles = \"0\" AND f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (points VARCHAR, series VARCHAR, podiums VARCHAR)" }, { "from": "human", "value": "What are the points for the GP3 series with 2 podiums?" }, { "from": "gpt", "value": "SELECT points FROM table_name_92 WHERE series = \"gp3 seri...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (races VARCHAR, podiums VARCHAR)" }, { "from": "human", "value": "Which races have #2 podiums?" }, { "from": "gpt", "value": "SELECT races FROM table_name_6 WHERE podiums = \"2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (final_placing VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What was the 2009 final placing?" }, { "from": "gpt", "value": "SELECT final_placing FROM table_name_17 WHERE season = 2009" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (points VARCHAR, races VARCHAR)" }, { "from": "human", "value": "What was the points with 7 races?" }, { "from": "gpt", "value": "SELECT points FROM table_name_34 WHERE races = \"7\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (venue VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What venue had south melbourne as the home team?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_90 WHERE home_team = \"south melbourne\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What venue had collingwood as the away team?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_14 WHERE away_team = \"collingwood\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (home_team VARCHAR)" }, { "from": "human", "value": "What was the home team score when south melbourne was the home team?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_49 WHERE home_team = \"south mel...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What day was south melbourne the away squad?" }, { "from": "gpt", "value": "SELECT date FROM table_name_70 WHERE away_team = \"melbourne\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (position VARCHAR, year VARCHAR, notes VARCHAR)" }, { "from": "human", "value": "What position did he finish after 1998 and a note time of 2:31:40?" }, { "from": "gpt", "value": "SELECT position FROM table_name_71 WHERE year > ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (venue VARCHAR, notes VARCHAR)" }, { "from": "human", "value": "What venue featured a notes of 2:38:44?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_63 WHERE notes = \"2:38:44\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Who did they play against in a week after 6 and the result was l 30–24?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_32 WHERE w...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (opponent VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What opponent has a Result of w 31–0?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_25 WHERE result = \"w 31–0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (round INTEGER, position VARCHAR)" }, { "from": "human", "value": "During which round was the final cornerback drafted for the New England Patriots in 2005?" }, { "from": "gpt", "value": "SELECT MAX(round) FROM table_name_7 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (best_score INTEGER, worst_dancer VARCHAR, worst_score VARCHAR)" }, { "from": "human", "value": "What dance was Leeza Gibbons the worst dancer for, receiving a score lower than 15?" }, { "from": "gpt", "value": "SELECT MIN(best_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR)" }, { "from": "human", "value": "What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?" }, { "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (crowd INTEGER, away_team VARCHAR)" }, { "from": "human", "value": "What is the biggest crowd when carlton is the away squad?" }, { "from": "gpt", "value": "SELECT MAX(crowd) FROM table_name_48 WHERE away_team = \"carlton\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (crowd INTEGER, away_team VARCHAR)" }, { "from": "human", "value": "What is the sum of crowd(s) when richmond is the away squad?" }, { "from": "gpt", "value": "SELECT SUM(crowd) FROM table_name_44 WHERE away_team = \"richmond\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the home team's score in the game played at glenferrie oval?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_40 WHERE venue = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (res VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What was the result of the event against Nate Mohr?" }, { "from": "gpt", "value": "SELECT res FROM table_name_57 WHERE opponent = \"nate mohr\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "When the VFL played Junction Oval what was the home team score?" }, { "from": "gpt", "value": "SELECT home_team AS score FROM table_name_45 WHERE venue = \"jun...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (crowd VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What was away team Geelong's crowd numbers?" }, { "from": "gpt", "value": "SELECT crowd FROM table_name_6 WHERE away_team = \"geelong\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What is the date they played against fitzroy?" }, { "from": "gpt", "value": "SELECT date FROM table_name_10 WHERE away_team = \"fitzroy\"" } ]
know_sql
chosen