conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)"
},
{
"from": "human",
"value": "Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?"
},
{
"from": "gpt",
"value": "SELECT county FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (location VARCHAR, mascot VARCHAR)"
},
{
"from": "human",
"value": "Which Location has a Mascot of tigers?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_34 WHERE mascot = \"tigers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR)"
},
{
"from": "human",
"value": "What's the most overall when the executive appointments were 28 and the background was smaller than 37?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the record at the game with a score of 21-16?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_77 WHERE score = \"21-16\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent at the game with a score of 42-28 after week 4?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_91 WHERE week ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (result VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "what is the result when the opponent is at dallas cowboys?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_12 WHERE opponent = \"at dallas cowboys... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "what is the enrollement for the year joined 1958 in clarksville?"
},
{
"from": "gpt",
"value": "SELECT SUM(enrollment) FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (_number___county VARCHAR, mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)"
},
{
"from": "human",
"value": "what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (country_of_release VARCHAR, year_of_release VARCHAR)"
},
{
"from": "human",
"value": "Where was the title released in 1977?"
},
{
"from": "gpt",
"value": "SELECT country_of_release FROM table_name_98 WHERE year_of_release = 19... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR)"
},
{
"from": "human",
"value": "What was the last year MCA had a Release?"
},
{
"from": "gpt",
"value": "SELECT MAX(year_of_release) FROM table_name_40 WHERE label = \"mca\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (pick INTEGER, team VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest pick for the Buffalo Bills?"
},
{
"from": "gpt",
"value": "SELECT MIN(pick) FROM table_name_60 WHERE team = \"buffalo bills\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "Which player played for the Boston Patriots?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_61 WHERE team = \"boston patriots\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "How much Attendance has a Result of 2–4, and a Visitor of brynäs if?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM table_name_1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (result VARCHAR, round INTEGER)"
},
{
"from": "human",
"value": "Which Result has a Round larger than 17?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_37 WHERE round > 17"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR)"
},
{
"from": "human",
"value": "What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (event VARCHAR, year VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What event was in a year later than 2007 and in the 88th position?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_66 WHERE year > 200... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (notes VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What are the notes for 2005?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_36 WHERE year = 2005"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (owner VARCHAR, call_sign VARCHAR)"
},
{
"from": "human",
"value": "Who is the owner of CKLF-FM?"
},
{
"from": "gpt",
"value": "SELECT owner FROM table_name_78 WHERE call_sign = \"cklf-fm\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR)"
},
{
"from": "human",
"value": "What frequency is First Nations Community?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_78 WHERE format = \"first nations community\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (format VARCHAR, branding VARCHAR)"
},
{
"from": "human",
"value": "What format is CBC Radio 2?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_84 WHERE branding = \"cbc radio 2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR)"
},
{
"from": "human",
"value": "Who owns CKSB-8-FM?"
},
{
"from": "gpt",
"value": "SELECT owner FROM table_name_72 WHERE call_sign = \"cksb-8-fm\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR)"
},
{
"from": "human",
"value": "What format is Première Chaîne?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_44 WHERE branding = \"première chaîne\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (year INTEGER, result VARCHAR, nation VARCHAR, championship VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What year was olympics, Canada and the Men's Eight Event ended with a silver medal?"
},
{
"from": "gpt",
"valu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (event VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What event was in 2006?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_2 WHERE year = 2006"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (championship VARCHAR, result VARCHAR, nation VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What championship was in the USA after 1994, and resulted in 5th place?"
},
{
"from": "gpt",
"value": "SELECT championship FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What year did Canada get a silver in the olympics in the Men's Coxless Pair event?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (location VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Where is the lacrosse school located?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_98 WHERE school = \"lacrosse\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR)"
},
{
"from": "human",
"value": "Which IHSAA Class has a Mascot of tigers?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_class FROM table_name_32 WHERE mascot = \"tigers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER)"
},
{
"from": "human",
"value": "Which Location has an Enrollment larger than 543?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_62 WHERE enrollment > 543"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (county VARCHAR, enrollment VARCHAR)"
},
{
"from": "human",
"value": "Which County has an Enrollment of 297?"
},
{
"from": "gpt",
"value": "SELECT county FROM table_name_16 WHERE enrollment = 297"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR)"
},
{
"from": "human",
"value": "Which School has an Enrollment larger than 264, and a County of 46 la porte?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_52 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What is the number of silver medals when there are more than 1 gold, and more than 6 bronze?"
},
{
"from": "gpt",
"value": "SELECT MIN(silver) FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "What is the total when the Yugoslavia number of silver won is more than 1?"
},
{
"from": "gpt",
"value": "SELECT MAX(total) FROM table_name_32 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER)"
},
{
"from": "human",
"value": "What is the total attendance before week 1?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM table_name_16 WHERE week < 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (release_date VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "When was sniffles and the bookworm released?"
},
{
"from": "gpt",
"value": "SELECT release_date FROM table_name_81 WHERE title = \"sniffles and the bookworm... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (release_date VARCHAR, series VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "When was land of the midnight fun in the mm series released?"
},
{
"from": "gpt",
"value": "SELECT release_date FROM table_name_54 WHERE ser... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR)"
},
{
"from": "human",
"value": "Which series had a release on 1939-07-15 with the 8863 production number?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (director VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "Who directed hamateur night?"
},
{
"from": "gpt",
"value": "SELECT director FROM table_name_2 WHERE title = \"hamateur night\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)"
},
{
"from": "human",
"value": "When was Production Number 9105 released?"
},
{
"from": "gpt",
"value": "SELECT release_date FROM table_name_29 WHERE production_num = \"9105\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (class VARCHAR, frequency VARCHAR)"
},
{
"from": "human",
"value": "What Class has a Frequency of 90.1 FM?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_8 WHERE frequency = \"90.1 fm\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR)"
},
{
"from": "human",
"value": "What is listed for the RECNet that also has a Frequency of 91.1 FM?"
},
{
"from": "gpt",
"value": "SELECT recnet FROM table_name_51 WHERE frequency = \"91.1 f... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (class VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What Class has the Identifier fo CBFX-FM-2?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_42 WHERE identifier = \"cbfx-fm-2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (recnet VARCHAR, class VARCHAR, city_of_license VARCHAR)"
},
{
"from": "human",
"value": "What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?"
},
{
"from": "gpt",
"value": "SELECT recnet FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What Class has the Identifier of CBFX-FM-6?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_21 WHERE identifier = \"cbfx-fm-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What Frequency has the Identifier of CBFX-FM-6?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_53 WHERE identifier = \"cbfx-fm-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (gold VARCHAR, silver VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of gold with less than 1 silver, from Belgium?"
},
{
"from": "gpt",
"value": "SELECT COUNT(gold) FROM table_name_23 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (lost INTEGER, drawn VARCHAR, points VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT AVG(los... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "How much Position has a Lost of 8, and a Played larger than 14?"
},
{
"from": "gpt",
"value": "SELECT SUM(position) FROM table_name_78 WHERE lost... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which Drawn has a Lost larger than 8, and Points smaller than 7?"
},
{
"from": "gpt",
"value": "SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "How much Drawn has a Name of erc lechbruck, and Points smaller than 17?"
},
{
"from": "gpt",
"value": "SELECT COUNT(drawn) FROM table_name_13 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (town VARCHAR, population_rank VARCHAR, municipality VARCHAR, population__2001_ VARCHAR)"
},
{
"from": "human",
"value": "What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 i... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (county VARCHAR, population_rank VARCHAR)"
},
{
"from": "human",
"value": "What county is the town with a rank of 205 located in?"
},
{
"from": "gpt",
"value": "SELECT county FROM table_name_78 WHERE population_rank = 205"
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR)"
},
{
"from": "human",
"value": "What is the fewest draws for percentages of 5.02%?"
},
{
"from": "gpt",
"value": "SELECT MIN(draw) FROM table_name_95 WHERE percentage = \"5.02%\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What is the position of the player from the denver broncos?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_28 WHERE team = \"denver broncos\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)"
},
{
"from": "human",
"value": "What is the average pick of the kansas city chiefs?"
},
{
"from": "gpt",
"value": "SELECT AVG(pick) FROM table_name_12 WHERE team = \"kansas city chiefs\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "What is the pick of wiley college?"
},
{
"from": "gpt",
"value": "SELECT pick FROM table_name_70 WHERE college = \"wiley\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance for the game with alfreton town as the home team?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_53 WHERE home_t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (score VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What was the score of the game where stafford rangers was the away team?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_92 WHERE away_team = \"sta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (home_team VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team that has a tie no of 1?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_29 WHERE tie_no = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What is the tie no that has southport as the away team?"
},
{
"from": "gpt",
"value": "SELECT tie_no FROM table_name_28 WHERE away_team = \"southport\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance for the game that had the king's lynn as the home team?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_53 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "What was the score for the game with a tie no of 1?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_56 WHERE tie_no = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the game number on December 21?"
},
{
"from": "gpt",
"value": "SELECT COUNT(game) FROM table_name_53 WHERE date = \"december 21\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (game VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What is the Game with a Record of 19-15?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_71 WHERE record = \"19-15\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (date VARCHAR, game VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the Date of the game against Detroit in game 31 or after?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_59 WHERE game > 31 AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "During which years did the golfer with the total of 289 win?"
},
{
"from": "gpt",
"value": "SELECT year_s__won FROM table_name_42 WHERE total = 289"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (to_par VARCHAR, finish VARCHAR)"
},
{
"from": "human",
"value": "What was the To par for the player who finished t56?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_84 WHERE finish = \"t56\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (country VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "Which county did the player with a total of 294 represent?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_53 WHERE total = 294"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What was the total for united states player phil mickelson?"
},
{
"from": "gpt",
"value": "SELECT MIN(total) FROM table_name_72 WHERE country = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (lane INTEGER, rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "With a less than 4 rank, and a time less than 24.42 what is the smallest lane?"
},
{
"from": "gpt",
"value": "SELECT MIN(lane) FROM table_name_52 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (time INTEGER, nationality VARCHAR, lane VARCHAR)"
},
{
"from": "human",
"value": "The swimmer from the United States in a lane less than 5, had what as the average time?"
},
{
"from": "gpt",
"value": "SELECT AVG(time) FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (nationality VARCHAR, lane INTEGER)"
},
{
"from": "human",
"value": "What nationality is the swimmer that is in the lane that is less than 2?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_3 WHERE lane < 2"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (losses INTEGER, draws INTEGER)"
},
{
"from": "human",
"value": "Which Losses have Draws smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT MAX(losses) FROM table_name_15 WHERE draws < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (losses INTEGER, draws INTEGER)"
},
{
"from": "human",
"value": "Which Losses have Draws larger than 0?"
},
{
"from": "gpt",
"value": "SELECT MAX(losses) FROM table_name_28 WHERE draws > 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (against INTEGER, losses VARCHAR, wimmera_fl VARCHAR)"
},
{
"from": "human",
"value": "How much Against has Losses smaller than 7, and a Wimmera FL of horsham?"
},
{
"from": "gpt",
"value": "SELECT SUM(against) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (draws INTEGER, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR)"
},
{
"from": "human",
"value": "How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (outcome VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the outcome of the match with a score of 3-6, 2-6?"
},
{
"from": "gpt",
"value": "SELECT outcome FROM table_name_52 WHERE score = \"3-6, 2-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (tournament VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What was the tournament that had byron black playing against magnus larsson?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_70 WHERE oppo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (tournament VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What tournament had a game with a score of 6-7, 4-6?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_35 WHERE score = \"6-7, 4-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (result VARCHAR, round VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "what is the result when the round is less than 7 and the opponent is melbourne storm?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "what is the venue when the result is loss and the opponent is st george-illawarra dragons?"
},
{
"from": "gpt",
"value": "SELECT venue FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (silver VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Who won silver in 1982?"
},
{
"from": "gpt",
"value": "SELECT silver FROM table_name_15 WHERE year = 1982"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (time VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the Time of the Rowers in Rank 1?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_7 WHERE rank = 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (time VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the Time of the Rowers from Belgium?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_36 WHERE country = \"belgium\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (time VARCHAR, lane VARCHAR)"
},
{
"from": "human",
"value": "What time does lane 7 have?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_56 WHERE lane = 7"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (employed VARCHAR, position_held VARCHAR)"
},
{
"from": "human",
"value": "What are the years employed shown for mathematics & prefect master?"
},
{
"from": "gpt",
"value": "SELECT employed FROM table_name_74 WHERE position_hel... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (citation VARCHAR, employed VARCHAR)"
},
{
"from": "human",
"value": "What citation is shown for the employed years of 1970–1996?"
},
{
"from": "gpt",
"value": "SELECT citation FROM table_name_6 WHERE employed = \"1970–1996\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (name VARCHAR, employed VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the person employed 1970–2005?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_48 WHERE employed = \"1970–2005\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (time VARCHAR, rank VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the Time of the Rowers from Finland with a Rank of less than 4?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_28 WHERE rank < 4... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (rank INTEGER, time VARCHAR)"
},
{
"from": "human",
"value": "What is the Rank of the Rowers with a Time of 7:30.92?"
},
{
"from": "gpt",
"value": "SELECT SUM(rank) FROM table_name_56 WHERE time = \"7:30.92\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (notes VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What are the Notes of the Country of finland?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_16 WHERE country = \"finland\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Who were the opponents for week 12?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_31 WHERE week = 12"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (polling_institute VARCHAR, lead VARCHAR)"
},
{
"from": "human",
"value": "Which polling institute showed a lead of 6%?"
},
{
"from": "gpt",
"value": "SELECT polling_institute FROM table_name_1 WHERE lead = \"6%\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (date_s__released VARCHAR, democratic_alternative VARCHAR, labour VARCHAR)"
},
{
"from": "human",
"value": "Which date released had a Democratic Alternative value of 1% and Labour of 34%?"
},
{
"from": "gpt",
"value": "SELECT d... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (nationalist VARCHAR, undecided__no_answer VARCHAR)"
},
{
"from": "human",
"value": "What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?"
},
{
"from": "gpt",
"value": "SELECT n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (democratic_alternative VARCHAR, polling_institute VARCHAR)"
},
{
"from": "human",
"value": "What is the value of the Democratic Alternative for the poll released by Malta Today?"
},
{
"from": "gpt",
"value": "SELECT democratic... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (polling_institute VARCHAR, lead VARCHAR, labour VARCHAR)"
},
{
"from": "human",
"value": "Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%?"
},
{
"from": "gpt",
"value": "SELECT polling_inst... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (week INTEGER, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest week that has Minnesota Vikings as the opponent?"
},
{
"from": "gpt",
"value": "SELECT MIN(week) FROM table_name_75 WHERE opponent = \"minneso... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (opponent VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What opponent has December 6, 1964 as the date?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_40 WHERE date = \"december 6, 1964\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (attendance VARCHAR, week VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance of the game on September 18, 1965 before week 3?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_72 WHER... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.