conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_84 (wins VARCHAR, byes INTEGER)" }, { "from": "human", "value": "What is the total number of wins that has byes less than 0?" }, { "from": "gpt", "value": "SELECT COUNT(wins) FROM table_name_84 WHERE byes < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (money___ INTEGER, score VARCHAR)" }, { "from": "human", "value": "What is the most money for the score 75-74-72-67=288?" }, { "from": "gpt", "value": "SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 -...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (american VARCHAR, australian VARCHAR)" }, { "from": "human", "value": "What's the American pronunciation when the Australian is əʉ?" }, { "from": "gpt", "value": "SELECT american FROM table_name_11 WHERE australian = \"əʉ\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (british VARCHAR)" }, { "from": "human", "value": "What is the 17th c. pronunciation when the british is əʊ?" }, { "from": "gpt", "value": "SELECT 17 AS th_c FROM table_name_68 WHERE british = \"əʊ\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (british VARCHAR, american VARCHAR, australian VARCHAR)" }, { "from": "human", "value": "What's the British pronunciation when the American and Australian is i?" }, { "from": "gpt", "value": "SELECT british FROM table_name_44 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (height VARCHAR, pos VARCHAR, weight VARCHAR, club VARCHAR)" }, { "from": "human", "value": "What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?" }, { "from": "gpt", "value": "SELECT height FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (height VARCHAR, club VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the height of valérie dionne at Club Sainte-Foy?" }, { "from": "gpt", "value": "SELECT height FROM table_name_48 WHERE club = \"sainte-foy\" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (name VARCHAR, date_of_birth VARCHAR)" }, { "from": "human", "value": "Who has a Date of Birth 1980-07-29?" }, { "from": "gpt", "value": "SELECT name FROM table_name_64 WHERE date_of_birth = \"1980-07-29\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (team_name VARCHAR, schools VARCHAR)" }, { "from": "human", "value": "What is the name of the team from cisne fairfield school?" }, { "from": "gpt", "value": "SELECT team_name FROM table_name_84 WHERE schools = \"cisne fairfiel...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (team_name VARCHAR, schools VARCHAR)" }, { "from": "human", "value": "What is the name of the team from goreville vienna school?" }, { "from": "gpt", "value": "SELECT team_name FROM table_name_80 WHERE schools = \"goreville vie...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (colors VARCHAR, host VARCHAR)" }, { "from": "human", "value": "What are the colors of the team hosted by Christopher?" }, { "from": "gpt", "value": "SELECT colors FROM table_name_77 WHERE host = \"christopher\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (team_1 VARCHAR, team_2 VARCHAR)" }, { "from": "human", "value": "What is team 1 if Renova is team 2?" }, { "from": "gpt", "value": "SELECT team_1 FROM table_name_99 WHERE team_2 = \"renova\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (to_par INTEGER, score VARCHAR)" }, { "from": "human", "value": "What is the highest to par for the 76-70-76-76=298 score?" }, { "from": "gpt", "value": "SELECT MAX(to_par) FROM table_name_96 WHERE score = 76 - 70 - 76 - 76 = 2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (score VARCHAR, to_par VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What score has a to par of 12 and is from Jersey?" }, { "from": "gpt", "value": "SELECT score FROM table_name_25 WHERE to_par = 12 AND country = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (money___ INTEGER, to_par VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the average money for a to par of 15, and is from the United States?" }, { "from": "gpt", "value": "SELECT AVG(money___) AS $__ FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (money___ VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?" }, { "from": "gpt", "v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (country VARCHAR, money___$__ VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What county has less than $188 and a score of 74-76-73-75=298?" }, { "from": "gpt", "value": "SELECT country FROM table_name_3 WHERE money___...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (opponent VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What is Opponent, when Location is \"Winnipeg, Manitoba , Canada\"?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_27 WHERE location = \"winn...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (res VARCHAR, location VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What is Res., when Location is \"Butte, Montana , United States\", and when Opponent is \"Jerome Smith\"?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (method VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is Method, when Time is \"3:20\"?" }, { "from": "gpt", "value": "SELECT method FROM table_name_40 WHERE time = \"3:20\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (location VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What is Location, when Opponent is \"Mario Rinaldi\"?" }, { "from": "gpt", "value": "SELECT location FROM table_name_86 WHERE opponent = \"mario rinaldi\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "How much Grid has a Time/Retired of +0.785, and Laps larger than 29?" }, { "from": "gpt", "value": "SELECT SUM(grid) FROM table_name_19 WHERE t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)" }, { "from": "human", "value": "Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)" }, { "from": "human", "value": "How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?" }, { "from": "gpt", "value": "SELECT SUM(laps) FROM table_name_97 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (time_retired VARCHAR, laps VARCHAR, rider VARCHAR)" }, { "from": "human", "value": "Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?" }, { "from": "gpt", "value": "SELECT time_retired FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (lost INTEGER, goals_for INTEGER)" }, { "from": "human", "value": "What was the lowest lost entry for a team with fewer than 21 goals for?" }, { "from": "gpt", "value": "SELECT MIN(lost) FROM table_name_39 WHERE goals_for < 21"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (position VARCHAR, played INTEGER)" }, { "from": "human", "value": "What was the position has a played entry of more than 24?" }, { "from": "gpt", "value": "SELECT COUNT(position) FROM table_name_68 WHERE played > 24" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (position INTEGER, team VARCHAR, played VARCHAR)" }, { "from": "human", "value": "What is the highest position for Nelson, with a played entry of more than 24?" }, { "from": "gpt", "value": "SELECT MAX(position) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (lost INTEGER, team VARCHAR, drawn VARCHAR)" }, { "from": "human", "value": "What was the average Lost entry for Newton, for games with a drawn less than 5?" }, { "from": "gpt", "value": "SELECT AVG(lost) FROM table_name_78 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (lost INTEGER, points_1 VARCHAR, drawn VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (name VARCHAR, snatch VARCHAR)" }, { "from": "human", "value": "Who has a Snatch of 157.0?" }, { "from": "gpt", "value": "SELECT name FROM table_name_78 WHERE snatch = \"157.0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (bodyweight INTEGER, snatch VARCHAR)" }, { "from": "human", "value": "What is the total bodyweight of everyone that has a Snatch of 153.0?" }, { "from": "gpt", "value": "SELECT SUM(bodyweight) FROM table_name_98 WHERE snatch = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (rank VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What ranking is the Battersea Power Station?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_86 WHERE name = \"battersea power station\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (rank VARCHAR, floors VARCHAR)" }, { "from": "human", "value": "What ranking is the structure with 01.0 87 floors?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_51 WHERE floors = \"01.0 87\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR)" }, { "from": "human", "value": "What is the highest Attendance, when Date is \"Oct. 26\"?" }, { "from": "gpt", "value": "SELECT MAX(attendance) FROM table_name_25 WHERE date = \"oct. 26\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (opponents INTEGER, raiders_points VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What is the lowest Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267?" }, { "from": "gpt"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (opponents VARCHAR, raiders_points VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What is the total number of Opponents, when Raiders Points is \"42\", when Attendance is less than 52,505?" }, { "from": "gpt", "v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (raiders_first_downs VARCHAR, date VARCHAR, raiders_points VARCHAR)" }, { "from": "human", "value": "What is the total number of Raiders First Downs, when Date is \"Nov. 2\", and when Raiders Points is greater than 42?" }, { "from"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (tournaments INTEGER, highest_rank VARCHAR)" }, { "from": "human", "value": "What is the average Tournaments, when Highest Rank is \"Maegashira 1\"?" }, { "from": "gpt", "value": "SELECT AVG(tournaments) FROM table_name_90 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is Top Division Debut, when Tournaments is \"12\", and when Name is \"Yamamotoyama\"?" }, { "from": "gpt", "value": "SELECT t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (tournaments INTEGER, name VARCHAR)" }, { "from": "human", "value": "What is the lowest Tournaments, when Name is \"Baruto\"?" }, { "from": "gpt", "value": "SELECT MIN(tournaments) FROM table_name_76 WHERE name = \"baruto\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR)" }, { "from": "human", "value": "What is the highest Tournaments, when Pro Debut is \"July 2002\"?" }, { "from": "gpt", "value": "SELECT MAX(tournaments) FROM table_name_13 WHERE pro_deb...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (pro_debut VARCHAR, tournaments VARCHAR, highest_rank VARCHAR)" }, { "from": "human", "value": "What is Pro Debut, when Tournament is greater than 11, and when Highest Rank is \"Maegashira 1\"?" }, { "from": "gpt", "value": "SE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (league_cup_goals VARCHAR, total_goals VARCHAR, name VARCHAR)" }, { "from": "human", "value": "How many League Cup Goals have 0 as the total goals, with delroy facey as the name?" }, { "from": "gpt", "value": "SELECT COUNT(leag...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR)" }, { "from": "human", "value": "How many total goals have 0 (3) as total apps, with league goals less than 0?" }, { "from": "gpt", "value": "SELECT COUNT(total_go...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (league_goals INTEGER, fa_cup_apps VARCHAR, total_apps VARCHAR)" }, { "from": "human", "value": "What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps?" }, { "from": "gpt", "value": "SELECT M...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (stockholm VARCHAR, malmö VARCHAR)" }, { "from": "human", "value": "What was Stockholm's score when Malmo scored 2?" }, { "from": "gpt", "value": "SELECT stockholm FROM table_name_54 WHERE malmö = \"2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (växjö VARCHAR, karlstad VARCHAR)" }, { "from": "human", "value": "What did Vaxjo score when Karlstad scored 1?" }, { "from": "gpt", "value": "SELECT växjö FROM table_name_53 WHERE karlstad = \"1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (sundsvall VARCHAR, falun VARCHAR)" }, { "from": "human", "value": "What did Sundsvall score when Falun scored 2?" }, { "from": "gpt", "value": "SELECT sundsvall FROM table_name_94 WHERE falun = \"2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (total INTEGER, norrköping VARCHAR)" }, { "from": "human", "value": "What was the highest total when Norrkoping scored 12?" }, { "from": "gpt", "value": "SELECT MAX(total) FROM table_name_21 WHERE norrköping = \"12\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (örebro VARCHAR, umeå VARCHAR)" }, { "from": "human", "value": "What did Orebro score when Umea scored 2?" }, { "from": "gpt", "value": "SELECT örebro FROM table_name_67 WHERE umeå = \"2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (result VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What was the result of the game that was attended by 80,886 people?" }, { "from": "gpt", "value": "SELECT result FROM table_name_38 WHERE attendance = \"80,8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (result VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What was the result of the game that was attended by 72,703 people?" }, { "from": "gpt", "value": "SELECT result FROM table_name_76 WHERE attendance = \"72,7...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (result VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What was the result of the game that was attended by 41,650 people?" }, { "from": "gpt", "value": "SELECT result FROM table_name_56 WHERE attendance = \"41,6...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (date VARCHAR, opponent_number VARCHAR)" }, { "from": "human", "value": "When was the game against Indiana?" }, { "from": "gpt", "value": "SELECT date FROM table_name_78 WHERE opponent_number = \"indiana\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (country VARCHAR, score VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which country is Brian Henninger from, who had a score larger than 69?" }, { "from": "gpt", "value": "SELECT country FROM table_name_98 WHERE sco...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (score VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is Darren Clarke's total score?" }, { "from": "gpt", "value": "SELECT COUNT(score) FROM table_name_45 WHERE player = \"darren clarke\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (away_team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the away team on 9 February 1988?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_3 WHERE date = \"9 february 1988\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the away team on 30 January 1988, when the home team was Everton?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_45 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (date VARCHAR, tie_no VARCHAR)" }, { "from": "human", "value": "On which date was the Tie no 2?" }, { "from": "gpt", "value": "SELECT date FROM table_name_41 WHERE tie_no = \"2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (tie_no VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What was the Tie no when Manchester United was the home team?" }, { "from": "gpt", "value": "SELECT tie_no FROM table_name_51 WHERE home_team = \"manchester u...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)" }, { "from": "human", "value": "What was the score when the Tie no was 9?" }, { "from": "gpt", "value": "SELECT score FROM table_name_56 WHERE tie_no = \"9\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "Which away team goes against the home team Mauritius?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_94 WHERE home_team = \"mauritius\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "Who is the away team that goes against Team Zambia?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_13 WHERE home_team = \"zambia\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (away_team VARCHAR, tie_no VARCHAR)" }, { "from": "human", "value": "Which away team has Tie no 3?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_80 WHERE tie_no = \"3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What is the away team playing at Everton?" }, { "from": "gpt", "value": "SELECT away_team FROM table_name_88 WHERE home_team = \"everton\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)" }, { "from": "human", "value": "What is the home team that Bradford City is playing against?" }, { "from": "gpt", "value": "SELECT home_team FROM table_name_72 WHERE away_team = \"bradfor...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (location VARCHAR, method VARCHAR, res VARCHAR)" }, { "from": "human", "value": "Which Location has a Method of decision (unanimous), and Res of win x?" }, { "from": "gpt", "value": "SELECT location FROM table_name_99 WHERE met...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (round VARCHAR, time VARCHAR)" }, { "from": "human", "value": "Which Round has a Time of 0:37?" }, { "from": "gpt", "value": "SELECT round FROM table_name_26 WHERE time = \"0:37\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Which result has a Record of 16-6?" }, { "from": "gpt", "value": "SELECT res FROM table_name_20 WHERE record = \"16-6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (champion VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What Champion had a Score of 9–1?" }, { "from": "gpt", "value": "SELECT champion FROM table_name_82 WHERE score = \"9–1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (score VARCHAR, place VARCHAR)" }, { "from": "human", "value": "What score has 3 as the place?" }, { "from": "gpt", "value": "SELECT score FROM table_name_87 WHERE place = \"3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (player VARCHAR, place VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What player has t7 as the place, with tje United States as the country?" }, { "from": "gpt", "value": "SELECT player FROM table_name_12 WHERE pla...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (score VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What score has hal sutton as the player?" }, { "from": "gpt", "value": "SELECT score FROM table_name_17 WHERE player = \"hal sutton\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (artist VARCHAR, year VARCHAR, format VARCHAR)" }, { "from": "human", "value": "Who was the artist after 2012 with CD, LP as the format?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_64 WHERE year > 2012 AND form...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (year INTEGER, type VARCHAR, title VARCHAR)" }, { "from": "human", "value": "What year had a title of Die Shaolin Affen EP and EP as the type?" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_50 WHERE type = \"ep...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (title VARCHAR, format VARCHAR, artist VARCHAR)" }, { "from": "human", "value": "What is the title of the Misfits with a CD format?" }, { "from": "gpt", "value": "SELECT title FROM table_name_67 WHERE format = \"cd\" AND artist...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (bronze INTEGER, rank VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What was the highest number of bronze medals for the entry with rank 2 and fewer than 3 silver medals?" }, { "from": "gpt", "value": "SELECT MAX(br...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?" }, { "fro...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (silver INTEGER, total VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the sum of silver medals for the entry with rank 3 and a total of 4 medals?" }, { "from": "gpt", "value": "SELECT SUM(silver) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (season VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "What season had a goal of 1?" }, { "from": "gpt", "value": "SELECT season FROM table_name_98 WHERE goals = \"1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (club VARCHAR, country VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "What club was in Netherlands and had 22 goals?" }, { "from": "gpt", "value": "SELECT club FROM table_name_82 WHERE country = \"netherlands\" AND go...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (season VARCHAR, country VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "What season had Belgium and 1 goal?" }, { "from": "gpt", "value": "SELECT season FROM table_name_29 WHERE country = \"belgium\" AND goals = \"1\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (year INTEGER, category VARCHAR)" }, { "from": "human", "value": "Which Year has a Category of best film?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_66 WHERE category = \"best film\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (incumbent VARCHAR, party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who is the incumbent from the democratic party in the washington 7 district?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (first_elected INTEGER, incumbent VARCHAR)" }, { "from": "human", "value": "When was the earliest incumbent dave reichert was first elected?" }, { "from": "gpt", "value": "SELECT MIN(first_elected) FROM table_name_86 WHERE incu...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What is the total of the first elected year of incumbent norm dicks?" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_name_29 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What is the total of the first elected year of the incumbent from the washington 8 district?" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (start INTEGER, year VARCHAR, finish VARCHAR, manufacturer VARCHAR)" }, { "from": "human", "value": "WHAT IS THE START THAT HAS A FINISH BIGGER THAN 3, FROM FORD, AFTER 1969?" }, { "from": "gpt", "value": "SELECT MAX(start) FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (manufacturer VARCHAR, finish VARCHAR, team VARCHAR, year VARCHAR, start VARCHAR)" }, { "from": "human", "value": "WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?" }, { "from": "gpt", "value...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (finish VARCHAR, start VARCHAR, year VARCHAR)" }, { "from": "human", "value": "WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969?" }, { "from": "gpt", "value": "SELECT COUNT(finish) FROM table_name_6 WHERE start < ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (pleasure VARCHAR, psychological_dependence VARCHAR, drug VARCHAR)" }, { "from": "human", "value": "What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is \"Benzodiazepines\"?" }, {...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (psychological_dependence INTEGER, physical_dependence VARCHAR, pleasure VARCHAR, drug VARCHAR)" }, { "from": "human", "value": "What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is \"Cannabis\", and w...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (mean INTEGER, drug VARCHAR, psychological_dependence VARCHAR)" }, { "from": "human", "value": "What is the average Mean, when Drug is \"Alcohol\", and when Psychological Dependence is greater than 1.9?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (psychological_dependence VARCHAR, pleasure VARCHAR, mean VARCHAR)" }, { "from": "human", "value": "What is the total number of Psychological Dependence, when Pleasure is \"2.3\", and when Mean is less than 1.9300000000000002?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (pleasure INTEGER, drug VARCHAR, psychological_dependence VARCHAR)" }, { "from": "human", "value": "What is the sum of Pleasure, when Drug is \"LSD\", and when Psychological Dependence is greater than 1.1?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (country VARCHAR, domestic_tournament VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What Country's team is Rajasthan Royals at the 2008 Indian Premier League?" }, { "from": "gpt", "value": "SELECT country FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the Domestic Tournament with Chennai Super Kings Team?" }, { "from": "gpt", "value": "SELECT domestic_tournament FROM table_name_42 WHERE team...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (group VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What is the Dolphins Group?" }, { "from": "gpt", "value": "SELECT group FROM table_name_42 WHERE team = \"dolphins\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (player VARCHAR, year_s__won VARCHAR)" }, { "from": "human", "value": "Who is the player that won in the year 1978?" }, { "from": "gpt", "value": "SELECT player FROM table_name_81 WHERE year_s__won = \"1978\"" } ]
know_sql
chosen