conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (matches VARCHAR, clubs VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of Matches, when Clubs is 588 → 406?"
},
{
"from": "gpt",
"value": "SELECT COUNT(matches) FROM table_name_16 WHERE clubs = \"588 → 406\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (prize_money VARCHAR, matches VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "What is Prize Money, when Matches is less than 73, and when Round is Third Round Proper?"
},
{
"from": "gpt",
"value": "SELECT prize_money F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (opponent_in_the_final VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "For the tournament played on September 25, 1995, who was the Finals opponent?"
},
{
"from": "gpt",
"value": "SELECT opponent_in_the_final FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which tournament was played on September 25, 1995?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_46 WHERE date = \"september 25, 1995\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (time VARCHAR, round VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What was the time for the bout against Amanda Lavoy, which went under 3 rounds?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_71 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (notes VARCHAR, app_l_c_e_ VARCHAR)"
},
{
"from": "human",
"value": "What is Notes, when App(L/C/E) is 13 (7/2/4)?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_89 WHERE app_l_c_e_ = \"13 (7/2/4)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (nat VARCHAR, name VARCHAR, ends VARCHAR, since VARCHAR)"
},
{
"from": "human",
"value": "What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?"
},
{
"from": "gpt",
"value": "SELECT nat... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (since INTEGER, notes VARCHAR, app_l_c_e_ VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?"
},
{
"from": "gpt",
"value": "SELECT MIN(sin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?"
},
{
"from": "gpt",
"value": "SELECT time_retired FROM table_name_28... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (laps INTEGER, team VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "What are the lowest laps Alex Tagliani did for the Forsythe Racing team?"
},
{
"from": "gpt",
"value": "SELECT MIN(laps) FROM table_name_79 WHERE tea... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (event VARCHAR)"
},
{
"from": "human",
"value": "What is the 2010–11 when the Event is colonial square ladies classic?"
},
{
"from": "gpt",
"value": "SELECT 2010 AS _11 FROM table_name_75 WHERE event = \"colonial square ladies ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (event VARCHAR)"
},
{
"from": "human",
"value": "What is the 2007–08 when the event was autumn gold?"
},
{
"from": "gpt",
"value": "SELECT 2007 AS _08 FROM table_name_32 WHERE event = \"autumn gold\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, industrial_and_commercial_panel VARCHAR)"
},
{
"from": "human",
"value": "Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (administrative_panel INTEGER, nominated_by_the_taoiseach INTEGER)"
},
{
"from": "human",
"value": "Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT MIN(administr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (labour_panel INTEGER, industrial_and_commercial_panel VARCHAR, university_of_dublin VARCHAR)"
},
{
"from": "human",
"value": "Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3?"
},... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (total VARCHAR, national_university_of_ireland VARCHAR, labour_panel VARCHAR, administrative_panel VARCHAR)"
},
{
"from": "human",
"value": "Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a Natio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (agricultural_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?"
},
{
"from": "gp... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (team_1 VARCHAR, team_2 VARCHAR)"
},
{
"from": "human",
"value": "What is Team 1 when Team 2 is Jac Port-Gentil?"
},
{
"from": "gpt",
"value": "SELECT team_1 FROM table_name_77 WHERE team_2 = \"jac port-gentil\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (winning_score VARCHAR, tournament VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?"
},
{
"from": "gpt",
"value": "SELECT winning_sco... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (date VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "What is Date, when Tournament is Alfred Dunhill Championship 1?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_87 WHERE tournament = \"alfred dunhi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (tournament VARCHAR, margin_of_victory VARCHAR)"
},
{
"from": "human",
"value": "What is Tournament, when Margin is Victory of 6 Strokes?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_30 WHERE margin_of_victo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (winning_score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is Winning Score, when Date is 17 Jan 2010?"
},
{
"from": "gpt",
"value": "SELECT winning_score FROM table_name_45 WHERE date = \"17 jan 2010\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (tournament VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "What is Tournament, when Runner(s)-Up is Garth Mulroy?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_70 WHERE runner_s__up = \"garth... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (points INTEGER, poles INTEGER)"
},
{
"from": "human",
"value": "What is the points sum of the series with less than 0 poles?"
},
{
"from": "gpt",
"value": "SELECT SUM(points) FROM table_name_28 WHERE poles < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (races INTEGER, podiums VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of the races in the 2007 season, which has more than 4 podiums?"
},
{
"from": "gpt",
"value": "SELECT SUM(races) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (poles INTEGER, team VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of the poles of Team la filière, which has less than 162 points?"
},
{
"from": "gpt",
"value": "SELECT SUM(poles) FROM table_name_13... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (points INTEGER, podiums VARCHAR, wins VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (pole VARCHAR, class VARCHAR)"
},
{
"from": "human",
"value": "How many poles had a moto2 class?"
},
{
"from": "gpt",
"value": "SELECT pole FROM table_name_75 WHERE class = \"moto2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (cultural_and_educational_panel INTEGER, university_of_dublin VARCHAR, administrative_panel VARCHAR, agricultural_panel VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of the Cultural and Educational Panels that have an Administra... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (agricultural_panel INTEGER, industrial_and_commercial_panel INTEGER)"
},
{
"from": "human",
"value": "What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?"
},
{
"from": "gpt",
"va... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (national_university_of_ireland INTEGER, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest number of National University of Ireland that has a Cultural and Educational Panel o... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)"
},
{
"from": "human",
"value": "What is the total of Industrial and Commercial Panels that have a ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (goals INTEGER, minutes VARCHAR)"
},
{
"from": "human",
"value": "What was the highest number of goals when 2428 minutes were played?"
},
{
"from": "gpt",
"value": "SELECT MAX(goals) FROM table_name_91 WHERE minutes = 2428"
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (minutes VARCHAR, goals VARCHAR, assists VARCHAR)"
},
{
"from": "human",
"value": "What is the number of minutes when there are more than 4 goals and 3 assists?"
},
{
"from": "gpt",
"value": "SELECT minutes FROM table_name_8 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (assists VARCHAR, minutes VARCHAR, player VARCHAR, position VARCHAR, goals VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scor... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (erp_w INTEGER, frequency_mhz VARCHAR)"
},
{
"from": "human",
"value": "What is the least ERP W when the freguency MHz is 89.3 fm?"
},
{
"from": "gpt",
"value": "SELECT MIN(erp_w) FROM table_name_27 WHERE frequency_mhz = \"89.3... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (erp_w INTEGER, call_sign VARCHAR)"
},
{
"from": "human",
"value": "Call sign k216fo has what average ERP W?"
},
{
"from": "gpt",
"value": "SELECT AVG(erp_w) FROM table_name_76 WHERE call_sign = \"k216fo\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (city_of_license VARCHAR, call_sign VARCHAR)"
},
{
"from": "human",
"value": "What city does call sign K248am have its license in?"
},
{
"from": "gpt",
"value": "SELECT city_of_license FROM table_name_54 WHERE call_sign = \"k24... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (call_sign VARCHAR, erp_w INTEGER)"
},
{
"from": "human",
"value": "What call sign has ERP W greater than 197?"
},
{
"from": "gpt",
"value": "SELECT call_sign FROM table_name_13 WHERE erp_w > 197"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (points VARCHAR, season VARCHAR, series VARCHAR)"
},
{
"from": "human",
"value": "How many points did Costa score in the Macau Grand Prix since 2011?"
},
{
"from": "gpt",
"value": "SELECT points FROM table_name_23 WHERE season ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (team VARCHAR, races VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Which teams had the 1st position and entered 1 race?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_42 WHERE races = \"1\" AND positio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (points VARCHAR, wins VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many points did Carlin have when they had 3 wins?"
},
{
"from": "gpt",
"value": "SELECT points FROM table_name_90 WHERE wins = \"3\" AND team = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (points INTEGER, against VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "How many Points have an Against smaller than 43, and a Position smaller than 1?"
},
{
"from": "gpt",
"value": "SELECT SUM(points) FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (drawn VARCHAR, position VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "How many Drawn have a Position of 7, and Points larger than 18?"
},
{
"from": "gpt",
"value": "SELECT COUNT(drawn) FROM table_name_70 WHERE posi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (against VARCHAR, team VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "How many Against have a Team of hespanha, and Points smaller than 30?"
},
{
"from": "gpt",
"value": "SELECT COUNT(against) FROM table_name_33 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (points INTEGER, drawn VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "Which Points is the average one that has Drawn of 3, and a Played smaller than 22?"
},
{
"from": "gpt",
"value": "SELECT AVG(points) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (played INTEGER, points VARCHAR, against VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (artist VARCHAR, spoofed_title VARCHAR)"
},
{
"from": "human",
"value": "Which artist has the Spoofed title Miscue 911?"
},
{
"from": "gpt",
"value": "SELECT artist FROM table_name_94 WHERE spoofed_title = \"miscue 911\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (spoofed_title VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Spoofed title is from February 1998?"
},
{
"from": "gpt",
"value": "SELECT spoofed_title FROM table_name_47 WHERE date = \"february 1998\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (artist VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which artist has a Spoofed title in June 1992?"
},
{
"from": "gpt",
"value": "SELECT artist FROM table_name_32 WHERE date = \"june 1992\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?"
},
{
"from": "g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (grid INTEGER, manufacturer VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?"
},
{
"from": "gpt",
"value": "SELECT MAX(g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (round VARCHAR, time VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What Round against Aleksander Emelianenko had a time of 5:00?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_98 WHERE time = \"5:00\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (venue VARCHAR, home VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "In 1958, what has the IRFU All-Stars Home Venue?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_18 WHERE home = \"irfu all-stars\" AND ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (date VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "On what Date was the Venue at Exhibition Stadium?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_73 WHERE venue = \"exhibition stadium\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (attendance INTEGER, season VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Before 1957, what was the largest in Attendance at Varsity Stadium?"
},
{
"from": "gpt",
"value": "SELECT MAX(attendance) FROM table_name_82 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (time VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Time with a Score that is 65-19?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_81 WHERE score = \"65-19\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (time VARCHAR, away VARCHAR)"
},
{
"from": "human",
"value": "What is the Time with an Away that is broadview hawks?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_91 WHERE away = \"broadview hawks\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (position INTEGER, drawn VARCHAR, against VARCHAR, difference VARCHAR)"
},
{
"from": "human",
"value": "Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (position INTEGER, against VARCHAR, drawn VARCHAR)"
},
{
"from": "human",
"value": "Which Position has an Against smaller than 49, and a Drawn of 4?"
},
{
"from": "gpt",
"value": "SELECT MAX(position) FROM table_name_16 WHERE a... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (played INTEGER, position VARCHAR, drawn VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6?"
},
{
"from": "gpt",
"value": "SELECT MAX(p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (team VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What team played on November 17?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_17 WHERE date = \"november 17\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (comp VARCHAR, ryds VARCHAR)"
},
{
"from": "human",
"value": "What is the comp when the ryds is 2?"
},
{
"from": "gpt",
"value": "SELECT comp FROM table_name_83 WHERE ryds = \"2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (ratt VARCHAR, comp VARCHAR)"
},
{
"from": "human",
"value": "What is the RAtt when the comp is 48?"
},
{
"from": "gpt",
"value": "SELECT ratt FROM table_name_49 WHERE comp = \"48\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (ratt VARCHAR, long VARCHAR)"
},
{
"from": "human",
"value": "What is the RAtt when the long is 73?"
},
{
"from": "gpt",
"value": "SELECT ratt FROM table_name_83 WHERE long = \"73\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (ryds VARCHAR, ratt VARCHAR, comp VARCHAR)"
},
{
"from": "human",
"value": "What is the RYds when the RAtt was 2, and the comp is 41?"
},
{
"from": "gpt",
"value": "SELECT ryds FROM table_name_35 WHERE ratt = \"2\" AND comp = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (long VARCHAR, ryds VARCHAR)"
},
{
"from": "human",
"value": "What is the Long when the ryds is 18?"
},
{
"from": "gpt",
"value": "SELECT long FROM table_name_14 WHERE ryds = \"18\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (ravg VARCHAR, ratt VARCHAR)"
},
{
"from": "human",
"value": "What is the RAvg when the ratt is 3?"
},
{
"from": "gpt",
"value": "SELECT ravg FROM table_name_93 WHERE ratt = \"3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (runner_s__up VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?"
},
{
"from": "gpt",
"value": "SELECT runner_s__up FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "What was the margin of victory when the winning score was –14 (70-68-67=205)?"
},
{
"from": "gpt",
"value": "SELECT margin_of_victory FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (margin_of_victory VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?"
},
{
"from": "gpt",
"value": "SELECT margin_of_victory FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (last_title VARCHAR, home_ground_ VARCHAR, a_ VARCHAR)"
},
{
"from": "human",
"value": "When was the last title of the team with a home ground of Sydney cricket ground?"
},
{
"from": "gpt",
"value": "SELECT last_title FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (attendance VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "How many people were in attendance for the game week 15?"
},
{
"from": "gpt",
"value": "SELECT COUNT(attendance) FROM table_name_9 WHERE week = 15"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (attendance INTEGER, opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (attendance INTEGER, date VARCHAR)"
},
{
"from": "human",
"value": "What is the average Attendance for the game on November 1, 1981?"
},
{
"from": "gpt",
"value": "SELECT AVG(attendance) FROM table_name_5 WHERE date = \"november... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (position VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What position is played by the player from the Chicago Cubs?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_8 WHERE team = \"chicago cubs\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (player VARCHAR, position VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the Outfielder that was picked prior to Pick 42?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_63 WHERE positi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)"
},
{
"from": "human",
"value": "What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?"
},
{
"fro... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (semi_finalists VARCHAR, runner_up VARCHAR)"
},
{
"from": "human",
"value": "What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?"
},
{
"from": "gpt",
"value": "SELECT semi_finalists FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (winner VARCHAR, semi_finalists VARCHAR)"
},
{
"from": "human",
"value": "What is the Winner when anke huber chanda rubin was semi finalist?"
},
{
"from": "gpt",
"value": "SELECT winner FROM table_name_31 WHERE semi_finalists =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (tier VARCHAR, runner_up VARCHAR)"
},
{
"from": "human",
"value": "What is the Tier when the runner-up is chanda rubin caroline vis?"
},
{
"from": "gpt",
"value": "SELECT tier FROM table_name_95 WHERE runner_up = \"chanda rubin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (week_of VARCHAR, winner VARCHAR)"
},
{
"from": "human",
"value": "What is the Week when the winner was mary joe fernández 6–4, 7–5?"
},
{
"from": "gpt",
"value": "SELECT week_of FROM table_name_88 WHERE winner = \"mary joe fer... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (runner_up VARCHAR, tier VARCHAR, winner VARCHAR)"
},
{
"from": "human",
"value": "What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?"
},
{
"from": "gpt",
"value": "SE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (week__number VARCHAR, result VARCHAR, theme VARCHAR)"
},
{
"from": "human",
"value": "Which week had safe as the result and Dolly Parton as the theme?"
},
{
"from": "gpt",
"value": "SELECT week__number FROM table_name_42 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (week__number VARCHAR, original_artist VARCHAR, order__number VARCHAR)"
},
{
"from": "human",
"value": "On which week was the beatles the original artist and the order # smaller than 10?"
},
{
"from": "gpt",
"value": "SELECT we... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (original_artist VARCHAR, order__number VARCHAR)"
},
{
"from": "human",
"value": "Which original artist had 5 as their order #?"
},
{
"from": "gpt",
"value": "SELECT original_artist FROM table_name_89 WHERE order__number = 5"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (nominee VARCHAR, category VARCHAR)"
},
{
"from": "human",
"value": "Which nominee was nominated in the Outstanding Director of a Musical category?"
},
{
"from": "gpt",
"value": "SELECT nominee FROM table_name_17 WHERE category... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (result VARCHAR, nominee VARCHAR)"
},
{
"from": "human",
"value": "What is the result for Brent Spiner?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_46 WHERE nominee = \"brent spiner\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (games INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "What is the number of games for Shaun Stonerook?"
},
{
"from": "gpt",
"value": "SELECT MIN(games) FROM table_name_86 WHERE name = \"shaun stonerook\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (total INTEGER, bronze VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?"
},
{
"from": "gpt",
"value": "SE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (week INTEGER, attendance VARCHAR)"
},
{
"from": "human",
"value": "Total weeks of 49,980 attendance?"
},
{
"from": "gpt",
"value": "SELECT SUM(week) FROM table_name_55 WHERE attendance = 49 OFFSET 980"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (attendance INTEGER, date VARCHAR)"
},
{
"from": "human",
"value": "Mean attendance for December 22, 1980?"
},
{
"from": "gpt",
"value": "SELECT AVG(attendance) FROM table_name_91 WHERE date = \"december 22, 1980\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (attendance VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Overall attendance for week 4?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_63 WHERE week = 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (Id VARCHAR)"
},
{
"from": "human",
"value": "What was in 2007 that has a 3r of 1999?"
},
{
"from": "gpt",
"value": "SELECT 2007 FROM table_name_10 WHERE 1999 = \"3r\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (Id VARCHAR)"
},
{
"from": "human",
"value": "What was in 2007 that is from 2004 0f 2r and 2010 of A?"
},
{
"from": "gpt",
"value": "SELECT 2007 FROM table_name_73 WHERE 2004 = \"2r\" AND 2010 = \"a\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is in 2001, that has the year 2006, 2r, and in 2010 an A?"
},
{
"from": "gpt",
"value": "SELECT 2001 FROM table_name_71 WHERE 2006 = \"2r\" AND 2010 = \"a\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (award VARCHAR, year VARCHAR, category VARCHAR)"
},
{
"from": "human",
"value": "Who was awarded after 1947 in the category of, the best actor in a leading role?"
},
{
"from": "gpt",
"value": "SELECT award FROM table_name_90 WH... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.