instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which Score has a To par of –3, and a Player of santiago luna?
SELECT Score FROM table WHERE To par = –3 AND Player = santiago luna
Translate the following into a SQL query
Which Player has a Score of 67 in united states?
SELECT Player FROM table WHERE Score = 67 AND Country = united states
Translate the following into a SQL query
What are the Opponents at the Schenectady, U.S. Tournament?
SELECT Opponents in the final FROM table WHERE Tournament = schenectady, u.s.
Translate the following into a SQL query
What was the outcome of the August 20, 2007 match?
SELECT Outcome FROM table WHERE Date = august 20, 2007
Translate the following into a SQL query
What was the score in the August 20, 2007 match?
SELECT Score FROM table WHERE Date = august 20, 2007
Translate the following into a SQL query
Which tournament was held on July 13, 2008?
SELECT Tournament FROM table WHERE Date = july 13, 2008
Translate the following into a SQL query
Who was the opponent in the September 20, 2010 match?
SELECT Opponent FROM table WHERE Date = september 20, 2010
Translate the following into a SQL query
What date was the Izmir Cup in which İlhan played against Somdev Devvarman?
SELECT Date FROM table WHERE Tournament = izmir cup AND Opponent = somdev devvarman
Translate the following into a SQL query
What years did Tom Lehman win?
SELECT Year(s) won FROM table WHERE Player = tom lehman
Translate the following into a SQL query
What was the total To Par for the winner in 1995?
SELECT COUNT To par FROM table WHERE Year(s) won = 1995
Translate the following into a SQL query
How many years had a 100 m hurdles event at the world championships in Osaka, Japan?
SELECT SUM Year FROM table WHERE Event = 100 m hurdles AND Competition = world championships AND Venue = osaka, japan
Translate the following into a SQL query
What was the position of the event held in Valencia, Spain?
SELECT Position FROM table WHERE Venue = valencia, spain
Translate the following into a SQL query
What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?
SELECT MIN Year FROM table WHERE Venue = berlin, germany AND Event = 100 m hurdles
Translate the following into a SQL query
What even was held in Valencia, Spain?
SELECT Event FROM table WHERE Venue = valencia, spain
Translate the following into a SQL query
What is the time of the tim trophy competition where juventus was the opponent?
SELECT Time FROM table WHERE Competition = tim trophy AND Opponent = juventus
Translate the following into a SQL query
What is the competition on 15 August 2008?
SELECT Competition FROM table WHERE Date = 15 august 2008
Translate the following into a SQL query
What is the score of the friendly match competition on 24 July 2008?
SELECT Score FROM table WHERE Competition = friendly match AND Date = 24 july 2008
Translate the following into a SQL query
What is the ground of the tim trophy competition, which had a time of 23:00 cet?
SELECT Ground FROM table WHERE Competition = tim trophy AND Time = 23:00 cet
Translate the following into a SQL query
What competition is at 23:00 cet?
SELECT Competition FROM table WHERE Time = 23:00 cet
Translate the following into a SQL query
What is the outcome on March 20, 1994?
SELECT Outcome FROM table WHERE Date = march 20, 1994
Translate the following into a SQL query
What tournament had a hard surface on February 25, 1996?
SELECT Tournament FROM table WHERE Surface = hard AND Date = february 25, 1996
Translate the following into a SQL query
What is the score in the final with a hard surface and is against Hiromi Nagano?
SELECT Score in the final FROM table WHERE Surface = hard AND Opponent in the final = hiromi nagano
Translate the following into a SQL query
What is the total outcome for the clay surface on April 21, 1996?
SELECT Outcome FROM table WHERE Surface = clay AND Date = april 21, 1996
Translate the following into a SQL query
What aircraft is located at S of Avion?
SELECT Aircraft FROM table WHERE Location = s of avion
Translate the following into a SQL query
What is the Unit for the Aircraft F.e.2b, located in Logeast?
SELECT SUM Unit FROM table WHERE Aircraft = f.e.2b AND Location = logeast
Translate the following into a SQL query
What is the name of the place that has a census ranking of 1,229 of 5,008?
SELECT Official Name FROM table WHERE Census Ranking = 1,229 of 5,008
Translate the following into a SQL query
How large, in square kilometers, is Sackville?
SELECT Area km 2 FROM table WHERE Official Name = sackville
Translate the following into a SQL query
What is the name(s) of the place(s) with a population of less than 1,429?
SELECT Official Name FROM table WHERE Population < 1,429
Translate the following into a SQL query
What score has 33 as the points?
SELECT Score FROM table WHERE Points = 33
Translate the following into a SQL query
What date has joe louis arena as the arena?
SELECT Date FROM table WHERE Arena = joe louis arena
Translate the following into a SQL query
What competition was played on 2 June 1992?
SELECT Competition FROM table WHERE Date = 2 june 1992
Translate the following into a SQL query
What date was a friendly match played that ended in a 3-0 score?
SELECT Date FROM table WHERE Result = 3-0 AND Competition = friendly match
Translate the following into a SQL query
What was the score of the match played on 5 September 2001?
SELECT Score FROM table WHERE Date = 5 september 2001
Translate the following into a SQL query
In what stadium was the friendly match on 2 June 1992 played in?
SELECT Venue FROM table WHERE Competition = friendly match AND Date = 2 june 1992
Translate the following into a SQL query
What was the score of the 1998 FIFA World Cup qualification competition?
SELECT Score FROM table WHERE Competition = 1998 fifa world cup qualification
Translate the following into a SQL query
Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1
SELECT Date FROM table WHERE Competition = welsh rugby union challenge trophy AND Result = 34-34
Translate the following into a SQL query
Name the Result of new zealand Nationality / Opponent?
SELECT Result FROM table WHERE Nationality / Opponent = new zealand
Translate the following into a SQL query
Name Nationality / Opponent on 10 january 1998?
SELECT Nationality / Opponent FROM table WHERE Date = 10 january 1998
Translate the following into a SQL query
Name The Ground on 18 january 1998?
SELECT Ground FROM table WHERE Date = 18 january 1998
Translate the following into a SQL query
Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?
SELECT Nationality / Opponent FROM table WHERE Competition = welsh rugby union challenge trophy AND Result = 38-29
Translate the following into a SQL query
Name the Nationality / Opponent of rosario?
SELECT Competition FROM table WHERE Nationality / Opponent = rosario
Translate the following into a SQL query
What team 1 has a team 2 of universidad nacional?
SELECT Team 1 FROM table WHERE Team 2 = universidad nacional
Translate the following into a SQL query
What team 2 has a team 1 of harbour view?
SELECT Team 2 FROM table WHERE Team 1 = harbour view
Translate the following into a SQL query
What's the 2nd leg for team 2 san francisco?
SELECT 2nd leg FROM table WHERE Team 2 = san francisco
Translate the following into a SQL query
What's the 1st leg of team 1 alajuelense?
SELECT 1st leg FROM table WHERE Team 1 = alajuelense
Translate the following into a SQL query
What was the format for catalog 660-51-015?
SELECT Format FROM table WHERE Catalog = 660-51-015
Translate the following into a SQL query
Which region had the year May 1974?
SELECT Region FROM table WHERE Year = may 1974
Translate the following into a SQL query
Which region had a year March 10, 1998?
SELECT Region FROM table WHERE Year = march 10, 1998
Translate the following into a SQL query
What is the first party for Lord John Hay earlier than 1857?
SELECT First party FROM table WHERE Year < 1857 AND First member = lord john hay
Translate the following into a SQL query
Who is the second member more recently than 1790 when John Williams is the first member?
SELECT Second member FROM table WHERE Year > 1790 AND First member = john williams
Translate the following into a SQL query
Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?
SELECT Second member FROM table WHERE First party = tory AND Year < 1804 AND First member = henry isherwood
Translate the following into a SQL query
Who is the second member when RT Hon. Edward Stanley is the first member?
SELECT Second member FROM table WHERE First member = rt hon. edward stanley
Translate the following into a SQL query
What is the second party where the first party is Tory and the year is 1820?
SELECT Second party FROM table WHERE First party = tory AND Year = 1820
Translate the following into a SQL query
Who is the player who won in 1993?
SELECT Player FROM table WHERE Year(s) won = 1993
Translate the following into a SQL query
What years did the player with a t71 finish win?
SELECT Year(s) won FROM table WHERE Finish = t71
Translate the following into a SQL query
What year did player payne stewart win?
SELECT Year(s) won FROM table WHERE Player = payne stewart
Translate the following into a SQL query
What year did the player with a t3 finish win?
SELECT Year(s) won FROM table WHERE Finish = t3
Translate the following into a SQL query
What is the lowest total of the player with a t41 finish?
SELECT MIN Total FROM table WHERE Finish = t41
Translate the following into a SQL query
In what Battle was Bulgarian Commander of Gavril Radomir?
SELECT Battle FROM table WHERE Bulgarian Commander = gavril radomir
Translate the following into a SQL query
What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis?
SELECT Date FROM table WHERE Result = bulgarian victory AND Battle = battle of arcadiopolis
Translate the following into a SQL query
What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?
SELECT Bulgarian Commander FROM table WHERE Battle = battle of thessalonica AND Date = autumn 1040
Translate the following into a SQL query
What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?
SELECT Byzantine Commander FROM table WHERE Result = bulgarian victory AND Battle = siege of lovech
Translate the following into a SQL query
What is the Result of the Battle of Marcellae in 756?
SELECT Result FROM table WHERE Battle = battle of marcellae AND Date = 756
Translate the following into a SQL query
What is the date of Gavril Radomir's Bulgarian Victory?
SELECT Date FROM table WHERE Result = bulgarian victory AND Bulgarian Commander = gavril radomir
Translate the following into a SQL query
What is 3 Season, when 1 Season is "2 959 699"?
SELECT 3 season FROM table WHERE 1 season = 2 959 699
Translate the following into a SQL query
What is 1 Season, when 4 Season is "2 101 043 (13 May 2009)"?
SELECT 1 season FROM table WHERE 4 season = 2 101 043 (13 may 2009)
Translate the following into a SQL query
What is 5 Season, when 2 Season is "3 168 673 (2 April 2008)"?
SELECT 5 season FROM table WHERE 2 season = 3 168 673 (2 april 2008)
Translate the following into a SQL query
What is 4 Season, when 2 Season is "3 168 673 (2 April 2008)"?
SELECT 4 season FROM table WHERE 2 season = 3 168 673 (2 april 2008)
Translate the following into a SQL query
What is 3 Season, when 4 Season is "2 628 383 (3 June 2009)"?
SELECT 3 season FROM table WHERE 4 season = 2 628 383 (3 june 2009)
Translate the following into a SQL query
What is 1st Season, when 4 Season is "3 273 440 (17 March 2009)"?
SELECT 1 season FROM table WHERE 4 season = 3 273 440 (17 march 2009)
Translate the following into a SQL query
What was the wind at New York City when the rank was smaller than 6?
SELECT Wind FROM table WHERE Rank < 6 AND Location = new york city
Translate the following into a SQL query
What was the highest rink for Kingston?
SELECT MAX Rank FROM table WHERE Location = kingston
Translate the following into a SQL query
What is the average first elected for the district South Carolina 2?
SELECT AVG First elected FROM table WHERE District = south carolina 2
Translate the following into a SQL query
Who was the first elected for the republican party?
SELECT First elected FROM table WHERE Party = republican
Translate the following into a SQL query
What party has the South Carolina 2 district?
SELECT Party FROM table WHERE District = south carolina 2
Translate the following into a SQL query
What is the type for Cassano?
SELECT Type FROM table WHERE Name = cassano
Translate the following into a SQL query
What nationality is Diogo?
SELECT Nat. FROM table WHERE Name = diogo
Translate the following into a SQL query
What is the name of the player with a winter transfer window moving from Roma?
SELECT Name FROM table WHERE Transfer window = winter AND Moving from = roma
Translate the following into a SQL query
What pressure is Ken?
SELECT Pressure FROM table WHERE Name = ken
Translate the following into a SQL query
In which round was Barbara Hawcroft the loser?
SELECT Round FROM table WHERE Loser = barbara hawcroft
Translate the following into a SQL query
In which year is Nerida Gregory listed as the loser?
SELECT AVG Year FROM table WHERE Loser = nerida gregory
Translate the following into a SQL query
In which year did Misaki Doi lose the Australian Open Grand Slam?
SELECT SUM Year FROM table WHERE Grand Slam = australian open AND Loser = misaki doi
Translate the following into a SQL query
Which Polish Cup has a Puchat Ligi larger than 0?
SELECT AVG Polish Cup FROM table WHERE Puchat Ligi > 0
Translate the following into a SQL query
Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2?
SELECT Player FROM table WHERE Total = 3 AND Ekstraklasa < 3 AND UEFA Cup = 2
Translate the following into a SQL query
Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama?
SELECT MIN Puchat Ligi FROM table WHERE UEFA Cup < 2 AND Player = takesure chinyama
Translate the following into a SQL query
How much Ekstraklasa has a Total smaller than 3?
SELECT SUM Ekstraklasa FROM table WHERE Total < 3
Translate the following into a SQL query
How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?
SELECT SUM Puchat Ligi FROM table WHERE Total < 5 AND Ekstraklasa > 1
Translate the following into a SQL query
Which player has a to par greater than 11, with a total less than 155?
SELECT Player FROM table WHERE To par > 11 AND Total < 155
Translate the following into a SQL query
What country has a to par less than 13, with wayne grady as the player?
SELECT Country FROM table WHERE To par < 13 AND Player = wayne grady
Translate the following into a SQL query
Which Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4?
SELECT MAX Points 1 FROM table WHERE Drawn = 5 AND Goal Difference = +58 AND Lost > 4
Translate the following into a SQL query
Which Lost has Goals Against larger than 92?
SELECT MAX Lost FROM table WHERE Goals Against > 92
Translate the following into a SQL query
Which Points 1 has a Team of atherton collieries, and a Position smaller than 8?
SELECT MAX Points 1 FROM table WHERE Team = atherton collieries AND Position < 8
Translate the following into a SQL query
How much Played has a Position of 7, and a Drawn smaller than 7?
SELECT SUM Played FROM table WHERE Position = 7 AND Drawn < 7
Translate the following into a SQL query
How much Drawn has Points 1 of 51, and a Lost larger than 5?
SELECT COUNT Drawn FROM table WHERE Points 1 = 51 AND Lost > 5
Translate the following into a SQL query
When was the aircraft introduced that could seat 115 people?
SELECT AVG Introduced FROM table WHERE Seating = 115
Translate the following into a SQL query
What year was the aircraft retired when it was replaced by 737-300s?
SELECT Retired FROM table WHERE Notes = replaced by 737-300s
Translate the following into a SQL query
What aircraft was introduced in 2004 and has a retired of —?
SELECT Aircraft FROM table WHERE Retired = — AND Introduced = 2004
Translate the following into a SQL query
Which aircraft has 148/9 seating?
SELECT Aircraft FROM table WHERE Seating = 148/9
Translate the following into a SQL query
How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?
SELECT Seating FROM table WHERE Notes = in service AND Introduced = 2008
Translate the following into a SQL query
What is the nationality of the player who was previously with the Detroit Pistons?
SELECT Nationality FROM table WHERE Previous team = detroit pistons