conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)" }, { "from": "human", "value": "Name the team for school of milford" }, { "from": "gpt", "value": "SELECT team FROM table_name_44 WHERE school = \"milford\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the average points for chassis of stevens and year less than 1950" }, { "from": "gpt", "value": "SELECT AVG(points) FROM table_name_14 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR)" }, { "from": "human", "value": "Name the least points for chassis of kurtis kraft 500a" }, { "from": "gpt", "value": "SELECT MIN(points) FROM table_name_54 WHERE chassis = \"kurtis kraft 500a\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)" }, { "from": "human", "value": "Name the total number of year for chassis of kurtis kraft 4000 and points more than 2" }, { "from": "gpt", "value": "SELECT COUNT(year) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?" }, { "from": "gpt", "value": "SELECT visiting_team...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "Who was the visiting team at Raymond James Stadium?" }, { "from": "gpt", "value": "SELECT visiting_team FROM table_name_36 WHERE stadium = \"raymond jame...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR)" }, { "from": "human", "value": "What date had the Houston Texans as visitors?" }, { "from": "gpt", "value": "SELECT date FROM table_name_75 WHERE visiting_team = \"houston texans\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (year VARCHAR, percentage VARCHAR)" }, { "from": "human", "value": "Name the year with percentage of 9.66%" }, { "from": "gpt", "value": "SELECT year FROM table_name_55 WHERE percentage = \"9.66%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the total number of popular votes for mn attorney general in 1994" }, { "from": "gpt", "value": "SELECT COUNT(popular_votes) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the average popular votes in years after 1990 with percentage of 4.94%" }, { "from": "gpt", "value": "SELECT AVG(popular_votes) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR)" }, { "from": "human", "value": "Name the least popular votes for year less than 1994 and percentage of 0.96%" }, { "from": "gpt", "value": "SELECT MIN(popular_votes) FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What United States player holds the place of t8?`" }, { "from": "gpt", "value": "SELECT player FROM table_name_57 WHERE place = \"t8\" AND countr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What country of argentina has the To par of 68?" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_51 WHERE score = 68 AND country = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)" }, { "from": "human", "value": "What is the To par and holds the t8 place of the United States player Tiger Woods?" }, { "from": "gpt", "value": "SELECT to_par F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What country does miguel ángel jiménez player for and has a score of 69?" }, { "from": "gpt", "value": "SELECT country FROM table_name_50 WHERE s...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR)" }, { "from": "human", "value": "What is the date of the race at Truro?" }, { "from": "gpt", "value": "SELECT date FROM table_name_32 WHERE track = \"truro\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR)" }, { "from": "human", "value": "Which Year has a nominated outstanding actor in a musical?" }, { "from": "gpt", "value": "SELECT year FROM table_name_88 WHERE result = \"nominat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR)" }, { "from": "human", "value": "Which Award has a nominated, and outstanding choreography?" }, { "from": "gpt", "value": "SELECT award FROM table_name_92 WHERE result = \"nomin...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR)" }, { "from": "human", "value": "Which Award has best performance by a leading actor in a musical" }, { "from": "gpt", "value": "SELECT award FROM table_name_20 WHERE category = \"best perform...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)" }, { "from": "human", "value": "What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 lea...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR)" }, { "from": "human", "value": "What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF positio...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)" }, { "from": "human", "value": "What is the total number of Years that has the Group, Method Fest Independent Film Festival?" }, { "from": "gpt", "value": "SELECT COUNT(year) FROM table_name_45 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)" }, { "from": "human", "value": "What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?" }, { "from": "gp...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Televisi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (group VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)" }, { "from": "human", "value": "After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award?" }, { "fr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the Film/Show, when the Year is 2010?" }, { "from": "gpt", "value": "SELECT film_show FROM table_name_19 WHERE year = 2010" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR)" }, { "from": "human", "value": "Which year is that has a Entrant of belond equa-flow / calif. muffler?" }, { "from": "gpt", "value": "SELECT year FROM table_name_88 WHERE entrant = \"belond equa...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (wkts INTEGER, ovrs INTEGER)" }, { "from": "human", "value": "If the Ovrs is less than 2, what's the average in Wkts?" }, { "from": "gpt", "value": "SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR)" }, { "from": "human", "value": "If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts?" }, { "from": "gpt", "value": "SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28....
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR)" }, { "from": "human", "value": "How many sacks have 2006 as the year, and a solo less than 62?" }, { "from": "gpt", "value": "SELECT SUM(sacks) FROM table_name_59 WHERE year = \"2006...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)" }, { "from": "human", "value": "What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR)" }, { "from": "human", "value": "How many sacks have 72 as the solo and a TTkl less than 112?" }, { "from": "gpt", "value": "SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR)" }, { "from": "human", "value": "How many TTkl have 2004 as the year, and a pass def greater than 5?" }, { "from": "gpt", "value": "SELECT SUM(ttkl) FROM table_name_46 WHERE year =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the highest decile of Tarras school, which had a state authority?" }, { "from": "gpt", "value": "SELECT MAX(decile) FROM table_name_58 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER)" }, { "from": "human", "value": "What is the decile of the school with a roll larger than 513?" }, { "from": "gpt", "value": "SELECT SUM(decile) FROM table_name_36 WHERE roll > 513" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the area of Cromwell Primary school, which has a state authority?" }, { "from": "gpt", "value": "SELECT area FROM table_name_96 WHERE auth...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)" }, { "from": "human", "value": "Which player has figures of 4/14?" }, { "from": "gpt", "value": "SELECT player FROM table_name_46 WHERE figures = \"4/14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "How many overs occurred at Waca Ground against Queensland?" }, { "from": "gpt", "value": "SELECT overs FROM table_name_31 WHERE ground = \"waca ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR)" }, { "from": "human", "value": "At which ground did Dirk Nannes have a figure of 4/23?" }, { "from": "gpt", "value": "SELECT ground FROM table_name_37 WHERE figures = \"4/23\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR)" }, { "from": "human", "value": "Who was the opponent when Steven Smith had 3.3 overs?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_45 WHERE overs = 3.3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin VARCHAR)" }, { "from": "human", "value": "Name the average year for brookvale oval and margin more than 46" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_99 WHERE venue = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (year INTEGER, venue VARCHAR)" }, { "from": "human", "value": "Name the most year for brookvale oval" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_93 WHERE venue = \"brookvale oval\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR)" }, { "from": "human", "value": "Name the average year for manly-warringah sea eagles" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_13 WHERE opponent = \"manly-warringah sea ea...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Who is the partner with a score of 6–1, 6–4?" }, { "from": "gpt", "value": "SELECT partner FROM table_name_29 WHERE score = \"6–1, 6–4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR)" }, { "from": "human", "value": "what is the best supported club with a 25 Goal and a per game larger than 1,156?" }, { "from": "gpt", "value": "SELECT best_support...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR)" }, { "from": "human", "value": "What are the age groups for the Big League World Series?" }, { "from": "gpt", "value": "SELECT age_groups FROM table_name_26 WHERE competition_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR)" }, { "from": "human", "value": "How often is the table tennis competition held?" }, { "from": "gpt", "value": "SELECT held_every FROM table_name_13 WHERE sport = \"table tennis\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (held_every VARCHAR, sport VARCHAR)" }, { "from": "human", "value": "How often is the cricket competition held?" }, { "from": "gpt", "value": "SELECT held_every FROM table_name_97 WHERE sport = \"cricket\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)" }, { "from": "human", "value": "What was the attendance of the Blue Jays' game when their record was 47-43?" }, { "from": "gpt", "value": "SELECT SUM(attendance) FROM table_name_7 WHERE reco...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (year VARCHAR, points VARCHAR, engine VARCHAR)" }, { "from": "human", "value": "Which year had a Cosworth V8 engine and 12 points?" }, { "from": "gpt", "value": "SELECT year FROM table_name_36 WHERE points = 12 AND engine = \"c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "How many points did the ATS Wheels entrant with an ATS D2 chassis have?" }, { "from": "gpt", "value": "SELECT points FROM table_name_14 WHERE e...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR)" }, { "from": "human", "value": "How many races have less than 2 podiums and 19th position before 2009?" }, { "from": "gpt", "value": "SELECT AVG(races) FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR)" }, { "from": "human", "value": "Which co drivers are 3rd in Joest racing?" }, { "from": "gpt", "value": "SELECT co_drivers FROM table_name_23 WHERE pos = \"3rd\" AND team = \"joe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)" }, { "from": "human", "value": "When was radek necas with less than 2.04 height born?" }, { "from": "gpt", "value": "SELECT AVG(year_born) FROM table_name_97 WHERE player = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR)" }, { "from": "human", "value": "How tall was the member of Nymburk, who was born in 1982?" }, { "from": "gpt", "value": "SELECT MAX(height) FROM table_name_23 WHERE yea...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR)" }, { "from": "human", "value": "What Kerry number does Taylor county have with more than 65 others#?" }, { "from": "gpt", "value": "SELECT COUNT(kerry_number) FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR)" }, { "from": "human", "value": "What is the smallest bush# with 66.0% bush and less than 65 others#?" }, { "from": "gpt", "value": "SELECT MIN(bush_number) ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who was the captain of the away team at Adelaide Oval?" }, { "from": "gpt", "value": "SELECT away_captain FROM table_name_84 WHERE venue = \"adelaide oval\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the final score at Melbourne Cricket Ground?" }, { "from": "gpt", "value": "SELECT result FROM table_name_79 WHERE venue = \"melbourne cricket ground\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Name the score for april 28" }, { "from": "gpt", "value": "SELECT score FROM table_name_66 WHERE date = \"april 28\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)" }, { "from": "human", "value": "What is the average Heat for anjelika solovieva?" }, { "from": "gpt", "value": "SELECT AVG(heat) FROM table_name_38 WHERE name = \"anjelika solovieva\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR)" }, { "from": "human", "value": "What is the average lane with Netherlands Antilles Nationality?" }, { "from": "gpt", "value": "SELECT AVG(lane) FROM table_name_37 WHERE nationality = \"nethe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (finish VARCHAR, start VARCHAR)" }, { "from": "human", "value": "What is the finish of the year with start 5?" }, { "from": "gpt", "value": "SELECT finish FROM table_name_42 WHERE start = \"5\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (rank VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the rank in 1940?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_26 WHERE year = \"1940\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)" }, { "from": "human", "value": "What is the highest laps of the year when the rank was 14?" }, { "from": "gpt", "value": "SELECT MAX(laps) FROM table_name_73 WHERE rank = \"14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What year had 134 laps?" }, { "from": "gpt", "value": "SELECT year FROM table_name_75 WHERE laps = 134" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)" }, { "from": "human", "value": "What is the finish when there was more than 192 laps and a qual of 135.736?" }, { "from": "gpt", "value": "SELECT finish FROM table_name_2 WHERE laps ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "Witch opponent has a loss of Glynn (0-2)?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_51 WHERE loss = \"glynn (0-2)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)" }, { "from": "human", "value": "Who was the previous champion of the title won on July 7, 2010?" }, { "from": "gpt", "value": "SELECT previous_champion_s_ FROM table_name_98 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)" }, { "from": "human", "value": "When did Bonecrusher win the championship at Bayamón, Puerto Rico?" }, { "from": "gpt", "value": "SELECT date_won FROM table_name_5 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR)" }, { "from": "human", "value": "Who is the champion of the title previously held by Lash?" }, { "from": "gpt", "value": "SELECT champion_s_ FROM table_name_4 WHERE previous_ch...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)" }, { "from": "human", "value": "Which championship was won on July 7, 2010?" }, { "from": "gpt", "value": "SELECT championship FROM table_name_92 WHERE date_won = \"july 7, 2010\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)" }, { "from": "human", "value": "Who has 6/1 odds?" }, { "from": "gpt", "value": "SELECT trainer FROM table_name_50 WHERE odds = \"6/1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR)" }, { "from": "human", "value": "What is the total dist with Johnny Murtagh and less than 26 runners?" }, { "from": "gpt", "value": "SELECT SUM(dist__f_) FROM table_name_12 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)" }, { "from": "human", "value": "Who has 5/1 odds?" }, { "from": "gpt", "value": "SELECT jockey FROM table_name_55 WHERE odds = \"5/1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR)" }, { "from": "human", "value": "What course did Fergal Lynch end up with 5/1 odds?" }, { "from": "gpt", "value": "SELECT course FROM table_name_34 WHERE jockey = \"fergal lynch\" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What place has a To par of +4 and a score of 74-70-74-74=292?" }, { "from": "gpt", "value": "SELECT place FROM table_name_77 WHERE to_par = \"+4\" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)" }, { "from": "human", "value": "What place in the United States has a To par of e?" }, { "from": "gpt", "value": "SELECT place FROM table_name_39 WHERE country = \"united states...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What is the To par for the place in the United States and a score of 74-69-71-74=288?" }, { "from": "gpt", "value": "SELECT to_par FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (venue VARCHAR, year VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_27...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (year INTEGER, position VARCHAR)" }, { "from": "human", "value": "What's the average Year for the Position of 7th (sf)?" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_47 WHERE position = \"7th (sf)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_67...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What Venue has a Position of 12th (sf)?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_97 WHERE position = \"12th (sf)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Which engine has an Entrant of team lotus, and a Year larger than 1962?" }, { "from": "gpt", "value": "SELECT engine FROM table_name_47 WHERE entr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (points VARCHAR, year INTEGER)" }, { "from": "human", "value": "How many points have a Year larger than 1966?" }, { "from": "gpt", "value": "SELECT COUNT(points) FROM table_name_69 WHERE year > 1966" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (points INTEGER, engine VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the smallest number of points with an Engine of climax v8, and a Year of 1966?" }, { "from": "gpt", "value": "SELECT MIN(points) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR)" }, { "from": "human", "value": "How many points did Team Rothmans International have after 1975 when their Chassis was a March 771?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What Nationality of the person who has a Rank of 4" }, { "from": "gpt", "value": "SELECT nationality FROM table_name_59 WHERE lane < 4 AND rank ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Name the score on october 14" }, { "from": "gpt", "value": "SELECT score FROM table_name_59 WHERE date = \"october 14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)" }, { "from": "human", "value": "What was the average number of \"goals for\", scored in the club Real Oviedo that had a \"goal difference\" lower than -16 and fewer ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR)" }, { "from": "human", "value": "How many people played at the club that had a \"goal difference\" of -8 and a position lower than 12?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "How many \"goals against\" were scored at the club that had a \"goal difference\" of 0, 12 wins, and more than 44 goals?" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What is the smallest number of \"goals for\" out of the clubs where there were 18 wins and fewer than 38 \"goals against\"?" }, { "from": "gp...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (year INTEGER, fighter VARCHAR)" }, { "from": "human", "value": "When did Manny Pacquiao win his first championship?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_37 WHERE fighter = \"manny pacquiao\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR)" }, { "from": "human", "value": "Which sport did the United States win?" }, { "from": "gpt", "value": "SELECT sport FROM table_name_29 WHERE nation_represented = \"united states\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)" }, { "from": "human", "value": "What is the latest result where a person from the Philippines won?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_72 WHERE nation_repr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Which nation won the boxing championship in 2012?" }, { "from": "gpt", "value": "SELECT nation_represented FROM table_name_1 WHERE year = 2012" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR)" }, { "from": "human", "value": "What is the total number of seats of the Christian Democratic Union (CDU) party?" }, { "from": "gpt", "value": "SELECT total_seats FROM table_name_34 WHERE p...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (seat_percentage VARCHAR, vote_percentage VARCHAR)" }, { "from": "human", "value": "What seat has a vote percentage of 100.0%" }, { "from": "gpt", "value": "SELECT seat_percentage FROM table_name_41 WHERE vote_percentage = \"10...
know_sql
chosen