conversations
listlengths 2
2
|
---|
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Level, Division, Section, Position\n###Question: Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?"
},
{
"from": "gpt",
"value": "SELECT Section FROM table WHERE Level = tier 3 AND Position = 6th AND Season = 1937-38"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Level, Division, Section, Position\n###Question: Which section is in the 6th position?"
},
{
"from": "gpt",
"value": "SELECT Section FROM table WHERE Position = 6th"
}
] |
[
{
"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: Name the attendance with date of june 11"
},
{
"from": "gpt",
"value": "SELECT Attendance FROM table WHERE Date = june 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: Wicket, Runs, Partnerships, Venue, Date\n###Question: Which partnership has a run number of 27?"
},
{
"from": "gpt",
"value": "SELECT Partnerships FROM table WHERE Runs = 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: Wicket, Runs, Partnerships, Venue, Date\n###Question: What venue did the parntership of shoaib malik / misbah-ul-haq occur?"
},
{
"from": "gpt",
"value": "SELECT Venue FROM table WHERE Partnerships = shoaib malik / misbah-ul-haq"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Wicket, Runs, Partnerships, Venue, Date\n###Question: What venue did the partnership of herschelle gibbs / justin kemp happen?"
},
{
"from": "gpt",
"value": "SELECT Venue FROM table WHERE Partnerships = herschelle gibbs / justin kemp"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Club, Played, Drawn, Lost, Points for, Points against, Tries for, Tries against, Try bonus, Losing bonus\n###Question: What is the number Played that has 310 Points for?"
},
{
"from": "gpt",
"value": "SELECT Played FROM table WHERE Points for = 310"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Club, Played, Drawn, Lost, Points for, Points against, Tries for, Tries against, Try bonus, Losing bonus\n###Question: What Losing bonus has a Points against of 588?"
},
{
"from": "gpt",
"value": "SELECT Losing bonus FROM table WHERE Points against = 588"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Club, Played, Drawn, Lost, Points for, Points against, Tries for, Tries against, Try bonus, Losing bonus\n###Question: What Tries against has a Losing bonus of 7?"
},
{
"from": "gpt",
"value": "SELECT Tries against FROM table WHERE Losing bonus = 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: Club, Played, Drawn, Lost, Points for, Points against, Tries for, Tries against, Try bonus, Losing bonus\n###Question: What Try bonus has a Points against of 488?"
},
{
"from": "gpt",
"value": "SELECT Try bonus FROM table WHERE Points against = 488"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Club, Played, Drawn, Lost, Points for, Points against, Tries for, Tries against, Try bonus, Losing bonus\n###Question: What Points for has a Try bonus of 140?"
},
{
"from": "gpt",
"value": "SELECT Points for FROM table WHERE Try bonus = 140"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Club, Played, Drawn, Lost, Points for, Points against, Tries for, Tries against, Try bonus, Losing bonus\n###Question: What Drawn has a Tries against of 0?"
},
{
"from": "gpt",
"value": "SELECT Drawn FROM table WHERE Tries against = 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: Name, Reign, Days held, Location, Defenses\n###Question: What is the days held the champion with a reign larger than 3 and 1 defense has?"
},
{
"from": "gpt",
"value": "SELECT Days held FROM table WHERE Reign > 3 AND Defenses = 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: Name, Reign, Days held, Location, Defenses\n###Question: What is the days held the champion with a reign larger than 3 and less than 1 defense has?"
},
{
"from": "gpt",
"value": "SELECT Days held FROM table WHERE Reign > 3 AND Defenses < 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: Name, Reign, Days held, Location, Defenses\n###Question: What is the average defenses a champion with 404 days held and a reign larger than 1 has?"
},
{
"from": "gpt",
"value": "SELECT AVG Defenses FROM table WHERE Days held = 404 AND Reign > 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: Name, Reign, Days held, Location, Defenses\n###Question: What is the lowest defense a champion with 345 days held has?"
},
{
"from": "gpt",
"value": "SELECT MIN Defenses FROM table WHERE Days held = 345"
}
] |
[
{
"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: On what date was there a record of 76-72?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Record = 76-72"
}
] |
[
{
"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 attendance that had a loss of Ponson (1-5)?"
},
{
"from": "gpt",
"value": "SELECT Attendance FROM table WHERE Loss = ponson (1-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: On which day was there a record of 36-39?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Record = 36-39"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Date, Opponent, Score, Loss, Attendance, Record\n###Question: On what day was the record 30-31?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Record = 30-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: Date, Opponent, Score, Loss, Record\n###Question: Who was the opponent at the game that had a loss of Leonard (7β8)?"
},
{
"from": "gpt",
"value": "SELECT Opponent FROM table WHERE Loss = leonard (7β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, Record\n###Question: What was the score of the game when the record was 18β43?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Record = 18β43"
}
] |
[
{
"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 against the Royals when the record was 24β52?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Opponent = royals AND Record = 24β52"
}
] |
[
{
"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 22β46?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Record = 22β46"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Code Name, Function (figure), Real Name, Birthplace, Serial number, Primary military speciality, Secondary military speciality\n###Question: What is the real name of the person whose primary military specialty is shock paratrooper?"
},
{
"from": "gpt",
"value": "SELECT Real Name FROM table WHERE Primary military speciality = shock paratrooper"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Code Name, Function (figure), Real Name, Birthplace, Serial number, Primary military speciality, Secondary military speciality\n###Question: What is the birthplace of Pete Sanderson?"
},
{
"from": "gpt",
"value": "SELECT Birthplace FROM table WHERE Real Name = pete sanderson"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Code Name, Function (figure), Real Name, Birthplace, Serial number, Primary military speciality, Secondary military speciality\n###Question: What role did Jean-Luc Bouvier serve?"
},
{
"from": "gpt",
"value": "SELECT Function (figure) FROM table WHERE Real Name = jean-luc bouvier"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Code Name, Function (figure), Real Name, Birthplace, Serial number, Primary military speciality, Secondary military speciality\n###Question: What is the real name of the person who is a pilot of the silent attack kayak?"
},
{
"from": "gpt",
"value": "SELECT Real Name FROM table WHERE Function (figure) = pilot of the silent attack kayak"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Code Name, Function (figure), Real Name, Birthplace, Serial number, Primary military speciality, Secondary military speciality\n###Question: What is the code name of the person born in Liverpool?"
},
{
"from": "gpt",
"value": "SELECT Code Name FROM table WHERE Birthplace = liverpool"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Medal, Name, Games, Sport, Event\n###Question: What is the names for the medalist in the sport of canoeing?"
},
{
"from": "gpt",
"value": "SELECT Name FROM table WHERE Sport = canoeing"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Medal, Name, Games, Sport, Event\n###Question: What games had the women's half middleweight event?"
},
{
"from": "gpt",
"value": "SELECT Games FROM table WHERE Event = women's half middleweight"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Medal, Name, Games, Sport, Event\n###Question: Who received the bronze medal in the 2000 Sydney games?"
},
{
"from": "gpt",
"value": "SELECT Name FROM table WHERE Medal = bronze AND Games = 2000 sydney"
}
] |
[
{
"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: How many people attended when opponent was twins?"
},
{
"from": "gpt",
"value": "SELECT COUNT Attendance FROM table WHERE Opponent = twins"
}
] |
[
{
"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: Which date has a Record of 41-46?"
},
{
"from": "gpt",
"value": "SELECT Date FROM table WHERE Record = 41-46"
}
] |
[
{
"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: Which score has a Record of 48-55?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Record = 48-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: Date, Opponent, Score, Loss, Attendance, Record\n###Question: Which score has a Record of 44-49?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Record = 44-49"
}
] |
[
{
"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: Which score has an Attendance larger than 16,571, and a Loss of mcdowell (0-1)?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Attendance > 16,571 AND Loss = mcdowell (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: Which score has an Opponent of white sox, and a Record of 2-0?"
},
{
"from": "gpt",
"value": "SELECT Score FROM table WHERE Opponent = white sox AND Record = 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: Year, Office, Candidate, Popular Votes, Percentage\n###Question: How many votes did candice sjostrom receive?"
},
{
"from": "gpt",
"value": "SELECT AVG Popular Votes FROM table WHERE Candidate = candice sjostrom"
}
] |
[
{
"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, Office, Candidate, Popular Votes, Percentage\n###Question: What percentage did chris wright receive?"
},
{
"from": "gpt",
"value": "SELECT Percentage FROM table WHERE Candidate = chris wright"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Office, Candidate, Popular Votes, Percentage\n###Question: How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?"
},
{
"from": "gpt",
"value": "SELECT AVG Popular Votes FROM table WHERE Office = us representative 4 AND Percentage = 1.59% AND Year > 1992"
}
] |
[
{
"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, Years, State, Party, Lifespan\n###Question: What years did J. Smith Young serve as a Representative?"
},
{
"from": "gpt",
"value": "SELECT Years FROM table WHERE Representative = j. smith young"
}
] |
[
{
"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, Years, State, Party, Lifespan\n###Question: Which party did Thomas L. Young belong to?"
},
{
"from": "gpt",
"value": "SELECT Party FROM table WHERE Representative = thomas l. young"
}
] |
[
{
"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 lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal?"
},
{
"from": "gpt",
"value": "SELECT MIN Total FROM table WHERE Gold = 0 AND Bronze > 2 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: What is the total number of silver medals for countries of rank 14, with less than 1 total medals?"
},
{
"from": "gpt",
"value": "SELECT SUM Silver FROM table WHERE Rank = 14 AND Total < 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: Player, Solo, Total, Sacks, Fumble force, Fumble rec\n###Question: How many tackles for the player with over 0 fumble recovries and 0 forced fumbles?"
},
{
"from": "gpt",
"value": "SELECT COUNT Total FROM table WHERE Fumble rec > 0 AND Fumble force = 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: Player, Solo, Total, Sacks, Fumble force, Fumble rec\n###Question: How many forced fumbles for jim laney with under 2 solo tackles?"
},
{
"from": "gpt",
"value": "SELECT COUNT Fumble force FROM table WHERE Solo < 2 AND Player = jim laney"
}
] |
[
{
"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, Solo, Total, Sacks, Fumble force, Fumble rec\n###Question: What is the high total for players with over 15 solo tackles?"
},
{
"from": "gpt",
"value": "SELECT MAX Total FROM table WHERE Solo > 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: Player, Solo, Total, Sacks, Fumble force, Fumble rec\n###Question: How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles?"
},
{
"from": "gpt",
"value": "SELECT SUM Fumble rec FROM table WHERE Sacks = 0 AND Fumble force = 0 AND Player = scott gajos AND Solo < 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, Time, Competition, Opponent, Ground, Score\n###Question: Who is the Opponent playing at 20:00 GMT at Camp Nou?"
},
{
"from": "gpt",
"value": "SELECT Opponent FROM table WHERE Time = 20:00 gmt AND Ground = camp nou"
}
] |
[
{
"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, Time, Competition, Opponent, Ground, Score\n###Question: What time was the match played with a score of 3-2?"
},
{
"from": "gpt",
"value": "SELECT Time FROM table WHERE Score = 3-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, Time, Competition, Opponent, Ground, Score\n###Question: On which ground did the team play Aston Villa?"
},
{
"from": "gpt",
"value": "SELECT Ground FROM table WHERE Opponent = aston villa"
}
] |
[
{
"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, Time, Competition, Opponent, Ground, Score\n###Question: What kind of competition was it at San Siro at 18:30 GMT?"
},
{
"from": "gpt",
"value": "SELECT Competition FROM table WHERE Ground = san siro AND Time = 18:30 gmt"
}
] |
[
{
"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, Years, Gender, Locality, Authority, Decile\n###Question: What is the total number of decile for the redwood school locality?"
},
{
"from": "gpt",
"value": "SELECT COUNT Decile FROM table WHERE Name = redwood school"
}
] |
[
{
"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, Circuit, Date, Winning driver, Winning constructor, Report\n###Question: Which report includes a Circuit of Tripoli?"
},
{
"from": "gpt",
"value": "SELECT Report FROM table WHERE Circuit = tripoli"
}
] |
Subsets and Splits