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: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?" }, { "from": "gpt", "value": "SELECT COUNT Director FROM table WHERE # = 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: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who is the director of the episode whom Scott Peters is the writer?" }, { "from": "gpt", "value": "SELECT Director FROM table WHERE Writer = Scott Peters" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who is the villain in episode #7?" }, { "from": "gpt", "value": "SELECT Villains FROM table WHERE # = 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: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: Who wrote episode #1 in season 7?" }, { "from": "gpt", "value": "SELECT COUNT Writer FROM table WHERE # = 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: No., #, Title, Director, Writer, US air date, Storyteller, Villains\n###Question: When did the episode written by Jim Morris air?" }, { "from": "gpt", "value": "SELECT US air date FROM table WHERE Writer = Jim Morris" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rd, Name, Pole Position, Fastest Lap, Winning driver, Winning team, Report\n###Question: What was Datsun Twin 200's fastest lap?" }, { "from": "gpt", "value": "SELECT Fastest Lap FROM table WHERE Name = Datsun Twin 200" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rd, Name, Pole Position, Fastest Lap, Winning driver, Winning team, Report\n###Question: In the Datsun Twin 200 race, what was the fastest lap?" }, { "from": "gpt", "value": "SELECT Fastest Lap FROM table WHERE Name = Datsun Twin 200" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rd, Name, Pole Position, Fastest Lap, Winning driver, Winning team, Report\n###Question: What's the report for the True Value 500?" }, { "from": "gpt", "value": "SELECT Report FROM table WHERE Name = True Value 500" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rd, Name, Pole Position, Fastest Lap, Winning driver, Winning team, Report\n###Question: What was Johnny Rutherford's fastest lap while Al Unser was the pole position?" }, { "from": "gpt", "value": "SELECT Fastest Lap FROM table WHERE Winning driver = Johnny Rutherford AND Pole Position = Al Unser" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rd, Name, Pole Position, Fastest Lap, Winning driver, Winning team, Report\n###Question: What's the report on Penske Racing winning while the pole position was Al Unser?" }, { "from": "gpt", "value": "SELECT COUNT Report FROM table WHERE Pole Position = Al Unser AND Winning team = Penske Racing" } ]
[ { "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, Membership (from 2010), Name of member organization, Year current Scouting organization joined WOSM, Year member organization was founded, Admits boys/girls\n###Question: Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?" }, { "from": "gpt", "value": "SELECT Country FROM table WHERE Year current Scouting organization joined WOSM = 1930 AND Year member organization was founded = 1926" } ]
[ { "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, Membership (from 2010), Name of member organization, Year current Scouting organization joined WOSM, Year member organization was founded, Admits boys/girls\n###Question: Does Venezuela admit only boys, only girls, or both?" }, { "from": "gpt", "value": "SELECT Admits boys/girls FROM table WHERE Country = Venezuela" } ]
[ { "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, Membership (from 2010), Name of member organization, Year current Scouting organization joined WOSM, Year member organization was founded, Admits boys/girls\n###Question: Which organizations were founded in 1972, but became WOSM members until 1977?" }, { "from": "gpt", "value": "SELECT Name of member organization FROM table WHERE Year member organization was founded = 1972 AND Year current Scouting organization joined WOSM = 1977" } ]
[ { "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, Membership (from 2010), Name of member organization, Year current Scouting organization joined WOSM, Year member organization was founded, Admits boys/girls\n###Question: Does the Scout Association of Hong Kong admit boys, girls, or both?" }, { "from": "gpt", "value": "SELECT Admits boys/girls FROM table WHERE Name of member organization = The Scout Association of 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: Country, Membership (from 2010), Name of member organization, Year current Scouting organization joined WOSM, Year member organization was founded, Admits boys/girls\n###Question: Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?" }, { "from": "gpt", "value": "SELECT Admits boys/girls FROM table WHERE Year member organization was founded = 1912 AND Name of member organization = The Ghana Scout Association" } ]
[ { "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, Introduction, Discontinued, CPU Speed, Print resolution (DPI) Resolution is given in dots per inch (DPI), Print speed (PPM), Standard memory, Maximum memory\n###Question: What is the model number introduced May 1999?" }, { "from": "gpt", "value": "SELECT MAX Model FROM table WHERE Introduction = May 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: Model, Introduction, Discontinued, CPU Speed, Print resolution (DPI) Resolution is given in dots per inch (DPI), Print speed (PPM), Standard memory, Maximum memory\n###Question: What is the print resolution (FPI) for December 2002?" }, { "from": "gpt", "value": "SELECT Print resolution (DPI) Resolution is given in dots per inch (DPI) FROM table WHERE Introduction = December 2002" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Model, Introduction, Discontinued, CPU Speed, Print resolution (DPI) Resolution is given in dots per inch (DPI), Print speed (PPM), Standard memory, Maximum memory\n###Question: What is the maximum memory for the model discontinued in November 2001?" }, { "from": "gpt", "value": "SELECT Maximum memory FROM table WHERE Discontinued = November 2001" } ]
[ { "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/country, Local title, Network, Winners, Main presenters\n###Question: What is main presenters of La Granja?" }, { "from": "gpt", "value": "SELECT Main presenters FROM table WHERE Local title = La Granja" } ]
[ { "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/country, Local title, Network, Winners, Main presenters\n###Question: What is the main presenter of bulgaria?" }, { "from": "gpt", "value": "SELECT Main presenters FROM table WHERE Region/country = Bulgaria" } ]
[ { "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/country, Local title, Network, Winners, Main presenters\n###Question: How many winners are there of farma?" }, { "from": "gpt", "value": "SELECT COUNT Winners FROM table WHERE Local title = Farma" } ]
[ { "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, Team, League Apps, League Goals, Cup Apps, Cup Goals\n###Question: What is the most cup goals for seasson 1911-12?" }, { "from": "gpt", "value": "SELECT MAX Cup Goals FROM table WHERE Season = 1911-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: Season, Team, League Apps, League Goals, Cup Apps, Cup Goals\n###Question: What is the league apps for season 1923-24?" }, { "from": "gpt", "value": "SELECT League Apps FROM table WHERE Season = 1923-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: Season, Team, League Apps, League Goals, Cup Apps, Cup Goals\n###Question: What is the team for season 1911-12?" }, { "from": "gpt", "value": "SELECT Team FROM table WHERE Season = 1911-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: Season, Premier, Runner-up, Score, Margin, Venue, Attendance\n###Question: what's the minimum attendance with score  10.16 (76) – 9.22 (76)" }, { "from": "gpt", "value": "SELECT MIN Attendance FROM table WHERE Score = 10.16 (76) – 9.22 (76)" } ]
[ { "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, Premier, Runner-up, Score, Margin, Venue, Attendance\n###Question: who's the premier with in 1970" }, { "from": "gpt", "value": "SELECT Premier FROM table WHERE Season = 1970" } ]
[ { "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, Premier, Runner-up, Score, Margin, Venue, Attendance\n###Question: who are all the runner-up for premier in richmond" }, { "from": "gpt", "value": "SELECT Runner-up FROM table WHERE Premier = Richmond" } ]
[ { "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, Premier, Runner-up, Score, Margin, Venue, Attendance\n###Question: what is the minimum attendance with score 8.16 (64) – 8.12 (60)" }, { "from": "gpt", "value": "SELECT MIN Attendance FROM table WHERE Score = 8.16 (64) – 8.12 (60)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, Location, Street Names, Milepost, Roads Intersected, Notes\n###Question: How many mileposts are there on Anne Street?" }, { "from": "gpt", "value": "SELECT COUNT Milepost FROM table WHERE Street Names = Anne 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: County, Location, Street Names, Milepost, Roads Intersected, Notes\n###Question: Which street is 12.2 miles long?" }, { "from": "gpt", "value": "SELECT Street Names FROM table WHERE Milepost = 12.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: County, Location, Street Names, Milepost, Roads Intersected, Notes\n###Question: Where does Route 24 intersect?" }, { "from": "gpt", "value": "SELECT Location FROM table WHERE Roads Intersected = Route 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: County, Location, Street Names, Milepost, Roads Intersected, Notes\n###Question: Where is milepost 12.8?" }, { "from": "gpt", "value": "SELECT Location FROM table WHERE Milepost = 12.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: Commodity, 2001-02, 2002-03, 2003-04, 2004-05, 2005-06, 2006-07\n###Question: What is the minimum amount for wool for 2001-02?" }, { "from": "gpt", "value": "SELECT MIN 2001-02 FROM table WHERE Commodity = Wool" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Serial number, Wheel arrangement ( Whyte notation ), Build date, Operational owner(s), Disposition\n###Question: Who were the operational owners during the construction date of April 1892?" }, { "from": "gpt", "value": "SELECT Operational owner(s) FROM table WHERE Build date = April 1892" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Serial number, Wheel arrangement ( Whyte notation ), Build date, Operational owner(s), Disposition\n###Question: Where can you find Colorado and Southern Railway #9?" }, { "from": "gpt", "value": "SELECT Disposition FROM table WHERE Operational owner(s) = Colorado and Southern Railway #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: Serial number, Wheel arrangement ( Whyte notation ), Build date, Operational owner(s), Disposition\n###Question: What is the wheel arrangement for the train in Riverdale, Georgia?" }, { "from": "gpt", "value": "SELECT Wheel arrangement ( Whyte notation ) FROM table WHERE Disposition = Riverdale, Georgia" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Serial number, Wheel arrangement ( Whyte notation ), Build date, Operational owner(s), Disposition\n###Question: When was the train 2053 built?" }, { "from": "gpt", "value": "SELECT Build date FROM table WHERE Serial number = 2053" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Serial number, Wheel arrangement ( Whyte notation ), Build date, Operational owner(s), Disposition\n###Question: How many wheels does the train owned by Texas and New Orleans Railroad #319 have?" }, { "from": "gpt", "value": "SELECT COUNT Wheel arrangement ( Whyte notation ) FROM table WHERE Operational owner(s) = Texas and New Orleans Railroad #319" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Men’s Nickname, Women’s Nickname, Founded, Type, Enrollment, Joined, Left, Current Conference, Classification\n###Question: Which college has the men's nickname of the blazers?" }, { "from": "gpt", "value": "SELECT Institution FROM table WHERE Men’s Nickname = Blazers" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Men’s Nickname, Women’s Nickname, Founded, Type, Enrollment, Joined, Left, Current Conference, Classification\n###Question: Name the joined for the wolfpack women's nickname" }, { "from": "gpt", "value": "SELECT Joined FROM table WHERE Women’s Nickname = Wolfpack" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Men’s Nickname, Women’s Nickname, Founded, Type, Enrollment, Joined, Left, Current Conference, Classification\n###Question: Name the left of the Lady Pilots." }, { "from": "gpt", "value": "SELECT Left FROM table WHERE Women’s Nickname = Lady Pilots" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Men’s Nickname, Women’s Nickname, Founded, Type, Enrollment, Joined, Left, Current Conference, Classification\n###Question: Name the women's nickname when the enrollment is 1500 in mobile, Alabama." }, { "from": "gpt", "value": "SELECT Women’s Nickname FROM table WHERE Enrollment = 1500 AND Location = Mobile, Alabama" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Men’s Nickname, Women’s Nickname, Founded, Type, Enrollment, Joined, Left, Current Conference, Classification\n###Question: Which conference is in Jackson, Mississippi?" }, { "from": "gpt", "value": "SELECT Current Conference FROM table WHERE Location = Jackson, Mississippi" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Men’s Nickname, Women’s Nickname, Founded, Type, Enrollment, Joined, Left, Current Conference, Classification\n###Question: What is the men's nickname at the school that has the lady wildcats women's nickname?" }, { "from": "gpt", "value": "SELECT Men’s Nickname FROM table WHERE Women’s Nickname = Lady Wildcats" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Mens Nickname, Womens Nickname, Founded, Type, Enrollment, Joined\n###Question: What is the Mens Nickname for the member location of Jacksonville, florida?" }, { "from": "gpt", "value": "SELECT Mens Nickname FROM table WHERE Location = Jacksonville, 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: Institution, Location, Mens Nickname, Womens Nickname, Founded, Type, Enrollment, Joined\n###Question: What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?" }, { "from": "gpt", "value": "SELECT MAX Enrollment FROM table WHERE Founded = 1866 AND Type = Private/(African Methodist)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Mens Nickname, Womens Nickname, Founded, Type, Enrollment, Joined\n###Question: That is the year founded for the institution location of Nashville, Tennessee?" }, { "from": "gpt", "value": "SELECT MIN Founded FROM table WHERE Location = Nashville, Tennessee" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Location, Mens Nickname, Womens Nickname, Founded, Type, Enrollment, Joined\n###Question: What is the year the institution Tougaloo College joined?" }, { "from": "gpt", "value": "SELECT Joined FROM table WHERE Institution = Tougaloo College" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, Outgoing manager, Manner of departure, Date of vacancy, Replaced by, Date of appointment, Position in table\n###Question: What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?" }, { "from": "gpt", "value": "SELECT Date of vacancy FROM table WHERE Date of appointment = 28 November 2007 AND Replaced by = Alex McLeish" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, Outgoing manager, Manner of departure, Date of vacancy, Replaced by, Date of appointment, Position in table\n###Question: What is the date of appointment when the date of vacancy is 21 december 2007?" }, { "from": "gpt", "value": "SELECT Date of appointment FROM table WHERE Date of vacancy = 21 December 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: Team, Outgoing manager, Manner of departure, Date of vacancy, Replaced by, Date of appointment, Position in table\n###Question: Who replaced when team is wigan athletic?" }, { "from": "gpt", "value": "SELECT Replaced by FROM table WHERE Team = Wigan Athletic" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, Outgoing manager, Manner of departure, Date of vacancy, Replaced by, Date of appointment, Position in table\n###Question: What is the date of vacancy when the team is manchester city and replaced by is mark hughes?" }, { "from": "gpt", "value": "SELECT Date of vacancy FROM table WHERE Team = Manchester City AND Replaced by = Mark Hughes" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, Outgoing manager, Manner of departure, Date of vacancy, Replaced by, Date of appointment, Position in table\n###Question: What is the date of appointment when replaced by is roy hodgson?" }, { "from": "gpt", "value": "SELECT Date of appointment FROM table WHERE Replaced by = Roy Hodgson" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Team, Outgoing manager, Manner of departure, Date of vacancy, Replaced by, Date of appointment, Position in table\n###Question: Who replaced when position in table is pre-season?" }, { "from": "gpt", "value": "SELECT Replaced by FROM table WHERE Position in table = Pre-season" } ]
[ { "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, Member Association, Points, Group stage, Play-off, AFC Cup\n###Question: How many games had a score value of 813.5 in post-season play?" }, { "from": "gpt", "value": "SELECT COUNT Play-off FROM table WHERE Points = 813.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: Rank, Member Association, Points, Group stage, Play-off, AFC Cup\n###Question: Did any team score games that totaled up to 860.5?" }, { "from": "gpt", "value": "SELECT Play-off FROM table WHERE Points = 860.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, Home / Away, Score, High points, High rebounds, High assists, Location/Attendance, Record\n###Question: What was the score of the game when the team reached a record of 6-9?" }, { "from": "gpt", "value": "SELECT Score FROM table WHERE Record = 6-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: Institution, Nickname, Location, Founded, Type, Enrollment\n###Question: What type institution is point park university" }, { "from": "gpt", "value": "SELECT Type FROM table WHERE Institution = Point Park University" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Nickname, Location, Founded, Type, Enrollment\n###Question: How many institutions are located in wilmore, kentucky and private" }, { "from": "gpt", "value": "SELECT MAX Founded FROM table WHERE Type = Private AND Location = Wilmore, Kentucky" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Nickname, Location, Founded, Type, Enrollment\n###Question: point park university is what type of institution" }, { "from": "gpt", "value": "SELECT Type FROM table WHERE Institution = Point Park University" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Institution, Nickname, Location, Founded, Type, Enrollment\n###Question: how many founded dates are listed for carlow university 1" }, { "from": "gpt", "value": "SELECT COUNT Founded FROM table WHERE Institution = Carlow University 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: No. in series, No. in season, Title, Directed by, Written by, Original air date\n###Question: Who wrote the episode titled \"black\"?" }, { "from": "gpt", "value": "SELECT Written by FROM table WHERE Title = \"Black\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Directed by, Written by, Original air date\n###Question: Who are the writers for the episode \"solo\"?" }, { "from": "gpt", "value": "SELECT Written by FROM table WHERE Title = \"Solo\"" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Directed by, Written by, Original air date\n###Question: what is the original air date of the episode no in season 9?" }, { "from": "gpt", "value": "SELECT Original air date FROM table WHERE No. in season = 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: No. in series, No. in season, Title, Directed by, Written by, Original air date\n###Question: What is the title of the episode written by denis leary, peter tolan and evan reilly?" }, { "from": "gpt", "value": "SELECT Title FROM table WHERE Written by = Denis Leary, Peter Tolan and Evan Reilly" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Directed by, Written by, Original air date\n###Question: How many episodes were titles \"voicemail\"?" }, { "from": "gpt", "value": "SELECT COUNT Directed by FROM table WHERE Title = \"Voicemail\"" } ]
[ { "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, Dates active, Peak classification, Windspeeds, Pressure, Areas affected, Damage (USD), Deaths, Refs\n###Question: When was Kamba active?" }, { "from": "gpt", "value": "SELECT Dates active FROM table WHERE Name = Kamba" } ]
[ { "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, Dates active, Peak classification, Windspeeds, Pressure, Areas affected, Damage (USD), Deaths, Refs\n###Question: What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?" }, { "from": "gpt", "value": "SELECT Pressure FROM table WHERE Deaths = 95km/h (60mph)" } ]
[ { "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, Dates active, Peak classification, Windspeeds, Pressure, Areas affected, Damage (USD), Deaths, Refs\n###Question: What were the active dates for the storm that had 185km/h (115mph) deaths?" }, { "from": "gpt", "value": "SELECT Dates active FROM table WHERE Deaths = 185km/h (115mph)" } ]
[ { "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, Dates active, Peak classification, Windspeeds, Pressure, Areas affected, Damage (USD), Deaths, Refs\n###Question: What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?" }, { "from": "gpt", "value": "SELECT Damage (USD) FROM table WHERE Pressure = 1003hPa (29.62inHg)" } ]
[ { "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, Matches, Inns, N/O, Runs, High Score, Average, 100, 50, Catches, Stump\n###Question: what's the average where high score is 120" }, { "from": "gpt", "value": "SELECT Average FROM table WHERE High Score = 120" } ]
[ { "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, Matches, Inns, N/O, Runs, High Score, Average, 100, 50, Catches, Stump\n###Question: what's the player where 50 is 2 and n/o is 0" }, { "from": "gpt", "value": "SELECT Player FROM table WHERE 50 = 2 AND N/O = 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, Matches, Inns, N/O, Runs, High Score, Average, 100, 50, Catches, Stump\n###Question: what's the player where inns is 21" }, { "from": "gpt", "value": "SELECT Player FROM table WHERE Inns = 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: General election, # of candidates, # of seats won, % of popular vote, Result\n###Question: Which general election had a pq majority and a 44.75% of the popular vote?" }, { "from": "gpt", "value": "SELECT General election FROM table WHERE Result = PQ majority AND % of popular vote = 44.75%" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: General election, # of candidates, # of seats won, % of popular vote, Result\n###Question: What is the least number of candidates running were there when 80 seats were won?" }, { "from": "gpt", "value": "SELECT MIN # of candidates FROM table WHERE # of seats won = 80" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: General election, # of candidates, # of seats won, % of popular vote, Result\n###Question: How many seats were won in the election with 125 candidates?" }, { "from": "gpt", "value": "SELECT COUNT # of seats won FROM table WHERE # of candidates = 125" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Opponent, Result, Game site, Record, Attendance\n###Question: How many weeks are there?" }, { "from": "gpt", "value": "SELECT MAX Week FROM table" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Opponent, Result, Game site, Record, Attendance\n###Question: How many people attended the game against the indianapolis colts?" }, { "from": "gpt", "value": "SELECT COUNT Attendance FROM table WHERE Opponent = Indianapolis Colts" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Opponent, Result, Game site, Record, Attendance\n###Question: On december 16, 1985, all the records were what?" }, { "from": "gpt", "value": "SELECT Record FROM table WHERE Date = December 16, 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: Week, Date, Opponent, Result, Stadium, Record, Attendance\n###Question: How many results are there for the 0-4 record?" }, { "from": "gpt", "value": "SELECT COUNT Result FROM table WHERE Record = 0-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: Week, Date, Opponent, Result, Stadium, Record, Attendance\n###Question: How many weeks are there that include the date October 11, 1969." }, { "from": "gpt", "value": "SELECT COUNT Week FROM table WHERE Date = October 11, 1969" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Opponent, Result, Stadium, Record, Attendance\n###Question: How many weeks are there that include the date November 9, 1969." }, { "from": "gpt", "value": "SELECT COUNT Week FROM table WHERE Date = November 9, 1969" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Opponent, Result, Stadium, Record, Attendance\n###Question: How many records are there at the War Memorial Stadium?" }, { "from": "gpt", "value": "SELECT COUNT Record FROM table WHERE Stadium = War Memorial Stadium" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Week, Date, Opponent, Result, Stadium, Record, Attendance\n###Question: What was the minimum attendance on December 7, 1969?" }, { "from": "gpt", "value": "SELECT MIN Attendance FROM table WHERE Date = December 7, 1969" } ]
[ { "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, Opponent, Result, Stadium, Record, Attendance\n###Question: What week corresponds to the last one to be played at the memorial stadium?" }, { "from": "gpt", "value": "SELECT MAX Week FROM table WHERE Stadium = Memorial Stadium" } ]
[ { "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, Opponent, Result, Stadium, Record, Attendance\n###Question: In which stadium is the week 5 game played?" }, { "from": "gpt", "value": "SELECT Stadium FROM table WHERE Week = 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: 1st players choice, 2nd players choice, Probability 1st player wins, Probability 2nd player wins, Probability of a draw\n###Question: In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?" }, { "from": "gpt", "value": "SELECT Probability 1st player wins FROM table WHERE Probability of a draw = 8.28% AND 2nd players choice = B BR" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 1st players choice, 2nd players choice, Probability 1st player wins, Probability 2nd player wins, Probability of a draw\n###Question: If the first player chooses RB B, what is the second player's choices?" }, { "from": "gpt", "value": "SELECT 2nd players choice FROM table WHERE 1st players choice = RB 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: 1st players choice, 2nd players choice, Probability 1st player wins, Probability 2nd player wins, Probability of a draw\n###Question: What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?" }, { "from": "gpt", "value": "SELECT Probability 2nd player wins FROM table WHERE 2nd players choice = R RB AND Probability 1st player wins = 5.18%" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 1st players choice, 2nd players choice, Probability 1st player wins, Probability 2nd player wins, Probability of a draw\n###Question: What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?" }, { "from": "gpt", "value": "SELECT Probability 1st player wins FROM table WHERE Probability 2nd player wins = 80.11% AND 2nd players choice = R RB" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 1st players choice, 2nd players choice, Probability 1st player wins, Probability 2nd player wins, Probability of a draw\n###Question: What are the chances that player 2 wins if player 1's choice is BB R?" }, { "from": "gpt", "value": "SELECT Probability 2nd player wins FROM table WHERE 1st players choice = BB R" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: 1st players choice, 2nd players choice, Probability 1st player wins, Probability 2nd player wins, Probability of a draw\n###Question: How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?" }, { "from": "gpt", "value": "SELECT Probability 1st player wins FROM table WHERE Probability 2nd player wins = 88.29% AND 2nd players choice = R RB" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick #, NFL Team, Player, Position, College\n###Question: what is the nfl team where player is thane gash" }, { "from": "gpt", "value": "SELECT NFL Team FROM table WHERE Player = Thane Gash" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick #, NFL Team, Player, Position, College\n###Question: what is the maximum pick # where player is anthony blaylock" }, { "from": "gpt", "value": "SELECT MAX Pick # FROM table WHERE Player = Anthony Blaylock" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick #, NFL Team, Player, Position, College\n###Question: what's the nfl team where player is clifford charlton" }, { "from": "gpt", "value": "SELECT NFL Team FROM table WHERE Player = Clifford Charlton" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick #, NFL Team, Player, Position, College\n###Question: what's the position where player is anthony blaylock" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE Player = Anthony Blaylock" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick #, NFL Team, Player, Position, College\n###Question: what is the minimum pick # where position is defensive tackle" }, { "from": "gpt", "value": "SELECT MIN Pick # 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: Province, Population (2004 estimate), Area (km²), Density, GDP (2003, PPS in mil. € ), GDP per cap. (2003, in €)\n###Question: Which province has a density of 971.4?" }, { "from": "gpt", "value": "SELECT Province FROM table WHERE Density = 971.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: Province, Population (2004 estimate), Area (km²), Density, GDP (2003, PPS in mil. € ), GDP per cap. (2003, in €)\n###Question: What is Friesland's gdp per capita?" }, { "from": "gpt", "value": "SELECT MIN GDP per cap. (2003, in €) FROM table WHERE Province = Friesland" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Province, Population (2004 estimate), Area (km²), Density, GDP (2003, PPS in mil. € ), GDP per cap. (2003, in €)\n###Question: What is the area of the place that has a population density of 331.4?" }, { "from": "gpt", "value": "SELECT MAX Area (km²) FROM table WHERE Density = 331.4" } ]