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: Province, Population (2004 estimate), Area (km²), Density, GDP (2003, PPS in mil. € ), GDP per cap. (2003, in €)\n###Question: Which province has a gdp of 38355€ million euros?"
},
{
"from": "gpt",
"value": "SELECT Province FROM table WHERE GDP (2003, PPS in mil. € ) = 38355"
}
] |
[
{
"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 population estimate for the place that gad a 18496€ million euro gdp?"
},
{
"from": "gpt",
"value": "SELECT Population (2004 estimate) FROM table WHERE GDP (2003, PPS in mil. € ) = 18496"
}
] |
[
{
"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, Featured character(s), Original air date, U.S. viewers (million)\n###Question: What is the title when original air date is may15,2008?"
},
{
"from": "gpt",
"value": "SELECT Title FROM table WHERE Original air date = May15,2008"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Directed by, Written by, Featured character(s), Original air date, U.S. viewers (million)\n###Question: What is the highest no. in season?"
},
{
"from": "gpt",
"value": "SELECT MAX No. in season 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: No. in series, No. in season, Title, Directed by, Written by, Featured character(s), Original air date, U.S. viewers (million)\n###Question: Who directed the episode where u.s. viewers (million) is 12.90?"
},
{
"from": "gpt",
"value": "SELECT Directed by FROM table WHERE U.S. viewers (million) = 12.90"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: DVD Name, # of Ep, Region 1, Region 2, Region 4\n###Question: How many episodes aired in Region 2 beginning May 26, 2008?"
},
{
"from": "gpt",
"value": "SELECT MIN # of Ep FROM table WHERE Region 2 = May 26, 2008"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: DVD Name, # of Ep, Region 1, Region 2, Region 4\n###Question: What date did the DVD for season six come out in region 2?"
},
{
"from": "gpt",
"value": "SELECT Region 2 FROM table WHERE DVD Name = Season Six"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: DVD Name, # of Ep, Region 1, Region 2, Region 4\n###Question: What is the least amount of season epidsodes?"
},
{
"from": "gpt",
"value": "SELECT MIN # of Ep 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: DVD Name, # of Ep, Region 1, Region 2, Region 4\n###Question: What DVD season/name for region 2 was released August 22, 2010?"
},
{
"from": "gpt",
"value": "SELECT DVD Name FROM table WHERE Region 2 = August 22, 2010"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Series, Team Name, Races, Poles, Wins, Points, Position\n###Question: How many points for 2005?"
},
{
"from": "gpt",
"value": "SELECT COUNT Points FROM table WHERE Season = 2005"
}
] |
[
{
"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, Series, Team Name, Races, Poles, Wins, Points, Position\n###Question: what is the score for the dams?"
},
{
"from": "gpt",
"value": "SELECT Points FROM table WHERE Team Name = DAMS"
}
] |
[
{
"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, Series, Team Name, Races, Poles, Wins, Points, Position\n###Question: how many positions in 2009?"
},
{
"from": "gpt",
"value": "SELECT COUNT Position FROM table WHERE Season = 2009"
}
] |
[
{
"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, Series, Team Name, Races, Poles, Wins, Points, Position\n###Question: what is the least number of poles?"
},
{
"from": "gpt",
"value": "SELECT MIN Poles 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: Season, Series, Team Name, Races, Poles, Wins, Points, Position\n###Question: Which series with 62 points?"
},
{
"from": "gpt",
"value": "SELECT Series FROM table WHERE Points = 62"
}
] |
[
{
"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, Series, Team Name, Races, Poles, Wins, Points, Position\n###Question: What is the total for 10th position?"
},
{
"from": "gpt",
"value": "SELECT COUNT Points FROM table WHERE Position = 10th"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Winning driver, Winning team, Report\n###Question: how many reports of races took place on october 16?"
},
{
"from": "gpt",
"value": "SELECT COUNT Report FROM table WHERE Date = October 16"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Winning driver, Winning team, Report\n###Question: what is the name of the report that lists the race name as long beach grand prix?"
},
{
"from": "gpt",
"value": "SELECT Report FROM table WHERE Race Name = Long Beach Grand Prix"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Winning driver, Winning team, Report\n###Question: what is the report called where the circuit took place at the nazareth speedway?"
},
{
"from": "gpt",
"value": "SELECT Report FROM table WHERE Circuit = Nazareth Speedway"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Winning driver, Winning team, Report\n###Question: what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?"
},
{
"from": "gpt",
"value": "SELECT Race Name FROM table WHERE Winning team = Newman/Haas Racing AND Pole position = Rick Mears"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Winning driver, Winning team, Report\n###Question: meadowlands sports complex is the circuit at which city/location?"
},
{
"from": "gpt",
"value": "SELECT City/Location FROM table WHERE Circuit = Meadowlands Sports Complex"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Religious group, Population %, Growth (1991–2001), Sex ratio (total), Literacy (%), Work participation (%), Sex ratio (rural), Sex ratio (urban), Sex ratio (child)\n###Question: What is the literacy rate for groups that grew 103.1% between 1991 and 2001?"
},
{
"from": "gpt",
"value": "SELECT Literacy (%) FROM table WHERE Growth (1991–2001) = 103.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: Religious group, Population %, Growth (1991–2001), Sex ratio (total), Literacy (%), Work participation (%), Sex ratio (rural), Sex ratio (urban), Sex ratio (child)\n###Question: What is the lowest sex ratio in rural areas?"
},
{
"from": "gpt",
"value": "SELECT MIN Sex ratio (rural) 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: Religious group, Population %, Growth (1991–2001), Sex ratio (total), Literacy (%), Work participation (%), Sex ratio (rural), Sex ratio (urban), Sex ratio (child)\n###Question: What is the lowest child sex ratio in groups where employment is 31.3%?"
},
{
"from": "gpt",
"value": "SELECT MIN Sex ratio (child) FROM table WHERE Work participation (%) = 31.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: Religious group, Population %, Growth (1991–2001), Sex ratio (total), Literacy (%), Work participation (%), Sex ratio (rural), Sex ratio (urban), Sex ratio (child)\n###Question: What is the population percentage of the group where the rural sex ratio is 953?"
},
{
"from": "gpt",
"value": "SELECT Population % FROM table WHERE Sex ratio (rural) = 953"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: What is the original air date for the title \"felonious monk\"?"
},
{
"from": "gpt",
"value": "SELECT Original air date FROM table WHERE Title = \"Felonious Monk\""
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: What is the title of the episode directed by Peter Markle and written by Jerry Stahl?"
},
{
"from": "gpt",
"value": "SELECT Title FROM table WHERE Directed by = Peter Markle AND Written by = Jerry Stahl"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: How many episodes were titled \"identity crisis\"?"
},
{
"from": "gpt",
"value": "SELECT COUNT Directed by FROM table WHERE Title = \"Identity Crisis\""
}
] |
[
{
"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, Network, Host, Pre-race analyst, Lap-by-lap, Color commentator(s), Pit reporters\n###Question: Who does the lap-by-lap in 2011?"
},
{
"from": "gpt",
"value": "SELECT Lap-by-lap FROM table WHERE Year = 2011"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Network, Host, Pre-race analyst, Lap-by-lap, Color commentator(s), Pit reporters\n###Question: Which network has Marty Reid as host and lap-by-lap broadcaster?"
},
{
"from": "gpt",
"value": "SELECT Network FROM table WHERE Lap-by-lap = Marty Reid AND Host = Marty Reid"
}
] |
[
{
"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, Network, Host, Pre-race analyst, Lap-by-lap, Color commentator(s), Pit reporters\n###Question: How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?"
},
{
"from": "gpt",
"value": "SELECT COUNT Pre-race analyst FROM table WHERE Lap-by-lap = Allen Bestwick"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: What's the highest season number of an episode in the series?"
},
{
"from": "gpt",
"value": "SELECT MAX No. in season 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: No. in series, No. in season, Title, Directed by, Written by, Original air date, U.S. viewers (millions)\n###Question: When did the episode titled \"Lucky Strike\" air for the first time?"
},
{
"from": "gpt",
"value": "SELECT Original air date FROM table WHERE Title = \"Lucky Strike\""
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: Who was the writer of the episode titled \"One Hit Wonder\"?"
},
{
"from": "gpt",
"value": "SELECT Written by FROM table WHERE Title = \"One Hit Wonder\""
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: What's the date of the first airing of the episode with series number 63?"
},
{
"from": "gpt",
"value": "SELECT Original air date FROM table WHERE No. in series = 63"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: How many titles got a viewership of 26.53 million?"
},
{
"from": "gpt",
"value": "SELECT COUNT Title FROM table WHERE U.S. viewers (millions) = 26.53"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: How many viewers tuned into the show directed by Matt Earl Beesley?"
},
{
"from": "gpt",
"value": "SELECT U.S. viewers (millions) FROM table WHERE Directed by = Matt Earl Beesley"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: Who wrote episode 94?"
},
{
"from": "gpt",
"value": "SELECT Written by FROM table WHERE No. in series = 94"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: Which episode was the number in the season where the number in the season is 10?"
},
{
"from": "gpt",
"value": "SELECT No. in series FROM table WHERE No. in season = 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: No. in series, No. in season, Title, Directed by, Written by, Original air date, U.S. viewers (millions)\n###Question: How many episodes were in the season that had the epiosde of \"crow's feet\"?"
},
{
"from": "gpt",
"value": "SELECT No. in season FROM table WHERE Title = \"Crow's Feet\""
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: When did the 113 episode air?"
},
{
"from": "gpt",
"value": "SELECT Original air date FROM table WHERE No. in series = 113"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: How many titles were there for the 113 episode?"
},
{
"from": "gpt",
"value": "SELECT COUNT Title FROM table WHERE No. in series = 113"
}
] |
[
{
"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, U.S. viewers (millions)\n###Question: What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?"
},
{
"from": "gpt",
"value": "SELECT MAX No. in season FROM table WHERE Written by = Marlene Meyer AND U.S. viewers (millions) = 20.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: No. in series, No. in season, Title, Directed by, Written by, Original air date, U.S. viewers (millions)\n###Question: When did the no. 23 show originally air?"
},
{
"from": "gpt",
"value": "SELECT Original air date FROM table WHERE No. in season = 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: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report\n###Question: Which circuits had a race on October 4?"
},
{
"from": "gpt",
"value": "SELECT Circuit FROM table WHERE Date = October 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: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report\n###Question: In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?"
},
{
"from": "gpt",
"value": "SELECT Report FROM table WHERE Pole position = Michael Andretti AND Winning team = Galles-Kraco 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: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report\n###Question: How many rounds were there of the Bosch Spark Plug Grand Prix?"
},
{
"from": "gpt",
"value": "SELECT COUNT Rnd FROM table WHERE Race Name = Bosch Spark Plug Grand Prix"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report\n###Question: Which rounds were held on August 9?"
},
{
"from": "gpt",
"value": "SELECT Rnd FROM table WHERE Date = August 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: Rnd, Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report\n###Question: On how many dates did the Michigan International Speedway hold a round?"
},
{
"from": "gpt",
"value": "SELECT COUNT Date FROM table WHERE Circuit = Michigan International Speedway"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Conference, # of Bids, Record, Win %, Round of 32, Sweet Sixteen, Elite Eight, Final Four, Championship Game\n###Question: Name the total number of bids of the sun belt conference"
},
{
"from": "gpt",
"value": "SELECT COUNT # of Bids FROM table WHERE Conference = Sun Belt"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Conference, # of Bids, Record, Win %, Round of 32, Sweet Sixteen, Elite Eight, Final Four, Championship Game\n###Question: Name the round of 32 in conference usa"
},
{
"from": "gpt",
"value": "SELECT Round of 32 FROM table WHERE Conference = Conference USA"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Conference, # of Bids, Record, Win %, Round of 32, Sweet Sixteen, Elite Eight, Final Four, Championship Game\n###Question: What is the record when round of 32 is 0 and metro atlantic conference?"
},
{
"from": "gpt",
"value": "SELECT Record FROM table WHERE Round of 32 = 0 AND Conference = Metro Atlantic"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Conference, # of Bids, Record, Win %, Round of 32, Sweet Sixteen, Elite Eight, Final Four, Championship Game\n###Question: What is the number of bids with elite eight larger than 1.0"
},
{
"from": "gpt",
"value": "SELECT COUNT # of Bids FROM table WHERE Elite Eight > 1.0"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Series #, Season #, Title, Directed by, Written by, Original air date, Production code, U.S. viewers (millions)\n###Question: Who directed the episode with production code 7aff03?"
},
{
"from": "gpt",
"value": "SELECT Directed by FROM table WHERE Production code = 7AFF03"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Series #, Season #, Title, Directed by, Written by, Original air date, Production code, U.S. viewers (millions)\n###Question: What is the title of the episode wtih 10.34 million U.S viewers?"
},
{
"from": "gpt",
"value": "SELECT Title FROM table WHERE U.S. viewers (millions) = 10.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: Season, Series, Team Name, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What place is the team that completed 6 races?"
},
{
"from": "gpt",
"value": "SELECT Position FROM table WHERE Races = 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: Season, Series, Team Name, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: how much did the british formula three called \"fortec motorsport\" score?"
},
{
"from": "gpt",
"value": "SELECT Points FROM table WHERE Series = British Formula Three AND Team Name = Fortec Motorsport"
}
] |
[
{
"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, Series, Team Name, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: how many races were in 2009 with 0 wins?"
},
{
"from": "gpt",
"value": "SELECT Races FROM table WHERE Season = 2009 AND Wins = 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: Season, Series, Team Name, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What years did art grand prix compete?"
},
{
"from": "gpt",
"value": "SELECT Season FROM table WHERE Team Name = ART Grand Prix"
}
] |
[
{
"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, Series, Team Name, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: What year had a score of 9?"
},
{
"from": "gpt",
"value": "SELECT Season FROM table WHERE Points = 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: Season, Series, Team Name, Races, Wins, Poles, F/Laps, Podiums, Points, Position\n###Question: what is the greatest number of wins by japanese formula three?"
},
{
"from": "gpt",
"value": "SELECT MAX Wins FROM table WHERE Series = Japanese Formula Three"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: #, Air Date, Challenge, Winner, Test-taker, Passed?\n###Question: Who took test #4?"
},
{
"from": "gpt",
"value": "SELECT Test-taker FROM table WHERE # = 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: #, Air Date, Challenge, Winner, Test-taker, Passed?\n###Question: What episode aired on 18 April 2007?"
},
{
"from": "gpt",
"value": "SELECT MIN # FROM table WHERE Air Date = 18 April 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: #, Air Date, Challenge, Winner, Test-taker, Passed?\n###Question: Who had the challenge of night driving?"
},
{
"from": "gpt",
"value": "SELECT Test-taker FROM table WHERE Challenge = Night Driving"
}
] |
[
{
"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 (Ceremony), Film title used in nomination, Original title, Director, Result\n###Question: How many directors were there for the film Course Completed?"
},
{
"from": "gpt",
"value": "SELECT COUNT Director FROM table WHERE Film title used in nomination = Course Completed"
}
] |
[
{
"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 (Ceremony), Film title used in nomination, Original title, Director, Result\n###Question: Who directed El Nido?"
},
{
"from": "gpt",
"value": "SELECT Director FROM table WHERE Original title = El nido"
}
] |
[
{
"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 (Ceremony), Film title used in nomination, Original title, Director, Result\n###Question: Who directed Dulcinea?"
},
{
"from": "gpt",
"value": "SELECT Director FROM table WHERE Original title = Dulcinea"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951\n###Question: What are the slovenian names of the villages that had 65.9% of slovenes in 1951?"
},
{
"from": "gpt",
"value": "SELECT Village (Slovenian) FROM table WHERE Percent of Slovenes 1951 = 65.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: Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951\n###Question: What are the slovenian names of the villages that had 16.7% of slovenes in 1991?"
},
{
"from": "gpt",
"value": "SELECT Village (Slovenian) FROM table WHERE Percent of Slovenes 1991 = 16.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: Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951\n###Question: How many villages had 21.7% of slovenes in 1991?"
},
{
"from": "gpt",
"value": "SELECT COUNT Village (German) FROM table WHERE Percent of Slovenes 1991 = 21.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: Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951\n###Question: what percent of slovenes did the village called čahorče in slovenian have in 1991?"
},
{
"from": "gpt",
"value": "SELECT Percent of Slovenes 1991 FROM table WHERE Village (Slovenian) = Čahorče"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951\n###Question: What is the slovenian name for the village that in german is known as st.margarethen?"
},
{
"from": "gpt",
"value": "SELECT Village (Slovenian) FROM table WHERE Village (German) = St.Margarethen"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record\n###Question: For games on December 20, how many points did the scoring leaders get?"
},
{
"from": "gpt",
"value": "SELECT High points FROM table WHERE Date = December 20"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record\n###Question: Who was the scoring leader and how many points did he get in games on December 23?"
},
{
"from": "gpt",
"value": "SELECT High points 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: Pick #, CFL Team, Player, Position, College\n###Question: What is the pick # for the position de?"
},
{
"from": "gpt",
"value": "SELECT Pick # FROM table WHERE Position = DE"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: Which player went to college at Saint Mary's?"
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE College = Saint Mary's"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What is the position for the player with cfl team Winnipeg blue bombers?"
},
{
"from": "gpt",
"value": "SELECT Position FROM table WHERE CFL Team = Winnipeg Blue Bombers"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: Which player went to college at Laval?"
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE College = Laval"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?"
},
{
"from": "gpt",
"value": "SELECT College FROM table WHERE CFL Team = Edmonton Eskimos (via Calgary)"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Pick #, CFL Team, Player, Position, College\n###Question: What's the team of the player from St. Francis Xavier College?"
},
{
"from": "gpt",
"value": "SELECT CFL Team FROM table WHERE College = St. Francis Xavier"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What player is on the Montreal Alouettes CFl team?"
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE CFL Team = Montreal Alouettes"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What's the pick number of the player from Toronto Argonauts?"
},
{
"from": "gpt",
"value": "SELECT MIN Pick # FROM table WHERE CFL Team = Toronto Argonauts"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What's the pick number of the player whose position is CB?"
},
{
"from": "gpt",
"value": "SELECT Pick # FROM table WHERE Position = CB"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What's the pick number of the player from New Mexico?"
},
{
"from": "gpt",
"value": "SELECT MAX Pick # FROM table WHERE College = New Mexico"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What player went to Ohio State College?"
},
{
"from": "gpt",
"value": "SELECT Player FROM table WHERE College = Ohio State"
}
] |
[
{
"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 Range, Builder, Introduced, No. Built, Region, Withdrawn\n###Question: What is the minimum introduced value for the Departmental region?"
},
{
"from": "gpt",
"value": "SELECT MIN Introduced FROM table WHERE Region = Departmental"
}
] |
[
{
"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 Range, Builder, Introduced, No. Built, Region, Withdrawn\n###Question: What is the smallest introduced value?"
},
{
"from": "gpt",
"value": "SELECT MIN Introduced 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: Pick #, CFL Team, Player, Position, College\n###Question: Which CFL Teams drafted an OL in 2006?"
},
{
"from": "gpt",
"value": "SELECT CFL Team FROM table WHERE Position = OL"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: Which college is aligned to the Saskatchewan Roughriders?"
},
{
"from": "gpt",
"value": "SELECT College FROM table WHERE CFL Team = Saskatchewan Roughriders"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft."
},
{
"from": "gpt",
"value": "SELECT Position FROM table WHERE CFL Team = Hamilton Tiger-Cats (via Ottawa)"
}
] |
[
{
"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 #, CFL Team, Player, Position, College\n###Question: What is the earliest pick listed in the table."
},
{
"from": "gpt",
"value": "SELECT MIN Pick # 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: No. in series, No. in season, Title, Directed by, Written by, Original air date, Production code, U.S. viewers (millions)\n###Question: What episode number had production code e4423?"
},
{
"from": "gpt",
"value": "SELECT MAX No. in season FROM table WHERE Production code = E4423"
}
] |
[
{
"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, Production code, U.S. viewers (millions)\n###Question: What's the latest episode in a season where the U.S. viewers totaled 14.37 million?"
},
{
"from": "gpt",
"value": "SELECT MAX No. in season FROM table WHERE U.S. viewers (millions) = 14.37"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: No. in series, No. in season, Title, Directed by, Written by, Original air date, Production code, U.S. viewers (millions)\n###Question: Who directed the episode \"Escape\"?"
},
{
"from": "gpt",
"value": "SELECT Directed by FROM table WHERE Title = \"Escape\""
}
] |
[
{
"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, Episodes, Time slot (EST), Season premiere, Season finale, TV season, Rank, Viewers (in millions)\n###Question: How many seasons is the season finale on May 26, 2010?"
},
{
"from": "gpt",
"value": "SELECT COUNT Season FROM table WHERE Season finale = May 26, 2010"
}
] |
[
{
"from": "human",
"value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Episodes, Time slot (EST), Season premiere, Season finale, TV season, Rank, Viewers (in millions)\n###Question: What episodes are there where the season premier is September 23, 2009?"
},
{
"from": "gpt",
"value": "SELECT Episodes FROM table WHERE Season premiere = September 23, 2009"
}
] |
[
{
"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, Episodes, Time slot (EST), Season premiere, Season finale, TV season, Rank, Viewers (in millions)\n###Question: What is the season finale for season 4?"
},
{
"from": "gpt",
"value": "SELECT Season finale FROM table WHERE Season = 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: Season, Episodes, Time slot (EST), Season premiere, Season finale, TV season, Rank, Viewers (in millions)\n###Question: How many season premiers have a rank of #21?"
},
{
"from": "gpt",
"value": "SELECT Season premiere FROM table WHERE Rank = #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: Season, Episodes, Time slot (EST), Season premiere, Season finale, TV season, Rank, Viewers (in millions)\n###Question: What are the seasons where September 26, 2007 is the season premier?"
},
{
"from": "gpt",
"value": "SELECT TV season FROM table WHERE Season premiere = September 26, 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: Model, RU, Max processors, Processor frequency, Max memory, Max disk capacity, GA Date\n###Question: What max processor has a maximum memory of 256 gb?"
},
{
"from": "gpt",
"value": "SELECT Max processors FROM table WHERE Max memory = 256 GB"
}
] |
[
{
"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, RU, Max processors, Processor frequency, Max memory, Max disk capacity, GA Date\n###Question: What is the max memory of the t5120 model?"
},
{
"from": "gpt",
"value": "SELECT Max memory FROM table WHERE Model = T5120"
}
] |
Subsets and Splits