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