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: Model/Engine, Capacity, Cylinders/Valves, Power/rpm, Torque (Nm)/rpm\n###Question: Name the power for 1.8 duratorq" }, { "from": "gpt", "value": "SELECT Power/rpm FROM table WHERE Model/Engine = 1.8 duratorq" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Model/Engine, Capacity, Cylinders/Valves, Power/rpm, Torque (Nm)/rpm\n###Question: Name the power for when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750" }, { "from": "gpt", "value": "SELECT Power/rpm FROM table WHERE Torque (Nm)/rpm = n·m (lb·ft)/*n·m (lb·ft) @1750" } ]
[ { "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, Player, Games, Goals, Goal Ratio, Debut in Europe\n###Question: What are the smallest goals with a Goal Ratio of 0.14, and a Debut in Europe smaller than 1995?" }, { "from": "gpt", "value": "SELECT MIN Goals FROM table WHERE Goal Ratio = 0.14 AND Debut in Europe < 1995" } ]
[ { "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, Player, Games, Goals, Goal Ratio, Debut in Europe\n###Question: What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985?" }, { "from": "gpt", "value": "SELECT AVG Goal Ratio FROM table WHERE Goals > 1 AND Games > 161 AND Debut in Europe < 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: Rank, Player, Games, Goals, Goal Ratio, Debut in Europe\n###Question: What lowest games have 20 goals and a Goal Ratio smaller than 0.14?" }, { "from": "gpt", "value": "SELECT MIN Games FROM table WHERE Goals = 20 AND Goal Ratio < 0.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: Rank, Player, Games, Goals, Goal Ratio, Debut in Europe\n###Question: What is the largest goal ratio with Goals smaller than 0?" }, { "from": "gpt", "value": "SELECT MAX Goal Ratio FROM table WHERE Goals < 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, Player, Games, Goals, Goal Ratio, Debut in Europe\n###Question: What lowest games have a Goal Ratio of 0, and Goals smaller than 0?" }, { "from": "gpt", "value": "SELECT MIN Games FROM table WHERE Goal Ratio = 0 AND Goals < 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, Player, Games, Goals, Goal Ratio, Debut in Europe\n###Question: How many debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5?" }, { "from": "gpt", "value": "SELECT COUNT Debut in Europe FROM table WHERE Goals < 76 AND Games > 151 AND Rank > 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: Year, Team, Chassis, Engine, Points\n###Question: What is the average points of the Ferrari 1512 Chassis after 1965?" }, { "from": "gpt", "value": "SELECT AVG Points FROM table WHERE Chassis = ferrari 1512 AND Year > 1965" } ]
[ { "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, Chassis, Engine, Points\n###Question: What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?" }, { "from": "gpt", "value": "SELECT Chassis FROM table WHERE Year > 1965 AND Team = cooper car company AND Engine = maserati v12" } ]
[ { "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: Which location had a round of 3, and an Opponent of matt horwich?" }, { "from": "gpt", "value": "SELECT Location FROM table WHERE Round < 3 AND Opponent = matt horwich" } ]
[ { "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 time of sportfight 10?" }, { "from": "gpt", "value": "SELECT Time FROM table WHERE Event = sportfight 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: Res., Record, Opponent, Method, Event, Round, Time, Location\n###Question: Which opponent had a time of 0:29?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Time = 0: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: Number, Name, Builder, Type, Works number, Date\n###Question: What number has the builder ruston hornsby, the date 1961, and the name Topsy?" }, { "from": "gpt", "value": "SELECT COUNT Number FROM table WHERE Builder = ruston hornsby AND Date = 1961 AND Name = topsy" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Number, Name, Builder, Type, Works number, Date\n###Question: What is the number with the builder hunslet and a works number greater than 822?" }, { "from": "gpt", "value": "SELECT COUNT Number FROM table WHERE Builder = hunslet AND Works number > 822" } ]
[ { "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, Record\n###Question: What was the score of the March 14 game?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Date = march 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, Visitor, Score, Home, Record\n###Question: What was the score for the December 11 game against the Ottawa Senators?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Visitor = ottawa senators AND Date = december 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: Hull No., Year, Project, Length overall in meters (without bowsprit), Name, Destination\n###Question: Name the project with length overall being 25 and name of levante" }, { "from": "gpt", "value": "SELECT Project FROM table WHERE Length overall in meters (without bowsprit) = 25 AND Name = levante" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Hull No., Year, Project, Length overall in meters (without bowsprit), Name, Destination\n###Question: Name the sum of Hull number with portugal destination" }, { "from": "gpt", "value": "SELECT SUM Hull No. FROM table WHERE Destination = portugal" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Hull No., Year, Project, Length overall in meters (without bowsprit), Name, Destination\n###Question: Name the sum of hull number for italy and year more than 1999" }, { "from": "gpt", "value": "SELECT SUM Hull No. FROM table WHERE Destination = italy AND 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: Year, Date, Title, Format(s), Award Description(s), Result(s)\n###Question: Give me the result for a format saying album with 1994 as the year." }, { "from": "gpt", "value": "SELECT Result(s) FROM table WHERE Format(s) = album AND Year = 1994" } ]
[ { "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, Date, Title, Format(s), Award Description(s), Result(s)\n###Question: List the Award Descriptions for the year of 1989." }, { "from": "gpt", "value": "SELECT Award Description(s) FROM table WHERE Year = 1989" } ]
[ { "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 9:30 on the channel of dancing with the stars?" }, { "from": "gpt", "value": "SELECT 9:30 FROM table WHERE 8:30 = dancing with the stars" } ]
[ { "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 7:30 when k-ville is on at 9:00 on that channel?" }, { "from": "gpt", "value": "SELECT 7:30 FROM table WHERE 9:00 = k-ville" } ]
[ { "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:30 when occupation double is on at 7:00 at that channel?" }, { "from": "gpt", "value": "SELECT 8:30 FROM table WHERE 7:00 = occupation double" } ]
[ { "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:30 when etalk is on at 7:00 on that channel?" }, { "from": "gpt", "value": "SELECT 8:30 FROM table WHERE 7:00 = etalk" } ]
[ { "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 when etalk is on at 7:00?" }, { "from": "gpt", "value": "SELECT 8:00 FROM table WHERE 7:00 = etalk" } ]
[ { "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: What was the score of the game played on August 5?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Date = august 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, Record\n###Question: On what date was the Blue Jays record 60-56?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Record = 60-56" } ]
[ { "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, Name, Party, First elected, District\n###Question: Tell me the name for first elected more than 1988 and district of mason" }, { "from": "gpt", "value": "SELECT Name FROM table WHERE First elected > 1988 AND District = mason" } ]
[ { "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, Name, Party, First elected, District\n###Question: Name the party with first elected more than 1999 and position of supervisor for john foust" }, { "from": "gpt", "value": "SELECT Party FROM table WHERE First elected > 1999 AND Position = supervisor AND Name = john foust" } ]
[ { "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, Name, Party, First elected, District\n###Question: Name the total number of first elected for dranesville" }, { "from": "gpt", "value": "SELECT COUNT First elected FROM table WHERE District = dranesville" } ]
[ { "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, Opponent, Competition, Score, Venue, Attendance\n###Question: What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels?" }, { "from": "gpt", "value": "SELECT COUNT Year FROM table WHERE Venue = sydney cricket ground AND Opponent = parramatta eels" } ]
[ { "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, Opponent, Competition, Score, Venue, Attendance\n###Question: What was the competition in 1978?" }, { "from": "gpt", "value": "SELECT Competition FROM table WHERE Year = 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: Year, Opponent, Competition, Score, Venue, Attendance\n###Question: What year was the average attendance 80,388?" }, { "from": "gpt", "value": "SELECT AVG Year FROM table WHERE Attendance = 80,388" } ]
[ { "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, Opponent, Competition, Score, Venue, Attendance\n###Question: What was the score with the opponent being New Zealand Warriors?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Opponent = new zealand warriors" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Election, 1st Member, 1st Party, 2nd Member, 2nd Party\n###Question: Which 1st Party has an election in 1847?" }, { "from": "gpt", "value": "SELECT 1st Party FROM table WHERE Election = 1847" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Election, 1st Member, 1st Party, 2nd Member, 2nd Party\n###Question: Which 1st Party has an election in 1865?" }, { "from": "gpt", "value": "SELECT 1st Party FROM table WHERE Election = 1865" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Election, 1st Member, 1st Party, 2nd Member, 2nd Party\n###Question: Which 1st Party has a 2nd Member of constituency abolished?" }, { "from": "gpt", "value": "SELECT 1st Party FROM table WHERE 2nd Member = constituency abolished" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Election, 1st Member, 1st Party, 2nd Member, 2nd Party\n###Question: Which 1st Member has an election in 1880 and a liberal 1st Party?" }, { "from": "gpt", "value": "SELECT 1st Member FROM table WHERE 1st Party = liberal AND Election = 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: Election, 1st Member, 1st Party, 2nd Member, 2nd Party\n###Question: Which 1st Member has an election in 1859 and a conservative 2nd Party?" }, { "from": "gpt", "value": "SELECT 1st Member FROM table WHERE 2nd Party = conservative AND Election = 1859" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rider, Matches, Rides, Bonus Pts, Total Points\n###Question: What was the average number of points with bonus pts less than 31 with the rider dennis gavros?" }, { "from": "gpt", "value": "SELECT AVG Total Points FROM table WHERE Rider = dennis gavros AND Bonus Pts < 31" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rider, Matches, Rides, Bonus Pts, Total Points\n###Question: How many total matches involving dennis gavros had total points less than 167?" }, { "from": "gpt", "value": "SELECT COUNT Matches FROM table WHERE Rider = dennis gavros AND Total Points < 167" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rider, Matches, Rides, Bonus Pts, Total Points\n###Question: What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?" }, { "from": "gpt", "value": "SELECT MIN Matches FROM table WHERE Bonus Pts = 19 AND Total Points > 421" } ]
[ { "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, Category, Team, Rider 1, Rider 2\n###Question: Which category earlier than 2006 has Bart Brentjens as rider 2?" }, { "from": "gpt", "value": "SELECT Category FROM table WHERE Date < 2006 AND Rider 2 = bart brentjens" } ]
[ { "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, Category, Team, Rider 1, Rider 2\n###Question: How many dates does the ladies category correspond to Rothaus-Cube?" }, { "from": "gpt", "value": "SELECT COUNT Date FROM table WHERE Category = ladies AND Team = rothaus-cube" } ]
[ { "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, Category, Team, Rider 1, Rider 2\n###Question: Which category has a team of Cannondale Vredestein?" }, { "from": "gpt", "value": "SELECT Category FROM table WHERE Team = cannondale vredestein" } ]
[ { "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 qual with a rank 9?" }, { "from": "gpt", "value": "SELECT Qual FROM table WHERE Rank = 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: Year, Start, Qual, Rank, Finish, Laps\n###Question: What is the finish in 1956?" }, { "from": "gpt", "value": "SELECT Finish 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 finish with 200 laps and a start of 3?" }, { "from": "gpt", "value": "SELECT Finish FROM table WHERE Laps = 200 AND Start = 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: Year, Start, Qual, Rank, Finish, Laps\n###Question: What is the qual with 200 laps and a rank of 27?" }, { "from": "gpt", "value": "SELECT Qual FROM table WHERE Laps = 200 AND Rank = 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: Year, Start, Qual, Rank, Finish, Laps\n###Question: What is the rank with a 14 finish?" }, { "from": "gpt", "value": "SELECT Rank FROM table WHERE Finish = 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: Year, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: When did Deng Xuan first win Women's singles?" }, { "from": "gpt", "value": "SELECT MIN Year FROM table WHERE Women's singles = deng xuan" } ]
[ { "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: When did Julie Still first win Women's singles?" }, { "from": "gpt", "value": "SELECT MIN Year FROM table WHERE Women's singles = julie still" } ]
[ { "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, Wins, Top-25, Events, Cuts made\n###Question: What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0?" }, { "from": "gpt", "value": "SELECT MIN Cuts made FROM table WHERE Tournament = masters tournament AND Top-25 < 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: Tournament, Wins, Top-25, Events, Cuts made\n###Question: What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has?" }, { "from": "gpt", "value": "SELECT MAX Wins FROM table WHERE Cuts made = 1 AND Top-25 < 1 AND Events < 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, Wins, Top-25, Events, Cuts made\n###Question: What is the average number of events the Masters tournament, which has more than 0 top-25, has?" }, { "from": "gpt", "value": "SELECT AVG Events FROM table WHERE Tournament = masters tournament AND Top-25 > 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: Tournament, Wins, Top-25, Events, Cuts made\n###Question: What is the total number of top-25 a tournament with less than 2 events has?" }, { "from": "gpt", "value": "SELECT COUNT Top-25 FROM table WHERE Events < 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, Men's singles, Women's singles, Men's doubles, Women's doubles, Mixed doubles\n###Question: Who won Women's doubles when Nikhil Kanetkar won Men's singles?" }, { "from": "gpt", "value": "SELECT Women's doubles FROM table WHERE Men's singles = nikhil kanetkar" } ]
[ { "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 Women's doubles when Zen Yaqiong won Women's singles?" }, { "from": "gpt", "value": "SELECT Women's doubles FROM table WHERE Women's singles = zen yaqiong" } ]
[ { "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: What was the date of the game that had a loss of Gott (2-7)?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Loss = gott (2-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, Record\n###Question: Who was the opponent at the game when the record was 54-58?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Record = 54-58" } ]
[ { "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: What was the score of the game when the record was 59-65?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Record = 59-65" } ]
[ { "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 opponent at the game that had a loss of Caldwell (10-11)?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Loss = caldwell (10-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: Res., Record, Opponent, Method, Event, Round, Time, Location\n###Question: Which opponent had a time of 1:26?" }, { "from": "gpt", "value": "SELECT Opponent FROM table WHERE Time = 1:26" } ]
[ { "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 with the Kansas City Royals when the Blue Jays record was 18-12?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Opponent = royals AND Record = 18-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: Date, Region, Label, Catalogue, Format\n###Question: Which catalogue is from the UK region, and is on vinyl, and was dated in 1986?" }, { "from": "gpt", "value": "SELECT Catalogue FROM table WHERE Region = uk AND Format = vinyl AND Date = 1986" } ]
[ { "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, Region, Label, Catalogue, Format\n###Question: What region has a bronze label and a catalogue of 202 876-270?" }, { "from": "gpt", "value": "SELECT Region FROM table WHERE Label = bronze AND Catalogue = 202 876-270" } ]
[ { "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, Region, Label, Catalogue, Format\n###Question: Which label is from the Germany region?" }, { "from": "gpt", "value": "SELECT Label FROM table WHERE Region = germany" } ]
[ { "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, Region, Label, Catalogue, Format\n###Question: What label has brol 34531 as it's catalogue?" }, { "from": "gpt", "value": "SELECT Label FROM table WHERE Catalogue = brol 34531" } ]
[ { "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, Region, Label, Catalogue, Format\n###Question: Which label has UK for its region, is on a CD, and is dated from 1986?" }, { "from": "gpt", "value": "SELECT Label FROM table WHERE Region = uk AND Date = 1986 AND Format = cd" } ]
[ { "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, Region, Label, Catalogue, Format\n###Question: Which catalogue has essential, castle music as it's label?" }, { "from": "gpt", "value": "SELECT Catalogue FROM table WHERE Label = essential, castle music" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Artist, Country of origin, Period active, Release-year of first charted record, Genre, Claimed sales\n###Question: What's the period of a rock album released in 1973?" }, { "from": "gpt", "value": "SELECT Period active FROM table WHERE Release-year of first charted record = 1973 AND Genre = rock" } ]
[ { "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, Pick #, Overall, Name, Position, College\n###Question: Name the pick number for bill atessis" }, { "from": "gpt", "value": "SELECT Pick # FROM table WHERE Name = bill atessis" } ]
[ { "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, Pick #, Overall, Name, Position, College\n###Question: Name the total number of overall for defensive tackle" }, { "from": "gpt", "value": "SELECT COUNT Overall FROM table WHERE Position = defensive tackle" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Country, 2008-list, 2009-list, 2010-list, 2011-list, 2012-list\n###Question: What is the 2012-list rank of a country with the lowest 2012-list rank out of all the countries with a 2010-list rank better than 13, a 2009-list rank of 0, a 2008-list rank lower than 4?" }, { "from": "gpt", "value": "SELECT MAX 2012-list FROM table WHERE 2010-list < 13 AND 2009-list = 0 AND 2008-list > 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, Entrant, Chassis, Engine, Points\n###Question: Which engine has daimler benz ag as an entrant?" }, { "from": "gpt", "value": "SELECT Engine FROM table WHERE Entrant = daimler benz ag" } ]
[ { "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, Finish\n###Question: In which years was the to par +6?" }, { "from": "gpt", "value": "SELECT Year(s) won FROM table WHERE To par = +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: Player, Country, Year(s) won, Total, To par, Finish\n###Question: In 1991, what was the lowest total?" }, { "from": "gpt", "value": "SELECT MIN Total FROM table WHERE Year(s) won = 1991" } ]
[ { "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, Heat, Lane, Name, Nationality, Time\n###Question: What are the total lanes that have a rank larger than 22?" }, { "from": "gpt", "value": "SELECT SUM Lane FROM table WHERE Rank > 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: Rank, Heat, Lane, Name, Nationality, Time\n###Question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?" }, { "from": "gpt", "value": "SELECT Name FROM table WHERE Rank > 2 AND Lane = 1 AND Nationality = hong kong" } ]
[ { "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, Heat, Lane, Name, Nationality, Time\n###Question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?" }, { "from": "gpt", "value": "SELECT SUM Rank FROM table WHERE Nationality = japan AND Lane < 7 AND Heat < 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: Manager, Years, Games, Wins, Losses\n###Question: What was Jim Hoff's sum of losses and a wins smaller than 12?" }, { "from": "gpt", "value": "SELECT SUM Losses FROM table WHERE Manager = jim hoff AND Wins < 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: Manager, Years, Games, Wins, Losses\n###Question: What was the average of games that were one in 1978 that were smaller than 141?" }, { "from": "gpt", "value": "SELECT AVG Wins FROM table WHERE Years = 1978 AND Games < 141" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Manager, Years, Games, Wins, Losses\n###Question: What was the sum of Richie Hebner winning games that were smaller 34?" }, { "from": "gpt", "value": "SELECT SUM Games FROM table WHERE Manager = richie hebner AND Wins < 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: Manager, Years, Games, Wins, Losses\n###Question: What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1?" }, { "from": "gpt", "value": "SELECT AVG Wins FROM table WHERE Games < 3 AND Manager = george scherger AND Losses < 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: Result, Date, Race, Venue, Group, Distance, Weight (kg), Jockey, Winner/2nd\n###Question: When was the golden slipper race?" }, { "from": "gpt", "value": "SELECT Date FROM table WHERE Race = golden slipper" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Result, Date, Race, Venue, Group, Distance, Weight (kg), Jockey, Winner/2nd\n###Question: In which races did the jockey weigh less than 55.5 kg?" }, { "from": "gpt", "value": "SELECT Race FROM table WHERE Weight (kg) < 55.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: Result, Date, Race, Venue, Group, Distance, Weight (kg), Jockey, Winner/2nd\n###Question: What was the result of the Todman stakes race at rosehill?" }, { "from": "gpt", "value": "SELECT Result FROM table WHERE Venue = rosehill AND Race = todman stakes" } ]
[ { "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, Money ( $ )\n###Question: What Country has Player Ky Laffoon?" }, { "from": "gpt", "value": "SELECT Country FROM table WHERE Player = ky laffoon" } ]
[ { "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, Money ( $ )\n###Question: What Player is from the Country United States and Money ($) of 356?" }, { "from": "gpt", "value": "SELECT Player FROM table WHERE Country = united states AND Money ( $ ) = 356" } ]
[ { "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, Money ( $ )\n###Question: What Player has a To par of +1 and the Score 75-70-71-73=289?" }, { "from": "gpt", "value": "SELECT Player FROM table WHERE To par = +1 AND Score = 75-70-71-73=289" } ]
[ { "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, Tournament, Surface, Partner, Opponents in the final, Score\n###Question: What was the outcome for the Rome 2, Italy tournament?" }, { "from": "gpt", "value": "SELECT Outcome FROM table WHERE Tournament = rome 2, italy" } ]
[ { "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, Tournament, Surface, Partner, Opponents in the final, Score\n###Question: What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?" }, { "from": "gpt", "value": "SELECT Outcome FROM table WHERE Opponents in the final = marius călugăru ciprian petre porumb" } ]
[ { "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 golds have a Total of 11, and a Bronze smaller than 3?" }, { "from": "gpt", "value": "SELECT SUM Gold FROM table WHERE Total = 11 AND Bronze < 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: Rank, Nation, Gold, Silver, Bronze, Total\n###Question: How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0?" }, { "from": "gpt", "value": "SELECT SUM Gold FROM table WHERE Bronze = 0 AND Total > 1 AND Nation = chad 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: What is the smallest silver with a Gold of 1, and a Nation of lithuania?" }, { "from": "gpt", "value": "SELECT MIN Silver FROM table WHERE Gold = 1 AND Nation = lithuania" } ]
[ { "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 total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12?" }, { "from": "gpt", "value": "SELECT COUNT Bronze FROM table WHERE Gold > 1 AND Rank = 2 AND Silver < 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: Date, Visiting Team, Final Score, Host Team, Stadium\n###Question: Which Visiting Team is on december 23?" }, { "from": "gpt", "value": "SELECT Visiting Team FROM table WHERE Date = december 23" } ]
[ { "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 has Final Score of 42-23?" }, { "from": "gpt", "value": "SELECT Host Team FROM table WHERE Final Score = 42-23" } ]