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: Season, Timeslot ( ET ), Season premiere, Season finale, TV season, Rank, Viewers (millions)\n###Question: What is the season year where the rank is 39?"
},
{
"from": "gpt",
"value": "SELECT TV season FROM table WHERE Rank = 39"
}
] |
[
{
"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, Timeslot ( ET ), Season premiere, Season finale, TV season, Rank, Viewers (millions)\n###Question: What is the number of season premieres were 10.17 people watched?"
},
{
"from": "gpt",
"value": "SELECT COUNT Season premiere FROM table WHERE Viewers (millions) = 10.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: Season, Timeslot ( ET ), Season premiere, Season finale, TV season, Rank, Viewers (millions)\n###Question: What is the year of the season that was 12?"
},
{
"from": "gpt",
"value": "SELECT TV season FROM table WHERE Season = 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, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)\n###Question: In 2012 what was the average finish?"
},
{
"from": "gpt",
"value": "SELECT Avg. Finish FROM table WHERE Year = 2012"
}
] |
[
{
"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, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)\n###Question: How many wins happened in 1983?"
},
{
"from": "gpt",
"value": "SELECT MIN Wins FROM table WHERE Year = 1983"
}
] |
[
{
"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, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)\n###Question: How many top tens had an average start of 29.4?"
},
{
"from": "gpt",
"value": "SELECT COUNT Top 10 FROM table WHERE Avg. Start = 29.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: Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)\n###Question: How many poles had an average finish of 19.1?"
},
{
"from": "gpt",
"value": "SELECT MAX Poles FROM table WHERE Avg. Finish = 19.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: Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)\n###Question: How many starts did Hendrick motorsports have?"
},
{
"from": "gpt",
"value": "SELECT MIN Starts FROM table WHERE Team(s) = Hendrick Motorsports"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: NHL players are all centre in Florida panthers."
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE Position = Centre AND NHL team = Florida Panthers"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: NHL team player San Jose Sharks is United States nationally."
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE NHL team = San Jose Sharks AND Nationality = United States"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: All players are position mark polak."
},
{
"from": "gpt",
"value": "SELECT Position FROM table WHERE Player = Mark Polak"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: Position in nhl team centre are all smaller pick than 243.0"
},
{
"from": "gpt",
"value": "SELECT NHL team FROM table WHERE Position = Centre AND Pick < 243.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: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What college/junior/club teams do the players from the St. Louis Blues come from?"
},
{
"from": "gpt",
"value": "SELECT College/junior/club team FROM table WHERE NHL team = St. Louis Blues"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What teams do the players from TPS (Finland) play for?"
},
{
"from": "gpt",
"value": "SELECT NHL team FROM table WHERE College/junior/club team = TPS (Finland)"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What high school team did Doug Nolan play for?"
},
{
"from": "gpt",
"value": "SELECT College/junior/club team FROM table WHERE Player = Doug Nolan"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What club team is Per Gustafsson play for?"
},
{
"from": "gpt",
"value": "SELECT College/junior/club team FROM table WHERE Player = Per Gustafsson"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What is the nationality of Shayne Wright?"
},
{
"from": "gpt",
"value": "SELECT Nationality FROM table WHERE Player = Shayne Wright"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Song, Mobiles, Northern Ireland, Northern England, Scotland, Southern England, Wales, Total\n###Question: How many votes did Southern England cast whilst Northern Ireland cast 3?"
},
{
"from": "gpt",
"value": "SELECT Southern England FROM table WHERE Northern Ireland = 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: Song, Mobiles, Northern Ireland, Northern England, Scotland, Southern England, Wales, Total\n###Question: What was the lowest number of votes Scotland cast?"
},
{
"from": "gpt",
"value": "SELECT MIN Scotland 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: Song, Mobiles, Northern Ireland, Northern England, Scotland, Southern England, Wales, Total\n###Question: What is the total number of votes if Scotland cast 35?"
},
{
"from": "gpt",
"value": "SELECT COUNT Scotland FROM table WHERE Total = 35"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Song, Mobiles, Northern Ireland, Northern England, Scotland, Southern England, Wales, Total\n###Question: How many votes did Northern Ireland cast if the total was 35?"
},
{
"from": "gpt",
"value": "SELECT Northern Ireland FROM table WHERE Total = 35"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Song, Mobiles, Northern Ireland, Northern England, Scotland, Southern England, Wales, Total\n###Question: How many votes did Wales cast when Northern England cast 6?"
},
{
"from": "gpt",
"value": "SELECT MIN Wales FROM table WHERE Northern England = 6"
}
] |
[
{
"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, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)\n###Question: What teams had 9 in the top 5 and 1 wins?"
},
{
"from": "gpt",
"value": "SELECT Team(s) FROM table WHERE Top 5 = 9 AND Wins = 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: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What teams did the player vadim sharifijanov play for?"
},
{
"from": "gpt",
"value": "SELECT College/junior/club team FROM table WHERE Player = Vadim Sharifijanov"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What positions do the hartford whalers nhl team have?"
},
{
"from": "gpt",
"value": "SELECT Position FROM table WHERE NHL team = Hartford Whalers"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What is the smallest pick for the player, brett lindros?"
},
{
"from": "gpt",
"value": "SELECT MIN Pick FROM table WHERE Player = Brett Lindros"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What positions does the college/junior/club team, molot perm (russia) have?"
},
{
"from": "gpt",
"value": "SELECT Position FROM table WHERE College/junior/club team = Molot Perm (Russia)"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: The nhl team new york islanders is what nationality?"
},
{
"from": "gpt",
"value": "SELECT Nationality FROM table WHERE NHL team = New York Islanders"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: District, Vacator, Reason for change, Successor, Date successor seated\n###Question: What is the name of the vacator for district Louisiana 1st?"
},
{
"from": "gpt",
"value": "SELECT Vacator FROM table WHERE District = Louisiana 1st"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Formula, Notation, T c (K), No. of Cu-O planes in unit cell, Crystal structure\n###Question: What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8"
},
{
"from": "gpt",
"value": "SELECT Notation FROM table WHERE Crystal structure = Tetragonal AND Formula = Bi 2 Sr 2 CaCu 2 O 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: Formula, Notation, T c (K), No. of Cu-O planes in unit cell, Crystal structure\n###Question: How many times is the formula tl 2 ba 2 cuo 6?"
},
{
"from": "gpt",
"value": "SELECT No. of Cu-O planes in unit cell FROM table WHERE Formula = Tl 2 Ba 2 CuO 6"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Formula, Notation, T c (K), No. of Cu-O planes in unit cell, Crystal structure\n###Question: What is the crystal structure for the formula yba 2 cu 3 o 7?"
},
{
"from": "gpt",
"value": "SELECT Crystal structure FROM table WHERE Formula = YBa 2 Cu 3 O 7"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Formula, Notation, T c (K), No. of Cu-O planes in unit cell, Crystal structure\n###Question: What is the number for t c (k) when the notation is tl-2212?"
},
{
"from": "gpt",
"value": "SELECT COUNT T c (K) FROM table WHERE Notation = Tl-2212"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: #, City, 1981 Census, 1991 Census, 2001 Census, 2010 Est., Region\n###Question: How many 2010 estimations have been done in the city of Cremona?"
},
{
"from": "gpt",
"value": "SELECT COUNT 2010 Est. FROM table WHERE City = Cremona"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: #, City, 1981 Census, 1991 Census, 2001 Census, 2010 Est., Region\n###Question: What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0?"
},
{
"from": "gpt",
"value": "SELECT MIN 2001 Census FROM table WHERE Region = Abruzzo AND 1981 Census > 51092.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: #, City, 1981 Census, 1991 Census, 2001 Census, 2010 Est., Region\n###Question: What's the 1991 census of the city of Carpi?"
},
{
"from": "gpt",
"value": "SELECT MAX 1991 Census FROM table WHERE City = Carpi"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: #, City, 1981 Census, 1991 Census, 2001 Census, 2010 Est., Region\n###Question: How many 2001 censuses are there on number 13?"
},
{
"from": "gpt",
"value": "SELECT COUNT 2001 Census FROM table WHERE # = 13"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: #, City, 1981 Census, 1991 Census, 2001 Census, 2010 Est., Region\n###Question: What's the 1981 census of Livorno?"
},
{
"from": "gpt",
"value": "SELECT 1981 Census FROM table WHERE City = Livorno"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: Which NHL team has player Mike Loach?"
},
{
"from": "gpt",
"value": "SELECT NHL team FROM table WHERE Player = Mike Loach"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What is the NHL team that has Peter Strom?"
},
{
"from": "gpt",
"value": "SELECT NHL team FROM table WHERE Player = Peter Strom"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: What team is Keith Mccambridge on?"
},
{
"from": "gpt",
"value": "SELECT College/junior/club team FROM table WHERE Player = Keith McCambridge"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick, Player, Position, Nationality, NHL team, College/junior/club team\n###Question: How many nationalities are the pick 193?"
},
{
"from": "gpt",
"value": "SELECT COUNT Nationality FROM table WHERE Pick = 193"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State (class), Vacator, Reason for change, Successor, Date of successors formal installation\n###Question: Who was the succesor that was formally installed on November 8, 1978?"
},
{
"from": "gpt",
"value": "SELECT Successor FROM table WHERE Date of successors formal installation = November 8, 1978"
}
] |
[
{
"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, Dance/song, Horwood, Goodman, Dixon, Tonioli, Total, Result\n###Question: How many songs received a 10 from Goodman and were rated by Tonioli?"
},
{
"from": "gpt",
"value": "SELECT COUNT Tonioli FROM table WHERE Goodman = 10"
}
] |
[
{
"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, Dance/song, Horwood, Goodman, Dixon, Tonioli, Total, Result\n###Question: What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?"
},
{
"from": "gpt",
"value": "SELECT Goodman FROM table WHERE Total = 31 AND Horwood = 7 AND Result = Safe"
}
] |
[
{
"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, Dance/song, Horwood, Goodman, Dixon, Tonioli, Total, Result\n###Question: What score did Dixon give to the song \"samba / young hearts run free\", which was in second place?"
},
{
"from": "gpt",
"value": "SELECT Dixon FROM table WHERE Dance/song = Samba / Young Hearts Run Free AND Result = Second place"
}
] |
[
{
"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, Dance/song, Horwood, Goodman, Dixon, Tonioli, Total, Result\n###Question: How many scores did Goodman give to \"samba / young hearts run free\", which was in second place?"
},
{
"from": "gpt",
"value": "SELECT COUNT Goodman FROM table WHERE Result = Second place AND Dance/song = Samba / Young Hearts Run Free"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Class, Operator, No. Built, Year Built, Cars per Set, Unit nos.\n###Question: What year was number 7 built?"
},
{
"from": "gpt",
"value": "SELECT Year Built FROM table WHERE No. Built = 7"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Case/Suffix, we two, you and I, you two, them two (the two), who-two\n###Question: What is we two when the case/suffix is loc.?"
},
{
"from": "gpt",
"value": "SELECT we two FROM table WHERE Case/Suffix = loc."
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Case/Suffix, we two, you and I, you two, them two (the two), who-two\n###Question: What is them two (the two) when we two is ngalbelpa?"
},
{
"from": "gpt",
"value": "SELECT them two (the two) FROM table WHERE we two = ngalbelpa"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Case/Suffix, we two, you and I, you two, them two (the two), who-two\n###Question: What is them two (the two) when you and i is ngœbalngu?"
},
{
"from": "gpt",
"value": "SELECT them two (the two) FROM table WHERE you and I = ngœbalngu"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Case/Suffix, we two, you and I, you two, them two (the two), who-two\n###Question: What is who-two where you and i is ngœban?"
},
{
"from": "gpt",
"value": "SELECT who-two FROM table WHERE you and I = ngœban"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Case/Suffix, we two, you and I, you two, them two (the two), who-two\n###Question: What is we two where you two is ngipen?"
},
{
"from": "gpt",
"value": "SELECT we two FROM table WHERE you two = ngipen"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Case/Suffix, we two, you and I, you two, them two (the two), who-two\n###Question: What is who-two when you two is ngipelngu?"
},
{
"from": "gpt",
"value": "SELECT who-two FROM table WHERE you two = ngipelngu"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Position, Driver, Points, Winnings, Series\n###Question: what's the points with driver mark martin"
},
{
"from": "gpt",
"value": "SELECT Points FROM table WHERE Driver = Mark Martin"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Position, Driver, Points, Winnings, Series\n###Question: what's the points with driver rusty wallace"
},
{
"from": "gpt",
"value": "SELECT Points FROM table WHERE Driver = Rusty Wallace"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Position, Driver, Points, Winnings, Series\n###Question: what's the total number of position with driver robby gordon"
},
{
"from": "gpt",
"value": "SELECT COUNT Position FROM table WHERE Driver = Robby Gordon"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Position, Driver, Points, Winnings, Series\n###Question: what's the maximum position with winnings $50,000"
},
{
"from": "gpt",
"value": "SELECT MAX Position FROM table WHERE Winnings = $50,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: Nomination, Actors Name, Film Name, Director, Country\n###Question: What actor was nominted for an award in the film Anastasiya Slutskaya?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Film Name = Anastasiya Slutskaya"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What was the film Falling up nominated for?"
},
{
"from": "gpt",
"value": "SELECT Nomination FROM table WHERE Film Name = Falling Up"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Film Name = Chopin: Desire for Love AND Nomination = Best Actress in a Leading Role"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Film Name = Chopin: Desire for Love AND Nomination = Best Actress in a Leading Role"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Which films does the actor Alla Sergiyko star in?"
},
{
"from": "gpt",
"value": "SELECT Film Name FROM table WHERE Actors Name = Alla Sergiyko"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Which nominations was the film 27 Stolen Kisses nominated for?"
},
{
"from": "gpt",
"value": "SELECT Nomination FROM table WHERE Film Name = 27 Stolen Kisses"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Which actor from Serbia was nominated for best actor in a supporting role?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Nomination = Best Actor in a Supporting Role AND Country = Serbia"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Vsevolod Shilovskiy is from what country?"
},
{
"from": "gpt",
"value": "SELECT Country FROM table WHERE Actors Name = Vsevolod Shilovskiy"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Which nominations are connected to the film Totalitarian Romance?"
},
{
"from": "gpt",
"value": "SELECT Nomination FROM table WHERE Film Name = Totalitarian Romance"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Srdjan Dragojevic worked on a film which earned what nomination?"
},
{
"from": "gpt",
"value": "SELECT Nomination FROM table WHERE Director = Srdjan Dragojevic"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: Which actors are from Ukraine?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Country = Ukraine"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What was the film that vadim ilyenko directed?"
},
{
"from": "gpt",
"value": "SELECT Film Name FROM table WHERE Director = Vadim Ilyenko"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What was the actors name that vadim ilyenko directed?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Director = Vadim Ilyenko"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What was the actors name for fuchzhou and nomination was best non-professional actor?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Film Name = Fuchzhou AND Nomination = Best Non-Professional Actor"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What film did michaylo ilyenko make with best actor in a supporting role?"
},
{
"from": "gpt",
"value": "SELECT Film Name FROM table WHERE Director = Michaylo Ilyenko AND Nomination = Best Actor in a Supporting Role"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What was the actor's name for best debut?"
},
{
"from": "gpt",
"value": "SELECT Actors Name FROM table WHERE Nomination = Best Debut"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Nomination, Actors Name, Film Name, Director, Country\n###Question: What was the number of nominations for natalia raskokoha?"
},
{
"from": "gpt",
"value": "SELECT COUNT Nomination FROM table WHERE Actors Name = Natalia Raskokoha"
}
] |
[
{
"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, Division, League Apps, League Goals, FA Cup Apps, FA Cup Goals, Total Apps, Total Goals\n###Question: What is the highest value of Total Goals?"
},
{
"from": "gpt",
"value": "SELECT MAX Total Goals 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: Season, Division, League Apps, League Goals, FA Cup Apps, FA Cup Goals, Total Apps, Total Goals\n###Question: When FA Cup Apps is 9 what is the smallest number of FA Cup Goals?"
},
{
"from": "gpt",
"value": "SELECT MIN FA Cup Goals FROM table WHERE FA Cup Apps = 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: Season, Division, League Apps, League Goals, FA Cup Apps, FA Cup Goals, Total Apps, Total Goals\n###Question: What is the smallest number of Total Goals?"
},
{
"from": "gpt",
"value": "SELECT MIN Total Goals 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, Circuit, Date, Pole Position, Fastest Lap, Winning Driver, Winning Team\n###Question: What circuit was the race where Hideki Mutoh had the fastest lap?"
},
{
"from": "gpt",
"value": "SELECT Circuit FROM table WHERE Fastest Lap = Hideki Mutoh"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Episode #, Production code, Title, Directed by, Written by, Airdate\n###Question: what is the minimum production code with title \"foreign exchange problem / turn about\""
},
{
"from": "gpt",
"value": "SELECT MIN Production code FROM table WHERE Title = \"Foreign Exchange Problem / Turn About\""
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Episode #, Production code, Title, Directed by, Written by, Airdate\n###Question: what is the episode # for title \"the yindianapolis 500 / personality problem\""
},
{
"from": "gpt",
"value": "SELECT Episode # FROM table WHERE Title = \"The Yindianapolis 500 / Personality Problem\""
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Episode #, Production code, Title, Directed by, Written by, Airdate\n###Question: what is the episode # for production code 227"
},
{
"from": "gpt",
"value": "SELECT Episode # FROM table WHERE Production code = 227"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Episode #, Production code, Title, Directed by, Written by, Airdate\n###Question: who directed the movie written by is sib ventress / aydrea ten bosch"
},
{
"from": "gpt",
"value": "SELECT Directed by FROM table WHERE Written by = Sib Ventress / Aydrea ten Bosch"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Episode #, Production code, Title, Directed by, Written by, Airdate\n###Question: what is the production code with title \"skirting the issue / moon over my yinnie\""
},
{
"from": "gpt",
"value": "SELECT Production code FROM table WHERE Title = \"Skirting the Issue / Moon Over my Yinnie\""
}
] |
[
{
"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, Division, League Apps, League Goals, FA Cup Apps, FA Cup Goals, Total Apps, Total Goals\n###Question: Whatis the number of total goals maximum?"
},
{
"from": "gpt",
"value": "SELECT MAX Total Goals 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: Assembly Type, Adhesive Type, Time(Sec), Temp (°C), Pressure\n###Question: HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL? "
},
{
"from": "gpt",
"value": "SELECT COUNT Temp (°C) FROM table WHERE Adhesive Type = Acryl"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Outcome, Year, Championship, Surface, Partner, Opponents, Score\n###Question: How many matches where played with Jim Pugh?"
},
{
"from": "gpt",
"value": "SELECT COUNT Opponents FROM table WHERE Partner = Jim Pugh"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Outcome, Year, Championship, Surface, Partner, Opponents, Score\n###Question: What is the score with partner Jim Pugh?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Partner = Jim Pugh"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Outcome, Year, Championship, Surface, Partner, Opponents, Score\n###Question: How many matched scored 3–6, 7–6(5), 6–3?"
},
{
"from": "gpt",
"value": "SELECT COUNT Surface FROM table WHERE Score = 3–6, 7–6(5), 6–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: Outcome, Year, Championship, Surface, Partner, Opponents, Score\n###Question: What is the score of the match with partner Jim Pugh?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Partner = Jim Pugh"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Outcome, Year, Championship, Surface, Partner, Opponents, Score\n###Question: What year was the championship in Wimbledon (2)?"
},
{
"from": "gpt",
"value": "SELECT Year FROM table WHERE Championship = Wimbledon (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: Outcome, Year, Championship, Surface, Partner, Opponents, Score\n###Question: What is the score of the match with opponents Gretchen Magers Kelly Jones?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Opponents = Gretchen Magers Kelly Jones"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Begin Date, End Date, Representative, Date of birth, House term, State served, Party, Age (years, days)\n###Question: How many birthdays does Earl Hanley Beshlin have?"
},
{
"from": "gpt",
"value": "SELECT COUNT Date of birth FROM table WHERE Representative = Earl Hanley Beshlin"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Begin Date, End Date, Representative, Date of birth, House term, State served, Party, Age (years, days)\n###Question: Which politican party has a birthday of November 10, 1880"
},
{
"from": "gpt",
"value": "SELECT Party FROM table WHERE Date of birth = November 10, 1880"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Begin Date, End Date, Representative, Date of birth, House term, State served, Party, Age (years, days)\n###Question: Which representative has a birthday of January 31, 1866?"
},
{
"from": "gpt",
"value": "SELECT Representative FROM table WHERE Date of birth = January 31, 1866"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Current singles ranking, Current doubles ranking, First year played, Ties played, Total W–L, Singles W–L, Doubles W–L\n###Question: What is the Singles W-L for the players named Laurynas Grigelis?"
},
{
"from": "gpt",
"value": "SELECT Singles W–L FROM table WHERE Player = Laurynas Grigelis"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Current singles ranking, Current doubles ranking, First year played, Ties played, Total W–L, Singles W–L, Doubles W–L\n###Question: What is the Current singles ranking for the player named Mantas Bugailiškis?"
},
{
"from": "gpt",
"value": "SELECT Current singles ranking FROM table WHERE Player = Mantas Bugailiškis"
}
] |
[
{
"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: How many playerd Mrs. Darling in the 1999 Broadway?"
},
{
"from": "gpt",
"value": "SELECT COUNT 1999 Broadway FROM table WHERE Character = Mrs. Darling"
}
] |
[
{
"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 Peter Pan in the 1990 Broadway?"
},
{
"from": "gpt",
"value": "SELECT 1990 Broadway FROM table WHERE Character = Peter Pan"
}
] |
[
{
"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 1991 Broadway before Barbara McCulloh played the part in the 1999 Broadway?"
},
{
"from": "gpt",
"value": "SELECT 1991 Broadway FROM table WHERE 1999 Broadway = Barbara McCulloh"
}
] |
Subsets and Splits