conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (snatch INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?"
},
{
"from": "gpt",
"value": "SELECT MIN(s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (date VARCHAR, killed VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What date has 2 for killed, and jaffa as the location?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_44 WHERE killed = \"2\" AND loc... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (injured VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What is the injured that has skierlik as the location?"
},
{
"from": "gpt",
"value": "SELECT injured FROM table_name_9 WHERE location = \"skierlik\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (team_1 VARCHAR)"
},
{
"from": "human",
"value": "What is the 2nd leg that Team 1 is Union Berlin?"
},
{
"from": "gpt",
"value": "SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = \"union berlin\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (apps VARCHAR, ratio VARCHAR, goals VARCHAR)"
},
{
"from": "human",
"value": "What is the Apps for the player with 150 Goals and a Ratio of 0.52?"
},
{
"from": "gpt",
"value": "SELECT apps FROM table_name_81 WHERE ratio = 0.52 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (team VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "Which team won at the symmons plains raceway?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_42 WHERE circuit = \"symmons plains raceway\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (team VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "Which team won at winton motor raceway?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_5 WHERE circuit = \"winton motor raceway\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (circuit VARCHAR, series VARCHAR)"
},
{
"from": "human",
"value": "Which circuit was the atcc round 7 at?"
},
{
"from": "gpt",
"value": "SELECT circuit FROM table_name_71 WHERE series = \"atcc round 7\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (circuit VARCHAR, team VARCHAR, series VARCHAR)"
},
{
"from": "human",
"value": "Which circuit did winfield team nissan win for the tooheys 1000?"
},
{
"from": "gpt",
"value": "SELECT circuit FROM table_name_68 WHERE team = \"w... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR)"
},
{
"from": "human",
"value": "What is the date for the tooheys 1000?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_44 WHERE series = \"tooheys 1000\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (series VARCHAR, city___state VARCHAR)"
},
{
"from": "human",
"value": "what series was in sydney, new south wales?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_name_49 WHERE city___state = \"sydney, new south wales\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (rank VARCHAR, ΓΈ_pts VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "What was the rank for 1.26 Γ-Pts in game 1458?"
},
{
"from": "gpt",
"value": "SELECT COUNT(rank) FROM table_name_86 WHERE ΓΈ_pts > 1.26 AND games = 14... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Outcome of the match with Partner Marcella Mesker and a Score of 6β4, 4β6, 4β6?"
},
{
"from": "gpt",
"value": "SELECT outcome FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (surface VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Surface of the match with a Score of 2β6, 6β4, 7β6?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_30 WHERE score = \"2β6, 6β4, 7β6\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Surface of the match played on October 5, 1987?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_77 WHERE date = \"october 5, 1987\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (date VARCHAR, partner VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Date of the match with a Score of 0β6, 2β6 with Partner Marcella Mesker?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_57 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (opponents VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who is the Opponents on May 3, 1982?"
},
{
"from": "gpt",
"value": "SELECT opponents FROM table_name_73 WHERE date = \"may 3, 1982\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (score VARCHAR, outcome VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Score of the match on May 21, 1984 with Outcome of runner-up?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_94 WHERE outc... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (date VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What is the date of the 200m individual medley?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_70 WHERE event = \"200m individual medley\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR)"
},
{
"from": "human",
"value": "Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?"
},
{
"from": "gpt",
"value": "SELECT team_1 FROM table_name_20 WHERE team_2 = \"oly... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR)"
},
{
"from": "human",
"value": "What was the score of the match where paris sg (d1) was team 1?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_63 WHERE team_1 = \"paris sg (d1)\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "Which Week has a Result of w 23β22?"
},
{
"from": "gpt",
"value": "SELECT week FROM table_name_77 WHERE result = \"w 23β22\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "When was there a bye result?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_32 WHERE result = \"bye\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (date VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "When was the attendance 65,806?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_40 WHERE attendance = \"65,806\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (opponent VARCHAR, week INTEGER)"
},
{
"from": "human",
"value": "Who was the opponent after week 16?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_43 WHERE week > 16"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR)"
},
{
"from": "human",
"value": "What is Commissioned, when Laid Down is \"6 September 2003\"?"
},
{
"from": "gpt",
"value": "SELECT commissioned FROM table_name_78 WHERE laid_down = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (launched VARCHAR, laid_down VARCHAR)"
},
{
"from": "human",
"value": "What is Launched, when Laid Down is \"31 October 1981\"?"
},
{
"from": "gpt",
"value": "SELECT launched FROM table_name_63 WHERE laid_down = \"31 october 19... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (ship VARCHAR, commissioned VARCHAR)"
},
{
"from": "human",
"value": "What is Ship, when Commissioned is \"13 March 1982\"?"
},
{
"from": "gpt",
"value": "SELECT ship FROM table_name_54 WHERE commissioned = \"13 march 1982\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR)"
},
{
"from": "human",
"value": "What is Launched, when Commissioned is \"25 July 1998\"?"
},
{
"from": "gpt",
"value": "SELECT launched FROM table_name_50 WHERE commissioned = \"25 july... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (laid_down VARCHAR, hull_number VARCHAR)"
},
{
"from": "human",
"value": "What is Laid Down, when Hull Number is \"CVN-69\"?"
},
{
"from": "gpt",
"value": "SELECT laid_down FROM table_name_85 WHERE hull_number = \"cvn-69\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (laid_down VARCHAR, commissioned VARCHAR)"
},
{
"from": "human",
"value": "What is Laid Down, when Commissioned is \"11 November 1989\"?"
},
{
"from": "gpt",
"value": "SELECT laid_down FROM table_name_90 WHERE commissioned = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (position VARCHAR, entrant VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Position that has the Entrant of j ampt?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_67 WHERE entrant = \"j ampt\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Entrant that has the Laps of 17?"
},
{
"from": "gpt",
"value": "SELECT entrant FROM table_name_77 WHERE laps = 17"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (position VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Position that has the Driver of bib stillwell?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_41 WHERE driver = \"bib still... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (result VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What are the results for a game with an attendance of 41,429?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_70 WHERE attendance = \"41,429\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (opponent_number VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "Who were the opponents when there was an attendance of 48,165?"
},
{
"from": "gpt",
"value": "SELECT opponent_number FROM table_name_1 WHERE attendan... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What are the results for the game with 82,113 attending?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_41 WHERE attendance = \"82,113\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (week_4 VARCHAR, week_3 VARCHAR)"
},
{
"from": "human",
"value": "Who was the girl on week 4 after week 3's Mikaela James?"
},
{
"from": "gpt",
"value": "SELECT week_4 FROM table_name_12 WHERE week_3 = \"mikaela james\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (week_1 VARCHAR, week_3 VARCHAR)"
},
{
"from": "human",
"value": "Who was the girl on week 1 that was previous to week 3's Ava Hart?"
},
{
"from": "gpt",
"value": "SELECT week_1 FROM table_name_23 WHERE week_3 = \"ava hart\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (week_2 VARCHAR, week_4 VARCHAR)"
},
{
"from": "human",
"value": "Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?"
},
{
"from": "gpt",
"value": "SELECT week_2 FROM table_name_73 WHERE week_4 = \"chelsi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (week_5 VARCHAR, week_3 VARCHAR)"
},
{
"from": "human",
"value": "Who was the girl on week 5 that came after week 3's Mikaela James?"
},
{
"from": "gpt",
"value": "SELECT week_5 FROM table_name_72 WHERE week_3 = \"mikaela james... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (week_1 VARCHAR, week_2 VARCHAR)"
},
{
"from": "human",
"value": "Who was the girl on week 1 that preceded week 2's Kamila Sulewska?"
},
{
"from": "gpt",
"value": "SELECT week_1 FROM table_name_12 WHERE week_2 = \"kamila sulews... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (week_5 VARCHAR, week_3 VARCHAR)"
},
{
"from": "human",
"value": "Who was the girl on week 5 that came after week 3's Shelly Louise?"
},
{
"from": "gpt",
"value": "SELECT week_5 FROM table_name_21 WHERE week_3 = \"shelly louise... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (points VARCHAR)"
},
{
"from": "human",
"value": "What is 1987-88, when Points is \"136\"?"
},
{
"from": "gpt",
"value": "SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (draw INTEGER, points VARCHAR, goals_conceded VARCHAR)"
},
{
"from": "human",
"value": "Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?"
},
{
"from": "gpt",
"value": "SELECT MAX(draw) FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (played INTEGER, goals_scored VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10?"
},
{
"from": "gpt",
"value": "SELECT MAX(played) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (played INTEGER, points VARCHAR)"
},
{
"from": "human",
"value": "Name the average Played with a Points of 0*?"
},
{
"from": "gpt",
"value": "SELECT AVG(played) FROM table_name_72 WHERE points = \"0*\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR)"
},
{
"from": "human",
"value": "Count the Draw which has Lost of 0, and a Goals Scored larger than 0?"
},
{
"from": "gpt",
"value": "SELECT SUM(draw) FROM table_name_59 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?"
},
{
"from": "gpt",
"value": "SELECT AVG(goals_conceded) FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (rank VARCHAR, total VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "What is the rank for the Mixed Team nation with a total of less than 13?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_74 WHERE total <... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (bronze VARCHAR, silver INTEGER)"
},
{
"from": "human",
"value": "What is the total number of bronze medals for teams with less than 0 silver?"
},
{
"from": "gpt",
"value": "SELECT COUNT(bronze) FROM table_name_98 WHERE silver ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (bronze INTEGER, silver VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9?"
},
{
"from": "gpt",
"val... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)"
},
{
"from": "human",
"value": "How many military or civilians were wounded in the conflict that had an unknown number of... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (civilian_deaths VARCHAR, military_deaths VARCHAR)"
},
{
"from": "human",
"value": "How many civilians died in the conflict that left 231 members of the military dead?"
},
{
"from": "gpt",
"value": "SELECT civilian_deaths FROM ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)"
},
{
"from": "human",
"value": "How many civilians died in the conflict that left 178, excluding foreigners, dead?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (military_deaths VARCHAR, total_casualties VARCHAR)"
},
{
"from": "human",
"value": "How many members of the military died in the conflict that had a total of 531 casualties?"
},
{
"from": "gpt",
"value": "SELECT military_death... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR)"
},
{
"from": "human",
"value": "How many civilians died in the conflict that had a total of 1,130 casualties?"
},
{
"from": "gpt",
"value": "SELECT civilian_deaths FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Which team was the opponent on week 15?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_7 WHERE week = 15"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (total INTEGER, finish VARCHAR)"
},
{
"from": "human",
"value": "What is the average Total, when Finish is \"T47\"?"
},
{
"from": "gpt",
"value": "SELECT AVG(total) FROM table_name_44 WHERE finish = \"t47\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (to_par VARCHAR, total VARCHAR, finish VARCHAR)"
},
{
"from": "human",
"value": "What is To par, when Total is less than 297, and when Finish is \"1\"?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_37 WHERE total... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (official_itv1_rating VARCHAR, episode VARCHAR)"
},
{
"from": "human",
"value": "What is the Official ITV1 rating for auditions 4?"
},
{
"from": "gpt",
"value": "SELECT official_itv1_rating FROM table_name_96 WHERE episode = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (official_itv1_rating INTEGER, share VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest official ITV1 rating with 45.4% share?"
},
{
"from": "gpt",
"value": "SELECT MIN(official_itv1_rating) FROM table_name_32 WHERE s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (goals_against VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR)"
},
{
"from": "human",
"value": "How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?"
},
{
"from": "gpt",... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (goals_against INTEGER, goal_difference VARCHAR, position VARCHAR, points VARCHAR, goals_for VARCHAR)"
},
{
"from": "human",
"value": "Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger tha... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (goals_against INTEGER, club VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which Goals against have a Club of cd castellΓ³n, and Points smaller than 24?"
},
{
"from": "gpt",
"value": "SELECT AVG(goals_against) FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (played INTEGER, goals_against VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "How much Played has Goals against smaller than 34, and Wins smaller than 13?"
},
{
"from": "gpt",
"value": "SELECT SUM(played) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 3... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (to_par VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the To Par score for the player from France?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_99 WHERE country = \"france\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (player VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the player with an overall score of 70-69-69=208?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_41 WHERE score = 70 - 69 - 69 =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the To Par score for the player with an overall score of 71-68-69=208?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_38 WHERE score = 71 - ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (location VARCHAR, champion VARCHAR)"
},
{
"from": "human",
"value": "What location did Anke Huber win the championship?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_68 WHERE champion = \"anke huber\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (runner_up VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Who won the runner-up in 1999?"
},
{
"from": "gpt",
"value": "SELECT runner_up FROM table_name_26 WHERE year = 1999"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (score VARCHAR, champion VARCHAR)"
},
{
"from": "human",
"value": "What was the score when Flavia Pennetta won the championship?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_67 WHERE champion = \"flavia pennetta\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (matches VARCHAR, s_rate VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie?"
},
{
"from": "gpt",
"value": "SELECT COUNT(matches) FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (team VARCHAR, matches VARCHAR, balls VARCHAR, inns VARCHAR)"
},
{
"from": "human",
"value": "Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12?"
},
{
"from": "gpt",
"value": "SELECT team FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR)"
},
{
"from": "human",
"value": "How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?"
},
{
"from": "gpt... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (fastest_lap VARCHAR, grand_prix VARCHAR)"
},
{
"from": "human",
"value": "What was the fastest lap for Grand Prix dutch tt?"
},
{
"from": "gpt",
"value": "SELECT fastest_lap FROM table_name_56 WHERE grand_prix = \"dutch tt\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (race_winner VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "Who won the race circuit of sachsenring?"
},
{
"from": "gpt",
"value": "SELECT race_winner FROM table_name_47 WHERE circuit = \"sachsenring\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (race_winner VARCHAR, fastest_lap VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who won with the fastest lap of daijiro hiura on March 29?"
},
{
"from": "gpt",
"value": "SELECT race_winner FROM table_name_97 WHERE fas... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (year VARCHAR, total VARCHAR, la_matches VARCHAR)"
},
{
"from": "human",
"value": "What year had a total of 2 and LA matches of 0?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_35 WHERE total = \"2\" AND la_matches... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (year VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What year was the total 9?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_9 WHERE total = \"9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (week_4 VARCHAR, week_5 VARCHAR, week_2 VARCHAR)"
},
{
"from": "human",
"value": "Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland?"
},
{
"from": "gpt",
"value": "SELECT week_4 FROM table_name_8 WHERE week... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (week_3 VARCHAR, week_2 VARCHAR)"
},
{
"from": "human",
"value": "Who is week 3 if week 2 is Nikki Fiction?"
},
{
"from": "gpt",
"value": "SELECT week_3 FROM table_name_64 WHERE week_2 = \"nikki fiction\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (week_1 VARCHAR, week_3 VARCHAR)"
},
{
"from": "human",
"value": "Who is week 1 if week 3 is Natasha Budhi?"
},
{
"from": "gpt",
"value": "SELECT week_1 FROM table_name_3 WHERE week_3 = \"natasha budhi\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (week_5 VARCHAR, week_2 VARCHAR)"
},
{
"from": "human",
"value": "Who is week 5 if week 2 is Jenna Jordan?"
},
{
"from": "gpt",
"value": "SELECT week_5 FROM table_name_68 WHERE week_2 = \"jenna jordan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (week_2 VARCHAR, week_3 VARCHAR)"
},
{
"from": "human",
"value": "Who is week 2 if week 3 is Sara Stokes?"
},
{
"from": "gpt",
"value": "SELECT week_2 FROM table_name_65 WHERE week_3 = \"sara stokes\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (week_3 VARCHAR, week_1 VARCHAR)"
},
{
"from": "human",
"value": "Who is week 3 if week 1 is Amanda Batt?"
},
{
"from": "gpt",
"value": "SELECT week_3 FROM table_name_47 WHERE week_1 = \"amanda batt\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (bronze INTEGER, total INTEGER)"
},
{
"from": "human",
"value": "What average bronze has a total less than 1?"
},
{
"from": "gpt",
"value": "SELECT AVG(bronze) FROM table_name_29 WHERE total < 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What average gold has China (chn) as the nation with a bronze greater than 1?"
},
{
"from": "gpt",
"value": "SELECT AVG(gold) FROM table_name_63 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (gold INTEGER, bronze INTEGER)"
},
{
"from": "human",
"value": "Which is the highest gold that has a bronze greater than 4?"
},
{
"from": "gpt",
"value": "SELECT MAX(gold) FROM table_name_96 WHERE bronze > 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR)"
},
{
"from": "human",
"value": "What date has fewer than 32 against and the opposing team of Australia?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_84 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (against INTEGER, status VARCHAR)"
},
{
"from": "human",
"value": "What is the average against for a test match?"
},
{
"from": "gpt",
"value": "SELECT AVG(against) FROM table_name_64 WHERE status = \"test match\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (venue VARCHAR, against VARCHAR, status VARCHAR)"
},
{
"from": "human",
"value": "Which venue has more than 9 against and a status of second test?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_90 WHERE against > 9... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (status VARCHAR, against VARCHAR)"
},
{
"from": "human",
"value": "Which status has an against of 35?"
},
{
"from": "gpt",
"value": "SELECT status FROM table_name_52 WHERE against = 35"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (music VARCHAR, dance VARCHAR)"
},
{
"from": "human",
"value": "What was the music for the modern dance?"
},
{
"from": "gpt",
"value": "SELECT music FROM table_name_64 WHERE dance = \"modern\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (place VARCHAR, dance VARCHAR, points_jury VARCHAR)"
},
{
"from": "human",
"value": "What was the place for the tango dance when the points was jury of 24 (7,5,6,6)?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR)"
},
{
"from": "human",
"value": "What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0?"
},
{
"from": "gpt",
"value": "SEL... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (player VARCHAR, total_goals VARCHAR, qualifying_goals VARCHAR)"
},
{
"from": "human",
"value": "Which Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3?"
},
{
"from": "gpt",
"value": "SELECT player FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (finals_goals INTEGER, total_goals INTEGER)"
},
{
"from": "human",
"value": "What is the Average Finals Goals if the Total Goals is less than 1?"
},
{
"from": "gpt",
"value": "SELECT AVG(finals_goals) FROM table_name_40 WHERE t... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.