instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
How many people wrote episode 68 in the series?
|
SELECT COUNT Written by FROM table WHERE No. in series = 68
|
Translate the following into a SQL query
|
How many writers were there for episode named "embassy"?
|
SELECT COUNT Written by FROM table WHERE Title = "Embassy"
|
Translate the following into a SQL query
|
What date did "dungaree justice" originally air?
|
SELECT Original air date FROM table WHERE Title = "Dungaree Justice"
|
Translate the following into a SQL query
|
Who directed the episode that originally aired on February 16, 1999?
|
SELECT Directed by FROM table WHERE Original air date = February 16, 1999
|
Translate the following into a SQL query
|
Who directed the episode titled "Two Towns"?
|
SELECT Directed by FROM table WHERE Title = "Two Towns"
|
Translate the following into a SQL query
|
The episode which originally aired on February 11, 2005 had which episode # of the season?
|
SELECT No. in season FROM table WHERE Original air date = February 11, 2005
|
Translate the following into a SQL query
|
The episode which originally aired on December 17, 2004 was written by whom?
|
SELECT Written by FROM table WHERE Original air date = December 17, 2004
|
Translate the following into a SQL query
|
David James Elliott directed which episode number within the series?
|
SELECT No. in series FROM table WHERE Directed by = David James Elliott
|
Translate the following into a SQL query
|
Who directed the episode which originally aired February 4, 2005?
|
SELECT Directed by FROM table WHERE Original air date = February 4, 2005
|
Translate the following into a SQL query
|
when was the premiere of the episode called "force recon"?
|
SELECT Original air date FROM table WHERE Title = "Force Recon"
|
Translate the following into a SQL query
|
which is the number of the season episode whose premiere was in january 3, 1997?
|
SELECT COUNT No. in season FROM table WHERE Original air date = January 3, 1997
|
Translate the following into a SQL query
|
which is the number of the season episode whose writer is R. Scott Gemmill and the Director is Ray Austin?
|
SELECT No. in season FROM table WHERE Written by = R. Scott Gemmill AND Directed by = Ray Austin
|
Translate the following into a SQL query
|
what is the name of the episode whose number of the series episode was 31?
|
SELECT Title FROM table WHERE No. in series = 31
|
Translate the following into a SQL query
|
When 129 is the number in the series who is the writer?
|
SELECT Written by FROM table WHERE No. in series = 129
|
Translate the following into a SQL query
|
When "past tense" is the title who is the writer?
|
SELECT Written by FROM table WHERE Title = "Past Tense"
|
Translate the following into a SQL query
|
How manu original airdates have "a cellar full of silence" as the title?
|
SELECT COUNT Originalairdate FROM table WHERE Title = "A Cellar Full of Silence"
|
Translate the following into a SQL query
|
How many product # have episode 1?
|
SELECT MAX Prod # FROM table WHERE Episode # = 1
|
Translate the following into a SQL query
|
Name the windows builders for apache gump
|
SELECT Windows builders FROM table WHERE Name = Apache Gump
|
Translate the following into a SQL query
|
Name the number of scm system for nant, visual studio
|
SELECT COUNT SCM system FROM table WHERE Windows builders = NAnt, Visual Studio
|
Translate the following into a SQL query
|
Name the number of other builders for nant, visual studio
|
SELECT COUNT Other builders FROM table WHERE Windows builders = NAnt, Visual Studio
|
Translate the following into a SQL query
|
What is the minimum for 2nd runner-up?
|
SELECT MIN 2nd runner-up FROM table
|
Translate the following into a SQL query
|
What is the total number of 4th runner-up where the 2nd runner-up is smaller than 1.0 and the 1st runner-up is smaller than 1.0 and the total is 2?
|
SELECT COUNT 4th runner-up FROM table WHERE 2nd runner-up < 1.0 AND 1st runner-up < 1.0 AND Total = 2
|
Translate the following into a SQL query
|
If the original air date is February 4, 2003, what is the episode title?
|
SELECT Title FROM table WHERE Original air date = February 4, 2003
|
Translate the following into a SQL query
|
If the original air date is April 1, 2003, what number in the series is this episode?
|
SELECT No. in series FROM table WHERE Original air date = April 1, 2003
|
Translate the following into a SQL query
|
What is the maximum number in the series for the episode directed by Harvey S. Laidman?
|
SELECT MAX No. in series FROM table WHERE Directed by = Harvey S. Laidman
|
Translate the following into a SQL query
|
When is the original air date written by sean whitesell?
|
SELECT Original air date FROM table WHERE Written by = Sean Whitesell
|
Translate the following into a SQL query
|
Who is no. 79 directed by?
|
SELECT Directed by FROM table WHERE No. = 79
|
Translate the following into a SQL query
|
What is the # when u.s. viewers (million) is 17.44?
|
SELECT COUNT # FROM table WHERE U.S. viewers (million) = 17.44
|
Translate the following into a SQL query
|
How many # were written by david hoselton?
|
SELECT MAX # FROM table WHERE Written by = David Hoselton
|
Translate the following into a SQL query
|
How many race 3 winners were there when Mitch Evans won race 2?
|
SELECT COUNT Race 3 Winner FROM table WHERE Race 2 Winner = Mitch Evans
|
Translate the following into a SQL query
|
What date was the race at the Symmons Plains Raceway?
|
SELECT Date FROM table WHERE Circuit = Symmons Plains Raceway
|
Translate the following into a SQL query
|
Who was the race 1 winner at the race held at Winton Motor Raceway?
|
SELECT Race 1 Winner FROM table WHERE Circuit = Winton Motor Raceway
|
Translate the following into a SQL query
|
Who was the race 1 winner of the race at Hidden Valley Raceway?
|
SELECT Race 1 Winner FROM table WHERE Circuit = Hidden Valley Raceway
|
Translate the following into a SQL query
|
In how many years did Pat Bradley became the champion?
|
SELECT COUNT Year FROM table WHERE Champion = Pat Bradley
|
Translate the following into a SQL query
|
When was the tournament in Forest Lake Country Club held?
|
SELECT Dates FROM table WHERE Tournament location = Forest Lake Country Club
|
Translate the following into a SQL query
|
How many different countries did the champion Se Ri Pak (2) represent?
|
SELECT COUNT Country FROM table WHERE Champion = Se Ri Pak (2)
|
Translate the following into a SQL query
|
What was the score in 1978?
|
SELECT Score FROM table WHERE Year = 1978
|
Translate the following into a SQL query
|
What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?
|
SELECT MIN Winners share ($) FROM table WHERE Champion = Se Ri Pak (2)
|
Translate the following into a SQL query
|
What was the score in the tournament won by Jan Stephenson?
|
SELECT Score FROM table WHERE Champion = Jan Stephenson
|
Translate the following into a SQL query
|
How many points did the opponents score at the game in Knoxville?
|
SELECT MIN Opp. Points FROM table WHERE Location = Knoxville
|
Translate the following into a SQL query
|
What game date had a record of 17-7?
|
SELECT Date FROM table WHERE Record = 17-7
|
Translate the following into a SQL query
|
How many points did the opponents score on the game where Sooners' record was 16-5?
|
SELECT MAX Opp. Points FROM table WHERE Record = 16-5
|
Translate the following into a SQL query
|
List the number of shows that had 12.04 million viewers in the united states
|
SELECT COUNT Title FROM table WHERE U.S. viewers (million) = 12.04
|
Translate the following into a SQL query
|
List the original air date for week 5.
|
SELECT Original air date FROM table WHERE Rank (week) = 5
|
Translate the following into a SQL query
|
List the 1st air date for the show where the writers are russel friend & garrett lerner.
|
SELECT Original air date FROM table WHERE Written by = Russel Friend & Garrett Lerner
|
Translate the following into a SQL query
|
When shinya nakano's kawasaki ninja zx-rr is the example what is the graphical?
|
SELECT Graphical FROM table WHERE Example = Shinya Nakano's Kawasaki Ninja ZX-RR
|
Translate the following into a SQL query
|
When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?
|
SELECT Engine FROM table WHERE Example = 1985-2007 Yamaha V-Max Honda VFR800
|
Translate the following into a SQL query
|
When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?
|
SELECT Engine FROM table WHERE Example = Shinya Nakano's Kawasaki Ninja ZX-RR
|
Translate the following into a SQL query
|
When 68-292-68-292 is the ignition timing how many graphicals is it?
|
SELECT COUNT Graphical FROM table WHERE Ignition timing = 68-292-68-292
|
Translate the following into a SQL query
|
When i4 is the engine what is the graphical?
|
SELECT Graphical FROM table WHERE Engine = I4
|
Translate the following into a SQL query
|
When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there?
|
SELECT COUNT Ignition timing FROM table WHERE Graphical = 1-1-0-0-1-1-0-0-
|
Translate the following into a SQL query
|
Name the least total for sergio ramos
|
SELECT MIN Total FROM table WHERE Player = Sergio Ramos
|
Translate the following into a SQL query
|
Name the least copa del rey
|
SELECT MIN Copa del Rey FROM table
|
Translate the following into a SQL query
|
Name the most copa del rey for karim benzema
|
SELECT MAX Copa del Rey FROM table WHERE Player = Karim Benzema
|
Translate the following into a SQL query
|
If the total is 6, what is the maximum R?
|
SELECT MAX R FROM table WHERE Total = 6
|
Translate the following into a SQL query
|
If the player is Marcelo, what is the minimum R?
|
SELECT MIN R FROM table WHERE Player = Marcelo
|
Translate the following into a SQL query
|
If the position is FB, what is the Copa Del Rey?
|
SELECT Copa del Rey FROM table WHERE Position = FB
|
Translate the following into a SQL query
|
If the player is Marcelo, what is the position?
|
SELECT Position FROM table WHERE Player = Marcelo
|
Translate the following into a SQL query
|
If the position is AM and the league is larger than 7.0, what is the total R number?
|
SELECT COUNT R FROM table WHERE Position = AM AND League > 7.0
|
Translate the following into a SQL query
|
What is the maximum possible Copa Del Rey?
|
SELECT MAX Copa del Rey FROM table
|
Translate the following into a SQL query
|
Who was the Stage 1 winner?
|
SELECT Winner FROM table WHERE Stage = 1
|
Translate the following into a SQL query
|
Who won Stage 7?
|
SELECT Winner FROM table WHERE Stage = 7
|
Translate the following into a SQL query
|
Who was the mountain classification winner in the stage won by Alessandro Ballan?
|
SELECT Mountains classification Klasyfikacja górska FROM table WHERE Winner = Alessandro Ballan
|
Translate the following into a SQL query
|
For the city whose land area was 135.09, what was the total population density?
|
SELECT Population density (people per mi 2 ) FROM table WHERE Land area (mi 2 ) = 135.09
|
Translate the following into a SQL query
|
Which major metropolitan area had a land area of 23.80?
|
SELECT Metropolitan area FROM table WHERE Land area (mi 2 ) = 23.80
|
Translate the following into a SQL query
|
How many states had a population density of 10188.8?
|
SELECT COUNT State FROM table WHERE Population density (people per mi 2 ) = 10188.8
|
Translate the following into a SQL query
|
Name the number of left for cardinals
|
SELECT COUNT Left FROM table WHERE Nickname = Cardinals
|
Translate the following into a SQL query
|
Name the school that is private
|
SELECT Institution FROM table WHERE Type = Private
|
Translate the following into a SQL query
|
Name the location that was founded 1798
|
SELECT Location FROM table WHERE Founded = 1798
|
Translate the following into a SQL query
|
Name the nickname that was founded 1798
|
SELECT Nickname FROM table WHERE Founded = 1798
|
Translate the following into a SQL query
|
Name the least 10,000+ places for louisville
|
SELECT MIN 10,000+ places FROM table WHERE Principal city = Louisville
|
Translate the following into a SQL query
|
Name the density for pennsbury village
|
SELECT Density FROM table WHERE Densest incorporated place = Pennsbury Village
|
Translate the following into a SQL query
|
Name the number of rank for stone park
|
SELECT COUNT Rank FROM table WHERE Densest incorporated place = Stone Park
|
Translate the following into a SQL query
|
Name the area for north bay village
|
SELECT Metropolitan area FROM table WHERE Densest incorporated place = North Bay Village
|
Translate the following into a SQL query
|
Where is the PPP 23164 million €?
|
SELECT Region ( NUTS 2006) FROM table WHERE PPP (million €) = 23164
|
Translate the following into a SQL query
|
What's the total (in million €) in the region where PPP is 21779 million €?
|
SELECT Total (million € ) FROM table WHERE PPP (million €) = 21779
|
Translate the following into a SQL query
|
What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519
|
SELECT % of EU average GDP (PPP) FROM table WHERE € per capita (2005) = 2519
|
Translate the following into a SQL query
|
If the winner is Bernhard Eisel, what is the stage maximum?
|
SELECT MAX Stage FROM table WHERE Winner = Bernhard Eisel
|
Translate the following into a SQL query
|
What is the mountain classification name if the winner is Bernhard Eisel?
|
SELECT Mountains classification FROM table WHERE Winner = Bernhard Eisel
|
Translate the following into a SQL query
|
If the stage is 3, what is the points classification name?
|
SELECT Points classification FROM table WHERE Stage = 3
|
Translate the following into a SQL query
|
If the stage is 9, what is the team classification name?
|
SELECT Team classification FROM table WHERE Stage = 9
|
Translate the following into a SQL query
|
If the winner is Michael Albasini, what is the mountains classification name?
|
SELECT Mountains classification FROM table WHERE Winner = Michael Albasini
|
Translate the following into a SQL query
|
What is the name of the winner when the sprints classification is no award?
|
SELECT Winner FROM table WHERE Sprints classification = no award
|
Translate the following into a SQL query
|
What was the 18-49 rating share for the episode "pilot"?
|
SELECT 18-49 Rating/Share FROM table WHERE Title = "Pilot"
|
Translate the following into a SQL query
|
How many viewers (in millions) watched the episode written by deidre shaw?
|
SELECT U.S. viewers (in millions) FROM table WHERE Written by = Deidre Shaw
|
Translate the following into a SQL query
|
What was the original air date of episode number 1?
|
SELECT Original air date FROM table WHERE No. = 1
|
Translate the following into a SQL query
|
Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha?
|
SELECT Bowler FROM table WHERE Batsmen = Dwaraka Ravi Teja RP Singh Pragyan Ojha
|
Translate the following into a SQL query
|
How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?
|
SELECT COUNT Bowler FROM table WHERE Batsmen = David Hussey Azhar Mahmood Gurkeerat Singh
|
Translate the following into a SQL query
|
What season was herschelle gibbs andrew symonds venugopal rao batsmen?
|
SELECT Season FROM table WHERE Batsmen = Herschelle Gibbs Andrew Symonds Venugopal Rao
|
Translate the following into a SQL query
|
What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen?
|
SELECT Scorecard FROM table WHERE Batsmen = Robin Uthappa Mark Boucher Jacques Kallis
|
Translate the following into a SQL query
|
How many sesason were there when for is deccan chargers and bowler is amit mishra?
|
SELECT COUNT Season FROM table WHERE For = Deccan Chargers AND Bowler = Amit Mishra
|
Translate the following into a SQL query
|
What is the number when against is rajasthan royals?
|
SELECT MAX No. FROM table WHERE Against = Rajasthan Royals
|
Translate the following into a SQL query
|
Name number of stellar classification for 3 neptune planets < 1 au
|
SELECT COUNT Stellar classification FROM table WHERE System = 3 Neptune planets < 1 AU
|
Translate the following into a SQL query
|
Name the system for aries
|
SELECT System FROM table WHERE Constellation = Aries
|
Translate the following into a SQL query
|
Name the stellar age for f3v
|
SELECT Stellar Age (Myr) FROM table WHERE Stellar classification = F3V
|
Translate the following into a SQL query
|
Name the dust for star being hd 69830
|
SELECT Dust (or Debris) Location (AU) FROM table WHERE Star = HD 69830
|
Translate the following into a SQL query
|
Name the dust for star being η corvi
|
SELECT Dust (or Debris; Temperature (K) FROM table WHERE Star = η Corvi
|
Translate the following into a SQL query
|
Name the number of names for exeter chiefs
|
SELECT COUNT Name FROM table WHERE Promoted from League = Exeter Chiefs
|
Translate the following into a SQL query
|
Name the name for henley manchester
|
SELECT Name FROM table WHERE Promoted to League = Henley Manchester
|
Translate the following into a SQL query
|
Name the name for doncaster newbury
|
SELECT Name FROM table WHERE Promoted to League = Doncaster Newbury
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.