conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_32 (round___race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)" }, { "from": "human", "value": "What is the round or race of the winning driver Charles Hollings and what was his pole position?" }, { "from": "gpt", "value...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (year INTEGER, position VARCHAR, performance VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What was the earliest year in which long jump was performed in the world indoor Championships in 5th position?" }, { "from"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (year INTEGER, position VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What was the latest year in which she took 4th position in Budapest, Hungary?" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_12 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (name VARCHAR, mission VARCHAR, age_at_first_step VARCHAR)" }, { "from": "human", "value": "Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?" }, { "from": "gpt", "value": "SELECT name ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR)" }, { "from": "human", "value": "David Scott went on which mission?" }, { "from": "gpt", "value": "SELECT mission FROM table_name_8 WHERE name = \"david scott\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (service VARCHAR, age_at_first_step VARCHAR)" }, { "from": "human", "value": "The astronaut who was 37y 8m 4d when making a first step on the moon was in which service?" }, { "from": "gpt", "value": "SELECT service FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (lunar_eva_dates VARCHAR, mission VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates?" }, { "from": "gpt", "value": "SELECT lunar_eva_dates FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (born VARCHAR, age_at_first_step VARCHAR)" }, { "from": "human", "value": "The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?" }, { "from": "gpt", "value": "SELECT born FROM table_name_27 WHERE age_a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (class VARCHAR, year VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "Which class has a year prior to 2011 and audi r15 tdi as the chassis?" }, { "from": "gpt", "value": "SELECT class FROM table_name_72 WHERE year < 2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (engine VARCHAR, year VARCHAR, points VARCHAR)" }, { "from": "human", "value": "Which engine has a year later than 2006 and 60 as the points?" }, { "from": "gpt", "value": "SELECT engine FROM table_name_51 WHERE year > 2006 AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (year VARCHAR, chassis VARCHAR, engine VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "How many years has an engine of audi 3.6l turbo v8 and 1st as the rank with an audi r8r as the chassis?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (entrant VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "Which entrant has 25th as the rank?" }, { "from": "gpt", "value": "SELECT entrant FROM table_name_22 WHERE rank = \"25th\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (year_won INTEGER, player VARCHAR, to_par VARCHAR)" }, { "from": "human", "value": "What is the average year Rich Beem had a to par less than 17?" }, { "from": "gpt", "value": "SELECT AVG(year_won) FROM table_name_20 WHERE play...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (year_won INTEGER, total INTEGER)" }, { "from": "human", "value": "What is the earliest year won with a total bigger than 156?" }, { "from": "gpt", "value": "SELECT MIN(year_won) FROM table_name_81 WHERE total > 156" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?" }, { "from": "gpt", "value": "SELECT CO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)" }, { "from": "human", "value": "What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?" }, { "from": "g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (year_won INTEGER, player VARCHAR, to_par VARCHAR)" }, { "from": "human", "value": "What is the earliest year won Paul Azinger had with a to par higher than 5?" }, { "from": "gpt", "value": "SELECT MIN(year_won) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)" }, { "from": "human", "value": "What is the year won by Australia with a to par bigger than 16?" }, { "from": "gpt", "value": "SELECT COUNT(year_won) FROM table_name_22 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (lifespan VARCHAR, representative VARCHAR)" }, { "from": "human", "value": "What is the Lifespan when the Representative is Theodore F. Kluttz?" }, { "from": "gpt", "value": "SELECT lifespan FROM table_name_96 WHERE representat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What week's game had a result of l 35–37?" }, { "from": "gpt", "value": "SELECT week FROM table_name_88 WHERE result = \"l 35–37\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (year VARCHAR, entrant VARCHAR)" }, { "from": "human", "value": "What year was trio brdeact wind allass the entrant?" }, { "from": "gpt", "value": "SELECT year FROM table_name_16 WHERE entrant = \"trio brdeact wind allass\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (year INTEGER, chassis VARCHAR)" }, { "from": "human", "value": "What is the year when kurtis kraft 500f was the chassis?" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_46 WHERE chassis = \"kurtis kraft 500f\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (year INTEGER, points INTEGER)" }, { "from": "human", "value": "What is the earliest year when the points were more than 0?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_38 WHERE points > 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR)" }, { "from": "human", "value": "What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186?" }, { "from": "gpt", "value": "SELECT name FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (name VARCHAR, area VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "Which school in Balclutha has a roll smaller than 55?" }, { "from": "gpt", "value": "SELECT name FROM table_name_52 WHERE area = \"balclutha\" AND roll...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, score VARCHAR)" }, { "from": "human", "value": "When has winnipeg jets with a Score of 4–6?" }, { "from": "gpt", "value": "SELECT date FROM table_name_82 WHERE home = \"winnipeg jets\" AND score = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR)" }, { "from": "human", "value": "When is Edmonton Oilers in?" }, { "from": "gpt", "value": "SELECT date FROM table_name_99 WHERE home = \"edmonton oilers\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the Score that has a Winnipeg Jets as Visitor on april 7?" }, { "from": "gpt", "value": "SELECT score FROM table_name_10 WHERE visitor = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the Score on April 6?" }, { "from": "gpt", "value": "SELECT score FROM table_name_71 WHERE date = \"april 6\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "When has a Record of 1–0?" }, { "from": "gpt", "value": "SELECT date FROM table_name_52 WHERE record = \"1–0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (llws VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the LLWS when the Year is 2003?" }, { "from": "gpt", "value": "SELECT llws FROM table_name_37 WHERE year = 2003" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (year INTEGER, city VARCHAR)" }, { "from": "human", "value": "What is the earliest Year when the City is Peabody?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_2 WHERE city = \"peabody\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (year VARCHAR, llws VARCHAR, city VARCHAR)" }, { "from": "human", "value": "What is the total number of Years when the LLWS is 4th place, and when the City is Westport?" }, { "from": "gpt", "value": "SELECT COUNT(year) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)" }, { "from": "human", "value": "What team has Pony as the kit manufacturer and Gary Mabbutt as the captain?" }, { "from": "gpt", "value": "SELECT team FROM table_name_9 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (manager_1 VARCHAR, team VARCHAR)" }, { "from": "human", "value": "Who is the manager 1 for Leeds United?" }, { "from": "gpt", "value": "SELECT manager_1 FROM table_name_95 WHERE team = \"leeds united\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)" }, { "from": "human", "value": "What is the team with a Pony kit manufacturer and Julian Dicks as the captain?" }, { "from": "gpt", "value": "SELECT team FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)" }, { "from": "human", "value": "What team has a kit manufacturer of Umbro and Eric Cantona as captain?" }, { "from": "gpt", "value": "SELECT team FROM table_name_41 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)" }, { "from": "human", "value": "Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor?" }, { "from": "gpt", "value": "SELECT m...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)" }, { "from": "human", "value": "What is the kit manufacturer with Walkers as the shirt sponsor?" }, { "from": "gpt", "value": "SELECT kit_manufacturer FROM table_name_1 WHERE sh...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Name the average points for dallara 3087 lola t88/50 and year before 1988" }, { "from": "gpt", "value": "SELECT AVG(points) FROM table_name_63 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (points INTEGER, year VARCHAR)" }, { "from": "human", "value": "Name the sum of points for 1992" }, { "from": "gpt", "value": "SELECT SUM(points) FROM table_name_38 WHERE year = 1992" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (points VARCHAR, year INTEGER)" }, { "from": "human", "value": "Name the points for year more than 1987" }, { "from": "gpt", "value": "SELECT points FROM table_name_56 WHERE year > 1987" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (year VARCHAR, points VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "Name the year for points less than 20 and chassis of dallara 3087" }, { "from": "gpt", "value": "SELECT year FROM table_name_62 WHERE points < 20 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (apps INTEGER, season VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "What is the most apps that a has a total season and 3 goals?" }, { "from": "gpt", "value": "SELECT MAX(apps) FROM table_name_22 WHERE season = \"tot...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR)" }, { "from": "human", "value": "What is the final number of apps with 2 goals?" }, { "from": "gpt", "value": "SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (airdate VARCHAR, bbc_one_weekly_ranking VARCHAR)" }, { "from": "human", "value": "What date did the episode with a weekly ranking of 14 air?" }, { "from": "gpt", "value": "SELECT airdate FROM table_name_62 WHERE bbc_one_weekly...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (total_viewers VARCHAR, share VARCHAR, bbc_one_weekly_ranking VARCHAR)" }, { "from": "human", "value": "What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (rider VARCHAR, grid VARCHAR)" }, { "from": "human", "value": "Who has 37 grids?" }, { "from": "gpt", "value": "SELECT rider FROM table_name_36 WHERE grid = 37" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)" }, { "from": "human", "value": "What is the average grid with more than 23 laps?" }, { "from": "gpt", "value": "SELECT AVG(grid) FROM table_name_78 WHERE laps > 23" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER)" }, { "from": "human", "value": "What is the average grid with more than 23 laps?" }, { "from": "gpt", "value": "SELECT AVG(grid) FROM table_name_56 WHERE laps > 23" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR)" }, { "from": "human", "value": "What is the average decile for te puru school?" }, { "from": "gpt", "value": "SELECT AVG(decile) FROM table_name_84 WHERE name = \"te puru school\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (decile INTEGER, area VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "What is the total decile with an Area of whitianga, and a Roll smaller than 835?" }, { "from": "gpt", "value": "SELECT SUM(decile) FROM table_name_64...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (name VARCHAR, area VARCHAR)" }, { "from": "human", "value": "Which name has an Area of kennedy bay?" }, { "from": "gpt", "value": "SELECT name FROM table_name_50 WHERE area = \"kennedy bay\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (years VARCHAR, decile VARCHAR, area VARCHAR)" }, { "from": "human", "value": "Which years have a Decile larger than 4, and an Area of thames?" }, { "from": "gpt", "value": "SELECT years FROM table_name_55 WHERE decile > 4 AND ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (authority VARCHAR, decile VARCHAR, area VARCHAR)" }, { "from": "human", "value": "Which Authority has a Decile smaller than 6, and an Area of opoutere?" }, { "from": "gpt", "value": "SELECT authority FROM table_name_68 WHERE d...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (gender VARCHAR, name VARCHAR, roll VARCHAR, years VARCHAR, authority VARCHAR)" }, { "from": "human", "value": "Which gender has Years of 1–8, an Authority of state, a Roll less than 184, and a Name of matatoki school?" }, { "from"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (tournament VARCHAR, winning_score VARCHAR)" }, { "from": "human", "value": "What was the tournament that resulted in a winning score of –4 (71-72-72-69=284)?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_34 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (winning_score VARCHAR, runner_s__up VARCHAR)" }, { "from": "human", "value": "What was the winning score of the event where Brian Kamm was the runner-up?" }, { "from": "gpt", "value": "SELECT winning_score FROM table_name_47 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (runner_s__up VARCHAR, winning_score VARCHAR)" }, { "from": "human", "value": "Who was the runner-up for the event that ended with a winning score of –15 (66-67-70-70=273)?" }, { "from": "gpt", "value": "SELECT runner_s__up FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "On what date was the Nike Colorado Classic held?" }, { "from": "gpt", "value": "SELECT date FROM table_name_39 WHERE tournament = \"nike colorado classic\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (winning_score VARCHAR, tournament VARCHAR)" }, { "from": "human", "value": "What was the winning score of the Buy.com Siouxland Open?" }, { "from": "gpt", "value": "SELECT winning_score FROM table_name_57 WHERE tournament = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (total INTEGER, difficulty_score VARCHAR, rank VARCHAR, routine_score VARCHAR)" }, { "from": "human", "value": "What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the least Points with Chassis of forti fg01b forti fg03, and a year less than 1996?" }, { "from": "gpt", "value": "SELECT MIN(points) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (year INTEGER, engine VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What is the lowest year for an engine of ford zetec-r v8, and points greater than 0?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (points INTEGER, engine VARCHAR)" }, { "from": "human", "value": "What are the average points for an engine of ford zetec-r v8?" }, { "from": "gpt", "value": "SELECT AVG(points) FROM table_name_63 WHERE engine = \"ford zetec-r ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (years VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the years for elsthorpe school" }, { "from": "gpt", "value": "SELECT years FROM table_name_78 WHERE name = \"elsthorpe school\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (roll VARCHAR, name VARCHAR, decile VARCHAR)" }, { "from": "human", "value": "Name the total number of roll for st joseph's school when decile is less than 5" }, { "from": "gpt", "value": "SELECT COUNT(roll) FROM table_name_19 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (gender VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the gender for elsthorpe school" }, { "from": "gpt", "value": "SELECT gender FROM table_name_63 WHERE name = \"elsthorpe school\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (drivers VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "Name the drivers for chassis of season cancelled" }, { "from": "gpt", "value": "SELECT drivers FROM table_name_88 WHERE chassis = \"season cancelled\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (teams VARCHAR, third__points_ VARCHAR)" }, { "from": "human", "value": "Name the teams for third points of season cancelled" }, { "from": "gpt", "value": "SELECT teams FROM table_name_95 WHERE third__points_ = \"season cancell...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (engine VARCHAR, rounds VARCHAR, teams VARCHAR)" }, { "from": "human", "value": "Name the engine with rounds of 11 and teams of 25" }, { "from": "gpt", "value": "SELECT engine FROM table_name_29 WHERE rounds = \"11\" AND teams ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the score for the loss of McDowell (12-7)?" }, { "from": "gpt", "value": "SELECT score FROM table_name_39 WHERE loss = \"mcdowell (12-7)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (laps INTEGER, year VARCHAR)" }, { "from": "human", "value": "What is the total laps for the year 2011?" }, { "from": "gpt", "value": "SELECT SUM(laps) FROM table_name_1 WHERE year = 2011" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (class VARCHAR, pos VARCHAR)" }, { "from": "human", "value": "Which team is in 9th place?" }, { "from": "gpt", "value": "SELECT class AS pos FROM table_name_98 WHERE pos = \"9th\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR)" }, { "from": "human", "value": "What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (year VARCHAR, engine VARCHAR)" }, { "from": "human", "value": "What year was the Honda ra168e 1.5 v6 t engine used?" }, { "from": "gpt", "value": "SELECT year FROM table_name_47 WHERE engine = \"honda ra168e 1.5 v6 t\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (tyres VARCHAR, chassis VARCHAR)" }, { "from": "human", "value": "What tyres were used with the mp4/14 chassis?" }, { "from": "gpt", "value": "SELECT tyres FROM table_name_40 WHERE chassis = \"mp4/14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (tickets_sold___available VARCHAR, city VARCHAR)" }, { "from": "human", "value": "How many tickets were there sold/available in Barcelona?" }, { "from": "gpt", "value": "SELECT tickets_sold___available FROM table_name_54 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR)" }, { "from": "human", "value": "How many tickets were sold/available when the gross revenue (2011) was $366,916?" }, { "from": "gpt", "value": "SELECT tickets_so...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR)" }, { "from": "human", "value": "How many tickets were sold/available when the gross revenue (2011) was $5,948,390?" }, { "from": "gpt", "value": "SELECT tickets_s...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (gross_revenue__1986_ VARCHAR, tickets_sold___available VARCHAR)" }, { "from": "human", "value": "What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (team_2 VARCHAR)" }, { "from": "human", "value": "What was the score in the 1st leg when Stade d'Abidjan was Team 2?" }, { "from": "gpt", "value": "SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = \"stade d'abidjan\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (agg VARCHAR, team_1 VARCHAR)" }, { "from": "human", "value": "What was the aggregate score that had Union Douala as Team 1?" }, { "from": "gpt", "value": "SELECT agg FROM table_name_55 WHERE team_1 = \"union douala\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (agg VARCHAR)" }, { "from": "human", "value": "What was the 2nd leg score of the aggregate score of 4-9?" }, { "from": "gpt", "value": "SELECT 2 AS nd_leg FROM table_name_46 WHERE agg = \"4-9\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)" }, { "from": "human", "value": "Who was Team 2 when Stationery Stores was Team 1?" }, { "from": "gpt", "value": "SELECT team_2 FROM table_name_81 WHERE team_1 = \"stationery stores\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (team_1 VARCHAR, agg VARCHAR)" }, { "from": "human", "value": "Which Team 1 has an aggregate score of 1-1 1?" }, { "from": "gpt", "value": "SELECT team_1 FROM table_name_13 WHERE agg = \"1-1 1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (chassis VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Can you tell me the Chassis that has the Year of 1977?" }, { "from": "gpt", "value": "SELECT chassis FROM table_name_47 WHERE year = 1977" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974?" }, { "from": "gpt", "value": "SELECT entrant FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR)" }, { "from": "human", "value": "Can you tell me the Chassis that has the Entrant of trivellato racing team?" }, { "from": "gpt", "value": "SELECT chassis FROM table_name_61 WHERE entrant = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR, points VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille?" }, { "from"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (value__ INTEGER, revenue__$m_ VARCHAR, debt_as__percentageof_value VARCHAR)" }, { "from": "human", "value": "What is the lowest value of a team with revenue less than 374 and a debt of 84%?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (operating_income_ INTEGER, _percentage_change_on_year VARCHAR, value__$m_ VARCHAR)" }, { "from": "human", "value": "What is the highest operating income that change by 2% and is less than $1,036m?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which team did they play on September 19?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_66 WHERE date = \"september 19\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)" }, { "from": "human", "value": "What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)" }, { "from": "human", "value": "What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)" }, { "from": "human", "value": "What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10?" }, { "from": "gpt", "value": "SELECT call_sign FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR)" }, { "from": "human", "value": "What is listed as the highest ERP W with a Call sign of W262AC?" }, { "from": "gpt", "value": "SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = \"w262ac\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER)" }, { "from": "human", "value": "What's the sum of ERP W with a Frequency MHz that larger than 97.7?" }, { "from": "gpt", "value": "SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz...
know_sql
chosen