conversations
listlengths
2
2
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Character, 1954 Broadway, 1955 broadcast, 1960 broadcast, 1979 Broadway, 1990 Broadway, 1991 Broadway, 1998 Broadway, 1999 Broadway\n###Question: Who played in the 1990 Broadway after Tom Halloran played the character in the 1955 Broadcast?" }, { "from": "gpt", "value": "SELECT 1990 Broadway FROM table WHERE 1955 broadcast = Tom Halloran" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Character, 1954 Broadway, 1955 broadcast, 1960 broadcast, 1979 Broadway, 1990 Broadway, 1991 Broadway, 1998 Broadway, 1999 Broadway\n###Question: What character did Drake English play in the 1998 Broadway?" }, { "from": "gpt", "value": "SELECT Character FROM table WHERE 1998 Broadway = Drake English" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Broadcast date, BBC One total viewing, BBC One Rank, BBC Two total viewing, BBC Two Rank\n###Question: What date was BBC One total viewing greater then 11616996.338225884?" }, { "from": "gpt", "value": "SELECT Broadcast date FROM table WHERE BBC One total viewing > 11616996.338225884" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Broadcast date, BBC One total viewing, BBC One Rank, BBC Two total viewing, BBC Two Rank\n###Question: How many years did BBC One rank 20th?" }, { "from": "gpt", "value": "SELECT COUNT Year FROM table WHERE BBC One Rank = 20th" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Broadcast date, BBC One total viewing, BBC One Rank, BBC Two total viewing, BBC Two Rank\n###Question: What year was the BBC two total viewing 7,530,000?" }, { "from": "gpt", "value": "SELECT MIN Year FROM table WHERE BBC Two total viewing = 7,530,000" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: ↓ Function / Genus →, Shigella, Salmonella, Yersinia, Escherichia\n###Question: how many ↓ function / genus → with escherichia being espd" }, { "from": "gpt", "value": "SELECT COUNT ↓ Function / Genus → FROM table WHERE Escherichia = EspD" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: ↓ Function / Genus →, Shigella, Salmonella, Yersinia, Escherichia\n###Question: what's the salmonella with escherichia being espd" }, { "from": "gpt", "value": "SELECT Salmonella FROM table WHERE Escherichia = EspD" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: ↓ Function / Genus →, Shigella, Salmonella, Yersinia, Escherichia\n###Question: what's the ↓ function / genus → with shigella being spa32" }, { "from": "gpt", "value": "SELECT ↓ Function / Genus → FROM table WHERE Shigella = Spa32" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: ↓ Function / Genus →, Shigella, Salmonella, Yersinia, Escherichia\n###Question: what's the salmonella with shigella being ipgc" }, { "from": "gpt", "value": "SELECT Salmonella FROM table WHERE Shigella = IpgC" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: ↓ Function / Genus →, Shigella, Salmonella, Yersinia, Escherichia\n###Question: what's the salmonella with escherichia being sepb (escn)" }, { "from": "gpt", "value": "SELECT Salmonella FROM table WHERE Escherichia = SepB (EscN)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: ↓ Function / Genus →, Shigella, Salmonella, Yersinia, Escherichia\n###Question: what's the shigella with yersinia being yscp" }, { "from": "gpt", "value": "SELECT Shigella FROM table WHERE Yersinia = YscP" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year (Ceremony), Film title used in nomination, Original title, Director, Result\n###Question: How many original titles did Marriage Italian-Style have? " }, { "from": "gpt", "value": "SELECT COUNT Original title FROM table WHERE Film title used in nomination = Marriage Italian-Style" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year (Ceremony), Film title used in nomination, Original title, Director, Result\n###Question: What year was a movie with the original title La Leggenda del Santo Bevitore submitted?" }, { "from": "gpt", "value": "SELECT Year (Ceremony) FROM table WHERE Original title = La leggenda del santo bevitore" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Camp, Estimated deaths, Operational, Occupied territory, Current country of location, Primary means for mass killings\n###Question: what's the camp with estimated deaths of 600,000" }, { "from": "gpt", "value": "SELECT Camp FROM table WHERE Estimated deaths = 600,000" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Camp, Estimated deaths, Operational, Occupied territory, Current country of location, Primary means for mass killings\n###Question: what's the operational period with camp  sajmište" }, { "from": "gpt", "value": "SELECT Operational FROM table WHERE Camp = Sajmište" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Camp, Estimated deaths, Operational, Occupied territory, Current country of location, Primary means for mass killings\n###Question: what's the estimated deaths with operational period of 17 march 1942 – end of june 1943" }, { "from": "gpt", "value": "SELECT Estimated deaths FROM table WHERE Operational = 17 March 1942 – end of June 1943" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Camp, Estimated deaths, Operational, Occupied territory, Current country of location, Primary means for mass killings\n###Question: what's the current country of location with operational period  of summer of 1941 to 28 june 1944" }, { "from": "gpt", "value": "SELECT Current country of location FROM table WHERE Operational = Summer of 1941 to 28 June 1944" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Camp, Estimated deaths, Operational, Occupied territory, Current country of location, Primary means for mass killings\n###Question: what's the occupied territory with estimated deaths of 600,000" }, { "from": "gpt", "value": "SELECT Occupied territory FROM table WHERE Estimated deaths = 600,000" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Camp, Estimated deaths, Operational, Occupied territory, Current country of location, Primary means for mass killings\n###Question: what's the occupied territory with operational period of may 1940 – january 1945" }, { "from": "gpt", "value": "SELECT Occupied territory FROM table WHERE Operational = May 1940 – January 1945" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Which overall pick was traded to the Cleveland Browns?" }, { "from": "gpt", "value": "SELECT Overall FROM table WHERE College = Traded to the Cleveland Browns" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Overall pick 240 was a pick in which round?" }, { "from": "gpt", "value": "SELECT Round FROM table WHERE Overall = 240" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Which overall pick number went to college at Youngstown State?" }, { "from": "gpt", "value": "SELECT MIN Overall FROM table WHERE College = Youngstown State" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What position is played by pick 255 overall?" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE Overall = 255" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Which player was chosen in round 17?" }, { "from": "gpt", "value": "SELECT Player name FROM table WHERE Round = 17" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Game, Date, Opponent, Result, Vikings points, Opponents, Record, Attendance\n###Question: The record of 7-3 had the largest attendance of what?" }, { "from": "gpt", "value": "SELECT MAX Attendance FROM table WHERE Record = 7-3" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Game, Date, Opponent, Result, Vikings points, Opponents, Record, Attendance\n###Question: The record of 9-4 was against which opponent?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Record = 9-4" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Game, Date, Opponent, Result, Vikings points, Opponents, Record, Attendance\n###Question: The game number of 8 had a record of what?" }, { "from": "gpt", "value": "SELECT Record FROM table WHERE Game = 8" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What round was Steve Stonebreaker drafted?" }, { "from": "gpt", "value": "SELECT MAX Round FROM table WHERE Player name = Steve Stonebreaker" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Who was the top picki n the draft?" }, { "from": "gpt", "value": "SELECT MIN Choice FROM table" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What round was Bill Hill drafted?" }, { "from": "gpt", "value": "SELECT Choice FROM table WHERE Player name = Bill Hill" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What was the name of the quarterback drafted?" }, { "from": "gpt", "value": "SELECT Player name FROM table WHERE Position = Quarterback" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Where is the college where Keith Hartwig plays?" }, { "from": "gpt", "value": "SELECT College FROM table WHERE Player name = Keith Hartwig" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What is the name of the linebacker at Illinois college?" }, { "from": "gpt", "value": "SELECT Player name FROM table WHERE Position = Linebacker AND College = Illinois" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What is the greatest round of overall 83?" }, { "from": "gpt", "value": "SELECT MAX Round FROM table WHERE Overall = 83" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Which round did Tommy Kramer play in>" }, { "from": "gpt", "value": "SELECT Round FROM table WHERE Player name = Tommy Kramer" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What is Rice's collage score?" }, { "from": "gpt", "value": "SELECT Overall FROM table WHERE College = Rice" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Where does the defensive back position appear first?" }, { "from": "gpt", "value": "SELECT MIN Round FROM table WHERE Position = Defensive Back" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What is Bruce Cerone overall?" }, { "from": "gpt", "value": "SELECT MIN Overall FROM table WHERE Player name = Bruce Cerone" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: Which player went to Emporia State?" }, { "from": "gpt", "value": "SELECT Player name FROM table WHERE College = Emporia State" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What is the highest choice?" }, { "from": "gpt", "value": "SELECT MAX Choice FROM table" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Round, Choice, Overall, Player name, Position, College\n###Question: What college did Bill Cappleman go to?" }, { "from": "gpt", "value": "SELECT College FROM table WHERE Player name = Bill Cappleman" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Headstamp ID, Primer Annulus Color, Bullet Tip Color, Other Features, Functional Type\n###Question: For the headstamp id of h2, what was the color of the bullet tip?" }, { "from": "gpt", "value": "SELECT Bullet Tip Color FROM table WHERE Headstamp ID = H2" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Headstamp ID, Primer Annulus Color, Bullet Tip Color, Other Features, Functional Type\n###Question: For the functional type of light ball, what were the other features?" }, { "from": "gpt", "value": "SELECT Other Features FROM table WHERE Functional Type = Light Ball" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Headstamp ID, Primer Annulus Color, Bullet Tip Color, Other Features, Functional Type\n###Question: How many primers annulus colors were there when the color of the bullet tip was white?" }, { "from": "gpt", "value": "SELECT COUNT Primer Annulus Color FROM table WHERE Bullet Tip Color = White" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Headstamp ID, Primer Annulus Color, Bullet Tip Color, Other Features, Functional Type\n###Question: How many bullet tips colors had other features of a blue band on case base?" }, { "from": "gpt", "value": "SELECT COUNT Bullet Tip Color FROM table WHERE Other Features = Blue band on case base" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Games, Games started, Completions, Attempts, Completion %, Yards, Yards/Attempt, Touchdowns, Interceptions, Rating\n###Question: How many touchdowns were scored in the year with a completion percentage of 56.0?" }, { "from": "gpt", "value": "SELECT MIN Touchdowns FROM table WHERE Completion % = 56.0" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Games, Games started, Completions, Attempts, Completion %, Yards, Yards/Attempt, Touchdowns, Interceptions, Rating\n###Question: What number of completions are recorded for the year with 12 games started?" }, { "from": "gpt", "value": "SELECT Completions FROM table WHERE Games started = 12" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Games, Games started, Completions, Attempts, Completion %, Yards, Yards/Attempt, Touchdowns, Interceptions, Rating\n###Question: How many years were there with 348 attempts?" }, { "from": "gpt", "value": "SELECT COUNT Yards FROM table WHERE Attempts = 348" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Character, Australia & New Zealand (Sydney - first run, Melbourne, Auckland), London, Toronto / Broadway, Brazil, UK Tour, US Tour, Italy (Milan, Rome, Trieste)\n###Question: How many characters is by Babs Rubenstein?" }, { "from": "gpt", "value": "SELECT COUNT London FROM table WHERE US Tour = Babs Rubenstein" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Character, Australia & New Zealand (Sydney - first run, Melbourne, Auckland), London, Toronto / Broadway, Brazil, UK Tour, US Tour, Italy (Milan, Rome, Trieste)\n###Question: Which person is in the tronto/broadway and has a uk tour of n/a" }, { "from": "gpt", "value": "SELECT Toronto / Broadway FROM table WHERE UK Tour = n/a" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Character, Australia & New Zealand (Sydney - first run, Melbourne, Auckland), London, Toronto / Broadway, Brazil, UK Tour, US Tour, Italy (Milan, Rome, Trieste)\n###Question: How many people play Frank in London?" }, { "from": "gpt", "value": "SELECT COUNT London FROM table WHERE Character = Frank" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School Year, Class A, Class AA, Class AAA, Class AAAA, Class AAAAA\n###Question: Who was Class AAA during the school year of 2000-01?" }, { "from": "gpt", "value": "SELECT Class AAA FROM table WHERE School Year = 2000-01" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School Year, Class A, Class AA, Class AAA, Class AAAA, Class AAAAA\n###Question: Who was Class AAA during the same year that Class A was (tie) Apple Springs/Texline?" }, { "from": "gpt", "value": "SELECT Class AAA FROM table WHERE Class A = (tie) Apple Springs/Texline" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School Year, Class A, Class AA, Class AAA, Class AAAA, Class AAAAA\n###Question: Who was Class AAAAA during the school year of 1995-96?" }, { "from": "gpt", "value": "SELECT Class AAAAA FROM table WHERE School Year = 1995-96" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School Year, Class A, Class AA, Class AAA, Class AAAA, Class AAAAA\n###Question: Who was Class AAA during the same year that Class AAAAA was Brownsville Pace?" }, { "from": "gpt", "value": "SELECT Class AAA FROM table WHERE Class AAAAA = Brownsville Pace" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School Year, Class A, Class AA, Class AAA, Class AAAA, Class AAAAA\n###Question: What was the total number of Class AAA during the same year that Class AAA was White Oak?" }, { "from": "gpt", "value": "SELECT COUNT Class AA FROM table WHERE Class AAA = White Oak" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Kickoff, Opponent, Final score, Team record, Game site, Attendance\n###Question: How many records are listed on Friday, May 25?" }, { "from": "gpt", "value": "SELECT COUNT Team record FROM table WHERE Date = Friday, May 25" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Kickoff, Opponent, Final score, Team record, Game site, Attendance\n###Question: How many opponents were played on Saturday, June 9?" }, { "from": "gpt", "value": "SELECT COUNT Opponent FROM table WHERE Date = Saturday, June 9" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Kickoff, Opponent, Final score, Team record, Game site, Attendance\n###Question: In what week was the first game played at the Commerzbank-Arena?" }, { "from": "gpt", "value": "SELECT MIN Week FROM table WHERE Game site = Commerzbank-Arena" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Setting, Directed by, Written by, U.S. viewers (million), Original air date\n###Question: What was the original air date of an episode set in 1544?" }, { "from": "gpt", "value": "SELECT Original air date FROM table WHERE Setting = 1544" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Setting, Directed by, Written by, U.S. viewers (million), Original air date\n###Question: How many settings where there for episode 29 of the season?" }, { "from": "gpt", "value": "SELECT COUNT Setting FROM table WHERE No. in series = 29" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Setting, Directed by, Written by, U.S. viewers (million), Original air date\n###Question: Who wrote the episode that was set in winter 1541/february 13, 1542?" }, { "from": "gpt", "value": "SELECT Written by FROM table WHERE Setting = Winter 1541/February 13, 1542" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Setting, Directed by, Written by, Original air date\n###Question: What episode number of the season was \"The Northern Uprising\"?" }, { "from": "gpt", "value": "SELECT No. in season FROM table WHERE Title = \"The Northern Uprising\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Album name, Track, Track title, Lyricist, Music genre/style, Major instrument(s), Lyrics theme/style, Duration\n###Question: What is the name of the track that lasts 5:30?" }, { "from": "gpt", "value": "SELECT Track title FROM table WHERE Duration = 5:30" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Album name, Track, Track title, Lyricist, Music genre/style, Major instrument(s), Lyrics theme/style, Duration\n###Question: What is the album namethat has the track title Sweetness 甜甜的 (tián tián de)?" }, { "from": "gpt", "value": "SELECT Album name FROM table WHERE Track title = Sweetness 甜甜的 (Tián tián de)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Album name, Track, Track title, Lyricist, Music genre/style, Major instrument(s), Lyrics theme/style, Duration\n###Question: What is the duration of the song where the major instrument is the piano and the date is 2004-02-03?" }, { "from": "gpt", "value": "SELECT Duration FROM table WHERE Major instrument(s) = Piano AND Date = 2004-02-03" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Album name, Track, Track title, Lyricist, Music genre/style, Major instrument(s), Lyrics theme/style, Duration\n###Question: What is the total number of lyricist where the lyrics theme is romance and the song lasts 3:50?" }, { "from": "gpt", "value": "SELECT COUNT Lyricist FROM table WHERE Lyrics theme/style = Romance AND Duration = 3:50" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Album name, Track, Track title, Lyricist, Music genre/style, Major instrument(s), Lyrics theme/style, Duration\n###Question: What is the major instrument of the song that lasts 4:32? " }, { "from": "gpt", "value": "SELECT Major instrument(s) FROM table WHERE Duration = 4:32" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Album name, Track, Track title, Lyricist, Music genre/style, Major instrument(s), Lyrics theme/style, Duration\n###Question: What is the total number of music genre/style in which the lyrics are a detective story?" }, { "from": "gpt", "value": "SELECT COUNT Music genre/style FROM table WHERE Lyrics theme/style = Detective story" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: What is the playoffs for the usl pro select league?" }, { "from": "gpt", "value": "SELECT Playoffs FROM table WHERE League = USL Pro Select League" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: What is the number of the division for the 1st round?" }, { "from": "gpt", "value": "SELECT COUNT Division FROM table WHERE Open Cup = 1st Round" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Series, Team, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What was the team where series is formula renault 2.0 nec?" }, { "from": "gpt", "value": "SELECT Team FROM table WHERE Series = Formula Renault 2.0 NEC" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Series, Team, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What is the total number of poles for arden international?" }, { "from": "gpt", "value": "SELECT COUNT Poles FROM table WHERE Team = Arden International" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Series, Team, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What is the number of wins for gp2 series for racing engineering?" }, { "from": "gpt", "value": "SELECT COUNT Wins FROM table WHERE Series = GP2 Series AND Team = Racing Engineering" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Series, Team, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What is the number of podiums for season 2010 for campionato italiano superstars." }, { "from": "gpt", "value": "SELECT COUNT Podiums FROM table WHERE Season = 2010 AND Series = Campionato Italiano Superstars" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Series, Team, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What is the podium for 144 points?" }, { "from": "gpt", "value": "SELECT Podiums FROM table WHERE Points = 144" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: How many writers had an US air date of september 25, 1993?" }, { "from": "gpt", "value": "SELECT COUNT Writer FROM table WHERE US air date = September 25, 1993" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: How many villians were in No. 25?" }, { "from": "gpt", "value": "SELECT COUNT Villains FROM table WHERE No. = 25" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: what being the maximum year where regular season is 4th, northwest" }, { "from": "gpt", "value": "SELECT MAX Year FROM table WHERE Regular Season = 4th, Northwest" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: what is the total number of playoffs where regular season is 6th, southwest" }, { "from": "gpt", "value": "SELECT COUNT Playoffs FROM table WHERE Regular Season = 6th, Southwest" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: what is the maximum division" }, { "from": "gpt", "value": "SELECT MAX Division FROM table" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: what's the league where regular season is 2nd, northwest" }, { "from": "gpt", "value": "SELECT League FROM table WHERE Regular Season = 2nd, Northwest" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Division, League, Regular Season, Playoffs, Open Cup\n###Question: what are all the regular season where year is 2011" }, { "from": "gpt", "value": "SELECT Regular Season FROM table WHERE Year = 2011" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: How many titles have the number 11" }, { "from": "gpt", "value": "SELECT COUNT Title FROM table WHERE # = 11" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: How many have Mrs. briar as a villain" }, { "from": "gpt", "value": "SELECT COUNT No. FROM table WHERE Villains = Mrs. Briar" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: how many have the number 8" }, { "from": "gpt", "value": "SELECT COUNT No. FROM table WHERE # = 8" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: How many have the title \"the tale of the room for rent\"" }, { "from": "gpt", "value": "SELECT COUNT # FROM table WHERE Title = \"The Tale of the Room for Rent\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: What is the name of the episode told by Kiki and directed by Will Dixon?" }, { "from": "gpt", "value": "SELECT Title FROM table WHERE Storyteller = Kiki AND Director = Will Dixon" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who is the storyteller in the episode called \"The Tale of the Jagged Sign\"?" }, { "from": "gpt", "value": "SELECT Storyteller FROM table WHERE Title = \"The Tale of the Jagged Sign\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who wrote Episode #3?" }, { "from": "gpt", "value": "SELECT Writer FROM table WHERE # = 3" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who are the villains in the episode titled \"The Tale of the Forever Game\"?" }, { "from": "gpt", "value": "SELECT Villains FROM table WHERE Title = \"The Tale of The Forever Game\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: How many villains appeared in the episode titled \"The Tale of the Virtual Pets\"?" }, { "from": "gpt", "value": "SELECT COUNT Villains FROM table WHERE Title = \"The Tale of The Virtual Pets\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who are the villains in the episodes where Megan is the storyteller and Lorette LeBlanc is the director?" }, { "from": "gpt", "value": "SELECT Villains FROM table WHERE Storyteller = Megan AND Director = Lorette LeBlanc" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: What is the largest # for an episode that was written by Allison Lea Bingeman?" }, { "from": "gpt", "value": "SELECT MAX # FROM table WHERE Writer = Allison Lea Bingeman" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Sepal length, Sepal width, Petal length, Petal width, Species\n###Question: Name the species when petal width is 2.0 and petal length is 4.9" }, { "from": "gpt", "value": "SELECT Species FROM table WHERE Petal width = 2.0 AND Petal length = 4.9" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Sepal length, Sepal width, Petal length, Petal width, Species\n###Question: Name the sepal width for i.virginica with petal length of 5.1" }, { "from": "gpt", "value": "SELECT Sepal width FROM table WHERE Species = I.virginica AND Petal length = 5.1" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Sepal length, Sepal width, Petal length, Petal width, Species\n###Question: Name the number of species with sepal width of 3.4 and sepal length of 5.4" }, { "from": "gpt", "value": "SELECT COUNT Species FROM table WHERE Sepal width = 3.4 AND Sepal length = 5.4" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Sepal length, Sepal width, Petal length, Petal width, Species\n###Question: Name the sepal length for sepal width of 2.8 and petal length of 5.1" }, { "from": "gpt", "value": "SELECT Sepal length FROM table WHERE Sepal width = 2.8 AND Petal length = 5.1" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Sepal length, Sepal width, Petal length, Petal width, Species\n###Question: Name the sepal width when sepal length is 6.5 and petal width is 2.2" }, { "from": "gpt", "value": "SELECT Sepal width FROM table WHERE Sepal length = 6.5 AND Petal width = 2.2" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Sepal length, Sepal width, Petal length, Petal width, Species\n###Question: Name the sepal lengh when sepal width is 2.9 and petal width 1.3" }, { "from": "gpt", "value": "SELECT Sepal length FROM table WHERE Sepal width = 2.9 AND Petal width = 1.3" } ]