instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
How many episodes had 16.03 million viewers?
SELECT COUNT No. in series FROM table WHERE U.S. viewers (millions) = 16.03
Translate the following into a SQL query
What is the number of interregnum for duration 3 months, 6 days?
SELECT COUNT Interregnum ended FROM table WHERE Duration = 3 months, 6 days
Translate the following into a SQL query
Who directed Episode 8?
SELECT Directed by FROM table WHERE Episode # = 8
Translate the following into a SQL query
Who directed the episode called "Tell-tale Heart"?
SELECT Directed by FROM table WHERE Title = "Tell-Tale Heart"
Translate the following into a SQL query
What was the original air date for Series 36?
SELECT Original air date FROM table WHERE Series # = 36
Translate the following into a SQL query
Who wrote Series 38?
SELECT Written by FROM table WHERE Series # = 38
Translate the following into a SQL query
What is the percentage for manhattan 45,901?
SELECT COUNT % FROM table WHERE Manhattan = 45,901
Translate the following into a SQL query
Who won the 1973 democratic initial primary for queens of 19%?
SELECT 1973 Democratic initial primary FROM table WHERE Queens = 19%
Translate the following into a SQL query
What is the manhattan for richmond 35%?
SELECT Manhattan FROM table WHERE Richmond [Staten Is.] = 35%
Translate the following into a SQL query
What is the queens where richmond staten is 42%?
SELECT Queens FROM table WHERE Richmond [Staten Is.] = 42%
Translate the following into a SQL query
what's the party with brooklyn value of 51.0%
SELECT party FROM table WHERE Brooklyn = 51.0%
Translate the following into a SQL query
what's the brooklyn with queens value of 16.8%
SELECT Brooklyn FROM table WHERE Queens = 16.8%
Translate the following into a SQL query
what is the minimum total
SELECT MIN Total FROM table
Translate the following into a SQL query
what's the % with total value of 249887 and queens value of 6.8%
SELECT % FROM table WHERE Total = 249887 AND Queens = 6.8%
Translate the following into a SQL query
Which teams were in the central division and located in livonia?
SELECT Team FROM table WHERE Division = Central AND Location = Livonia
Translate the following into a SQL query
Which teams are located in highland township?
SELECT Team FROM table WHERE Location = Highland Township
Translate the following into a SQL query
What conference was the churchill chargers team in?
SELECT Conference FROM table WHERE Team = Churchill Chargers
Translate the following into a SQL query
What was the titles of the episodes written by ken lazebnik?
SELECT Title FROM table WHERE Written by = Ken LaZebnik
Translate the following into a SQL query
Who directed an episode that had 2.81 million U.S. viewers?
SELECT Directed by FROM table WHERE U.S. viewers (million) = 2.81
Translate the following into a SQL query
What were the names of the episodes that had 3.02 million U.S. viewers?
SELECT Title FROM table WHERE U.S. viewers (million) = 3.02
Translate the following into a SQL query
What were the original air dates of the episode named "winds of war"?
SELECT Original air date FROM table WHERE Title = "Winds of War"
Translate the following into a SQL query
Who directed episodes that had 2.61 million U.S. viewers?
SELECT Directed by FROM table WHERE U.S. viewers (million) = 2.61
Translate the following into a SQL query
How many millions of U.S. viewers watched "Brace for Impact"?
SELECT U.S. viewers (million) FROM table WHERE Title = "Brace for Impact"
Translate the following into a SQL query
How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?
SELECT U.S. viewers (million) FROM table WHERE Original air date = March 31, 2013
Translate the following into a SQL query
Who wrote the episodes that were viewed by 2.12 million viewers?
SELECT Written by FROM table WHERE U.S. viewers (million) = 2.12
Translate the following into a SQL query
The episode written by Rebecca Dameron aired on what date?
SELECT Original air date FROM table WHERE Written by = Rebecca Dameron
Translate the following into a SQL query
Which episode in the series drew 3.6 million U.S. viewers?
SELECT MIN No. in series FROM table WHERE U.S. viewers (million) = 3.6
Translate the following into a SQL query
Who wrote the episode that aired on April 17, 2011?
SELECT Written by FROM table WHERE Original air date = April 17, 2011
Translate the following into a SQL query
How many times did episode 79 originally air?
SELECT COUNT Original air date FROM table WHERE No. in series = 79
Translate the following into a SQL query
How many millions of views in the country watched "Line of Departure"?
SELECT U.S. viewers (million) FROM table WHERE Title = "Line of Departure"
Translate the following into a SQL query
What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?
SELECT MLS Cup Winner FROM table WHERE MLS Cup Runner-Up = Colorado Rapids
Translate the following into a SQL query
What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?
SELECT MLS Cup Winner FROM table WHERE MLS Supporters Shield Runner-Up = Chivas USA
Translate the following into a SQL query
who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?
SELECT MLS Cup Runner-Up FROM table WHERE MLS Cup Winner = Real Salt Lake
Translate the following into a SQL query
Which shield winner has the mls cup runner up and the season is 2000?
SELECT MLS Cup Runner-Up FROM table WHERE Season = 2000
Translate the following into a SQL query
League apps (sub) maximum?
SELECT MAX League Apps (Sub) FROM table
Translate the following into a SQL query
When total goals is 11 what was the league apps (sub)?
SELECT MAX League Apps (Sub) FROM table WHERE Total Goals = 11
Translate the following into a SQL query
Which city had the charleston area convention center as its callback location
SELECT Audition City FROM table WHERE Callback Venue = Charleston Area Convention Center
Translate the following into a SQL query
When did the callbacks from rancho bernardo inn air
SELECT Episode Air Date FROM table WHERE Callback Venue = Rancho Bernardo Inn
Translate the following into a SQL query
The station located in Albuquerque has been owned since what year?
SELECT Owned since FROM table WHERE City of license/Market = Albuquerque
Translate the following into a SQL query
What channels have stations that were affiliated in 2002?
SELECT Channel TV ( DT ) FROM table WHERE Year of affiliation = 2002
Translate the following into a SQL query
What market is KTFK-DT in?
SELECT City of license/Market FROM table WHERE Station = KTFK-DT
Translate the following into a SQL query
what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)
SELECT Engine FROM table WHERE Performance = 0–100km/h: 10.5s, VMax km/h (mph)
Translate the following into a SQL query
what's the turbo where trim is 2.0 20v
SELECT Turbo FROM table WHERE Trim = 2.0 20v
Translate the following into a SQL query
what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)
SELECT Torque FROM table WHERE Performance = 0–100km/h: 7.5s auto, VMax: km/h (mph)
Translate the following into a SQL query
what's the transmission where turbo is yes (mitsubishi td04-16t )
SELECT Transmission FROM table WHERE Turbo = Yes (Mitsubishi TD04-16t )
Translate the following into a SQL query
what's the fuel delivery where power is hp (kw) @6500 rpm
SELECT Fuel Delivery FROM table WHERE Power = hp (kW) @6500 rpm
Translate the following into a SQL query
" what's the engine with turbo being yes (mitsubishi td04-15g ) "
SELECT Engine FROM table WHERE Turbo = Yes (Mitsubishi TD04-15g )
Translate the following into a SQL query
What is the english title that has finale as 33 and peak as 42?
SELECT English title FROM table WHERE Finale = 33 AND Peak = 42
Translate the following into a SQL query
What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?
SELECT English title FROM table WHERE Premiere < 30.0 AND Finale > 36.0
Translate the following into a SQL query
What is the rank of the chinese title 緣來自有機?
SELECT Rank FROM table WHERE Chinese title = 緣來自有機
Translate the following into a SQL query
What amount is the number of hk viewers where chinese title is 十兄弟?
SELECT HK viewers FROM table WHERE Chinese title = 十兄弟
Translate the following into a SQL query
What is the weekly rank with an air date is november 12, 2007?
SELECT Weekly Rank FROM table WHERE Air Date = November 12, 2007
Translate the following into a SQL query
What is the air date of the episode "blowback"?
SELECT Air Date FROM table WHERE Episode = "Blowback"
Translate the following into a SQL query
What is the lowest weekly rank with an air date of november 26, 2007?
SELECT MIN Weekly Rank FROM table WHERE Air Date = November 26, 2007
Translate the following into a SQL query
What is the episode where 18-49 has a rating/share of 3.5/9
SELECT Episode FROM table WHERE 18–49 (Rating/Share) = 3.5/9
Translate the following into a SQL query
What is the viewers where the rating is 5.3?
SELECT Viewers (m) FROM table WHERE Rating = 5.3
Translate the following into a SQL query
What is the 18-49 rating/share where the viewers is 5.61?
SELECT 18–49 (Rating/Share) FROM table WHERE Viewers (m) = 5.61
Translate the following into a SQL query
What is the highest of balmoor/
SELECT Highest FROM table WHERE Stadium = Balmoor
Translate the following into a SQL query
What is the number of capacity at somerset park?
SELECT COUNT Capacity FROM table WHERE Stadium = Somerset Park
Translate the following into a SQL query
What is the minimum capacity where airdrie united is?
SELECT MIN Capacity FROM table WHERE Team = Airdrie United
Translate the following into a SQL query
What is the stadium for alloa athletic?
SELECT Stadium FROM table WHERE Team = Alloa Athletic
Translate the following into a SQL query
What is the highest of ayr united?
SELECT MIN Highest FROM table WHERE Team = Ayr United
Translate the following into a SQL query
What is the average?
SELECT MIN Average FROM table
Translate the following into a SQL query
When are team Galway's dates of appointment?
SELECT Date of appointment FROM table WHERE Team = Galway
Translate the following into a SQL query
When are the vacancy dates for outgoing manager Damien Fox?
SELECT Date of vacancy FROM table WHERE Outgoing manager = Damien Fox
Translate the following into a SQL query
When is the date of vacancy of Davy Fitzgerald being a replacement?
SELECT Date of vacancy FROM table WHERE Replaced by = Davy FitzGerald
Translate the following into a SQL query
Which team has the outgoing manager John Meyler?
SELECT Team FROM table WHERE Outgoing manager = John Meyler
Translate the following into a SQL query
How many times is 3 credits 180?
SELECT COUNT 1 credit FROM table WHERE 3 credits = 180
Translate the following into a SQL query
What is the hand for 4 credits is 1600?
SELECT Hand FROM table WHERE 4 credits = 1600
Translate the following into a SQL query
How many 3 credits are there with 5 credits of 5?
SELECT COUNT 3 credits FROM table WHERE 5 credits = 5
Translate the following into a SQL query
How many 4 credits is the hand two pair?
SELECT COUNT 4 credits FROM table WHERE Hand = Two pair
Translate the following into a SQL query
What duration is listed for Christian de la Fuente?
SELECT Duration FROM table WHERE Actor = Christian de la Fuente
Translate the following into a SQL query
What was the final episode for Dea Agent?
SELECT Final Episode FROM table WHERE Position = DEA Agent
Translate the following into a SQL query
What days is greenock morton vacant?
SELECT Date of vacancy FROM table WHERE Team = Greenock Morton
Translate the following into a SQL query
What are the dates of the outgoing manager colin hendry does appointments?
SELECT Date of appointment FROM table WHERE Outgoing manager = Colin Hendry
Translate the following into a SQL query
What teams does jim mcinally manage?
SELECT Team FROM table WHERE Outgoing manager = Jim McInally
Translate the following into a SQL query
What days are vacant that were replaced by john brown?
SELECT Date of vacancy FROM table WHERE Replaced by = John Brown
Translate the following into a SQL query
What manner of departure is listed with an appointment date of 13 march 2008
SELECT Manner of departure FROM table WHERE Date of appointment = 13 March 2008
Translate the following into a SQL query
What is the date of appointment for outgoing manager Campbell Money
SELECT Date of appointment FROM table WHERE Outgoing manager = Campbell Money
Translate the following into a SQL query
What is the lowest attendance that East End Park has ever had?
SELECT MIN Lowest FROM table WHERE Stadium = East End Park
Translate the following into a SQL query
What team plays at Palmerston Park?
SELECT Team FROM table WHERE Stadium = Palmerston Park
Translate the following into a SQL query
What is the lowest attandance recorded at Cappielow?
SELECT MIN Lowest FROM table WHERE Stadium = Cappielow
Translate the following into a SQL query
What is the highest attendance at a game played by St. Johnstone?
SELECT MAX Highest FROM table WHERE Team = St. Johnstone
Translate the following into a SQL query
What is the highest attandence at a Hamilton Academical game?
SELECT MIN Highest FROM table WHERE Team = Hamilton Academical
Translate the following into a SQL query
who is the champion where semi-finalist #2 is na and location is morrisville, nc
SELECT Champion FROM table WHERE Semi-Finalist #2 = NA AND Location = Morrisville, NC
Translate the following into a SQL query
what's the score where year is 2007
SELECT Score FROM table WHERE Year = 2007
Translate the following into a SQL query
what is the total number of semi-finalist #2 where runner-up is east carolina
SELECT COUNT Semi-Finalist #2 FROM table WHERE Runner-Up = East Carolina
Translate the following into a SQL query
who is the semi-finalist #1 where runner-up is elon university
SELECT Semi-Finalist #1 FROM table WHERE Runner-Up = Elon University
Translate the following into a SQL query
who is the runner-up where year is 2004 and champion is north carolina state
SELECT Runner-Up FROM table WHERE Year = 2004 AND Champion = North Carolina State
Translate the following into a SQL query
who is the runner-up where location is ellenton, fl and year is 2004
SELECT Runner-Up FROM table WHERE Location = Ellenton, FL AND Year = 2004
Translate the following into a SQL query
what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165
SELECT Naturalisation by marriage FROM table WHERE Numer of Jamaicans granted British citizenship = 3165
Translate the following into a SQL query
how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060
SELECT COUNT Numer of Jamaicans granted British citizenship FROM table WHERE Naturalisation by marriage = 1060
Translate the following into a SQL query
what's the naturalisation by marriage with regbeingtration of a minor child being 114
SELECT Naturalisation by marriage FROM table WHERE Registration of a minor child = 114
Translate the following into a SQL query
what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927
SELECT Numer of Jamaicans granted British citizenship FROM table WHERE Naturalisation by residence = 927
Translate the following into a SQL query
what is the maximum year with registration of a minor child being 281
SELECT MAX Year FROM table WHERE Registration of a minor child = 281
Translate the following into a SQL query
How many episodes had their first air date on March 6, 2008?
SELECT COUNT Episode Titles FROM table WHERE First air date = March 6, 2008
Translate the following into a SQL query
What were the results of episodes with the first air date of March 6, 2008?
SELECT Finish FROM table WHERE First air date = March 6, 2008
Translate the following into a SQL query
How many millions of viewers watched episode 15?
SELECT U.S. viewers (millions) FROM table WHERE No. in season = 15
Translate the following into a SQL query
How many millions of viewers watched the "Throwing Heat" episode?
SELECT U.S. viewers (millions) FROM table WHERE Title = "Throwing Heat"
Translate the following into a SQL query
How many millions of viewers watched the episode directed by Anthony Hemingway?
SELECT U.S. viewers (millions) FROM table WHERE Directed by = Anthony Hemingway