instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What was the name of the episode directed by Jessica Yu?
|
SELECT Title FROM table WHERE Directed by = Jessica Yu
|
Translate the following into a SQL query
|
who directed the episode written by Shonda Rhimes?
|
SELECT Directed by FROM table WHERE Written by = Shonda Rhimes
|
Translate the following into a SQL query
|
How many episodes in the series are also episode 18 in the season?
|
SELECT COUNT No. in series FROM table WHERE No. in season = 18
|
Translate the following into a SQL query
|
Who is every opponent on the date of March 16?
|
SELECT Opponent FROM table WHERE Date = March 16
|
Translate the following into a SQL query
|
What is every score for the opponent of Atlanta Thrashers?
|
SELECT Score FROM table WHERE Opponent = Atlanta Thrashers
|
Translate the following into a SQL query
|
What is every location for the date of March 20?
|
SELECT Location FROM table WHERE Date = March 20
|
Translate the following into a SQL query
|
What is every score at the location of Verizon Center and points of 68?
|
SELECT Score FROM table WHERE Location = Verizon Center AND Points = 68
|
Translate the following into a SQL query
|
What is every date with a record of 30β34β12?
|
SELECT Date FROM table WHERE Record = 30β34β12
|
Translate the following into a SQL query
|
How many officers o/s were there on the day when the number of USAAF was 2373882?
|
SELECT MAX Officers o/s FROM table WHERE Total USAAF = 2373882
|
Translate the following into a SQL query
|
How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471?
|
SELECT COUNT Tot Enlisted FROM table WHERE Enlisted o/s = 801471
|
Translate the following into a SQL query
|
How many tot officers were there on the date when the number of tot enlisted was 329640?
|
SELECT Tot Officers FROM table WHERE Tot Enlisted = 329640
|
Translate the following into a SQL query
|
How many Tot enlisted were there on the day when the number of total USAAF was 2329534?
|
SELECT MAX Tot Enlisted FROM table WHERE Total USAAF = 2329534
|
Translate the following into a SQL query
|
How many contestants where from mitteldeutschland?
|
SELECT COUNT Age FROM table WHERE Represent = Mitteldeutschland
|
Translate the following into a SQL query
|
How many meters tall is Ulrike Wolful?
|
SELECT Height (mtr.) FROM table WHERE Contestant = Ulrike Wolful
|
Translate the following into a SQL query
|
Which country had a contestant that was 1.76 meters tall?
|
SELECT Represent FROM table WHERE Height (mtr.) = 1.76
|
Translate the following into a SQL query
|
What country had a contestant that was 1.70 meters tall?
|
SELECT Represent FROM table WHERE Height (mtr.) = 1.70
|
Translate the following into a SQL query
|
If seed number is 2, what is the maximum amount of points?
|
SELECT MAX Points FROM table WHERE Seed = 2
|
Translate the following into a SQL query
|
If new points is 1720, what is the status?
|
SELECT Status FROM table WHERE New points = 1720
|
Translate the following into a SQL query
|
Who is the winning party/coalition name in election year 1980?
|
SELECT Winning Party/Coalition FROM table WHERE Election Year = 1980
|
Translate the following into a SQL query
|
If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?
|
SELECT MAX Election Year FROM table WHERE Speaker = Munu Adhi (2) K. Rajaram
|
Translate the following into a SQL query
|
If the speaker is R. Muthiah, what is the election year maximum?
|
SELECT MAX Election Year FROM table WHERE Speaker = R. Muthiah
|
Translate the following into a SQL query
|
What is the name of the speaker if the chief minister is M.G. Ramachandran?
|
SELECT Speaker FROM table WHERE Chief Minister = M.G. Ramachandran
|
Translate the following into a SQL query
|
If the assembly is the sixth assembly, what is the maximum election year?
|
SELECT MAX Election Year FROM table WHERE Assembly = Sixth Assembly
|
Translate the following into a SQL query
|
Name the number of crews for light bombardment group
|
SELECT Number of crews FROM table WHERE Type of unit = Light bombardment group
|
Translate the following into a SQL query
|
What is the aircraft for 21 crews?
|
SELECT Type of aircraft FROM table WHERE Number of crews = 21
|
Translate the following into a SQL query
|
Nam ethe enlisted for troop carrier group
|
SELECT Enlisted FROM table WHERE Type of unit = Troop carrier group
|
Translate the following into a SQL query
|
What was the title when 1.121 million US people watched it?
|
SELECT Title FROM table WHERE U.S. viewers (millions) = 1.121
|
Translate the following into a SQL query
|
What is the lowest series episode with a production code of 406?
|
SELECT MIN Series episode FROM table WHERE Prod. code = 406
|
Translate the following into a SQL query
|
List the title of series episode 38.
|
SELECT Title FROM table WHERE Series episode = 38
|
Translate the following into a SQL query
|
How many millions of U.S. viewers watched the episode "Here Comes the Neighborhood"?
|
SELECT U.S. viewers (millions) FROM table WHERE Title = "Here Comes the Neighborhood"
|
Translate the following into a SQL query
|
What type of formula did Stirling Moss drive?
|
SELECT Formula FROM table WHERE Driver = Stirling Moss
|
Translate the following into a SQL query
|
What year did Randy Lewis drive?
|
SELECT Year FROM table WHERE Driver = Randy Lewis
|
Translate the following into a SQL query
|
What was the constructor in 1975?
|
SELECT Constructor FROM table WHERE Year = 1975
|
Translate the following into a SQL query
|
If the market name is Xperia U, what is the weight?
|
SELECT Weight FROM table WHERE Market name = Xperia U
|
Translate the following into a SQL query
|
What is the release date if the code name is Aoba?
|
SELECT Release date FROM table WHERE Code name = Aoba
|
Translate the following into a SQL query
|
If the weight is 126g and the NFC is yes, what is the battery (MAH)?
|
SELECT Battery ( mAh ) FROM table WHERE NFC = Yes AND Weight = 126g
|
Translate the following into a SQL query
|
What is the platform if the weight is 131.5g?
|
SELECT Platform FROM table WHERE Weight = 131.5g
|
Translate the following into a SQL query
|
What is the Android version is the code name is Lotus?
|
SELECT Android version FROM table WHERE Code name = Lotus
|
Translate the following into a SQL query
|
When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?
|
SELECT Copper Age FROM table WHERE Ubaid period in Mesopotamia = Middle Assyrian Empire
|
Translate the following into a SQL query
|
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?
|
SELECT Copper Age FROM table WHERE Ubaid period in Mesopotamia = Hittite Old Kingdom , Minoan eruption
|
Translate the following into a SQL query
|
When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?
|
SELECT COUNT Early Chalcolithic FROM table WHERE Ubaid period in Mesopotamia = Hittite Middle Kingdom , New Kingdom of Egypt
|
Translate the following into a SQL query
|
When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?
|
SELECT COUNT Early Chalcolithic FROM table WHERE Ubaid period in Mesopotamia = Second Intermediate Period of Egypt
|
Translate the following into a SQL query
|
What was the score against Loic Didavi?
|
SELECT Result FROM table WHERE Opponent = Loic Didavi
|
Translate the following into a SQL query
|
Who was played against when there was a loss and in the gi po round?
|
SELECT Against FROM table WHERE W/L = Loss AND Round = GI PO
|
Translate the following into a SQL query
|
What were the w/l when the final score was 2β6, 5β7, 7β6 (11β9) , 1β6?
|
SELECT W/L FROM table WHERE Result = 2β6, 5β7, 7β6 (11β9) , 1β6
|
Translate the following into a SQL query
|
When Cleveland was 2nd, great lakes in the regular season what did they get to in the playoffs?
|
SELECT Playoffs FROM table WHERE Regular Season = 2nd, Great Lakes
|
Translate the following into a SQL query
|
What is the lowest numbered division Cleveland played in?
|
SELECT MIN Division FROM table
|
Translate the following into a SQL query
|
How did Cleveland do in the regular season in 2006?
|
SELECT Regular Season FROM table WHERE Year = 2006
|
Translate the following into a SQL query
|
How did Cleveland do in the Open Cup in 2009?
|
SELECT Open Cup FROM table WHERE Year = 2009
|
Translate the following into a SQL query
|
When victoria coren and rhod gilbert are both on the lees team what is the score?
|
SELECT Scores FROM table WHERE Lees team = Victoria Coren and Rhod Gilbert
|
Translate the following into a SQL query
|
When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast?
|
SELECT First broadcast FROM table WHERE Davids team = David O'Doherty and Katherine Parkinson
|
Translate the following into a SQL query
|
When bill oddie and frank skinner are both on the davids team what is the episode?
|
SELECT Episode FROM table WHERE Davids team = Bill Oddie and Frank Skinner
|
Translate the following into a SQL query
|
When kevin bridges and katy wix are both on the less team what is the score?
|
SELECT Scores FROM table WHERE Lees team = Kevin Bridges and Katy Wix
|
Translate the following into a SQL query
|
How many shows did team David consist of vernon kay and dara Γ³ briain
|
SELECT COUNT Episode FROM table WHERE Davids team = Vernon Kay and Dara Γ Briain
|
Translate the following into a SQL query
|
If the hometown is Windhoek, what is the represented?
|
SELECT Represented FROM table WHERE Hometown = Windhoek
|
Translate the following into a SQL query
|
If the height in inches is 5'7", what is the represented?
|
SELECT Represented FROM table WHERE Height (in.) = 5'7"
|
Translate the following into a SQL query
|
If the hometown is Omuthiya, what is the contestant name?
|
SELECT Contestant FROM table WHERE Hometown = Omuthiya
|
Translate the following into a SQL query
|
What is the height in inches if the represented is Erongo?
|
SELECT Height (in.) FROM table WHERE Represented = Erongo
|
Translate the following into a SQL query
|
What week did September 29 fall in?
|
SELECT COUNT Week FROM table WHERE Date = September 29
|
Translate the following into a SQL query
|
What was the score on the October 28 game?
|
SELECT Final Score FROM table WHERE Date = October 28
|
Translate the following into a SQL query
|
What was the score on September 20?
|
SELECT Final Score FROM table WHERE Date = September 20
|
Translate the following into a SQL query
|
What's Blanco Encalada's main artillery?
|
SELECT Main Artillery FROM table WHERE Warship = Blanco Encalada
|
Translate the following into a SQL query
|
How many different horse-powers does the Cochrane have?
|
SELECT COUNT Horse- power FROM table WHERE Warship = Cochrane
|
Translate the following into a SQL query
|
What warship has horse-power of 1500?
|
SELECT Warship FROM table WHERE Horse- power = 1500
|
Translate the following into a SQL query
|
How much does the Independencia weight?
|
SELECT MIN tons ( L.ton ) FROM table WHERE Warship = Independencia
|
Translate the following into a SQL query
|
In how many different years was the warship that weights 1130 tons built?
|
SELECT COUNT Built Year FROM table WHERE tons ( L.ton ) = 1130
|
Translate the following into a SQL query
|
What is every value for % 20-39 if % 60-74 is 10,46%?
|
SELECT % 20-39 FROM table WHERE % 60-74 = 10,46%
|
Translate the following into a SQL query
|
What is every value for % 40-59 if % 60-74 is 12,42%?
|
SELECT % 40-59 FROM table WHERE % 60-74 = 12,42%
|
Translate the following into a SQL query
|
What is every value for % 75 + if % 0-19 is 19,75%?
|
SELECT % 75 + FROM table WHERE % 0-19 = 19,75%
|
Translate the following into a SQL query
|
What is every value for % 20-39 if % 0-19 is 21,11%?
|
SELECT % 20-39 FROM table WHERE % 0-19 = 21,11%
|
Translate the following into a SQL query
|
What is every value for % 20-39 if % 0-19 is 21,11%?
|
SELECT % 20-39 FROM table WHERE % 0-19 = 21,11%
|
Translate the following into a SQL query
|
What is every value for % 40-59 if % 60-74 is 12,40%?
|
SELECT % 40-59 FROM table WHERE % 60-74 = 12,40%
|
Translate the following into a SQL query
|
How man horse power did the ship covadonga have?
|
SELECT Horse- power FROM table WHERE Warship = Covadonga
|
Translate the following into a SQL query
|
What is the primary artillery for the 1,051 ships?
|
SELECT Main Artillery FROM table WHERE tons ( L.ton ) = 1,051
|
Translate the following into a SQL query
|
List the maximum speed for the 1.150 ton ships?
|
SELECT Speed ( Knots ) FROM table WHERE tons ( L.ton ) = 1.150
|
Translate the following into a SQL query
|
List the ship with 1x115-2x70-2x12-pounders for primary artillery.
|
SELECT Warship FROM table WHERE Main Artillery = 1x115-2x70-2x12-pounders
|
Translate the following into a SQL query
|
Which location has the date of October 28?
|
SELECT Location FROM table WHERE Date = October 28
|
Translate the following into a SQL query
|
What is the final score when 22210 is the attendance?
|
SELECT Final Score FROM table WHERE Attendance = 22210
|
Translate the following into a SQL query
|
Which opponents are on the date July 22?
|
SELECT Opponent FROM table WHERE Date = July 22
|
Translate the following into a SQL query
|
Which opponents are on the date September 5?
|
SELECT Opponent FROM table WHERE Date = September 5
|
Translate the following into a SQL query
|
What is the final score when July 16 is the date?
|
SELECT Final Score FROM table WHERE Date = July 16
|
Translate the following into a SQL query
|
On which date is Taylor Field the location?
|
SELECT Date FROM table WHERE Location = Taylor Field
|
Translate the following into a SQL query
|
Name the number of regular season for 2007
|
SELECT COUNT Regular Season FROM table WHERE Year = 2007
|
Translate the following into a SQL query
|
Name the most year for conference finals
|
SELECT MAX Year FROM table WHERE Playoffs = Conference Finals
|
Translate the following into a SQL query
|
Name the regular season for final playoffs
|
SELECT Regular Season FROM table WHERE Playoffs = Final
|
Translate the following into a SQL query
|
Name the least division
|
SELECT MIN Division FROM table
|
Translate the following into a SQL query
|
Name the regular season for usisl d-3 pro league did not qualify
|
SELECT Regular Season FROM table WHERE League = USISL D-3 Pro League AND Playoffs = Did not qualify
|
Translate the following into a SQL query
|
What was the position of the player from Saskatchewan Roughriders?
|
SELECT Position FROM table WHERE CFL Team = Saskatchewan Roughriders
|
Translate the following into a SQL query
|
What CFL team was the player playing on SB position drafted for?
|
SELECT CFL Team FROM table WHERE Position = SB
|
Translate the following into a SQL query
|
What was Michael Shaver's position?
|
SELECT Position FROM table WHERE Player = Michael Shaver
|
Translate the following into a SQL query
|
How many different players got drafted for the Ottawa Renegades?
|
SELECT COUNT Player FROM table WHERE CFL Team = Ottawa Renegades
|
Translate the following into a SQL query
|
What's Doug Borden's position?
|
SELECT Position FROM table WHERE Player = Doug Borden
|
Translate the following into a SQL query
|
What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?
|
SELECT % of all immigrants 2007 FROM table WHERE % of all immigrants 2008 = 1.7%
|
Translate the following into a SQL query
|
How many different percentages of immigrants in 2006 can there be for Morocco?
|
SELECT COUNT % of all immigrants 2006 FROM table WHERE Country = Morocco
|
Translate the following into a SQL query
|
What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?
|
SELECT % of all immigrants 2004 FROM table WHERE % of all immigrants 2006 = 2.1%
|
Translate the following into a SQL query
|
What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?
|
SELECT % of all immigrants 2007 FROM table WHERE % of all immigrants 2006 = 14.1%
|
Translate the following into a SQL query
|
How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?
|
SELECT COUNT % of all immigrants 2007 FROM table WHERE % of all immigrants 2005 = 1.2%
|
Translate the following into a SQL query
|
What was the outcome in the championship where the final score was 6β7(1), 2β6, 6β4, 7β5, 6β7(2)?
|
SELECT Outcome FROM table WHERE Score in the final = 6β7(1), 2β6, 6β4, 7β5, 6β7(2)
|
Translate the following into a SQL query
|
Who were the opponents in the final where the score was 6β4, 2β6, 6β4, 7β6(3)?
|
SELECT Opponents in the final FROM table WHERE Score in the final = 6β4, 2β6, 6β4, 7β6(3)
|
Translate the following into a SQL query
|
Which championship had a final score of 6β4, 2β6, 6β4, 7β6(3)?
|
SELECT Championship FROM table WHERE Score in the final = 6β4, 2β6, 6β4, 7β6(3)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.