conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_99 (name VARCHAR, authors VARCHAR)" }, { "from": "human", "value": "What is the name of gao chiappe meng o'connor wang cheng liu?" }, { "from": "gpt", "value": "SELECT name FROM table_name_99 WHERE authors = \"gao chiappe meng o'c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (location VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Where has a Name of zhongornis?" }, { "from": "gpt", "value": "SELECT location FROM table_name_84 WHERE name = \"zhongornis\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (notes VARCHAR, authors VARCHAR)" }, { "from": "human", "value": "Which Notes has Authors of zhou clarke zhang?" }, { "from": "gpt", "value": "SELECT notes FROM table_name_40 WHERE authors = \"zhou clarke zhang\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (rank INTEGER, team VARCHAR, games VARCHAR)" }, { "from": "human", "value": "What was the ranking of Beirasar Rosalía, the year they played 32 games?" }, { "from": "gpt", "value": "SELECT MAX(rank) FROM table_name_6 WHERE team =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, games VARCHAR)" }, { "from": "human", "value": "How many points did Antwain Barbour score in the year he played 39 games?" }, { "from": "gpt", "value": "SELECT SUM(points) FROM table_name_12 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (team VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What team was Paolo Quinteros on?" }, { "from": "gpt", "value": "SELECT team FROM table_name_59 WHERE name = \"paolo quinteros\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (res VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Was the record of 8-1 (1) a win or a loss?" }, { "from": "gpt", "value": "SELECT res FROM table_name_10 WHERE record = \"8-1 (1)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (event VARCHAR, method VARCHAR)" }, { "from": "human", "value": "In what event was the technical decision (split) method used?" }, { "from": "gpt", "value": "SELECT event FROM table_name_8 WHERE method = \"technical decision (sp...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (play_offs INTEGER, fa_cup INTEGER)" }, { "from": "human", "value": "What are the average play-offs that have an FA Cup greater than 3?" }, { "from": "gpt", "value": "SELECT AVG(play_offs) FROM table_name_9 WHERE fa_cup > 3" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (total VARCHAR, play_offs INTEGER)" }, { "from": "human", "value": "How many totals have a play-off less than 0?" }, { "from": "gpt", "value": "SELECT COUNT(total) FROM table_name_47 WHERE play_offs < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (league VARCHAR, fa_cup VARCHAR, total VARCHAR)" }, { "from": "human", "value": "Which league has an FA cup greater than 0, with a total greater than 21?" }, { "from": "gpt", "value": "SELECT league FROM table_name_76 WHERE fa_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?" }, { "from": "gpt", "value": "SELECT MAX(pla...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (tournament VARCHAR)" }, { "from": "human", "value": "What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?" }, { "from": "gpt", "value": "SELECT 2012 FROM table_name_6 WHERE 2003 = \"2r\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (tournament VARCHAR)" }, { "from": "human", "value": "What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?" }, { "from": "gpt", "value": "SELECT 2012 FROM table_name_65 WHERE 2013 = \"2r\" AND tour...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (tournament VARCHAR)" }, { "from": "human", "value": "What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?" }, { "from": "gpt", "value": "SELECT 2003 FROM table_name_6...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (tournament VARCHAR)" }, { "from": "human", "value": "What is the name of the tournament that has the results of 2003 2r and 2004 1r?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_25 WHERE 2003 = \"2r\" AND 2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (Id VARCHAR)" }, { "from": "human", "value": "What is the results in 2004 that has a 2013 result of 2r?" }, { "from": "gpt", "value": "SELECT 2004 FROM table_name_72 WHERE 2013 = \"2r\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (tournament VARCHAR)" }, { "from": "human", "value": "What is the result from 2003 from the US Open?" }, { "from": "gpt", "value": "SELECT 2003 FROM table_name_80 WHERE tournament = \"us open\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (height__cm_ INTEGER, weight__kg_ VARCHAR, birthdate VARCHAR)" }, { "from": "human", "value": "What is the height of the player born on June 24, 1964, with a weight over 84 kg?" }, { "from": "gpt", "value": "SELECT AVG(height__...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (birthdate VARCHAR, birthplace VARCHAR)" }, { "from": "human", "value": "On what date was the player from Melrose, Massachusetts born?" }, { "from": "gpt", "value": "SELECT birthdate FROM table_name_54 WHERE birthplace = \"melr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (date VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What is Date, when Event is Billabong Pro?" }, { "from": "gpt", "value": "SELECT date FROM table_name_34 WHERE event = \"billabong pro\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (location VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is Location, when Date is December 8-December 20?" }, { "from": "gpt", "value": "SELECT location FROM table_name_74 WHERE date = \"december 8-december 20\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (runner_up VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What is Runner-up, when Event is Mancora Peru Classic?" }, { "from": "gpt", "value": "SELECT runner_up FROM table_name_87 WHERE event = \"mancora peru classic\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (event VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is Event, when Date is August 20-August 27?" }, { "from": "gpt", "value": "SELECT event FROM table_name_72 WHERE date = \"august 20-august 27\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (date VARCHAR, runner_up VARCHAR)" }, { "from": "human", "value": "What is Date when Runner-up is Sofía Mulánovich ( per )?" }, { "from": "gpt", "value": "SELECT date FROM table_name_92 WHERE runner_up = \"sofía mulánovich ( pe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (country VARCHAR, event VARCHAR)" }, { "from": "human", "value": "What is Country, when Event is Rip Curl Women's Pro?" }, { "from": "gpt", "value": "SELECT country FROM table_name_67 WHERE event = \"rip curl women's pro\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (win_percentage INTEGER, losses VARCHAR)" }, { "from": "human", "value": "What is the highest win percentage when there were 23 losses?" }, { "from": "gpt", "value": "SELECT MAX(win_percentage) FROM table_name_18 WHERE losses =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (finish VARCHAR, win_percentage VARCHAR, wins VARCHAR)" }, { "from": "human", "value": "Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?" }, { "from": "gpt", "value": "SELECT finish FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (player VARCHAR)" }, { "from": "human", "value": "What is the 2007 Team with player Deshaun Foster?" }, { "from": "gpt", "value": "SELECT 2007 AS _team FROM table_name_30 WHERE player = \"deshaun foster\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (free_agent_type VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is the Free Agent Type for player bryant johnson?" }, { "from": "gpt", "value": "SELECT free_agent_type FROM table_name_2 WHERE player = \"bryant jo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (high_assists VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the High assists with a Date that is march 31?" }, { "from": "gpt", "value": "SELECT high_assists FROM table_name_39 WHERE date = \"march 31\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the Score with a Date that is march 12?" }, { "from": "gpt", "value": "SELECT score FROM table_name_93 WHERE date = \"march 12\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (silver INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?" }, { "from": "gpt", "value...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (rank INTEGER, silver INTEGER)" }, { "from": "human", "value": "What average rank that has a silver less than 0?" }, { "from": "gpt", "value": "SELECT AVG(rank) FROM table_name_41 WHERE silver < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (silver VARCHAR, total VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "How many silver have 4 as the total with a bronze less than 2?" }, { "from": "gpt", "value": "SELECT COUNT(silver) FROM table_name_42 WHERE total ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (total INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (total INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?" }, { "from": "gpt", "value"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (country VARCHAR, indigenous_mining_production_2006 VARCHAR)" }, { "from": "human", "value": "Which country has an Indigenous mining production 2006 of 0?" }, { "from": "gpt", "value": "SELECT country FROM table_name_26 WHERE i...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (silver INTEGER, nation VARCHAR, total VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?" }, { "from": "gpt", "value":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What nation has a bronze of 2 with a total less than 5 and rank of 6?" }, { "from": "gpt", "value": "SELECT nation FROM table_name_8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (total INTEGER, rank VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the lowest Total for rank 3 with more than 4 gold?" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_name_13 WHERE rank = \"3\" AND ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What is the lowest Total for Italy with less than 0 silver?" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_name_32 WHERE nation = \"i...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (nation VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the Nation with less than 1 silver, and the total is 1, and bronze is less than 0?" }, { "from": "gpt", "value": "SELECT n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (number VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What number has 2002-2003 as the season?" }, { "from": "gpt", "value": "SELECT number FROM table_name_32 WHERE season = \"2002-2003\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (position VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What position has 2008 as the season?" }, { "from": "gpt", "value": "SELECT position FROM table_name_11 WHERE season = \"2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (name VARCHAR, number VARCHAR)" }, { "from": "human", "value": "What name has 50 as the number?" }, { "from": "gpt", "value": "SELECT name FROM table_name_54 WHERE number = \"50\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (number VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What number has 2008 as the season?" }, { "from": "gpt", "value": "SELECT number FROM table_name_38 WHERE season = \"2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (name VARCHAR, number VARCHAR)" }, { "from": "human", "value": "What name has 8 as the number?" }, { "from": "gpt", "value": "SELECT name FROM table_name_5 WHERE number = \"8\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (position VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What position has ronjay buenafe as the name?" }, { "from": "gpt", "value": "SELECT position FROM table_name_16 WHERE name = \"ronjay buenafe\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (long INTEGER, yards VARCHAR)" }, { "from": "human", "value": "What was the lowest long with 26 yards?" }, { "from": "gpt", "value": "SELECT MIN(long) FROM table_name_51 WHERE yards = 26" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (avg INTEGER, fuml INTEGER)" }, { "from": "human", "value": "What was the highest average when Fuml was 0?" }, { "from": "gpt", "value": "SELECT MAX(avg) FROM table_name_57 WHERE fuml < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (current_run_since INTEGER, last_title VARCHAR, seasons_in_esiliiga VARCHAR)" }, { "from": "human", "value": "What is the highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?" }, { "from": "g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR)" }, { "from": "human", "value": "What is the 2012 season in Esiliiga more than 4, and more than 0 titles?" }, { "from": "gpt", "value": "SELECT 2012 FROM table_name_87 WHERE seasons...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (season VARCHAR)" }, { "from": "human", "value": "What 20-29 was in season 2008?" }, { "from": "gpt", "value": "SELECT 20 AS _29 FROM table_name_69 WHERE season = \"2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (points INTEGER, season VARCHAR)" }, { "from": "human", "value": "What were the lowest amount of points for season 1994?" }, { "from": "gpt", "value": "SELECT MIN(points) FROM table_name_33 WHERE season = \"1994\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (season VARCHAR)" }, { "from": "human", "value": "Which 20-29 had a season of 1997?" }, { "from": "gpt", "value": "SELECT 20 AS _29 FROM table_name_11 WHERE season = \"1997\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (position VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the Postion, when the Name is Rod Paavola?" }, { "from": "gpt", "value": "SELECT position FROM table_name_27 WHERE name = \"rod paavola\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (jersey__number VARCHAR, position VARCHAR, birthdate VARCHAR)" }, { "from": "human", "value": "What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?" }, { "from": "gpt", "value...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (birthplace VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the Birthplace, when the Name is Bob Mcvey?" }, { "from": "gpt", "value": "SELECT birthplace FROM table_name_76 WHERE name = \"bob mcvey\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (name VARCHAR, position VARCHAR, jersey__number VARCHAR)" }, { "from": "human", "value": "What is the Name, when the Position is W, and when the Jersey # is 11?" }, { "from": "gpt", "value": "SELECT name FROM table_name_73 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (position VARCHAR, club_team VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?" }, { "from": "gpt", "value": "SELECT positio...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (home VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What home has 122-28 as the score?" }, { "from": "gpt", "value": "SELECT home FROM table_name_96 WHERE score = \"122-28\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (ground VARCHAR, home VARCHAR)" }, { "from": "human", "value": "What ground has etobicoke kangaroos as the home?" }, { "from": "gpt", "value": "SELECT ground FROM table_name_88 WHERE home = \"etobicoke kangaroos\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (time VARCHAR, ground VARCHAR, home VARCHAR)" }, { "from": "human", "value": "What time has humber college north as the ground, and toronto downtown dingos as the home?" }, { "from": "gpt", "value": "SELECT time FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (score VARCHAR, home VARCHAR)" }, { "from": "human", "value": "What score has Toronto Eagles as the home?" }, { "from": "gpt", "value": "SELECT score FROM table_name_57 WHERE home = \"toronto eagles\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR)" }, { "from": "human", "value": "What date has high park demons as the away?" }, { "from": "gpt", "value": "SELECT date FROM table_name_15 WHERE away = \"high park demons\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (away VARCHAR, home VARCHAR)" }, { "from": "human", "value": "What away has toronto downtown dingos as the home?" }, { "from": "gpt", "value": "SELECT away FROM table_name_71 WHERE home = \"toronto downtown dingos\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (winner VARCHAR, event VARCHAR)" }, { "from": "human", "value": "Who was the winner from the Rip Curl Pro Search?" }, { "from": "gpt", "value": "SELECT winner FROM table_name_71 WHERE event = \"rip curl pro search\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (location VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What was the location of the tournament held in Spain?" }, { "from": "gpt", "value": "SELECT location FROM table_name_56 WHERE country = \"spain\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (date VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What was the date of the tournament held in Indonesia?" }, { "from": "gpt", "value": "SELECT date FROM table_name_23 WHERE country = \"indonesia\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (lost INTEGER, difference VARCHAR, played VARCHAR)" }, { "from": "human", "value": "What is the average Lost when the difference is - 3, and a Played is less than 10?" }, { "from": "gpt", "value": "SELECT AVG(lost) FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (position VARCHAR, drawn VARCHAR, difference VARCHAR)" }, { "from": "human", "value": "What is the Position when the Drawn is less than 2, with a Difference of 2?" }, { "from": "gpt", "value": "SELECT position FROM table_name_6...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (against INTEGER, lost VARCHAR, drawn VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6." }, { "from": "gp...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (difference VARCHAR, position VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What is the Difference with a position of less than 3, and, 17 points." }, { "from": "gpt", "value": "SELECT difference FROM table_name_57 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (top_5 INTEGER, tournament VARCHAR, cuts_made VARCHAR)" }, { "from": "human", "value": "What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?" }, { "from": "gpt", "value": "SELECT AVG(t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (events INTEGER, top_10 VARCHAR, top_5 VARCHAR)" }, { "from": "human", "value": "What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?" }, { "from": "gpt", "value": "SELECT SUM(events) FROM table_name_8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (top_5 INTEGER, tournament VARCHAR, events VARCHAR)" }, { "from": "human", "value": "What is the sum of Top-5, when Tournament is Totals, and when Events is greater than 86?" }, { "from": "gpt", "value": "SELECT SUM(top_5) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (top_10 INTEGER, wins INTEGER)" }, { "from": "human", "value": "What is the average Top-10, when Wins is less than 0?" }, { "from": "gpt", "value": "SELECT AVG(top_10) FROM table_name_37 WHERE wins < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (top_25 VARCHAR, events INTEGER)" }, { "from": "human", "value": "What is the total number of Top-25, when Events is greater than 86?" }, { "from": "gpt", "value": "SELECT COUNT(top_25) FROM table_name_65 WHERE events > 86" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (Id VARCHAR)" }, { "from": "human", "value": "What 2011 has 4r as the 2008?" }, { "from": "gpt", "value": "SELECT 2011 FROM table_name_68 WHERE 2008 = \"4r\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (tournament VARCHAR)" }, { "from": "human", "value": "What 2007 has wimbledon as the tournament?" }, { "from": "gpt", "value": "SELECT 2007 FROM table_name_88 WHERE tournament = \"wimbledon\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (Id VARCHAR)" }, { "from": "human", "value": "What 2006 has 1r as the 2007?" }, { "from": "gpt", "value": "SELECT 2006 FROM table_name_74 WHERE 2007 = \"1r\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (tournament VARCHAR)" }, { "from": "human", "value": "What tournament has q2 as the 2004?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_66 WHERE 2004 = \"q2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (Id VARCHAR)" }, { "from": "human", "value": "What 2009 has grand slam tournaments of 2008?" }, { "from": "gpt", "value": "SELECT 2009 FROM table_name_43 WHERE 2008 = \"grand slam tournaments\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (Id VARCHAR)" }, { "from": "human", "value": "What 2006 has 0-0 as the 2011?" }, { "from": "gpt", "value": "SELECT 2006 FROM table_name_29 WHERE 2011 = \"0-0\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (lineup VARCHAR, match VARCHAR)" }, { "from": "human", "value": "What is the Lineup from a Match that is 27?" }, { "from": "gpt", "value": "SELECT lineup FROM table_name_12 WHERE match = \"27\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the date for Orangeville?" }, { "from": "gpt", "value": "SELECT date FROM table_name_56 WHERE name = \"orangeville\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)" }, { "from": "human", "value": "Who is the builder with a works number of 2534?" }, { "from": "gpt", "value": "SELECT builder FROM table_name_16 WHERE works_number = \"2534\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (name VARCHAR, works_number VARCHAR)" }, { "from": "human", "value": "Who is the name with a works number of 809?" }, { "from": "gpt", "value": "SELECT name FROM table_name_49 WHERE works_number = \"809\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, name VARCHAR)" }, { "from": "human", "value": "In early 1873, Owen sound had what works number?" }, { "from": "gpt", "value": "SELECT works_number FROM table_name_39 WHERE date = \"early 187...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (name VARCHAR, type VARCHAR, number VARCHAR)" }, { "from": "human", "value": "What was the name for the locomotive with a type of 2-8-0 and a number of 20?" }, { "from": "gpt", "value": "SELECT name FROM table_name_23 WHERE typ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (year_won VARCHAR, to_par VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the Year won for the player with a larger than 4 To par and less the 157 Total?" }, { "from": "gpt", "value": "SELECT year_won FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (total INTEGER, to_par VARCHAR, year_won VARCHAR)" }, { "from": "human", "value": "What is the Total for the Player who won after 1983 with less than 4 To par?" }, { "from": "gpt", "value": "SELECT AVG(total) FROM table_name_66...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (total VARCHAR, to_par VARCHAR, year_won VARCHAR)" }, { "from": "human", "value": "What is the Total of the player who won before 1983 with a smaller than 4 To par?" }, { "from": "gpt", "value": "SELECT COUNT(total) FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (venue VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Which venue led to a draw?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_93 WHERE result = \"draw\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (stolen_ends INTEGER, skip VARCHAR)" }, { "from": "human", "value": "What is the highest Stolen Ends when ludmila privivkova shows for skip?" }, { "from": "gpt", "value": "SELECT MAX(stolen_ends) FROM table_name_54 WHERE skip =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_39 (blank_ends INTEGER, nation VARCHAR, ends_lost VARCHAR)" }, { "from": "human", "value": "What is the sum of Blank Ends for Denmark when less than 42 is the ends lost?" }, { "from": "gpt", "value": "SELECT SUM(blank_ends) FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (blank_ends VARCHAR, stolen_ends VARCHAR, ends_won VARCHAR, ends_lost VARCHAR)" }, { "from": "human", "value": "What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends." }, { "from...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (interview_subject VARCHAR)" }, { "from": "human", "value": "Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?" }, { "from": "gpt", "value": "SELECT 20 AS _questions FROM table_name_97 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (centerfold_model VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the Centerfold Model on 5-95?" }, { "from": "gpt", "value": "SELECT centerfold_model FROM table_name_32 WHERE date = \"5-95\"" } ]
know_sql
chosen