instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
When 13 is the share (18-49) what is the rank (timeslot)?
SELECT Rank (timeslot) FROM table WHERE Share (18–49) = 13
Translate the following into a SQL query
When 11 is the episode what is the air date?
SELECT First Air Date FROM table WHERE Episode = 11
Translate the following into a SQL query
When there are 10.02 million viewers what is the rating (18-49)?
SELECT Rating (18–49) FROM table WHERE Viewers (millions) = 10.02
Translate the following into a SQL query
When there are 9.28 million viewers what is the share (18-49)?
SELECT Share (18–49) FROM table WHERE Viewers (millions) = 9.28
Translate the following into a SQL query
When 4 is the episode what is the air date?
SELECT First Air Date FROM table WHERE Episode = 4
Translate the following into a SQL query
How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)?
SELECT COUNT Result FROM table WHERE Score = 6–7 (2–7) , 6–2, 7–6 (7–3)
Translate the following into a SQL query
Who was the writer for episode 3?
SELECT Writer FROM table WHERE Episode = 3
Translate the following into a SQL query
What was the original airdate for the episode written by daisuke habara and directed by akimitsu sasaki
SELECT Original airdate FROM table WHERE Writer = Daisuke Habara AND Director = Akimitsu Sasaki
Translate the following into a SQL query
What episode did tomoyuki furumaya
SELECT Title FROM table WHERE Director = Tomoyuki Furumaya
Translate the following into a SQL query
What is the earliest round where collingswood lost by 36 points?
SELECT MIN Round FROM table WHERE Result (includes margin) = Lost by 36 points
Translate the following into a SQL query
What was the score on saturday, 26 june 7:10pm?
SELECT Score (Collingwoods score is in bold) FROM table WHERE Date = Saturday, 26 June 7:10pm
Translate the following into a SQL query
What is the round number of the round against melbourne on saturday, 4 april 2:10pm?
SELECT MIN Round FROM table WHERE Opponent = Melbourne AND Date = Saturday, 4 April 2:10pm
Translate the following into a SQL query
Which venue did collingsworth play essendon in when they had the 3rd position on the ladder?
SELECT Venue FROM table WHERE Opponent = Essendon AND Position on Ladder = 3rd
Translate the following into a SQL query
Was the round where they were in 6th at home or away?
SELECT Home/Away FROM table WHERE Position on Ladder = 6th
Translate the following into a SQL query
What was the previous school for the forward with a height of ft5in (m)?
SELECT Previous School FROM table WHERE Height = ft5in (m) AND Position = Forward
Translate the following into a SQL query
What is the lowest listed number for a player?
SELECT MIN # FROM table
Translate the following into a SQL query
Who previously attended south kent school / brentwood hs?
SELECT Name FROM table WHERE Previous School = South Kent School / Brentwood HS
Translate the following into a SQL query
What is the highest number a guard from brophy college prep wore?
SELECT MAX # FROM table WHERE Position = Guard AND Previous School = Brophy College Prep
Translate the following into a SQL query
How many directed by entries have UK viewership over 6.16 million?
SELECT COUNT Directed by FROM table WHERE UK viewers (million) = 6.16
Translate the following into a SQL query
Who directed the episode with a UK viewership of exactly 5.77 million?
SELECT Directed by FROM table WHERE UK viewers (million) = 5.77
Translate the following into a SQL query
What was the airdate of the episode with a UK viewership of 6.02 million?
SELECT Original air date FROM table WHERE UK viewers (million) = 6.02
Translate the following into a SQL query
Who directed the episode with UK viewership of 6.09 million?
SELECT Directed by FROM table WHERE UK viewers (million) = 6.09
Translate the following into a SQL query
Name the general classification for mauricio soler
SELECT General classification FROM table WHERE Winner = Mauricio Soler
Translate the following into a SQL query
Name the general classification for steven kruijswijk
SELECT General classification FROM table WHERE Winner = Steven Kruijswijk
Translate the following into a SQL query
Name the points classification for levi leipheimer
SELECT Points classification FROM table WHERE General classification = Levi Leipheimer
Translate the following into a SQL query
Name the mountains classification for rabobank and damiano cunego
SELECT Mountains Classification FROM table WHERE Team Classification = Rabobank AND General classification = Damiano Cunego
Translate the following into a SQL query
Name the team classification for thomas de gendt
SELECT Team Classification FROM table WHERE Winner = Thomas De Gendt
Translate the following into a SQL query
What is listed in built for when the original number is 24d?
SELECT Built for FROM table WHERE Original no. = 24D
Translate the following into a SQL query
What is the original air date when the title is "be prepared"?
SELECT Original air date FROM table WHERE Title = "Be Prepared"
Translate the following into a SQL query
What is the season # when ther are 5.3 million U.S viewers?
SELECT MAX Season # FROM table WHERE U.S. viewers (millions) = 5.3
Translate the following into a SQL query
What dat did "The changeling" originally air?
SELECT Original air date FROM table WHERE Title = "The Changeling"
Translate the following into a SQL query
What date did "the eye of the phoenix" originally air?
SELECT Original air date FROM table WHERE Title = "The Eye of the Phoenix"
Translate the following into a SQL query
What episode number of the series is "the coming of arthur (part 1)"?
SELECT No. for series FROM table WHERE Title = "The Coming of Arthur (Part 1)"
Translate the following into a SQL query
What are the titles of episodes written by Eric Trueheart?
SELECT Title FROM table WHERE Written by = Eric Trueheart
Translate the following into a SQL query
What is the highest numbered episode where the title is "The Ruff Ruff Bunch"?
SELECT MAX Series # FROM table WHERE Title = "The Ruff Ruff Bunch"
Translate the following into a SQL query
Who were the writers of episode/s first aired in the US on June 9, 2012?
SELECT Written by FROM table WHERE United States Original Airdate = June 9, 2012
Translate the following into a SQL query
When was the episode titled "The Fraud Princess" first aired in the United States?
SELECT United States Original Airdate FROM table WHERE Title = "The Fraud Princess"
Translate the following into a SQL query
Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?
SELECT Written by FROM table WHERE Directed by = Greg Sullivan AND United States Original Airdate = July 21, 2012
Translate the following into a SQL query
Which episode/s were written by Evan Gore?
SELECT Series # FROM table WHERE Written by = Evan Gore
Translate the following into a SQL query
How many home teams are there when the away team score was 4.2 (26) and away team was footscray?
SELECT COUNT Home team score FROM table WHERE Away team score = 4.2 (26) AND Away team = Footscray
Translate the following into a SQL query
Which team was the away team when home team was essendon?
SELECT Away team FROM table WHERE Home team = Essendon
Translate the following into a SQL query
How many scores were there for the home team when the away team was fitzroy?
SELECT COUNT Home team score FROM table WHERE Away team = Fitzroy
Translate the following into a SQL query
Which team was the away team when the home team was north melbourne?
SELECT Away team FROM table WHERE Home team = North Melbourne
Translate the following into a SQL query
What is the date of the game when the home team is melbourne?
SELECT Date FROM table WHERE Home team = Melbourne
Translate the following into a SQL query
What is the date when the home team score is 2.4 (16)?
SELECT Date FROM table WHERE Home team score = 2.4 (16)
Translate the following into a SQL query
Name the singer for 1.45m
SELECT Singer(s) FROM table WHERE Ratings = 1.45m
Translate the following into a SQL query
Name the singer for joe wilkinson
SELECT Singer(s) FROM table WHERE Comedian = Joe Wilkinson
Translate the following into a SQL query
Name the singer for bruce forsyth
SELECT Singer(s) FROM table WHERE Guest(s) = Bruce Forsyth
Translate the following into a SQL query
Name the number of ratings for bruce forsyth
SELECT COUNT Ratings FROM table WHERE Guest(s) = Bruce Forsyth
Translate the following into a SQL query
Name the guest for 1.64m ratings
SELECT Guest(s) FROM table WHERE Ratings = 1.64m
Translate the following into a SQL query
What was the constructor in the Belgian Grand Prix round?
SELECT Constructor FROM table WHERE Grand Prix = Belgian Grand Prix
Translate the following into a SQL query
Who had the fastest lap in round 15?
SELECT Fastest Lap FROM table WHERE Rd. = 15
Translate the following into a SQL query
When was the home team Essendon?
SELECT Date FROM table WHERE Home team = Essendon
Translate the following into a SQL query
When Richmond played as the away team, what was the ground?
SELECT Ground FROM table WHERE Away team = Richmond
Translate the following into a SQL query
When did Fitzroy play as the home team?
SELECT Date FROM table WHERE Home team = Fitzroy
Translate the following into a SQL query
what was the result on 01x06
SELECT Scores FROM table WHERE Episode = 01x06
Translate the following into a SQL query
what was the size when tom daley appeared
SELECT Episode FROM table WHERE Jamie and Johns guest = Tom Daley
Translate the following into a SQL query
Who was Andrew and Georgie's gues when Jamie and John's guest was Phil Taylor?
SELECT Andrew and Georgies guest FROM table WHERE Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8. = Phil Taylor
Translate the following into a SQL query
Which episode had Jamie and John's guest as Mike Tindall?
SELECT Episode FROM table WHERE Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8. = Mike Tindall
Translate the following into a SQL query
How many scores had an episode of 03x06?
SELECT COUNT Scores FROM table WHERE Episode = 03x06
Translate the following into a SQL query
Who was Andrew and Georgie's guest when Jamie and John's guest was Amy Williams?
SELECT Andrew and Georgies guest FROM table WHERE Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8. = Amy Williams
Translate the following into a SQL query
What was the score for the episode when Jamie and John's guest was Boris Becker?
SELECT Scores FROM table WHERE Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8. = Boris Becker
Translate the following into a SQL query
When id the episode broadcast with Mark Webber as Jamie and John's guest?
SELECT First broadcast FROM table WHERE Jamie and Johns guest = Mark Webber
Translate the following into a SQL query
What date did the episode with Andy Murray as Jamie and John's guest first broadcast?
SELECT First broadcast FROM table WHERE Jamie and Johns guest = Andy Murray
Translate the following into a SQL query
How many items are listed under 'andrew and georgies guest lee mack replaced andrew flint as team captain for one week' for episode 04x04?
SELECT COUNT Andrew and Georgies guest Lee Mack replaced Andrew Flintoff as team captain for one week in series 4, episode 2. FROM table WHERE Episode = 04x04
Translate the following into a SQL query
who guest starred on the episode with a 1.44m rating
SELECT Guest(s) FROM table WHERE Ratings = 1.44m
Translate the following into a SQL query
when was the episode on which barbara windsor and heston blumenthal guest starred broadcasted
SELECT Broadcast date FROM table WHERE Guest(s) = Barbara Windsor and Heston Blumenthal
Translate the following into a SQL query
how many broadcaste dates features the overtones
SELECT COUNT Broadcast date FROM table WHERE Singer(s) = The Overtones
Translate the following into a SQL query
how many guest stars did the episode that was broadcasted 11september2012 have
SELECT COUNT Guest(s) FROM table WHERE Broadcast date = 11September2012
Translate the following into a SQL query
when was the episode guest starring michael mcintyre and alex james broadcasted
SELECT Broadcast date FROM table WHERE Guest(s) = Michael McIntyre and Alex James
Translate the following into a SQL query
which episode did sarah millican and grayson perry appear in
SELECT MIN Episode FROM table WHERE Guest(s) = Sarah Millican and Grayson Perry
Translate the following into a SQL query
When were episodes first broadcast with jessica ennis as andrew and jacks guest?
SELECT First broadcast FROM table WHERE Andrew and Jacks guest = Jessica Ennis
Translate the following into a SQL query
Who directed the episode that is written by Eli Attie and production code is 2t5018?
SELECT Directed by FROM table WHERE Written by = Eli Attie AND Production code = 2T5018
Translate the following into a SQL query
How many episodes are 122 in the series?
SELECT COUNT No. in season FROM table WHERE No. in series = 122
Translate the following into a SQL query
What was the score for the episode with Matt Smith as Andrew and Jack's guest?
SELECT Scores FROM table WHERE Andrew and Jacks guest = Matt Smith
Translate the following into a SQL query
When was the episode with Amy Williams as Andrew and Jack's guest broadcast?
SELECT First broadcast FROM table WHERE Andrew and Jacks guest = Amy Williams
Translate the following into a SQL query
What is the last episode in the season that had 3.91 million viewers in the US?
SELECT MIN Season no. FROM table WHERE U.S. viewers (millions) = 3.91
Translate the following into a SQL query
What are the episode numbers in season that were titled "The Consoler"?
SELECT Season no. FROM table WHERE Title = "The Consoler"
Translate the following into a SQL query
How many episodes were written by Warren Leight?
SELECT COUNT Season no. FROM table WHERE Written by = Warren Leight
Translate the following into a SQL query
How many million viewers in the US did the episode titled "Cadaver" have?
SELECT U.S. viewers (millions) FROM table WHERE Title = "Cadaver"
Translate the following into a SQL query
What is the number in season of the episode titled "Cadaver"?
SELECT Season no. FROM table WHERE Title = "Cadaver"
Translate the following into a SQL query
Who was the regular season winner of the 1999 Big Sky Men's Basketball Tournament was the conference tournament?
SELECT Regular Season Winner FROM table WHERE Conference Tournament = 1999 Big Sky Men's Basketball Tournament
Translate the following into a SQL query
How many championships were there where the score was 4–6, 7–6 (7–5) , [5–10]?
SELECT COUNT Championship FROM table WHERE Score = 4–6, 7–6 (7–5) , [5–10]
Translate the following into a SQL query
On what surface was it the year when the score was 6–1, 4–6, [12–10]?
SELECT Surface FROM table WHERE Score = 6–1, 4–6, [12–10]
Translate the following into a SQL query
How many times has the score been 6–4, 3–6, [11–13]?
SELECT COUNT Opponent FROM table WHERE Score = 6–4, 3–6, [11–13]
Translate the following into a SQL query
Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?
SELECT Outgoing Head Coach FROM table WHERE Manner of departure = Gardening leave 1
Translate the following into a SQL query
Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job?
SELECT Incoming Head Coach FROM table WHERE Outgoing Head Coach = Wan Jamak Wan Hassan
Translate the following into a SQL query
Who had the fastest lap in round 1?
SELECT Fastest Lap FROM table WHERE Round = 1
Translate the following into a SQL query
Who had the pole position when matt davies had the fastest lap?
SELECT Pole Position FROM table WHERE Fastest Lap = Matt Davies
Translate the following into a SQL query
Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?
SELECT Pole Position FROM table WHERE Winning Rider = Rob Guiver AND Fastest Lap = Kyle Ryde
Translate the following into a SQL query
What is the earliest year in which the result is championship US Open (2)?
SELECT MIN Year FROM table WHERE Championship = US Open (2)
Translate the following into a SQL query
Who was Bob Bryan's partner in the Championship where the result is US Open (2)?
SELECT Partner FROM table WHERE Championship = US Open (2)
Translate the following into a SQL query
What are the results of those matches where the championship is French Open?
SELECT Score FROM table WHERE Championship = French Open
Translate the following into a SQL query
on how many days did the episode written by harold hayes jr. & craig s. phillips originally air
SELECT COUNT Original Air date FROM table WHERE Written by = Harold Hayes Jr. & Craig S. Phillips
Translate the following into a SQL query
who directed "grampires"(part 1)
SELECT Directed by FROM table WHERE Title = "Grampires"(Part 1)
Translate the following into a SQL query
how many episodes originally aired january19,2013
SELECT COUNT No. in series FROM table WHERE Original Air date = January19,2013
Translate the following into a SQL query
which episode of the season aired on october20,2012
SELECT MAX No. in season FROM table WHERE Original Air date = October20,2012
Translate the following into a SQL query
Which team was the opponent in game 5?
SELECT Team FROM table WHERE Game = 5
Translate the following into a SQL query
When did the official rating 4+ reach 4 633 925?
SELECT Date FROM table WHERE Official rating 4+ = 4 633 925
Translate the following into a SQL query
Lis the series for game 5.
SELECT Series FROM table WHERE Game = 5