instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What was Olin Dutra's score?
SELECT Score FROM table WHERE Player = olin dutra
Translate the following into a SQL query
What was Craig Wood's score?
SELECT Score FROM table WHERE Player = craig wood
Translate the following into a SQL query
What was Paul Runyan's score?
SELECT Score FROM table WHERE Player = paul runyan
Translate the following into a SQL query
What country has a To par of e?
SELECT Country FROM table WHERE To par = e
Translate the following into a SQL query
What position for the player from villa park high school?
SELECT Position FROM table WHERE School = villa park high school
Translate the following into a SQL query
What is the total number of medals by the Czech republic?
SELECT Total FROM table WHERE Nation = czech republic
Translate the following into a SQL query
How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
SELECT SUM Gold FROM table WHERE Rank < 2 AND Bronze > 8
Translate the following into a SQL query
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?
SELECT MAX Rank FROM table WHERE Gold < 3 AND Silver > 2 AND Total < 5
Translate the following into a SQL query
When is the record 5-4?
SELECT Date FROM table WHERE Record = 5-4
Translate the following into a SQL query
What is the Genre when the Artist is Prince?
SELECT Genre FROM table WHERE Artist = prince
Translate the following into a SQL query
What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States?
SELECT Genre FROM table WHERE Release-year of first charted record = 1968 AND Country of origin = united states
Translate the following into a SQL query
Name the builder numbers with RR class of a1 and year less than 1916
SELECT Builder Nos. FROM table WHERE RR class = a1 AND Year < 1916
Translate the following into a SQL query
Name the RR numbers of hudswell clarke and years before 1914
SELECT RR Nos. FROM table WHERE Builder = hudswell clarke AND Year < 1914
Translate the following into a SQL query
What is the To par has the presence of Vijay Singh?
SELECT To par FROM table WHERE Player = vijay singh
Translate the following into a SQL query
How many laps did Dick Rathmann complete when he ranked 14?
SELECT Laps FROM table WHERE Rank = 14
Translate the following into a SQL query
What was Dick Rathmann's Finish the year he Qualed at 130.928?
SELECT Finish FROM table WHERE Qual = 130.928
Translate the following into a SQL query
What is the average total produced when the prime mover is 12-251c?
SELECT AVG Total produced FROM table WHERE Prime mover = 12-251c
Translate the following into a SQL query
What is the build date when total produced is 2?
SELECT Build date FROM table WHERE Total produced = 2
Translate the following into a SQL query
What is the smallest total produced with a model of M-420?
SELECT MIN Total produced FROM table WHERE Model = m-420
Translate the following into a SQL query
What is the prime mover for a build date in 1975?
SELECT Prime mover FROM table WHERE Build date = 1975
Translate the following into a SQL query
What model has a total produced more than 5 and a prime move of 12-251c?
SELECT Model FROM table WHERE Total produced > 5 AND Prime mover = 12-251c
Translate the following into a SQL query
What was the date of the home Detroit game with a decision of Joseph and a record of 27–13–5–2?
SELECT Date FROM table WHERE Decision = joseph AND Home = detroit AND Record = 27–13–5–2
Translate the following into a SQL query
What was the score of the home Dallas game that had a decision of Legace?
SELECT Score FROM table WHERE Decision = legace AND Home = dallas
Translate the following into a SQL query
What was the score of the game that had a record of 26–13–4–2 and a decision of Joseph?
SELECT Score FROM table WHERE Decision = joseph AND Record = 26–13–4–2
Translate the following into a SQL query
Who was the visiting team when the record was 28–14–6–2?
SELECT Visitor FROM table WHERE Record = 28–14–6–2
Translate the following into a SQL query
What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?
SELECT MIN Points FROM table WHERE Engine = mugen v8 AND Chassis = reynard 91d
Translate the following into a SQL query
What are the highest points that have a Mugen V8 engine and happened in 1991?
SELECT MAX Points FROM table WHERE Engine = mugen v8 AND Year = 1991
Translate the following into a SQL query
How many years did John Player Lotus used Cosworth v8?
SELECT SUM Year FROM table WHERE Engine = cosworth v8 AND Entrant = john player lotus
Translate the following into a SQL query
Who used Eurobrun er189b after 1989?
SELECT Entrant FROM table WHERE Year > 1989 AND Chassis = eurobrun er189b
Translate the following into a SQL query
Who used Ford v8 and Jordan 191 after 1990 and got 8 points?
SELECT Entrant FROM table WHERE Year > 1990 AND Engine = ford v8 AND Points = 8 AND Chassis = jordan 191
Translate the following into a SQL query
What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977?
SELECT Leftfielder FROM table WHERE Second Baseman = davey lopes AND First Baseman = steve garvey AND Shortstop = bill russell AND Year > 1977
Translate the following into a SQL query
What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver?
SELECT Shortstop FROM table WHERE Catcher = johnny roseboro AND Third Baseman = jim lefebvre AND Second Baseman = nate oliver
Translate the following into a SQL query
Who was the First Baseman when the Shortstop was zoilo versalles?
SELECT First Baseman FROM table WHERE Shortstop = zoilo versalles
Translate the following into a SQL query
What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983?
SELECT Leftfielder FROM table WHERE Shortstop = bill russell AND Second Baseman = steve sax AND Year = 1983
Translate the following into a SQL query
What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant?
SELECT MIN Year FROM table WHERE Points < 3 AND Entrant = parmalat forti ford
Translate the following into a SQL query
What is the average Points when equipe ligier gauloises blondes is the entrant?
SELECT AVG Points FROM table WHERE Entrant = equipe ligier gauloises blondes
Translate the following into a SQL query
What is the smallest amount of points for parmalat forti ford entrant later than 1995?
SELECT MIN Points FROM table WHERE Entrant = parmalat forti ford AND Year > 1995
Translate the following into a SQL query
What is the company that made the chassis for the entrant danka arrows yamaha?
SELECT Chassis FROM table WHERE Entrant = danka arrows yamaha
Translate the following into a SQL query
What college did Ray Graves attend?
SELECT College FROM table WHERE Name = ray graves
Translate the following into a SQL query
What number pick was Bill Athey?
SELECT Pick # FROM table WHERE Name = bill athey
Translate the following into a SQL query
What is John Cole's overall pick number?
SELECT COUNT Overall FROM table WHERE Name = john cole
Translate the following into a SQL query
What is the date of the locomotive with a Waterford class?
SELECT Date made FROM table WHERE Class = waterford
Translate the following into a SQL query
What is the date of the locomotive named Blacklion Glencar?
SELECT Date made FROM table WHERE Names = blacklion glencar
Translate the following into a SQL query
What is the quantity made of the locomotive with a Waterford class?
SELECT Quantity made FROM table WHERE Class = waterford
Translate the following into a SQL query
What is the class of the locomotive with a quantity made of 1 and a 0-6-0t type?
SELECT Class FROM table WHERE Quantity made = 1 AND Type = 0-6-0t
Translate the following into a SQL query
What is the class of the locomotive with a 0-4-0st type?
SELECT Class FROM table WHERE Type = 0-4-0st
Translate the following into a SQL query
What is the name of the locomotive with a Glencar class?
SELECT Names FROM table WHERE Class = glencar
Translate the following into a SQL query
What country has signed type moving from porto?
SELECT Country FROM table WHERE Type = signed AND Moving from = porto
Translate the following into a SQL query
Which transfer window was moving from borussia dortmund?
SELECT Transfer window FROM table WHERE Moving from = borussia dortmund
Translate the following into a SQL query
What is moving from esp with transfer fee of youth system?
SELECT Moving from FROM table WHERE Country = esp AND Transfer fee = youth system
Translate the following into a SQL query
What is the transfer window in esp with promoted type and more than 2010 ends?
SELECT Transfer window FROM table WHERE Country = esp AND Type = promoted AND Ends > 2010
Translate the following into a SQL query
Who is the week 12 for the week 2 with Magda Tomek?
SELECT Week 12 FROM table WHERE Week 2 = magda tomek
Translate the following into a SQL query
Who is the week 12 for the week 4 of Gerard Ewelina?
SELECT Week 12 FROM table WHERE Week 4 = gerard ewelina
Translate the following into a SQL query
Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds?
SELECT Points FROM table WHERE Rebounds = al jefferson (7)
Translate the following into a SQL query
Who was the leader in Steals when Travis Watson (9) was the leader in Rebounds?
SELECT Steals FROM table WHERE Rebounds = travis watson (9)
Translate the following into a SQL query
What was the 1st Year Al Harrington (9) the leader in Rebounds?
SELECT MIN Year FROM table WHERE Rebounds = al harrington (9)
Translate the following into a SQL query
Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?
SELECT Points FROM table WHERE Steals = 3 tied (2) AND Assists = 2 tied (5)
Translate the following into a SQL query
Name the average with tally of 0-29 and total more than 29
SELECT AVG Average FROM table WHERE Tally = 0-29 AND Total > 29
Translate the following into a SQL query
Name the tally with total less than 27 and average more than 3.41
SELECT Tally FROM table WHERE Total < 27 AND Average > 3.41
Translate the following into a SQL query
For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year?
SELECT MAX Year FROM table WHERE Engine = maserati straight-6 AND Entrant = h h gould
Translate the following into a SQL query
What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956?
SELECT MIN Points FROM table WHERE Entrant = goulds' garage (bristol) AND Engine = maserati straight-6 AND Year < 1956
Translate the following into a SQL query
Which chassis has fewer than 2 points, entrants of Goulds' Garage (Bristol), in 1954?
SELECT Chassis FROM table WHERE Points < 2 AND Entrant = goulds' garage (bristol) AND Year = 1954
Translate the following into a SQL query
What is the most points that the Maserati 250F chassis scored in years after 1955?
SELECT MAX Points FROM table WHERE Chassis = maserati 250f AND Year > 1955
Translate the following into a SQL query
Which engine has a year larger than 1956?
SELECT Engine FROM table WHERE Year > 1956
Translate the following into a SQL query
What is the lowest age of an astronaut named Stu Roosa?
SELECT MIN Age on mission FROM table WHERE Name = stu roosa
Translate the following into a SQL query
What mission did the astronaut who 38 years old on the mission and who served in NASA serve on?
SELECT Mission FROM table WHERE Service = nasa AND Age on mission = 38
Translate the following into a SQL query
what is the type of lithium when rubidium is nabr (1.9)?
SELECT Lithium FROM table WHERE Rubidium = nabr (1.9)
Translate the following into a SQL query
what is the properties of sodium when rubidium is nacl (2.1)?
SELECT Sodium FROM table WHERE Rubidium = nacl (2.1)
Translate the following into a SQL query
what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine?
SELECT Potassium FROM table WHERE Lithium = h a l o g e n s AND Sodium = bromine
Translate the following into a SQL query
what is the properties of lithium when caesium is ki (1.7)?
SELECT Lithium FROM table WHERE Caesium = ki (1.7)
Translate the following into a SQL query
what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl (2.1)?
SELECT Sodium FROM table WHERE Lithium = h a l o g e n s AND Rubidium = nacl (2.1)
Translate the following into a SQL query
what is the properties of sodium when potassium is lii (1.5)?
SELECT Sodium FROM table WHERE Potassium = lii (1.5)
Translate the following into a SQL query
Which prime mover had a Model of rs-18?
SELECT Prime mover FROM table WHERE Model = rs-18
Translate the following into a SQL query
Which model had a Specification of dl-718?
SELECT Model FROM table WHERE Specification = dl-718
Translate the following into a SQL query
Which power output had a Build date of 1951–1956?
SELECT Power output FROM table WHERE Build date = 1951–1956
Translate the following into a SQL query
Which wheel arrangement had a Specification of dl-700?
SELECT Wheel arrangement FROM table WHERE Specification = dl-700
Translate the following into a SQL query
Who is the player born before 1985 who is less than 2.02 tall?
SELECT Player FROM table WHERE Year born < 1985 AND Height < 2.02
Translate the following into a SQL query
Who is the player who was born before 1980 who currently plays for the Toronto Raptors?
SELECT Player FROM table WHERE Year born < 1980 AND Current Club = toronto raptors
Translate the following into a SQL query
What position does Sergio Rodríguez, who is less than 1.96 tall and was born after 1980, play?
SELECT Position FROM table WHERE Height < 1.96 AND Year born > 1980 AND Player = sergio rodríguez
Translate the following into a SQL query
What year was the Guard who currently plays for the Memphis Grizzlies born?
SELECT Year born FROM table WHERE Position = guard AND Current Club = memphis grizzlies
Translate the following into a SQL query
What is the height of the Forward who currently plays for the Toronto Raptors?
SELECT Height FROM table WHERE Position = forward AND Current Club = toronto raptors
Translate the following into a SQL query
Date of 24 september 2002 is what group position?
SELECT Group position FROM table WHERE Date = 24 september 2002
Translate the following into a SQL query
Attendance larger than 63,439, and an Opponent of bayer leverkusen had what result?
SELECT Result F–A FROM table WHERE Attendance > 63,439 AND Opponents = bayer leverkusen
Translate the following into a SQL query
Date of 24 september 2002 had what F-A result?
SELECT Result F–A FROM table WHERE Date = 24 september 2002
Translate the following into a SQL query
Result F–A of 2–0 had what total number of attendance?
SELECT COUNT Attendance FROM table WHERE Result F–A = 2–0
Translate the following into a SQL query
What was the score of the game with a loss of Myers (5-6)?
SELECT Score FROM table WHERE Loss = myers (5-6)
Translate the following into a SQL query
What was the loss of the game attended by 41,212?
SELECT Loss FROM table WHERE Attendance = 41,212
Translate the following into a SQL query
What was the attendance of the game that had a loss of Wolf (3-4)?
SELECT Attendance FROM table WHERE Loss = wolf (3-4)
Translate the following into a SQL query
what nation is bianca knight the answer for?
SELECT Nation FROM table WHERE Athlete = bianca knight
Translate the following into a SQL query
what is the wind speed when brenda morehead was in the united states?
SELECT MIN Wind (m/s) FROM table WHERE Nation = united states AND Athlete = brenda morehead
Translate the following into a SQL query
what is the highest rank in dresden with a time faster than 10.88?
SELECT MAX Rank FROM table WHERE Location = dresden AND Fastest time (s) < 10.88
Translate the following into a SQL query
What is the course on 1 June?
SELECT Course FROM table WHERE Date = 1 june
Translate the following into a SQL query
Who is the winner of the Florence to Genoa course?
SELECT Winner FROM table WHERE Course = florence to genoa
Translate the following into a SQL query
What is the date of the Rome to Florence course?
SELECT Date FROM table WHERE Course = rome to florence
Translate the following into a SQL query
What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995
SELECT Assists FROM table WHERE Blocks = 2 tied (1) AND Year > 1995
Translate the following into a SQL query
What is the highest lane for heat 6 with a time of dns?
SELECT MAX Lane FROM table WHERE Heat = 6 AND Time = dns
Translate the following into a SQL query
What is the lowest lane with a time of 2:05.90, and a Heat larger than 3?
SELECT MIN Lane FROM table WHERE Time = 2:05.90 AND Heat > 3
Translate the following into a SQL query
What nationality has a lane larger than 4 and a Time of 2:00.37?
SELECT Nationality FROM table WHERE Lane > 4 AND Time = 2:00.37
Translate the following into a SQL query
What is the average Lane where Belarus is the nationality?
SELECT AVG Lane FROM table WHERE Nationality = belarus
Translate the following into a SQL query
What is the highest lane for nisha millet?
SELECT MAX Lane FROM table WHERE Name = nisha millet