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: Tournament, Surface, Partner, Opponents in the final, Score in the final\n###Question: Who is Partner Frederik Nielsen's Opponents in the final?"
},
{
"from": "gpt",
"value": "SELECT Opponents in the final FROM table WHERE Partner = frederik nielsen"
}
] |
[
{
"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: What is Partner Tomas Behrend's Score in the final?"
},
{
"from": "gpt",
"value": "SELECT Score in the final FROM table WHERE Partner = tomas behrend"
}
] |
[
{
"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 Country does Larry Mize play for?"
},
{
"from": "gpt",
"value": "SELECT Country FROM table WHERE Player = larry mize"
}
] |
[
{
"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 is the winning total from 1976?"
},
{
"from": "gpt",
"value": "SELECT MAX Total FROM table WHERE Year(s) won = 1976"
}
] |
[
{
"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, Winner, Jockey, Trainer, Owner, Time\n###Question: What year was owner Michael E. Pegram's last win?"
},
{
"from": "gpt",
"value": "SELECT MAX Year FROM table WHERE Owner = michael e. pegram"
}
] |
[
{
"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, Winner, Jockey, Trainer, Owner, Time\n###Question: Who is the trainer for Cherry Valley Farm?"
},
{
"from": "gpt",
"value": "SELECT Trainer FROM table WHERE Owner = cherry valley farm"
}
] |
[
{
"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, Winner, Jockey, Trainer, Owner, Time\n###Question: Who owned winner Blueeyesintherein after 2009?"
},
{
"from": "gpt",
"value": "SELECT Owner FROM table WHERE Year > 2009 AND Winner = blueeyesintherein"
}
] |
[
{
"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, Record\n###Question: Who was the Blue Jays' opponent when their record was 33-15?"
},
{
"from": "gpt",
"value": "SELECT Opponent FROM table WHERE Record = 33-15"
}
] |
[
{
"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, Record\n###Question: Who did the Blue Jays lose to when their record was 36-20?"
},
{
"from": "gpt",
"value": "SELECT Loss FROM table WHERE Record = 36-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, Start, Qual, Rank, Finish, Laps\n###Question: What is the rank of the qual 141.471?"
},
{
"from": "gpt",
"value": "SELECT Rank FROM table WHERE Qual = 141.471"
}
] |
[
{
"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, Start, Qual, Rank, Finish, Laps\n###Question: What is the start of lap 55?"
},
{
"from": "gpt",
"value": "SELECT Start FROM table WHERE Laps = 55"
}
] |
[
{
"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, Start, Qual, Rank, Finish, Laps\n###Question: What is rank of the year 1956?"
},
{
"from": "gpt",
"value": "SELECT Rank FROM table WHERE Year = 1956"
}
] |
[
{
"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, Start, Qual, Rank, Finish, Laps\n###Question: What is the lap number for the rank of 13?"
},
{
"from": "gpt",
"value": "SELECT Laps FROM table WHERE Rank = 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: Year, Start, Qual, Rank, Finish, Laps\n###Question: What is the rank for 1961?"
},
{
"from": "gpt",
"value": "SELECT Rank FROM table WHERE Year = 1961"
}
] |
[
{
"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, Start, Qual, Rank, Finish, Laps\n###Question: What is the sum of the lap with a finish of 24?"
},
{
"from": "gpt",
"value": "SELECT SUM Laps FROM table WHERE Finish = 24"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Album or Song, Band, Memebrship, Role, Year\n###Question: Which band plays Self Versus Self - Immersion?"
},
{
"from": "gpt",
"value": "SELECT Band FROM table WHERE Album or Song = self versus self - immersion"
}
] |
[
{
"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, Location\n###Question: What Event used submission (rear naked choke) with 9-4?"
},
{
"from": "gpt",
"value": "SELECT Event FROM table WHERE Method = submission (rear naked choke) AND 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: Res., Record, Opponent, Method, Event, Round, Location\n###Question: What event was Donald Ouimet involved?"
},
{
"from": "gpt",
"value": "SELECT Event FROM table WHERE Opponent = donald ouimet"
}
] |
[
{
"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, Competition, Venue, Position, Event\n###Question: What event did she finish 3rd in 2010?"
},
{
"from": "gpt",
"value": "SELECT Event FROM table WHERE Position = 3rd 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: Year, Competition, Venue, Position, Event\n###Question: What year did she compete in tampere, finland?"
},
{
"from": "gpt",
"value": "SELECT AVG Year FROM table WHERE Venue = tampere, 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: Place, Player, Country, Score, To par\n###Question: Ben Hogan with a score larger than 66 had a place listed of what?"
},
{
"from": "gpt",
"value": "SELECT Place FROM table WHERE Score > 66 AND Player = ben hogan"
}
] |
[
{
"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: With a score of 70, this player's name is listed as what?"
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE Score = 70"
}
] |
[
{
"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: With a score smaller than 71 along with a place of t6, what is the To par score?"
},
{
"from": "gpt",
"value": "SELECT To par FROM table WHERE Score < 71 AND Place = t6"
}
] |
[
{
"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, Hanzi, Hanyu Pinyin, Regional Population(2010), GDP(2011)(billion yuan)\n###Question: Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?"
},
{
"from": "gpt",
"value": "SELECT Hanyu Pinyin FROM table WHERE GDP(2011)(billion yuan) > 688.02 AND Regional Population(2010) = 8,700,400"
}
] |
[
{
"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, Hanzi, Hanyu Pinyin, Regional Population(2010), GDP(2011)(billion yuan)\n###Question: Which Hanzi has a Regional Population of 4,591,972 in 2010?"
},
{
"from": "gpt",
"value": "SELECT Hanzi FROM table WHERE Regional Population(2010) = 4,591,972"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Lane, Name, Nationality, Time\n###Question: What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?"
},
{
"from": "gpt",
"value": "SELECT Name FROM table WHERE Rank < 5 AND Time < 55.62 AND Lane < 5 AND Nationality = netherlands"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Lane, Name, Nationality, Time\n###Question: What is the highest Rank of Karen Pickering when she had a time of less than 55.71?"
},
{
"from": "gpt",
"value": "SELECT MAX Rank FROM table WHERE Name = karen pickering AND Time < 55.71"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Lane, Name, Nationality, Time\n###Question: What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?"
},
{
"from": "gpt",
"value": "SELECT MAX Lane FROM table WHERE Time > 55.94 AND Rank > 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: Date, Opponent, Score, Loss, Attendance, Record\n###Question: What was the date of the game that had a loss of Burns (0-1)?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Loss = burns (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: What was the loss of the game when the record was 20-16?"
},
{
"from": "gpt",
"value": "SELECT Loss FROM table WHERE Record = 20-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: Date, Opponent, Score, Loss, Attendance, Record\n###Question: What was the loss of the game that had an attendance of 18,769?"
},
{
"from": "gpt",
"value": "SELECT Loss FROM table WHERE Attendance = 18,769"
}
] |
[
{
"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 date of the game that had a loss of Geisel (0-1)?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Loss = geisel (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: What is the date of the game against the Royals that had an attendance of 12,699?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Opponent = royals AND Attendance = 12,699"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Name, Height ft (m), Floors, Year\n###Question: When Regions center has a rank less than 11, what is the greatest number o floors?"
},
{
"from": "gpt",
"value": "SELECT MAX Floors FROM table WHERE Name = regions center AND Rank < 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: Rank, Name, Height ft (m), Floors, Year\n###Question: What is the average rank for a building with 24 floors?"
},
{
"from": "gpt",
"value": "SELECT AVG Rank FROM table WHERE Floors = 24"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Name, Height ft (m), Floors, Year\n###Question: What is the rank for Omni nashville hotel?"
},
{
"from": "gpt",
"value": "SELECT SUM Rank FROM table WHERE Name = omni nashville hotel"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Name, Height ft (m), Floors, Year\n###Question: What is the greatest rank for Fifth third center?"
},
{
"from": "gpt",
"value": "SELECT MAX Rank FROM table WHERE Name = fifth third center"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Name, Height ft (m), Floors, Year\n###Question: When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?"
},
{
"from": "gpt",
"value": "SELECT AVG Year FROM table WHERE Floors < 23 AND Height ft (m) = 292 (89) AND Rank < 14"
}
] |
[
{
"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, Home team, Stadium, Regular season / Preseason\n###Question: What type of regular season/preseason game was played on August 25, 2007?"
},
{
"from": "gpt",
"value": "SELECT Regular season / Preseason FROM table WHERE Date = august 25, 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, Visiting team, Home team, Stadium, Regular season / Preseason\n###Question: In what stadium was the game on August 22, 2008 played?"
},
{
"from": "gpt",
"value": "SELECT Stadium FROM table WHERE Date = august 22, 2008"
}
] |
[
{
"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, Home team, Stadium, Regular season / Preseason\n###Question: In what stadium was the home team Dallas Cowboys 21?"
},
{
"from": "gpt",
"value": "SELECT Stadium FROM table WHERE Home team = dallas cowboys 21"
}
] |
[
{
"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, Home team, Stadium, Regular season / Preseason\n###Question: On what date was the home team the Dallas Cowboys 34?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Home team = dallas cowboys 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, Home team, Stadium, Regular season / Preseason\n###Question: Who was the visiting team on October 15, 2006?"
},
{
"from": "gpt",
"value": "SELECT Visiting team FROM table WHERE Date = october 15, 2006"
}
] |
[
{
"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, Start, Qual, Rank, Finish, Laps\n###Question: What's the smallest amount of Laps that had a finish of 7 with a start of 6?"
},
{
"from": "gpt",
"value": "SELECT MIN Laps FROM table WHERE Finish = 7 AND Start = 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: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?"
},
{
"from": "gpt",
"value": "SELECT MIN Bronze FROM table WHERE Gold < 3 AND Silver > 1 AND Rank = 6 AND Nation = hungary"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: What is the average bronze with a rank of 4 and less than 1 silver?"
},
{
"from": "gpt",
"value": "SELECT AVG Bronze FROM table WHERE Rank = 4 AND Silver < 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: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: Which silver has a Gold larger than 4, and a Rank of 1?"
},
{
"from": "gpt",
"value": "SELECT Silver FROM table WHERE Gold > 4 AND Rank = 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: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT MIN Bronze FROM table WHERE Total = 3 AND Nation = hungary AND Gold < 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: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT SUM Gold FROM table WHERE Rank = 7 AND Bronze = 1 AND Silver < 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: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?"
},
{
"from": "gpt",
"value": "SELECT COUNT Total FROM table WHERE Silver < 2 AND Nation = ukraine AND Gold < 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: Bowling, Player, Opponent, Venue, Season\n###Question: Which player played in 2007?"
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE Season = 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: Bowling, Player, Opponent, Venue, Season\n###Question: What was Min Patel's bowling?"
},
{
"from": "gpt",
"value": "SELECT Bowling FROM table WHERE Player = min patel"
}
] |
[
{
"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 1, Week 2, Week 6, Week 9, Week 12\n###Question: Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?"
},
{
"from": "gpt",
"value": "SELECT Week 1 FROM table WHERE Week 2 = piia jarkko"
}
] |
[
{
"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 1, Week 2, Week 6, Week 9, Week 12\n###Question: Who was the week 12 nomination when the week 9 nomination walked (day 11)?"
},
{
"from": "gpt",
"value": "SELECT Week 12 FROM table WHERE Week 9 = walked (day 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: Week 1, Week 2, Week 6, Week 9, Week 12\n###Question: What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?"
},
{
"from": "gpt",
"value": "SELECT Week 12 FROM table WHERE Week 1 = maria maxine AND Week 2 = henri satu"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class\n###Question: Name the heightfor city of license of malone, ny"
},
{
"from": "gpt",
"value": "SELECT Height m ( ft ) FROM table WHERE City of license = malone, ny"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class\n###Question: Name the class with call sign of wmhn"
},
{
"from": "gpt",
"value": "SELECT Class FROM table WHERE Call sign = wmhn"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class\n###Question: Name the frequency with class of b"
},
{
"from": "gpt",
"value": "SELECT Frequency FROM table WHERE Class = b"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class\n###Question: Name the city of license with frequency of 90.1 fm"
},
{
"from": "gpt",
"value": "SELECT City of license FROM table WHERE Frequency = 90.1 fm"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class\n###Question: Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430"
},
{
"from": "gpt",
"value": "SELECT COUNT ERP / Power W FROM table WHERE Frequency = 89.3 fm AND Facility ID < 40430"
}
] |
[
{
"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, Chassis, Engine(s), Tyres, Points\n###Question: What is the Engine(s) that has f Tyres in 1971?"
},
{
"from": "gpt",
"value": "SELECT Engine(s) FROM table WHERE Tyres = f AND Year = 1971"
}
] |
[
{
"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, Time, Att., Record\n###Question: What was the attendance on June 27?"
},
{
"from": "gpt",
"value": "SELECT MIN Att. FROM table WHERE Date = june 27"
}
] |
[
{
"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\n###Question: Name the surface for 12 september 2006"
},
{
"from": "gpt",
"value": "SELECT Surface FROM table WHERE Date = 12 september 2006"
}
] |
[
{
"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\n###Question: Name the score for opponent in the final being paul baccanello"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Opponent in the final = paul baccanello"
}
] |
[
{
"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\n###Question: Name the surface for 20 march 2007"
},
{
"from": "gpt",
"value": "SELECT Surface FROM table WHERE Date = 20 march 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, Tournament, Surface, Opponent in the final, Score\n###Question: Name the date for opponent in the final being ignasi villacampa"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Opponent in the final = ignasi villacampa"
}
] |
[
{
"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\n###Question: Name the tournament for grass surface and opponent in the final being paul baccanello"
},
{
"from": "gpt",
"value": "SELECT Tournament FROM table WHERE Surface = grass AND Opponent in the final = paul baccanello"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Location, Year, Champion, Runner-up, Score\n###Question: When is the earliest year in milan that guillermo vilas was champion?"
},
{
"from": "gpt",
"value": "SELECT MIN Year FROM table WHERE Location = milan AND Champion = guillermo vilas"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Location, Year, Champion, Runner-up, Score\n###Question: Where in 1985 was tim mayotte runner up?"
},
{
"from": "gpt",
"value": "SELECT Location FROM table WHERE Year > 1985 AND Runner-up = tim mayotte"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Location, Year, Champion, Runner-up, Score\n###Question: What was the score when stefan edberg won after 1978?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Year > 1978 AND Champion = stefan edberg"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Station, City of license, Channel, ERP kW, HAAT m ( ft ), Facility ID\n###Question: What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?"
},
{
"from": "gpt",
"value": "SELECT MAX Facility ID FROM table WHERE City of license = wheeling AND ERP kW < 4.5"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Station, City of license, Channel, ERP kW, HAAT m ( ft ), Facility ID\n###Question: What is the City of license that has a ERP kW more than 4.5 and w23dr-d?"
},
{
"from": "gpt",
"value": "SELECT City of license FROM table WHERE ERP kW > 4.5 AND Station = w23dr-d"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Church name, Location, Rebuilt, Date of demolition, Subsuming parish\n###Question: What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?"
},
{
"from": "gpt",
"value": "SELECT Location FROM table WHERE Date of demolition = 1940 AND Church name = christ church greyfriars"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Church name, Location, Rebuilt, Date of demolition, Subsuming parish\n###Question: How many dates of demolition are located on Wood Street?"
},
{
"from": "gpt",
"value": "SELECT COUNT Date of demolition FROM table WHERE Location = wood street"
}
] |
[
{
"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, Date, Surface, Partner, Opponents, Score\n###Question: What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Surface = clay AND Date = 19 may 2008"
}
] |
[
{
"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, Date, Surface, Partner, Opponents, Score\n###Question: What was Olga Govortsova's outcome when she played on a grass surface?"
},
{
"from": "gpt",
"value": "SELECT Outcome FROM table WHERE Surface = grass"
}
] |
[
{
"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, Date, Surface, Partner, Opponents, Score\n###Question: What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Surface = clay AND Date = 26 may 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: Rank, Mountain Peak, Province, Mountain Range, Location\n###Question: Which mountain range has a rank of 19?"
},
{
"from": "gpt",
"value": "SELECT Mountain Range FROM table WHERE Rank = 19"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Mountain Peak, Province, Mountain Range, Location\n###Question: Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?"
},
{
"from": "gpt",
"value": "SELECT Location FROM table WHERE Mountain Range = coast mountains AND Rank < 18 AND Mountain Peak = skihist mountain"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Mountain Peak, Province, Mountain Range, Location\n###Question: Which mountain range includes Mount Hubbard?"
},
{
"from": "gpt",
"value": "SELECT Mountain Range FROM table WHERE Mountain Peak = mount hubbard"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rank, Mountain Peak, Province, Mountain Range, Location\n###Question: Which province includes Axel Heiberg Island?"
},
{
"from": "gpt",
"value": "SELECT Province FROM table WHERE Mountain Range = axel heiberg island"
}
] |
[
{
"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, Competition, Venue, Position, Notes\n###Question: What are the notes of events that finished in 12th position?"
},
{
"from": "gpt",
"value": "SELECT Notes FROM table WHERE Position = 12th"
}
] |
[
{
"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, Competition, Venue, Position, Notes\n###Question: Which venue was finished in 2nd position in 1985?"
},
{
"from": "gpt",
"value": "SELECT Venue FROM table WHERE Position = 2nd AND Year = 1985"
}
] |
[
{
"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, Competition, Venue, Position, Notes\n###Question: What is the average year of events that took place in Antwerp, Belgium?"
},
{
"from": "gpt",
"value": "SELECT AVG Year FROM table WHERE Venue = antwerp, belgium"
}
] |
[
{
"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, Competition, Venue, Position, Notes\n###Question: What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?"
},
{
"from": "gpt",
"value": "SELECT MAX Year FROM table WHERE Notes = team competition AND Venue = antwerp, belgium"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Region, Date, Label, Format, Catalog\n###Question: What was the label's format LP and catalog of CH-9192?"
},
{
"from": "gpt",
"value": "SELECT Label FROM table WHERE Format = lp AND Catalog = ch-9192"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Region, Date, Label, Format, Catalog\n###Question: When was Catalog CHD-9192 published?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Catalog = chd-9192"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency MHz, City of license, ERP W, Class, FCC info\n###Question: I need the FCC info on the radio Frequency MHz 107.5?"
},
{
"from": "gpt",
"value": "SELECT FCC info FROM table WHERE Frequency MHz = 107.5"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency MHz, City of license, ERP W, Class, FCC info\n###Question: Give me the MHz Frequency of Allapattah, Florida."
},
{
"from": "gpt",
"value": "SELECT Frequency MHz FROM table WHERE City of license = allapattah, florida"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency MHz, City of license, ERP W, Class, FCC info\n###Question: What class does the w298ak sign belong to?"
},
{
"from": "gpt",
"value": "SELECT Class FROM table WHERE Call sign = w298ak"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Call sign, Frequency MHz, City of license, ERP W, Class, FCC info\n###Question: What class is ERP W of 800?"
},
{
"from": "gpt",
"value": "SELECT Class FROM table WHERE ERP W = 800"
}
] |
[
{
"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, Team, Played, Draw, Lost, Goals Scored, Goals Conceded, Points\n###Question: What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?"
},
{
"from": "gpt",
"value": "SELECT SUM Goals Conceded FROM table WHERE Points < 21 AND Lost < 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: Place, Team, Played, Draw, Lost, Goals Scored, Goals Conceded, Points\n###Question: What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?"
},
{
"from": "gpt",
"value": "SELECT SUM Lost FROM table WHERE Points > 28 AND Draw = 5 AND Place < 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: Place, Team, Played, Draw, Lost, Goals Scored, Goals Conceded, Points\n###Question: What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?"
},
{
"from": "gpt",
"value": "SELECT SUM Goals Scored FROM table WHERE Points < 27 AND Team = c.d. atlético balboa"
}
] |
[
{
"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, Team, Played, Draw, Lost, Goals Scored, Goals Conceded, Points\n###Question: What is listed as the Highest Played and that has a Place that is larger than 10?"
},
{
"from": "gpt",
"value": "SELECT MAX Played FROM table WHERE Place > 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: Place, Team, Played, Draw, Lost, Goals Scored, Goals Conceded, Points\n###Question: What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?"
},
{
"from": "gpt",
"value": "SELECT MAX Played FROM table WHERE Points = 17 AND Draw < 5"
}
] |
[
{
"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: When was the game that ended with a score of 6-4?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Score = 6-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: Date, Visitor, Score, Home, Decision, Attendance, Record\n###Question: What was the score on April 8?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Date = april 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: Date, Visitor, Score, Home, Decision, Attendance, Record\n###Question: What was the decision in Minnesota?"
},
{
"from": "gpt",
"value": "SELECT Decision FROM table WHERE Home = minnesota"
}
] |
[
{
"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: Which score has a record of 58–15–8?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Record = 58–15–8"
}
] |
Subsets and Splits