instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?
SELECT Wheels FROM table WHERE Builder = baldwin locomotive works
Translate the following into a SQL query
Which Venue has Against of 25?
SELECT Venue FROM table WHERE Against = 25
Translate the following into a SQL query
Which Venue has Against smaller than 6?
SELECT Venue FROM table WHERE Against < 6
Translate the following into a SQL query
What's the value for utah when colorado and new mexico are bush?
SELECT Utah FROM table WHERE Colorado = bush AND New Mexico = bush
Translate the following into a SQL query
What's the value for oklahoma when texas is kennedy?
SELECT Oklahoma FROM table WHERE Texas = kennedy
Translate the following into a SQL query
What's the value for utah when texas is humphrey?
SELECT Utah FROM table WHERE Texas = humphrey
Translate the following into a SQL query
What's the value for arizona when colorado and nevada are nixon, and texas is humphrey?
SELECT Arizona FROM table WHERE Colorado = nixon AND Nevada = nixon AND Texas = humphrey
Translate the following into a SQL query
What's the value for oklahoma when nevada and colorado are clinton?
SELECT Oklahoma FROM table WHERE Nevada = clinton AND Colorado = clinton
Translate the following into a SQL query
What's the value for arizona when utah is eisenhower?
SELECT Arizona FROM table WHERE Utah = eisenhower
Translate the following into a SQL query
How often are there ads during American Top 40?
SELECT Ad Freq FROM table WHERE Show Name = american top 40
Translate the following into a SQL query
When does Classic Hits air?
SELECT Time FROM table WHERE Show Name = classic hits
Translate the following into a SQL query
What is Pick #18's Role?
SELECT Role FROM table WHERE Pick # = 18
Translate the following into a SQL query
What is the foundation for the institution whose name in English is tanjung puteri technical secondary school?
SELECT Foundation FROM table WHERE Name in English = tanjung puteri technical secondary school
Translate the following into a SQL query
What is the location of the institution whose name in Malay is kolej kemahiran belia nasional, pontian?
SELECT Location FROM table WHERE Name in Malay = kolej kemahiran belia nasional, pontian
Translate the following into a SQL query
What was the average money when the score was 68-69-68-72=277?
SELECT AVG Money ( $ ) FROM table WHERE Score = 68-69-68-72=277
Translate the following into a SQL query
What was the highest money when the score was 69-68-67-69=273?
SELECT MAX Money ( $ ) FROM table WHERE Score = 69-68-67-69=273
Translate the following into a SQL query
What did South Africa place?
SELECT Place FROM table WHERE Country = south africa
Translate the following into a SQL query
What county placed t2 and scored 68-69-68-72=277?
SELECT Country FROM table WHERE Place = t2 AND Score = 68-69-68-72=277
Translate the following into a SQL query
Name the Milan – San Remo which has a Liège–Bastogne–Liège of danilo di luca ( ita )?
SELECT Milan – San Remo FROM table WHERE Liège–Bastogne–Liège = danilo di luca ( ita )
Translate the following into a SQL query
Which Giro di Lombardia has a Paris–Roubaix of servais knaven ( ned )?
SELECT Giro di Lombardia FROM table WHERE Paris–Roubaix = servais knaven ( ned )
Translate the following into a SQL query
what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )?
SELECT Giro di Lombardia FROM table WHERE Tour of Flanders = tom boonen ( bel ) AND Paris–Roubaix = fabian cancellara ( sui )
Translate the following into a SQL query
What are the cargo tonnes when the international (non-CIS) is 297 421?
SELECT Cargo (tonnes) FROM table WHERE International (non-CIS) = 297 421
Translate the following into a SQL query
How manu aircraft landings when the cargo tonnes are 18 344?
SELECT Aircraft Landings FROM table WHERE Cargo (tonnes) = 18 344
Translate the following into a SQL query
What is the domestic figure when cargo tonnes equal 25 866?
SELECT Domestic FROM table WHERE Cargo (tonnes) = 25 866
Translate the following into a SQL query
What is the year that saw a passenger change of +32,9%?
SELECT COUNT Year FROM table WHERE Passenger Change = +32,9%
Translate the following into a SQL query
What year had cargo tonnes of 13 585?
SELECT AVG Year FROM table WHERE Cargo (tonnes) = 13 585
Translate the following into a SQL query
What round did the event UFC 86 take place?
SELECT Round FROM table WHERE Event = ufc 86
Translate the following into a SQL query
What method was there in round 1 when the location was Aruba?
SELECT Method FROM table WHERE Round = 1 AND Location = aruba
Translate the following into a SQL query
What location was the event ufc: fight for the troops?
SELECT Location FROM table WHERE Event = ufc: fight for the troops
Translate the following into a SQL query
When was the game that had the St. Louis Rams as visiting team and resulted in a score of 26-0?
SELECT Date FROM table WHERE Visiting Team = st. louis rams AND Result = 26-0
Translate the following into a SQL query
What date(s) was the game(s) at Candlestick Park?
SELECT Date FROM table WHERE Venue = candlestick park
Translate the following into a SQL query
What year was the opponent in the final john higgins category:articles with hcards?
SELECT Year FROM table WHERE Opponent in the final = john higgins category:articles with hcards
Translate the following into a SQL query
Which church was built in 1600?
SELECT Church Name FROM table WHERE Year Built = 1600
Translate the following into a SQL query
What is the Location of the Church that was built in the year 1914?
SELECT Location of the Church FROM table WHERE Year Built = 1914
Translate the following into a SQL query
Where is the Church that has a Sub-Parish (Sokn) of rugsund?
SELECT Location of the Church FROM table WHERE Sub-Parish (Sokn) = rugsund
Translate the following into a SQL query
Which Year Built has a Parish (Prestegjeld) of bremanger parish, and a Location of the Church of bremanger?
SELECT AVG Year Built FROM table WHERE Parish ( Prestegjeld ) = bremanger parish AND Location of the Church = bremanger
Translate the following into a SQL query
Who is the required actor when Robert Austin was the actor in the original production?
SELECT Actor required FROM table WHERE Actor in original production = robert austin
Translate the following into a SQL query
Who is the actor in the original production when Troy Stephens is the GamePlan?
SELECT Actor in original production FROM table WHERE GamePlan = troy stephens
Translate the following into a SQL query
Who is the GamePlan when Jacqueline King is the actor in the original production?
SELECT GamePlan FROM table WHERE Actor in original production = jacqueline king
Translate the following into a SQL query
Who is the GamePlan when Arabella Lazenby is the RolePlay actor?
SELECT GamePlan FROM table WHERE RolePlay = arabella lazenby
Translate the following into a SQL query
Who is the actor required when Edna Stricken is the FlatSpin actor?
SELECT Actor required FROM table WHERE FlatSpin = edna stricken
Translate the following into a SQL query
What shows for the 1st round when the team 1 was Lb Châteauroux (d2)?
SELECT 1st round FROM table WHERE Team 1 = lb châteauroux (d2)
Translate the following into a SQL query
What shows for 2nd round when the team 1 was Rc Strasbourg (d1)?
SELECT 2nd round FROM table WHERE Team 1 = rc strasbourg (d1)
Translate the following into a SQL query
Who was the Home team in Tie #23?
SELECT Home team FROM table WHERE Tie no = 23
Translate the following into a SQL query
What was the final score in Tie #28?
SELECT Score FROM table WHERE Tie no = 28
Translate the following into a SQL query
What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?
SELECT Score FROM table WHERE To par > 15 AND Money ( $ ) > 116 AND Player = billy burke
Translate the following into a SQL query
What player has t3 as the place, with england united states as the country?
SELECT Player FROM table WHERE Place = t3 AND Country = england united states
Translate the following into a SQL query
What is the lowest money ($) that has t8 as the place, with a to par greater than 19?
SELECT MIN Money ( $ ) FROM table WHERE Place = t8 AND To par > 19
Translate the following into a SQL query
What score has money ($) greater than 400, with gene sarazen as the player?
SELECT Score FROM table WHERE Money ( $ ) > 400 AND Player = gene sarazen
Translate the following into a SQL query
Which Country has a To par smaller than 7, and a Total of 148?
SELECT Country FROM table WHERE To par < 7 AND Total = 148
Translate the following into a SQL query
Which player is from south africa?
SELECT Player FROM table WHERE Country = south africa
Translate the following into a SQL query
Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?
SELECT Year(s) won FROM table WHERE Total > 148 AND To par < 17 AND Country = new zealand
Translate the following into a SQL query
In what Event did Dorcus Inzikuru compete?
SELECT Event FROM table WHERE Name = dorcus inzikuru
Translate the following into a SQL query
In what Games did Patrick Etolu compete?
SELECT Games FROM table WHERE Name = patrick etolu
Translate the following into a SQL query
What Medal did James Odwori receive for Boxing in the 1970 Edinburgh Games?
SELECT Medal FROM table WHERE Sport = boxing AND Games = 1970 edinburgh AND Name = james odwori
Translate the following into a SQL query
What is the Medal for the Player in the Light Heavyweight event?
SELECT Medal FROM table WHERE Event = light heavyweight
Translate the following into a SQL query
At what Games did the competitor win a Silver medal in the light heavyweight event?
SELECT Games FROM table WHERE Medal = silver AND Event = light heavyweight
Translate the following into a SQL query
What is the Tie no for Away Team Ipswich Town?
SELECT Tie no FROM table WHERE Away team = ipswich town
Translate the following into a SQL query
What is the Date of the Middlesbrough Home game?
SELECT Date FROM table WHERE Home team = middlesbrough
Translate the following into a SQL query
What is the Home team in the Game with a Score of 1–0?
SELECT Home team FROM table WHERE Score = 1–0
Translate the following into a SQL query
What is the Date of the Everton Away game?
SELECT Date FROM table WHERE Away team = everton
Translate the following into a SQL query
When the finish was t31 what was the To par?
SELECT To par FROM table WHERE Finish = t31
Translate the following into a SQL query
Who had a finish of t15?
SELECT Player FROM table WHERE Finish = t15
Translate the following into a SQL query
When the total was 290 what was the To par?
SELECT To par FROM table WHERE Total = 290
Translate the following into a SQL query
What is the Total for Seve Ballesteros?
SELECT SUM Total FROM table WHERE Player = seve ballesteros
Translate the following into a SQL query
What was the result of Declan Donnellan's nomination?
SELECT Result FROM table WHERE Nominee = declan donnellan
Translate the following into a SQL query
What was the result of the Best Actor in a Musical category?
SELECT Result FROM table WHERE Category = best actor in a musical
Translate the following into a SQL query
WHAT IS THE PLAYER WITH 287?
SELECT Player FROM table WHERE Total = 287
Translate the following into a SQL query
WHAT COUNTRY HAS A PLAYER NAMED JACK NICKLAUS?
SELECT Country FROM table WHERE Player = jack nicklaus
Translate the following into a SQL query
What is Player, when Country is "United States", and when Place is "6"?
SELECT Player FROM table WHERE Country = united states AND Place = 6
Translate the following into a SQL query
What is the average Money ( $ ), when Score is "69-69-76-69=283"?
SELECT AVG Money ( $ ) FROM table WHERE Score = 69-69-76-69=283
Translate the following into a SQL query
What is Country, when To par is "+1", and when Score is "72-71-70-72=285"?
SELECT Country FROM table WHERE To par = +1 AND Score = 72-71-70-72=285
Translate the following into a SQL query
What is Place, when Score is "70-70-68-70=278"?
SELECT Place FROM table WHERE Score = 70-70-68-70=278
Translate the following into a SQL query
For which network was Chris Walby the color commentator after 1990?
SELECT Network FROM table WHERE Year > 1990 AND Colour commentator(s) = chris walby
Translate the following into a SQL query
Who was the pregame host before 1992 when there was a play by play of Bob Irving?
SELECT Pregame host FROM table WHERE Year < 1992 AND Play-by-play = bob irving
Translate the following into a SQL query
What is the total of the player who won before 1991 and has a to par less than 14?
SELECT COUNT Total FROM table WHERE Year won < 1991 AND To par < 14
Translate the following into a SQL query
What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?
SELECT COUNT To par FROM table WHERE Year won < 1993 AND Player = jeff sluman AND Total > 154
Translate the following into a SQL query
What is the sum of the total of player rich beem, who has a to par greater than 17?
SELECT SUM Total FROM table WHERE Player = rich beem AND To par > 17
Translate the following into a SQL query
Who was the away team in the semifinals?
SELECT Away FROM table WHERE Round = semifinals
Translate the following into a SQL query
What is the home record for the Auxerre club?
SELECT Home FROM table WHERE Club = auxerre
Translate the following into a SQL query
What is the home record for the Maccabi Tel-Aviv club?
SELECT Home FROM table WHERE Club = maccabi tel-aviv
Translate the following into a SQL query
What is the total number of Against, when Date is "16/03/1996"?
SELECT COUNT Against FROM table WHERE Date = 16/03/1996
Translate the following into a SQL query
What is Venue, when Against is greater than 9, and when Date is "03/02/1996"?
SELECT Venue FROM table WHERE Against > 9 AND Date = 03/02/1996
Translate the following into a SQL query
What is Status, when Opposing Teams is "Scotland"?
SELECT Status FROM table WHERE Opposing Teams = scotland
Translate the following into a SQL query
What is Venue, when Date is "14/12/1996"?
SELECT Venue FROM table WHERE Date = 14/12/1996
Translate the following into a SQL query
What is the average Against, when Status is "Five Nations", and when Date is "16/03/1996"?
SELECT AVG Against FROM table WHERE Status = five nations AND Date = 16/03/1996
Translate the following into a SQL query
In what year did the team of aston martin racing have a position of 6th?
SELECT COUNT Year FROM table WHERE Team = aston martin racing AND Pos. = 6th
Translate the following into a SQL query
Which year did the team of pescarolo sport have a Class Position of 7th?
SELECT MAX Year FROM table WHERE Team = pescarolo sport AND Class Pos. = 7th
Translate the following into a SQL query
Who were the co-drivers of the vehicle that had both a Class position and position of 7th?
SELECT Co-Drivers FROM table WHERE Class Pos. = 7th AND Pos. = 7th
Translate the following into a SQL query
Which Rank is Highest for Yoshiazuma?
SELECT Highest rank FROM table WHERE Name = yoshiazuma
Translate the following into a SQL query
Which Top Division debut for Kitazakura has Tournaments less than 88?
SELECT Top division debut FROM table WHERE Tournaments < 88 AND Name = kitazakura
Translate the following into a SQL query
What is the lowest Tournaments with Highest Rank of Maegashira 13?
SELECT MIN Tournaments FROM table WHERE Highest rank = maegashira 13
Translate the following into a SQL query
What was the city where Hallescher FC won in 2008?
SELECT City FROM table WHERE Winner = hallescher fc AND Year = 2008
Translate the following into a SQL query
Who was the winner of fc grün-weiß wolfen?
SELECT Winner FROM table WHERE Finalist = fc grün-weiß wolfen
Translate the following into a SQL query
What was the stadium past 2012?
SELECT Stadium FROM table WHERE Year > 2012
Translate the following into a SQL query
What is the average Year, when Country is "U.S.", and when Location is "Edmond , OK"?
SELECT AVG Year FROM table WHERE Country = u.s. AND Location = edmond , ok
Translate the following into a SQL query
What is the lowest Killed, when Perpetrator is "Sherrill, Patrick Henry , 44"?
SELECT MIN Killed FROM table WHERE Perpetrator = sherrill, patrick henry , 44
Translate the following into a SQL query
What was the highest goals with fewer than 16 losses, fewer than 11 wins, and a goal difference greater than -9?
SELECT MAX Goals for FROM table WHERE Losses < 16 AND Wins < 11 AND Goal Difference > -9
Translate the following into a SQL query
What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?
SELECT MAX Wins FROM table WHERE Goals against < 51 AND Points > 39 AND Goal Difference < 13
Translate the following into a SQL query
What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?
SELECT MIN Wins FROM table WHERE Goal Difference < 33 AND Position < 13 AND Goals for = 42