conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_40 (roll INTEGER, decile VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?" }, { "from": "gpt", "value": "SELECT MIN(roll) FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (name VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "Which name has a Roll of 270?" }, { "from": "gpt", "value": "SELECT name FROM table_name_97 WHERE roll = 270" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR)" }, { "from": "human", "value": "Who directed the episode written by Dan Serafin and aired on July 23, 2008?" }, { "from": "gpt", "value": "SELECT directed_by ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (title VARCHAR, original_airdate VARCHAR)" }, { "from": "human", "value": "What is the title of the episode originally aired on February 2, 2008?" }, { "from": "gpt", "value": "SELECT title FROM table_name_65 WHERE original_air...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)" }, { "from": "human", "value": "How much money did James Seddon request?" }, { "from": "gpt", "value": "SELECT money_requested__£_ FROM table_name_2 WHERE entrepreneur_s_ =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (entrepreneur_s_ VARCHAR, first_aired VARCHAR)" }, { "from": "human", "value": "Which Entrepreneur(s) first aired on 24 August 2006?" }, { "from": "gpt", "value": "SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR)" }, { "from": "human", "value": "Which Entrepreneur(s) have mixalbum?" }, { "from": "gpt", "value": "SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)" }, { "from": "human", "value": "How much money did Ian Chamings request?" }, { "from": "gpt", "value": "SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR)" }, { "from": "human", "value": "Which Investing Dragon(s) requested 100,000 in money and has autosafe?" }, { "from": "gpt", "value": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)" }, { "from": "human", "value": "How tall is the Anqing Bridge which opened prior to 2011?" }, { "from": "gpt", "value": "SELECT height_of_bridge_structure FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (location VARCHAR, name VARCHAR, type VARCHAR, opened VARCHAR)" }, { "from": "human", "value": "Where did the cable-stayed Badong Bridge open in 2005?" }, { "from": "gpt", "value": "SELECT location FROM table_name_18 WHERE typ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR)" }, { "from": "human", "value": "Name the average year for janaprakal chandruang" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_53 WHERE performing_arts = \"janaprakal ch...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (literature VARCHAR, performing_arts VARCHAR)" }, { "from": "human", "value": "Name the literature for pradit prasarttong" }, { "from": "gpt", "value": "SELECT literature FROM table_name_72 WHERE performing_arts = \"pradit pras...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (year INTEGER, runner_up VARCHAR)" }, { "from": "human", "value": "What was the first year Fabrice Soulier was a runner-up?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_43 WHERE runner_up = \"fabrice soulier\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (entrants VARCHAR, year VARCHAR)" }, { "from": "human", "value": "How many entrants were there in 2011?" }, { "from": "gpt", "value": "SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (rank VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "What was the rank of Bobby Grim when he finished 1059 laps?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_95 WHERE laps = 1059" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (rd VARCHAR, _time VARCHAR, opponent VARCHAR, res VARCHAR, type VARCHAR)" }, { "from": "human", "value": "What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the record of the match on 2009-07-18?" }, { "from": "gpt", "value": "SELECT record FROM table_name_21 WHERE date = \"2009-07-18\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (type VARCHAR, res VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What is the type of the match with a win result and Michael Gomez as the opponent?" }, { "from": "gpt", "value": "SELECT type FROM table_name_79 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (goals VARCHAR, caps VARCHAR)" }, { "from": "human", "value": "What were the goals when the caps were set at 48?" }, { "from": "gpt", "value": "SELECT goals FROM table_name_66 WHERE caps = 48" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR)" }, { "from": "human", "value": "How many caps did the player Mile Sterjovski have?" }, { "from": "gpt", "value": "SELECT caps FROM table_name_22 WHERE player = \"mile sterjovski\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (goals VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What are the goals of Mile Sterjovski as a player?" }, { "from": "gpt", "value": "SELECT goals FROM table_name_59 WHERE player = \"mile sterjovski\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR)" }, { "from": "human", "value": "How many caps did Mitchell Duke have overall?" }, { "from": "gpt", "value": "SELECT COUNT(caps) FROM table_name_32 WHERE player = \"mitchell duke\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which opponent has a Date of 16 february 2003?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_83 WHERE date = \"16 february 2003\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which date has an A venue with an Opponent of stoke city?" }, { "from": "gpt", "value": "SELECT date FROM table_name_61 WHERE venue = \"a\" AND op...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR)" }, { "from": "human", "value": "Which opponent has a Round of r5?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_51 WHERE round = \"r5\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "Which Scorers have a Venue of A, and an Opponent of arsenal?" }, { "from": "gpt", "value": "SELECT scorers FROM table_name_41 WHERE venue = \"a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR)" }, { "from": "human", "value": "Which Opponent has a Round of qf replay?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_22 WHERE round = \"qf replay\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who took the loss on the April 6 game?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_84 WHERE date = \"april 6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the record after the April 15 game?" }, { "from": "gpt", "value": "SELECT record FROM table_name_75 WHERE date = \"april 15\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Who was the opponent that led to a 10-13 record?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_38 WHERE record = \"10-13\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the record after the April 6 game?" }, { "from": "gpt", "value": "SELECT record FROM table_name_14 WHERE date = \"april 6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the score for the April 12 game?" }, { "from": "gpt", "value": "SELECT score FROM table_name_73 WHERE date = \"april 12\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (wins INTEGER, goals_for VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "What team has the most wins with at least 18 goals and less than 5 losses?" }, { "from": "gpt", "value": "SELECT MAX(wins) FROM table_name_85 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (losses VARCHAR, team VARCHAR, goals_for VARCHAR)" }, { "from": "human", "value": "How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?" }, { "from": "gpt", "value": "SELECT COUNT(losses) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR)" }, { "from": "human", "value": "What is the series number that has a production code of 50021–50025?" }, { "from": "gpt", "value": "SELECT MAX(number_in_series) FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which county team has jimmy finn as the player?" }, { "from": "gpt", "value": "SELECT county_team FROM table_name_88 WHERE player = \"jimmy finn\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (team_number VARCHAR, player VARCHAR)" }, { "from": "human", "value": "How many team numbers have john keane as the player?" }, { "from": "gpt", "value": "SELECT COUNT(team_number) FROM table_name_93 WHERE player = \"john keane...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Which position has john keane as the player?" }, { "from": "gpt", "value": "SELECT position FROM table_name_15 WHERE player = \"john keane\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the loss of the game when the record was 27-17?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_61 WHERE record = \"27-17\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (goals_against INTEGER, wins VARCHAR, draws VARCHAR)" }, { "from": "human", "value": "What are the smallest goals with wins smaller than 16, and a Draws larger than 14?" }, { "from": "gpt", "value": "SELECT MIN(goals_against) F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (wins INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR)" }, { "from": "human", "value": "Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?" }, { "from": "gpt", "value": "SELECT AVG(wins) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (position INTEGER, wins VARCHAR, goals_against VARCHAR, points VARCHAR)" }, { "from": "human", "value": "Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR)" }, { "from": "human", "value": "Which lowest played has a Position of 2, and Goals against larger than 53?" }, { "from": "gpt", "value": "SELECT MIN(played) FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER)" }, { "from": "human", "value": "How many goal differences have Played larger than 44?" }, { "from": "gpt", "value": "SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (year INTEGER, venue VARCHAR)" }, { "from": "human", "value": "What year was the race in Vienna, Austria?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_72 WHERE venue = \"vienna, austria\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (extra VARCHAR, year VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What event (Extra) in 2002 did the competitor compete in and place 8th?" }, { "from": "gpt", "value": "SELECT extra FROM table_name_80 WHERE year = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (venue VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "Where was the Olympic Games held?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_29 WHERE tournament = \"olympic games\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (try_bonus VARCHAR, points_for VARCHAR)" }, { "from": "human", "value": "That is the value for Try bonus when the value for Points is 418?" }, { "from": "gpt", "value": "SELECT try_bonus FROM table_name_82 WHERE points_for = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR)" }, { "from": "human", "value": "What is the Club, when the value for Played is 22, and when the value for Tries is 41?" }, { "from": "gpt", "value": "SELECT club FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (drawn VARCHAR, losing_bonus VARCHAR)" }, { "from": "human", "value": "What is the value for Drawn, when the value for Losing bonus is 6?" }, { "from": "gpt", "value": "SELECT drawn FROM table_name_12 WHERE losing_bonus = \"6\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR)" }, { "from": "human", "value": "What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?" }, { "from": "gpt", "value": "SE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What is the Losing bonus, when the value for Points is 43?" }, { "from": "gpt", "value": "SELECT losing_bonus FROM table_name_61 WHERE points = \"43\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (club VARCHAR, lost VARCHAR, tries_for VARCHAR)" }, { "from": "human", "value": "What is the Club, when the value for Lost is 9, and when the value for Tries is 55?" }, { "from": "gpt", "value": "SELECT club FROM table_name_8 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR)" }, { "from": "human", "value": "What is the largest draw with 37 games from England?" }, { "from": "gpt", "value": "SELECT MAX(drawn) FROM table_name_65 WHERE nationality = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?" }, { "from": "gpt", "value": "SELECT COUNT(draw...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What was the record at the game when the score was 1–0?" }, { "from": "gpt", "value": "SELECT record FROM table_name_66 WHERE score = \"1–0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the score of the game when the record was 19–13–3?" }, { "from": "gpt", "value": "SELECT score FROM table_name_92 WHERE record = \"19–13–3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (visitor VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Who was the visiting team when the score was 1–3?" }, { "from": "gpt", "value": "SELECT visitor FROM table_name_16 WHERE score = \"1–3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (home VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Who was the home team when there was a record of 20–13–3?" }, { "from": "gpt", "value": "SELECT home FROM table_name_52 WHERE record = \"20–13–3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the date of the game with the record of 18–10–2?" }, { "from": "gpt", "value": "SELECT date FROM table_name_60 WHERE record = \"18–10–2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (attendance INTEGER, visitor VARCHAR)" }, { "from": "human", "value": "Visitor of minnesota has what average attendance?" }, { "from": "gpt", "value": "SELECT AVG(attendance) FROM table_name_30 WHERE visitor = \"minnesota\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (visitor VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Date of december 29 has what visitor?" }, { "from": "gpt", "value": "SELECT visitor FROM table_name_9 WHERE date = \"december 29\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (attendance VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Score of 2 – 3 has what attendance?" }, { "from": "gpt", "value": "SELECT attendance FROM table_name_61 WHERE score = \"2 – 3\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (attendance INTEGER, record VARCHAR)" }, { "from": "human", "value": "With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many?" }, { "from": "gpt", "value": "SELECT MIN(attendance) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (attendance INTEGER, loss VARCHAR)" }, { "from": "human", "value": "What would be the lowest Attendance that also showed a loss of Obermueller (1-2)?" }, { "from": "gpt", "value": "SELECT MIN(attendance) FROM table_name_36 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (stadium VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the stadium for the game held on October 31?" }, { "from": "gpt", "value": "SELECT stadium FROM table_name_61 WHERE date = \"october 31\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (week VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "How many weeks in total were games played at Cleveland Browns Stadium?" }, { "from": "gpt", "value": "SELECT COUNT(week) FROM table_name_81 WHERE stadium = \"clev...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (surface VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the surface on 23 October 2011?" }, { "from": "gpt", "value": "SELECT surface FROM table_name_97 WHERE date = \"23 october 2011\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (coach VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "Which Notre Dame coach lost 15 games?" }, { "from": "gpt", "value": "SELECT coach FROM table_name_27 WHERE losses = 15" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)" }, { "from": "human", "value": "How many losses did Notre Dame have in 1904?" }, { "from": "gpt", "value": "SELECT AVG(losses) FROM table_name_43 WHERE years = \"1904\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR)" }, { "from": "human", "value": "What was the winning percent of Notre Dame in 1905?" }, { "from": "gpt", "value": "SELECT pct FROM table_name_86 WHERE years = \"1905\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who is the home captain that played at Edgbaston?" }, { "from": "gpt", "value": "SELECT home_captain FROM table_name_22 WHERE venue = \"edgbaston\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (home_captain VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who is the home captain that played at Edgbaston?" }, { "from": "gpt", "value": "SELECT home_captain FROM table_name_41 WHERE venue = \"edgbaston\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR)" }, { "from": "human", "value": "For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (venue VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the venue for the matches played on the dates 3,4,5,6,7 June 1993?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_32 WHERE date = \"3,4,5,6,7 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "Who was the away captain for matches played at Trent Bridge?" }, { "from": "gpt", "value": "SELECT away_captain FROM table_name_81 WHERE venue = \"trent bri...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (rank VARCHAR, club_clubs VARCHAR)" }, { "from": "human", "value": "Which rank is Hawthorn?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_32 WHERE club_clubs = \"hawthorn\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (first_performance VARCHAR, status VARCHAR, style VARCHAR)" }, { "from": "human", "value": "What is the First Performance when the status is past and the style was ballet, tap?" }, { "from": "gpt", "value": "SELECT first_perfor...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (last_performance VARCHAR, status VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What was the Last Performance when the status is current cast, and a Name of noah parets?" }, { "from": "gpt", "value": "SELECT last_perf...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (style VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the style for Giuseppe Bausilio?" }, { "from": "gpt", "value": "SELECT style FROM table_name_31 WHERE name = \"giuseppe bausilio\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (opponent VARCHAR, event VARCHAR)" }, { "from": "human", "value": "Which opponent has the event Jungle Fight 6?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_56 WHERE event = \"jungle fight 6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (method VARCHAR, event VARCHAR)" }, { "from": "human", "value": "Which is the method under the event Jungle Fight 2?" }, { "from": "gpt", "value": "SELECT method FROM table_name_24 WHERE event = \"jungle fight 2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (points VARCHAR, draw VARCHAR)" }, { "from": "human", "value": "What is the total number of points when draw is 4?" }, { "from": "gpt", "value": "SELECT COUNT(points) FROM table_name_71 WHERE draw = 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (goals_scored INTEGER, goals_conceded VARCHAR, draw VARCHAR, points VARCHAR)" }, { "from": "human", "value": "what is the goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (points INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR)" }, { "from": "human", "value": "what is the points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (place INTEGER, lost VARCHAR, points VARCHAR)" }, { "from": "human", "value": "what is the place when losses is less than 12 and points is less than 19?" }, { "from": "gpt", "value": "SELECT SUM(place) FROM table_name_12 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (place INTEGER, lost INTEGER)" }, { "from": "human", "value": "what is the average place when lost is more than 12?" }, { "from": "gpt", "value": "SELECT AVG(place) FROM table_name_13 WHERE lost > 12" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (year INTEGER, seats VARCHAR, _percentage_votes VARCHAR)" }, { "from": "human", "value": "In what Year were there 48 of 120 Seats and a % votes larger than 34.18?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (seats VARCHAR, year VARCHAR, _percentage_votes VARCHAR)" }, { "from": "human", "value": "After 1993, what is the Seats with a % votes of 38.72?" }, { "from": "gpt", "value": "SELECT seats FROM table_name_26 WHERE year > 1993 A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (isolation__km_ INTEGER, elevation__m_ VARCHAR, municipality VARCHAR)" }, { "from": "human", "value": "What is the highest Isolation (km) when the elevation was smaller than 1320, and a Municipality of hinnøya?" }, { "from": "gpt",...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (isolation__km_ INTEGER, municipality VARCHAR, elevation__m_ VARCHAR)" }, { "from": "human", "value": "What is the average Isolation in the municipality of Sunndal at an elevation of more than 1850?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (elevation__m_ INTEGER, peak VARCHAR, isolation__km_ VARCHAR)" }, { "from": "human", "value": "What is the highest elevation for the peak daurmål, and an Isolation (km) larger than 4?" }, { "from": "gpt", "value": "SELECT MAX(e...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (county VARCHAR, peak VARCHAR, elevation__m_ VARCHAR, isolation__km_ VARCHAR)" }, { "from": "human", "value": "What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (county VARCHAR, prominence__m_ VARCHAR, isolation__km_ VARCHAR)" }, { "from": "human", "value": "What country has a prominence less than 1292 and an Isolation (km) of 14?" }, { "from": "gpt", "value": "SELECT county FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (lane INTEGER, name VARCHAR)" }, { "from": "human", "value": "Which lane did George Bovell swim in?" }, { "from": "gpt", "value": "SELECT SUM(lane) FROM table_name_20 WHERE name = \"george bovell\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR)" }, { "from": "human", "value": "What is the average of the top-25 with 16 cuts and less than 23 events?" }, { "from": "gpt", "value": "SELECT AVG(top_25) FROM table_name_79 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR)" }, { "from": "human", "value": "What is the highest top-25 with more than 9 top-10 but less than 29 events?" }, { "from": "gpt", "value": "SELECT MAX(top_25) FROM table_name_17 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (overall INTEGER, name VARCHAR, pick__number VARCHAR)" }, { "from": "human", "value": "What's the Overall average that has brad scioli, and a Pick # larger than 5?" }, { "from": "gpt", "value": "SELECT AVG(overall) FROM table_n...
know_sql
chosen