instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What Constructor had 66 Laps?
SELECT Constructor FROM table WHERE Laps = 66
Translate the following into a SQL query
With Laps greater than 78, what is the lowest Grid?
SELECT MIN Grid FROM table WHERE Laps > 78
Translate the following into a SQL query
How many Laps with a Grid smaller than 11 did John Watson have?
SELECT AVG Laps FROM table WHERE Driver = john watson AND Grid < 11
Translate the following into a SQL query
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
SELECT AVG Laps FROM table WHERE Driver = niki lauda AND Grid < 3
Translate the following into a SQL query
What is the low grid total for a retired due to steering in under 15 laps?
SELECT MIN Grid FROM table WHERE Time/Retired = steering AND Laps < 15
Translate the following into a SQL query
What is the average laps that had a time/retired of +5 laps?
SELECT AVG Laps FROM table WHERE Time/Retired = +5 laps
Translate the following into a SQL query
Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?
SELECT Opponent FROM table WHERE Location = wonju chiak indoor gym, south korea
Translate the following into a SQL query
Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?
SELECT MIN Round FROM table WHERE Opponent = paul cahoon AND Location = amsterdam, netherlands
Translate the following into a SQL query
Which Event has the Opponent, Bernard Ackah?
SELECT Event FROM table WHERE Opponent = bernard ackah
Translate the following into a SQL query
when was the destroyer launched when it was laid down on 14 august 1942?
SELECT Launched FROM table WHERE Laid Down = 14 august 1942
Translate the following into a SQL query
what is the launched date when the builder is john brown, clydebank?
SELECT Launched FROM table WHERE Builder = john brown, clydebank
Translate the following into a SQL query
what is the pennant when the builder is yarrow, scotstoun?
SELECT Pennant FROM table WHERE Builder = yarrow, scotstoun
Translate the following into a SQL query
what is the name when the laid down is 28 february 1943?
SELECT Name FROM table WHERE Laid Down = 28 february 1943
Translate the following into a SQL query
when was it commissioned when the destroyer was built by scotts, greenock?
SELECT Commissioned FROM table WHERE Builder = scotts, greenock
Translate the following into a SQL query
when was the launched date when the laid down date is 14 august 1942?
SELECT Launched FROM table WHERE Laid Down = 14 august 1942
Translate the following into a SQL query
What was the record for a week below 13 on July 12?
SELECT Record FROM table WHERE Week < 13 AND Date = july 12
Translate the following into a SQL query
What location had a final score of W 30 – 5?
SELECT Location FROM table WHERE Final Score = w 30 – 5
Translate the following into a SQL query
Which label had a catalog designation of ch-9196?
SELECT Label FROM table WHERE Catalog = ch-9196
Translate the following into a SQL query
Which format's catalog designation was 21-382a?
SELECT Format FROM table WHERE Catalog = 21-382a
Translate the following into a SQL query
Which catalog had a date year of 1984?
SELECT Catalog FROM table WHERE Date = 1984
Translate the following into a SQL query
Which format was under the London Records label?
SELECT Format FROM table WHERE Label = london records
Translate the following into a SQL query
Which label was in the United Kingdom region?
SELECT Label FROM table WHERE Region = united kingdom
Translate the following into a SQL query
Which date had the catalog designation of ha-m 2230?
SELECT Date FROM table WHERE Catalog = ha-m 2230
Translate the following into a SQL query
What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?
SELECT MAX Goals Conceded (GC) FROM table WHERE Draw (PE) = 2 AND Goals Scored (GF) > 29 AND +/- (Dif.) > 15
Translate the following into a SQL query
What is the points for a team with more than 9 wins and more than 40 goals?
SELECT SUM Points (Pts.) FROM table WHERE Won (PG) > 9 AND Goals Scored (GF) > 40
Translate the following into a SQL query
What was the score of the game played in the 2012 Africa Cup of Nations?
SELECT Score FROM table WHERE Competition = 2012 africa cup of nations
Translate the following into a SQL query
What is the score of the friendly competition?
SELECT Score FROM table WHERE Competition = friendly
Translate the following into a SQL query
What venue was the game played on 9 February 2011 played at?
SELECT Venue FROM table WHERE Date = 9 february 2011
Translate the following into a SQL query
What date did NY Rangers play at home?
SELECT Date FROM table WHERE Home = ny rangers
Translate the following into a SQL query
What is the score of Colorado when they were a visitor and had a Smith decision?
SELECT Score FROM table WHERE Decision = smith AND Visitor = colorado
Translate the following into a SQL query
Who is the runner up when the score was 3–6, 6–3, [10–4]?
SELECT Runner-up FROM table WHERE Score = 3–6, 6–3, [10–4]
Translate the following into a SQL query
What is the name of the runner up in the Tournament of são paulo?
SELECT Runner-up FROM table WHERE Tournament = são paulo
Translate the following into a SQL query
What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?
SELECT Third Place FROM table WHERE Winner = thomas enqvist AND Runner-up = guy forget
Translate the following into a SQL query
What tournament was Thomas Enqvist runner up?
SELECT Tournament FROM table WHERE Runner-up = thomas enqvist
Translate the following into a SQL query
What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?
SELECT Runner-up FROM table WHERE Third Place = yevgeny kafelnikov AND Score = 3–6, 6–4, [10–3]
Translate the following into a SQL query
What is the name of the winner when Goran Ivanišević was in third place?
SELECT Winner FROM table WHERE Third Place = goran ivanišević
Translate the following into a SQL query
Which analog channel has a digital channel of 4.1?
SELECT Analog Channel FROM table WHERE Digital Channel = 4.1
Translate the following into a SQL query
Which digital channel is named Storm Tracker?
SELECT Digital Channel FROM table WHERE Name = storm tracker
Translate the following into a SQL query
Which analog channel is Fox on?
SELECT Analog Channel FROM table WHERE Network = fox
Translate the following into a SQL query
Name the area president when the area name is south america south
SELECT Area president (Quorum) FROM table WHERE Area name = south america south
Translate the following into a SQL query
Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70
SELECT COUNT Grid FROM table WHERE Time/Retired = +2 laps AND Laps < 70
Translate the following into a SQL query
What year did Shelley Winters win?
SELECT Year FROM table WHERE Actress = shelley winters
Translate the following into a SQL query
Which award was won by Gloria Stuart after 1984?
SELECT Superlative FROM table WHERE Year > 1984 AND Actress = gloria stuart
Translate the following into a SQL query
Which award has Thelma Ritter won?
SELECT Superlative FROM table WHERE Actress = thelma ritter
Translate the following into a SQL query
I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26
SELECT MIN Points Diff FROM table WHERE Against < 578 AND Lost = 15 AND Points > 26
Translate the following into a SQL query
I want the total number of points for against of 753 and points diff more than -114
SELECT COUNT Points FROM table WHERE Against = 753 AND Points Diff > -114
Translate the following into a SQL query
In What Week was the Attendance 75,866?
SELECT Week FROM table WHERE Attendance = 75,866
Translate the following into a SQL query
What Opponent has an Attendance of 74,246?
SELECT Opponent FROM table WHERE Attendance = 74,246
Translate the following into a SQL query
What Date is Week 1?
SELECT Date FROM table WHERE Week = 1
Translate the following into a SQL query
Which team had 7 losses and 55 goals?
SELECT Team FROM table WHERE Losses = 7 AND Goals For = 55
Translate the following into a SQL query
What is the largest 2000 GDP when the 2008 GDP is smaller than 3,632, 2010 GDP is 2,558 and 2009 GDP is larger than 2,239?
SELECT MAX 2000 FROM table WHERE 2008 < 3,632 AND 2010 = 2,558 AND 2009 > 2,239
Translate the following into a SQL query
What is the GDP in 2008 for the region where 2009 is less than 3,355, 2005 is larger than 1,103, 2010 GDP is 3,977 and 1995 GDP is larger than 413?
SELECT COUNT 2008 FROM table WHERE 2009 < 3,355 AND 2005 > 1,103 AND 2010 = 3,977 AND 1995 > 413
Translate the following into a SQL query
What is the minimum 2010 GDP if the 2009 GDP is larger than 3,749, 1995 GDP is 876 and 2008 GDP is larger than 4,885?
SELECT MIN 2010 FROM table WHERE 2009 > 3,749 AND 1995 = 876 AND 2008 > 4,885
Translate the following into a SQL query
What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359?
SELECT MIN 1995 FROM table WHERE 1990 = 441 AND 1985 < 359
Translate the following into a SQL query
What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?
SELECT MAX 1985 FROM table WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658
Translate the following into a SQL query
When populatioin is greater than 7,747 and the type is V, what is the sum of code?
SELECT COUNT Code FROM table WHERE Type = v AND Population > 7,747
Translate the following into a SQL query
Who has ties of 5?
SELECT Name FROM table WHERE Ties = 5
Translate the following into a SQL query
Where did st kilda play as the away team?
SELECT Venue FROM table WHERE Away team = st kilda
Translate the following into a SQL query
What home team scored 10.14 (74)?
SELECT Home team FROM table WHERE Home team score = 10.14 (74)
Translate the following into a SQL query
How big of a crowd does the home team of essendon have?
SELECT Crowd FROM table WHERE Home team = essendon
Translate the following into a SQL query
What is the MLB Draft status of the person who attended Seton Hall Preparatory School?
SELECT MLB Draft FROM table WHERE School = seton hall preparatory school
Translate the following into a SQL query
Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School?
SELECT Hometown FROM table WHERE School = kennedy-kenrick catholic high school
Translate the following into a SQL query
Which Player attended George Washington High School?
SELECT Player FROM table WHERE School = george washington high school
Translate the following into a SQL query
Where is the Hometown that the person who attended Camarillo High School is from?
SELECT Hometown FROM table WHERE School = camarillo high school
Translate the following into a SQL query
How many people in total have attended games where carlton played as away?
SELECT COUNT Crowd FROM table WHERE Away team = carlton
Translate the following into a SQL query
When the home team scored 19.15 (129)?
SELECT MIN Crowd FROM table WHERE Home team score = 19.15 (129)
Translate the following into a SQL query
Which player has a long of less than 15 and an average of 6 yards.
SELECT Player FROM table WHERE Long < 15 AND Avg. = 6
Translate the following into a SQL query
What years did Troy Hudson play for the Jazz?
SELECT Years for Jazz FROM table WHERE Player = troy hudson
Translate the following into a SQL query
What Nationality is the Iowa State team?
SELECT Nationality FROM table WHERE School/Club Team = iowa state
Translate the following into a SQL query
What Nationality is Jeff Hornacek?
SELECT Nationality FROM table WHERE Player = jeff hornacek
Translate the following into a SQL query
What Nationality is the Colorado State team?
SELECT Nationality FROM table WHERE School/Club Team = colorado
Translate the following into a SQL query
What Player is from the Southern Illinois team?
SELECT Player FROM table WHERE School/Club Team = southern illinois
Translate the following into a SQL query
What years did Eddie Hughes play for the Jazz?
SELECT Years for Jazz FROM table WHERE Player = eddie hughes
Translate the following into a SQL query
Which Species has a medium Threat Level?
SELECT Species FROM table WHERE Threat level = medium
Translate the following into a SQL query
What is the Overview with a medium Threat Level?
SELECT Overview FROM table WHERE Threat level = medium
Translate the following into a SQL query
What is the Threat Levels with Rabbits in Australia?
SELECT Threat level FROM table WHERE Overview = rabbits in australia
Translate the following into a SQL query
Which nominee won the Drama Desk Award for outstanding choreography?
SELECT Nominee FROM table WHERE Award = drama desk award AND Result = won AND Category = outstanding choreography
Translate the following into a SQL query
When was the last time a nominee for Best Revival of a Musical was selected?
SELECT MAX Year FROM table WHERE Nominee = best revival of a musical
Translate the following into a SQL query
Which Award is the winner for Outstanding Revival of a Musical given?
SELECT Award FROM table WHERE Category = outstanding revival of a musical
Translate the following into a SQL query
What did the home team score in the game where the away team scored 8.14 (62)?
SELECT Home team score FROM table WHERE Away team score = 8.14 (62)
Translate the following into a SQL query
Who is the home team in the game where South Melbourne was the away team?
SELECT Home team score FROM table WHERE Away team = south melbourne
Translate the following into a SQL query
What did the home team score in the game where the away team scored 9.13 (67)?
SELECT Home team score FROM table WHERE Away team score = 9.13 (67)
Translate the following into a SQL query
In which venue did the home team score 10.11 (71)
SELECT Venue FROM table WHERE Home team score = 10.11 (71)
Translate the following into a SQL query
I want the result for week larger than 10 for opponent of new england patriots
SELECT Result FROM table WHERE Week > 10 AND Opponent = new england patriots
Translate the following into a SQL query
I want the game site for week of 11
SELECT Game site FROM table WHERE Week = 11
Translate the following into a SQL query
What is the average number of laps for mika salo's arrows car with a grid over 13?
SELECT AVG Laps FROM table WHERE Constructor = arrows AND Driver = mika salo AND Grid > 13
Translate the following into a SQL query
Who drove the car with a grid of 7?
SELECT Driver FROM table WHERE Grid = 7
Translate the following into a SQL query
Which Report is Dated 9 March?
SELECT Report FROM table WHERE Date = 9 march
Translate the following into a SQL query
When Hamilton Academical is the Opponent, what is the total Attendance?
SELECT COUNT Attendance FROM table WHERE Opponent = hamilton academical
Translate the following into a SQL query
How many in attendance with a loss of volquez (1–4)?
SELECT Attendance FROM table WHERE Loss = volquez (1–4)
Translate the following into a SQL query
What record has a Score of 9–6?
SELECT Record FROM table WHERE Score = 9–6
Translate the following into a SQL query
What is the average number in attendance on September 16?
SELECT AVG Attendance FROM table WHERE Date = september 16
Translate the following into a SQL query
What is the sum of people in attendance on September 8?
SELECT SUM Attendance FROM table WHERE Date = september 8
Translate the following into a SQL query
What was Head Coach Jim Morris's best finish?
SELECT CWS Best Finish FROM table WHERE Head Coach = jim morris
Translate the following into a SQL query
What is the record when the visiting team was the montreal canadiens?
SELECT Record FROM table WHERE Visitor = montreal canadiens
Translate the following into a SQL query
What nation has 187.84 points?
SELECT Nation FROM table WHERE Points = 187.84
Translate the following into a SQL query
What is the low point total for teams with 81 places?
SELECT MIN Points FROM table WHERE Places = 81
Translate the following into a SQL query
What is the station number of the station at Dogsthorpe?
SELECT Station Number FROM table WHERE Location = dogsthorpe
Translate the following into a SQL query
What is the type of the station with a 1 wrl appliance in Linton?
SELECT Type FROM table WHERE Appliances = 1 wrl AND Location = linton
Translate the following into a SQL query
What is the appliance at the station in St Neots?
SELECT Appliances FROM table WHERE Location = st neots