instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | How many seasons did "strangled, not stirred" air? | SELECT COUNT No. in season FROM table WHERE Title = "Strangled, Not Stirred" |
Translate the following into a SQL query | How many episodes did Alison Maclean direct? | SELECT COUNT Written by FROM table WHERE Directed by = Alison Maclean |
Translate the following into a SQL query | Name the high points for may 29 | SELECT High points FROM table WHERE Date = May 29 |
Translate the following into a SQL query | Name the date for series 2-2 | SELECT Date FROM table WHERE Series = 2-2 |
Translate the following into a SQL query | Name the high assists for may 21 | SELECT High assists FROM table WHERE Date = May 21 |
Translate the following into a SQL query | How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers? | SELECT COUNT Play-by-play FROM table WHERE Pregame analysts = Darren Flutie, Eric Tillman and Greg Frers |
Translate the following into a SQL query | Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving? | SELECT Play-by-play FROM table WHERE Pregame host = Brian Williams AND Sideline reporters = Steve Armitage and Brenda Irving |
Translate the following into a SQL query | Who were the pregame hosts when the sideline reporters were Steve Armitage and Brenda Irving? | SELECT Pregame host FROM table WHERE Sideline reporters = Steve Armitage and Brenda Irving |
Translate the following into a SQL query | Who did pregame analysis in 2002? | SELECT Pregame analysts FROM table WHERE Year = 2002 |
Translate the following into a SQL query | Name the state for lake county | SELECT State FROM table WHERE County = Lake County |
Translate the following into a SQL query | Name the total number of county seat or courthouse for april 1 2010 denisty is 2205 | SELECT COUNT County seat or courthouse FROM table WHERE April 1, 2010 density (/mi²) = 2205 |
Translate the following into a SQL query | Name the total number of states for july 1 2010 density is 1209 | SELECT COUNT State FROM table WHERE July 1, 2010 density (/mi²) = 1209 |
Translate the following into a SQL query | What is the lowest season? | SELECT MIN Season FROM table |
Translate the following into a SQL query | How many values for number of clubs have Shandong as the runner-up? | SELECT COUNT Number of clubs FROM table WHERE Runners-up = Shandong |
Translate the following into a SQL query | How many total wins with Shanghai as runner-up? | SELECT COUNT Total wins FROM table WHERE Runners-up = Shanghai |
Translate the following into a SQL query | Name the club for when tries for is 32 | SELECT Club FROM table WHERE Tries for = 32 |
Translate the following into a SQL query | Name the number of lost where tries for is 109 | SELECT COUNT Lost FROM table WHERE Tries for = 109 |
Translate the following into a SQL query | Name the won when tries against is 72 | SELECT Won FROM table WHERE Tries against = 72 |
Translate the following into a SQL query | Name the points aginst when drawn is 1 and points is 51 | SELECT Points against FROM table WHERE Drawn = 1 AND Points = 51 |
Translate the following into a SQL query | Name the original air date for number in season being 1 | SELECT Original air date FROM table WHERE No. in season = 1 |
Translate the following into a SQL query | How many were won when 5 were lost? | SELECT Won FROM table WHERE Lost = 5 |
Translate the following into a SQL query | How many were drawn when 13 were lost? | SELECT Drawn FROM table WHERE Lost = 13 |
Translate the following into a SQL query | How many points are there for 63 tries against? | SELECT Points for FROM table WHERE Tries against = 63 |
Translate the following into a SQL query | What is the try bonus when the tries against are 17? | SELECT Try bonus FROM table WHERE Tries against = 17 |
Translate the following into a SQL query | How many tries for are there when 11 were won? | SELECT Tries for FROM table WHERE Won = 11 |
Translate the following into a SQL query | How many points categories are there when the losing bonus is 2 and points for are 642? | SELECT COUNT Points FROM table WHERE Losing bonus = 2 AND Points for = 642 |
Translate the following into a SQL query | How many people wrote the episode that had 6.34 million viewers? | SELECT COUNT Written by FROM table WHERE Viewership = 6.34 million |
Translate the following into a SQL query | What was the title of the episode with 5.04 million viewers? | SELECT Original title FROM table WHERE Viewership = 5.04 million |
Translate the following into a SQL query | What was the first airdate with a viewership of 4.77 million? | SELECT Original airdate FROM table WHERE Viewership = 4.77 million |
Translate the following into a SQL query | How many episodes of 30 minutes were written by John Sullivan? | SELECT COUNT Duration FROM table WHERE Written by = John Sullivan |
Translate the following into a SQL query | Who was the director when the writer was John Sullivan? | SELECT Directed by FROM table WHERE Written by = John Sullivan |
Translate the following into a SQL query | What is the total length when the title is " one man's junk " | SELECT COUNT Duration FROM table WHERE Original title = " One Man's Junk " |
Translate the following into a SQL query | What are the movies that are written and dircted by john sullivan with the airdate of 15january2009. | SELECT Directed by FROM table WHERE Written by = John Sullivan AND Original airdate = 15January2009 |
Translate the following into a SQL query | What is the total viewership where the title is " your cheating art ". | SELECT Viewership FROM table WHERE Original title = " Your Cheating Art " |
Translate the following into a SQL query | How many episodes aired on 22january2009 | SELECT COUNT Episode FROM table WHERE Original airdate = 22January2009 |
Translate the following into a SQL query | Name the least transfers out when transfers is 21 | SELECT MIN Transfers Out FROM table WHERE Total Transfers = 21 |
Translate the following into a SQL query | Name the least total transfers for romania | SELECT MIN Total Transfers FROM table WHERE Country = Romania |
Translate the following into a SQL query | Name the least internal transfers | SELECT MIN Internal Transfers FROM table |
Translate the following into a SQL query | How many status are there for Moncton? | SELECT COUNT Status FROM table WHERE Official Name = Moncton |
Translate the following into a SQL query | What is the census ranking of the location with population of 959? | SELECT Census Ranking FROM table WHERE Population = 959 |
Translate the following into a SQL query | What is the name of the place with 582.20 square km area? | SELECT Official Name FROM table WHERE Area km 2 = 582.20 |
Translate the following into a SQL query | What is the name of the place where area is 578.28 square km? | SELECT Official Name FROM table WHERE Area km 2 = 578.28 |
Translate the following into a SQL query | If the points is 20, what was the team name? | SELECT Team FROM table WHERE Points = 20 |
Translate the following into a SQL query | What is the time/retired if the driver is Marco Andretti? | SELECT Time/Retired FROM table WHERE Driver = Marco Andretti |
Translate the following into a SQL query | If the laps is 191, what is the maximum laps led? | SELECT MAX Laps Led FROM table WHERE Laps = 191 |
Translate the following into a SQL query | What is the time/retired if the driver is Ed Carpenter? | SELECT Time/Retired FROM table WHERE Driver = Ed Carpenter |
Translate the following into a SQL query | If the time/retired is +1 lap, what is the amount of maximum laps? | SELECT MAX Laps FROM table WHERE Time/Retired = +1 lap |
Translate the following into a SQL query | If the driver is Milka Duno, what is the name of the team? | SELECT Team FROM table WHERE Driver = Milka Duno |
Translate the following into a SQL query | How many stages were won by Robbie McEwen? | SELECT COUNT Stage FROM table WHERE Winner = Robbie McEwen |
Translate the following into a SQL query | How many car numbers were listed for Rusty Wallace? | SELECT COUNT Car # FROM table WHERE Winning Driver = Rusty Wallace |
Translate the following into a SQL query | In what season did Rusty Wallace win? | SELECT MAX Season FROM table WHERE Winning Driver = Rusty Wallace |
Translate the following into a SQL query | What was the represented team on June 27? | SELECT Team FROM table WHERE Date = June 27 |
Translate the following into a SQL query | Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS? | SELECT Winning Driver FROM table WHERE Team = Hendrick Motorsports AND Make = Chevrolet Impala SS |
Translate the following into a SQL query | When 45 is the goals for and 10 is the drawn what is the lost? | SELECT Lost FROM table WHERE Drawn = 10 AND Goals For = 45 |
Translate the following into a SQL query | When +10 is the goal difference what is the goals for? | SELECT Goals For FROM table WHERE Goal Difference = +10 |
Translate the following into a SQL query | When ellesmere port & neston is the team what are the points 1? | SELECT Points 1 FROM table WHERE Team = Ellesmere Port & Neston |
Translate the following into a SQL query | When 2005 is the season how many drivers are there? | SELECT COUNT Driver FROM table WHERE Season = 2005 |
Translate the following into a SQL query | When tony kanaan is the driver what is the average speed miles per hour? | SELECT Average Speed (mph) FROM table WHERE Driver = Tony Kanaan |
Translate the following into a SQL query | When 169.182 is the average speed miles per hour what is the chassis? | SELECT Chassis FROM table WHERE Average Speed (mph) = 169.182 |
Translate the following into a SQL query | When 1:34:01 is the race time what is the miles in kilometers? | SELECT Miles (km) FROM table WHERE Race Time = 1:34:01 |
Translate the following into a SQL query | When 228 is the lap and chip ganassi racing is the team what is the race time? | SELECT Race Time FROM table WHERE Team = Chip Ganassi Racing AND Laps = 228 |
Translate the following into a SQL query | What tie number featured Chelsea as the home team? | SELECT MIN Tie no FROM table WHERE Home team = Chelsea |
Translate the following into a SQL query | In what tie were Leeds United the away team? | SELECT MAX Tie no FROM table WHERE Away team = Leeds United |
Translate the following into a SQL query | Who was the home team when Burnley were the away team? | SELECT Home team FROM table WHERE Away team = Burnley |
Translate the following into a SQL query | what is the lowest year represented? | SELECT MIN Year FROM table |
Translate the following into a SQL query | What was the score when Françoise Dürr was partner? | SELECT Score FROM table WHERE Partner = Françoise Dürr |
Translate the following into a SQL query | What was the outcome in 1975? | SELECT Outcome FROM table WHERE Year = 1975 |
Translate the following into a SQL query | On what surface was the game played with a score of 6–4, 6–4? | SELECT Surface FROM table WHERE Score = 6–4, 6–4 |
Translate the following into a SQL query | What is the year of appearance for the Prince Albert Raiders? | SELECT Years of appearance FROM table WHERE Team = Prince Albert Raiders |
Translate the following into a SQL query | How many wins do the Erie Otters have? | SELECT Wins FROM table WHERE Team = Erie Otters |
Translate the following into a SQL query | What is the final win percentage of the Sault Ste. Marie Greyhounds? | SELECT Final Win % FROM table WHERE Team = Sault Ste. Marie Greyhounds |
Translate the following into a SQL query | What is the total number of semi-final losses for the Kitchener Rangers? | SELECT MAX Semi-Final Losses FROM table WHERE Team = Kitchener Rangers |
Translate the following into a SQL query | How many wins do the Red Deer Rebels have? | SELECT MAX Wins FROM table WHERE Team = Red Deer Rebels |
Translate the following into a SQL query | What is the record for November 26, 1961? | SELECT Record FROM table WHERE Date = November 26, 1961 |
Translate the following into a SQL query | What was the game site against the Dallas Texans? | SELECT Game site FROM table WHERE Opponent = Dallas Texans |
Translate the following into a SQL query | In how many years was Tom Fleming the final television commentator? | SELECT COUNT Year(s) FROM table WHERE Final television commentator = Tom Fleming |
Translate the following into a SQL query | What was the latest year that Colin Berry was the spokesperson? | SELECT MAX Year(s) FROM table WHERE Spokesperson = Colin Berry |
Translate the following into a SQL query | Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray? | SELECT Semi-final television commentator FROM table WHERE Spokesperson = Colin Berry AND Final television commentator = Pete Murray |
Translate the following into a SQL query | Who was the radio commentator when the final television commentator was John Dunn? | SELECT Radio commentator FROM table WHERE Final television commentator = John Dunn |
Translate the following into a SQL query | What is the latest year that the final television commentator was David Jacobs? | SELECT MAX Year(s) FROM table WHERE Final television commentator = David Jacobs |
Translate the following into a SQL query | What was their record when the attendance at the game was 14489? | SELECT Record FROM table WHERE Attendance = 14489 |
Translate the following into a SQL query | When did they play at the Cotton Bowl? | SELECT Date FROM table WHERE Game site = Cotton Bowl |
Translate the following into a SQL query | What is the percentage of this constellation abbreviated as 'nor'? | SELECT Percentage FROM table WHERE Abbreviation = Nor |
Translate the following into a SQL query | This constellation, abbreviated as 'oph' has how many right ascension (in hm)? | SELECT COUNT Right ascension (hm) FROM table WHERE Abbreviation = Oph |
Translate the following into a SQL query | What is the name of this constellation with an area of 245.375 sq. deg.? | SELECT Constellation FROM table WHERE Area (sq.deg.) = 245.375 |
Translate the following into a SQL query | This constellation with a ranking of 51 has how many percentages on record? | SELECT COUNT Percentage FROM table WHERE Rank = 51 |
Translate the following into a SQL query | What is the percentage of this constellation with an area of 248.885 sq. deg.? | SELECT Percentage FROM table WHERE Area (sq.deg.) = 248.885 |
Translate the following into a SQL query | Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r | SELECT Broadcast date FROM table WHERE Viewers (in millions) = 6.4 AND Archive = 16mm t/r |
Translate the following into a SQL query | Name the archive where run time 24:04 | SELECT Archive FROM table WHERE Run time = 24:04 |
Translate the following into a SQL query | On November 1, 1964, where was the game site? | SELECT Game site FROM table WHERE Date = November 1, 1964 |
Translate the following into a SQL query | How many people attended the Week 8 game when Denver played Buffalo? | SELECT Attendance FROM table WHERE Week = 8 |
Translate the following into a SQL query | How many times did the Denver Broncos face the Dallas Texans this season? | SELECT COUNT Record FROM table WHERE Opponent = Dallas Texans |
Translate the following into a SQL query | What year was the winning race time 1:55:13? | SELECT MAX Year FROM table WHERE Race Time = 1:55:13 |
Translate the following into a SQL query | For races with an average speed of 113.835 mph, what are the winning race times? | SELECT Race Time FROM table WHERE Average Speed (mph) = 113.835 |
Translate the following into a SQL query | What manufacturer won the race on November 2? | SELECT Manufacturer FROM table WHERE Date = November 2 |
Translate the following into a SQL query | What date did Jamie McMurray win the race? | SELECT Date FROM table WHERE Driver = Jamie McMurray |
Translate the following into a SQL query | What was the date of the race with a winning time of 1:55:13? | SELECT Date FROM table WHERE Race Time = 1:55:13 |
Translate the following into a SQL query | What team(s) enjoyed an average spped (mph) of 138.14? | SELECT Team FROM table WHERE Average Speed (mph) = 138.14 |
Translate the following into a SQL query | How many laps recorded in 2001? | SELECT Laps FROM table WHERE Year = 2001 |
Translate the following into a SQL query | What team(s) were in 2003? | SELECT Team FROM table WHERE Year = 2003 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.