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: Date, Visiting Team, Final Score, Host Team, Stadium\n###Question: When did Final Score of 31-7 happen?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Final Score = 31-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: Date, Opponent, Score, Loss, Attendance, Record\n###Question: What was the score of the Blue Jays game when their record was 75-68 and the attendance was larger than 33,736?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Attendance > 33,736 AND Record = 75-68" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Tournament, 2007, 2008, 2009, 2010, 2011, 2012\n###Question: Which Tournament in 2010 also has Grand Slam tournaments in 2011" }, { "from": "gpt", "value": "SELECT 2010 FROM table WHERE 2011 = grand slam tournaments" } ]
[ { "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, Opponent, Score, Loss, Attendance, Record\n###Question: What was the average attendance when the New York Mets were opponents with a record of 51-33?" }, { "from": "gpt", "value": "SELECT AVG Attendance FROM table WHERE Opponent = new york mets AND Record = 51-33" } ]
[ { "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, Visiting Team, Final Score, Host Team, Stadium\n###Question: What visiting team played on October 18?" }, { "from": "gpt", "value": "SELECT Visiting Team FROM table WHERE Date = october 18" } ]
[ { "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, Visiting Team, Final Score, Host Team, Stadium\n###Question: What visiting team played at 3com park on October 7?" }, { "from": "gpt", "value": "SELECT Visiting Team FROM table WHERE Stadium = 3com park AND Date = october 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: Date, Visiting Team, Final Score, Host Team, Stadium\n###Question: Which host team won on a final scoreline of 13-10?" }, { "from": "gpt", "value": "SELECT Host Team FROM table WHERE Final Score = 13-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: Date, Visiting Team, Final Score, Host Team, Stadium\n###Question: In what stadium did a game result in a final scoreline reading 27-34?" }, { "from": "gpt", "value": "SELECT Stadium FROM table WHERE Final Score = 27-34" } ]
[ { "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, Visiting Team, Final Score, Host Team, Stadium\n###Question: In the game in which the Jacksonville Jaguars were hosts, what was the name of the visiting team?" }, { "from": "gpt", "value": "SELECT Visiting Team FROM table WHERE Host Team = jacksonville jaguars" } ]
[ { "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, Visiting Team, Final Score, Host Team, Stadium\n###Question: Which visiting team wound up with a final score of 18-40?" }, { "from": "gpt", "value": "SELECT Visiting Team FROM table WHERE Final Score = 18-40" } ]
[ { "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, Opponent, Result, Game site, Record, Attendance\n###Question: Name the sum of attendacne for 16 weeks" }, { "from": "gpt", "value": "SELECT SUM Attendance FROM table WHERE Week = 16" } ]
[ { "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, Opponent, Result, Game site, Record, Attendance\n###Question: Name the result for week less than 7 and game sites of los angeles memorial coliseum" }, { "from": "gpt", "value": "SELECT Result FROM table WHERE Week < 7 AND Game site = los angeles memorial coliseum" } ]
[ { "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, Opponent, Result, Game site, Record, Attendance\n###Question: Name the result for week 7" }, { "from": "gpt", "value": "SELECT Result FROM table WHERE Week = 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: Name, Gain, Loss, Long, Avg/G\n###Question: How many yards lost by the player with more gained than 51 and average/g of 3.6?" }, { "from": "gpt", "value": "SELECT COUNT Loss FROM table WHERE Avg/G = 3.6 AND Gain > 51" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Gain, Loss, Long, Avg/G\n###Question: What are the gains for the player with average of 26.8 and lost yard fewer than 13?" }, { "from": "gpt", "value": "SELECT SUM Gain FROM table WHERE Avg/G = 26.8 AND Loss < 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: Date, Tournament, Surface, Opponent in the Final, Score in the Final\n###Question: When did Mathieu play against Flavio Cipolla?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Opponent in the Final = flavio cipolla" } ]
[ { "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, Tournament, Surface, Opponent in the Final, Score in the Final\n###Question: Which tournament had a final score of 6–3, 6–2?" }, { "from": "gpt", "value": "SELECT Tournament FROM table WHERE Score in the Final = 6–3, 6–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: Date, Tournament, Surface, Opponent in the Final, Score in the Final\n###Question: On which surface did Mathieu play against Antonio Veić?" }, { "from": "gpt", "value": "SELECT Surface FROM table WHERE Opponent in the Final = antonio veić" } ]
[ { "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, Tournament, Surface, Opponent in the Final, Score in the Final\n###Question: When did Mathieu play against Antonio Veić?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Opponent in the Final = antonio veić" } ]
[ { "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, Tournament, Surface, Opponent in the Final, Score in the Final\n###Question: When did Mathieu play against Andrey Golubev?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Opponent in the Final = andrey golubev" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Park, Tower height, Drop height*, Speed, Model, Opened, Height requirement\n###Question: What opened with a drop height of 272feet?" }, { "from": "gpt", "value": "SELECT Opened FROM table WHERE Drop height* = 272feet" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Park, Tower height, Drop height*, Speed, Model, Opened, Height requirement\n###Question: What was the speed of 200feet Giant Drop attraction?" }, { "from": "gpt", "value": "SELECT Speed FROM table WHERE Model = giant drop AND Drop height* = 200feet" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Park, Tower height, Drop height*, Speed, Model, Opened, Height requirement\n###Question: What park opened in 1999?" }, { "from": "gpt", "value": "SELECT Park FROM table WHERE Opened = 1999" } ]
[ { "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, Visitor, Score, Home, Decision, Attendance, Record\n###Question: Name the record for detroit and decision of denis" }, { "from": "gpt", "value": "SELECT Record FROM table WHERE Home = detroit AND Decision = denis" } ]
[ { "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, Visitor, Score, Home, Decision, Attendance, Record\n###Question: Name the average attendance with dallas visitor" }, { "from": "gpt", "value": "SELECT AVG Attendance FROM table WHERE Visitor = dallas" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Place, Player, Country, Score, To par\n###Question: How close to par was Tom Kite when he played?" }, { "from": "gpt", "value": "SELECT To par FROM table WHERE Player = tom kite" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Place, Player, Country, Score, To par\n###Question: Which of the countries showed a score of 71-72=143?" }, { "from": "gpt", "value": "SELECT Country FROM table WHERE Score = 71-72=143" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Place, Player, Country, Score, To par\n###Question: Which country watch Tom Watson at t9 score 72-72=144?" }, { "from": "gpt", "value": "SELECT Country FROM table WHERE Place = t9 AND Score = 72-72=144 AND Player = tom watson" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Place, Player, Country, Score, To par\n###Question: What was the final score when the player was an e to par?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE To par = e" } ]
[ { "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, Team, Attempts, Completions, Completion %, Yards\n###Question: What is the name of the team that has 307 attempts?" }, { "from": "gpt", "value": "SELECT Team FROM table WHERE Attempts = 307" } ]
[ { "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, Team, Attempts, Completions, Completion %, Yards\n###Question: What is the name of the team that has 1,317 attempts?" }, { "from": "gpt", "value": "SELECT Team FROM table WHERE Attempts = 1,317" } ]
[ { "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, Team, Attempts, Completions, Completion %, Yards\n###Question: What year was 2,242 yards achieved?" }, { "from": "gpt", "value": "SELECT Year FROM table WHERE Yards = 2,242" } ]
[ { "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, Team, Attempts, Completions, Completion %, Yards\n###Question: Which team has a 59.8% completion rate?" }, { "from": "gpt", "value": "SELECT Team FROM table WHERE Completion % = 59.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: Year, Entrant, Chassis, Engine, Points\n###Question: Which year has has a Engine of maserati straight-6?" }, { "from": "gpt", "value": "SELECT COUNT Year FROM table WHERE Engine = maserati straight-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, Entrant, Chassis, Engine, Points\n###Question: What is the Point of Chassis of Lancia d50 in 1954" }, { "from": "gpt", "value": "SELECT Points FROM table WHERE Chassis = lancia d50 AND Year = 1954" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 7:00, 7:30, 8:00, 8:30, 9:00, 9:30, 10:00\n###Question: What is on at 8:00 before the 9:00 showing of Chuck?" }, { "from": "gpt", "value": "SELECT 8:00 FROM table WHERE 9:00 = chuck" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 7:00, 7:30, 8:00, 8:30, 9:00, 9:30, 10:00\n###Question: What show comes on at 9:00 on the channel that shows the Insider at 7:00?" }, { "from": "gpt", "value": "SELECT 9:00 FROM table WHERE 7:00 = the insider" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 7:00, 7:30, 8:00, 8:30, 9:00, 9:30, 10:00\n###Question: On the channel with The Biggest loser at 8:00, what's on at 7:30?" }, { "from": "gpt", "value": "SELECT 7:30 FROM table WHERE 8:00 = the biggest loser" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 7:00, 7:30, 8:00, 8:30, 9:00, 9:30, 10:00\n###Question: What's on at 7:30 before the 9:00 showing of the Tudors?" }, { "from": "gpt", "value": "SELECT 7:30 FROM table WHERE 9:00 = the tudors" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 7:00, 7:30, 8:00, 8:30, 9:00, 9:30, 10:00\n###Question: If Gossip Girl is on at 7:30, what shows at 9:00?" }, { "from": "gpt", "value": "SELECT 9:00 FROM table WHERE 7:30 = gossip girl" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Matches, Innings, Not Out, High Score, Runs, Average\n###Question: What is the match total for a score over 299 and under 412 innings?" }, { "from": "gpt", "value": "SELECT SUM Matches FROM table WHERE High Score = 299 AND Innings < 412" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Matches, Innings, Not Out, High Score, Runs, Average\n###Question: What is the high run total associated with a high score of 385 and under 407 innings?" }, { "from": "gpt", "value": "SELECT MAX Runs FROM table WHERE High Score = 385 AND Innings < 407" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team 1, Agg., Team 2, 1st leg, 2nd leg\n###Question: Which 2nd leg has a 1st leg of 1-1 and is Team 1 djoliba ac?" }, { "from": "gpt", "value": "SELECT 2nd leg FROM table WHERE 1st leg = 1-1 AND Team 1 = djoliba ac" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team 1, Agg., Team 2, 1st leg, 2nd leg\n###Question: What Team 1 has union douala as Team 2?" }, { "from": "gpt", "value": "SELECT Team 1 FROM table WHERE Team 2 = union douala" } ]
[ { "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, Opponent, Score, Loss, Attendance, Record\n###Question: What was the score of the game that had a loss of Cerutti (0-1)?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Loss = cerutti (0-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: Date, Opponent, Score, Loss, Attendance, Record\n###Question: Who was the opponent at the game that had a record of 93-54?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Record = 93-54" } ]
[ { "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, Country, Year(s) won, Total, To par\n###Question: What was the score to par for 156 strokes?" }, { "from": "gpt", "value": "SELECT COUNT To par FROM table WHERE Total > 156" } ]
[ { "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, Country, Year(s) won, Total, To par\n###Question: How many strokes for arnold palmer with a to par of greater than 9?" }, { "from": "gpt", "value": "SELECT AVG Total FROM table WHERE To par > 9 AND Player = arnold palmer" } ]
[ { "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, Country, Year(s) won, Total, To par\n###Question: What was the score to par in 1960?" }, { "from": "gpt", "value": "SELECT To par FROM table WHERE Year(s) won = 1960" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: First game, Played, Drawn, Lost, Percentage\n###Question: What is the earliest first game for a rugby team that has 7 lost games and 0 draws?" }, { "from": "gpt", "value": "SELECT MIN First game FROM table WHERE Lost = 7 AND Drawn < 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: First game, Played, Drawn, Lost, Percentage\n###Question: How many games were played by a team that won 0.00% of their games and 0 draws?" }, { "from": "gpt", "value": "SELECT SUM Played FROM table WHERE Percentage = 0.00% AND Drawn < 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: Team, 1st Match, Matches, Lost, % Won\n###Question: Name the matches for the first match being 30 march 1997" }, { "from": "gpt", "value": "SELECT Matches FROM table WHERE 1st Match = 30 march 1997" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, 1st Match, Matches, Lost, % Won\n###Question: Name the 1st match for brisbane bears" }, { "from": "gpt", "value": "SELECT 1st Match FROM table WHERE Team = brisbane bears" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, 1st Match, Matches, Lost, % Won\n###Question: Name the lost for matches of 1 928" }, { "from": "gpt", "value": "SELECT Lost FROM table WHERE Matches = 1 928" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, 1st Match, Matches, Lost, % Won\n###Question: Name the lost for % won of 55.37" }, { "from": "gpt", "value": "SELECT Lost FROM table WHERE % Won = 55.37" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, 1st Match, Matches, Lost, % Won\n###Question: Name the matches for gold coast" }, { "from": "gpt", "value": "SELECT Matches FROM table WHERE Team = gold coast" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, 1st Match, Matches, Lost, % Won\n###Question: Name the lost for % won of 55.37" }, { "from": "gpt", "value": "SELECT Lost FROM table WHERE % Won = 55.37" } ]
[ { "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, xDSL, Cable, FTTx, Other\n###Question: What is the year when cable was 4.6%?" }, { "from": "gpt", "value": "SELECT Year FROM table WHERE Cable = 4.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, xDSL, Cable, FTTx, Other\n###Question: What is the other for 2012?" }, { "from": "gpt", "value": "SELECT Other 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, xDSL, Cable, FTTx, Other\n###Question: What is the xDSL for the other of 0.6% and FTTx of 35.4%?" }, { "from": "gpt", "value": "SELECT xDSL FROM table WHERE Other = 0.6% AND FTTx = 35.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, xDSL, Cable, FTTx, Other\n###Question: What is the other for a 78.2% xDSL?" }, { "from": "gpt", "value": "SELECT Other FROM table WHERE xDSL = 78.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: Year, xDSL, Cable, FTTx, Other\n###Question: What is the xDSL in 2010 when the other was 0.6%?" }, { "from": "gpt", "value": "SELECT xDSL FROM table WHERE Other = 0.6% AND Year = 2010" } ]
[ { "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, Venue, Score, Result, Competition\n###Question: Which date has a Result of won, and a Score of 1-0?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Result = won AND Score = 1-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: Date, Venue, Score, Result, Competition\n###Question: Which result has a Date of november 2, 2007?" }, { "from": "gpt", "value": "SELECT Result FROM table WHERE Date = november 2, 2007" } ]
[ { "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, Venue, Score, Result, Competition\n###Question: Which Competition has a Score of 2-0?" }, { "from": "gpt", "value": "SELECT Competition FROM table WHERE Score = 2-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: Date, Venue, Score, Result, Competition\n###Question: Which Venue has a Date of january 9, 2011?" }, { "from": "gpt", "value": "SELECT Venue FROM table WHERE Date = january 9, 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: Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by\n###Question: What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?" }, { "from": "gpt", "value": "SELECT Termination of Mission FROM table WHERE Presentation of Credentials = july 4, 1898" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by\n###Question: What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?" }, { "from": "gpt", "value": "SELECT Presentation of Credentials FROM table WHERE Title = ambassador extraordinary and plenipotentiary AND Representative = raúl h. castro" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by\n###Question: Who is the representative with a presentation of credentials date on February 23, 1854?" }, { "from": "gpt", "value": "SELECT Representative FROM table WHERE Presentation of Credentials = february 23, 1854" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by\n###Question: What is the title of the representative appointed by James K. Polk?" }, { "from": "gpt", "value": "SELECT Title FROM table WHERE Appointed by = james k. polk" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by\n###Question: What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?" }, { "from": "gpt", "value": "SELECT Termination of Mission FROM table WHERE Appointed by = franklin pierce AND Title = chargé d'affaires" } ]
[ { "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, Visiting team, Final score, Host team, Stadium\n###Question: What is the Stadium held on november 29?" }, { "from": "gpt", "value": "SELECT Stadium FROM table WHERE Date = november 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: Date, Visiting team, Final score, Host team, Stadium\n###Question: Who is the Visiting team on december 20?" }, { "from": "gpt", "value": "SELECT Visiting team FROM table WHERE Date = december 20" } ]
[ { "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, Visiting team, Final score, Host team, Stadium\n###Question: Which Stadium has a Visiting team of pittsburgh steelers?" }, { "from": "gpt", "value": "SELECT Stadium FROM table WHERE Visiting team = pittsburgh steelers" } ]
[ { "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, Visiting team, Final score, Host team, Stadium\n###Question: Who is the Host team that has a chicago bears as a visiting team?" }, { "from": "gpt", "value": "SELECT Host team FROM table WHERE Visiting team = chicago bears" } ]
[ { "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, Visiting team, Final score, Host team, Stadium\n###Question: What is the Final score on november 22?" }, { "from": "gpt", "value": "SELECT Final score FROM table WHERE Date = november 22" } ]
[ { "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, Visiting team, Final score, Host team, Stadium\n###Question: What is the Host team that has indianapolis colts as a Visiting team?" }, { "from": "gpt", "value": "SELECT Host team FROM table WHERE Visiting team = indianapolis colts" } ]
[ { "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, Winners, Club, Time, Runners-up\n###Question: Who won when np cooper av cooke was runner up?" }, { "from": "gpt", "value": "SELECT Winners FROM table WHERE Runners-up = np cooper av cooke" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Res., Record, Opponent, Method, Event, Round, Time, Location\n###Question: What was the record of the match that had a time of 1:44?" }, { "from": "gpt", "value": "SELECT Record FROM table WHERE Time = 1:44" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Res., Record, Opponent, Method, Event, Round, Time, Location\n###Question: Who was the opponent at GCM – D.O.G. 4?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Event = gcm – d.o.g. 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: Res., Record, Opponent, Method, Event, Round, Time, Location\n###Question: What was the location of the match that ended before round 2, against Hikaru Sato?" }, { "from": "gpt", "value": "SELECT Location FROM table WHERE Round < 2 AND Opponent = hikaru sato" } ]
[ { "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, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)\n###Question: What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?" }, { "from": "gpt", "value": "SELECT Company or product name FROM table WHERE Money requested (£) = 75,000 AND Entrepreneur(s) = geoff and colette bell" } ]
[ { "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, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)\n###Question: Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?" }, { "from": "gpt", "value": "SELECT Investing Dragon(s) FROM table WHERE Episode = episode 9 AND Entrepreneur(s) = ashley sayed" } ]
[ { "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, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)\n###Question: What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?" }, { "from": "gpt", "value": "SELECT Episode FROM table WHERE Entrepreneur(s) = luke booth and christopher eves" } ]
[ { "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, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)\n###Question: Which Company or Product name requested £70,000 on Episode 11?" }, { "from": "gpt", "value": "SELECT Company or product name FROM table WHERE Episode = episode 11 AND Money requested (£) = 70,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: Year, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: What is the year in which Yong Yudianto won the men's singles?" }, { "from": "gpt", "value": "SELECT MIN Year FROM table WHERE Men's singles = yong yudianto" } ]
[ { "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, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: Who won the men's singles in 1999?" }, { "from": "gpt", "value": "SELECT Men's singles FROM table WHERE Year = 1999" } ]
[ { "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, Height, Position, Year born, Current Club\n###Question: What is stephen arigbabu's height?" }, { "from": "gpt", "value": "SELECT MIN Height FROM table WHERE Player = stephen arigbabu" } ]
[ { "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, Visitor, Score, Home, Decision, Attendance, Record\n###Question: For all games with los angeles as visitor, what is the highest attendance of all?" }, { "from": "gpt", "value": "SELECT MAX Attendance FROM table WHERE Visitor = los angeles" } ]
[ { "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, Visitor, Score, Home, Decision, Attendance, Record\n###Question: For all games with calgary as home, what is the average number of attendees?" }, { "from": "gpt", "value": "SELECT AVG Attendance FROM table WHERE Home = calgary" } ]
[ { "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.1, No.2, No.3, No.5, No.6, FINAL\n###Question: Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?" }, { "from": "gpt", "value": "SELECT No.5 FROM table WHERE No.1 = lena claudisabel AND No.2 = lena sylvie" } ]
[ { "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.1, No.2, No.3, No.5, No.6, FINAL\n###Question: Who is no.3 when Claudio Sylvie is no.1?" }, { "from": "gpt", "value": "SELECT No.3 FROM table WHERE No.1 = claudio sylvie" } ]
[ { "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, Opponent, Score, Loss, Attendance, Record\n###Question: What was the score of the game when the record was 18-20?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Record = 18-20" } ]
[ { "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, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: What Men's double held together with Women's singles of camilla martin?" }, { "from": "gpt", "value": "SELECT Men's doubles FROM table WHERE Women's singles = camilla 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: Year, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles?" }, { "from": "gpt", "value": "SELECT Mixed doubles FROM table WHERE Women's singles = zhu lin" } ]
[ { "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, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: Who was on the Men's Doubles Team in 2002?" }, { "from": "gpt", "value": "SELECT Men's doubles FROM table WHERE Year = 2002" } ]
[ { "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, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: Which year did Aya Ohori play in the Women's Singles?" }, { "from": "gpt", "value": "SELECT Year FROM table WHERE Women's singles = aya ohori" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Tournament, Surface, Partner, Opponents in the final, Score in the final\n###Question: Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?" }, { "from": "gpt", "value": "SELECT Partner FROM table WHERE Opponents in the final = flavio cipolla simone vagnozzi" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Tournament, Surface, Partner, Opponents in the final, Score in the final\n###Question: Who were the Opponents in the final that played on a carpet (i) Surface?" }, { "from": "gpt", "value": "SELECT Opponents in the final FROM table WHERE Surface = carpet (i)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Tournament, Surface, Partner, Opponents in the final, Score in the final\n###Question: Played on Clay Surface, what was the Score of the Dortmund Tournament?" }, { "from": "gpt", "value": "SELECT Score in the final FROM table WHERE Surface = clay AND Tournament = dortmund" } ]