instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the first locomotive that has a SLM number lower than 924?
SELECT MIN Number FROM table WHERE SLM Number < 924
Translate the following into a SQL query
When the United Kingdom had a time of 1:30.51.2, what was the lowest that they ranked?
SELECT MIN Place FROM table WHERE Country = united kingdom AND Time = 1:30.51.2
Translate the following into a SQL query
What County scored with a speed of 98.09mph?
SELECT Country FROM table WHERE Speed = 98.09mph
Translate the following into a SQL query
What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?
SELECT Set 4 FROM table WHERE Date = jun 27 AND Set 3 = 17-25
Translate the following into a SQL query
What is Score, when Set 3 is 17-25?
SELECT Score FROM table WHERE Set 3 = 17-25
Translate the following into a SQL query
What is Set 5, when Date is Jun 26, and when Set 2 is 25-22?
SELECT Set 5 FROM table WHERE Date = jun 26 AND Set 2 = 25-22
Translate the following into a SQL query
What is Set 1, when Set 3 is 22-25?
SELECT Set 1 FROM table WHERE Set 3 = 22-25
Translate the following into a SQL query
What is Set 1, when Date is Jun 26, and when Set 4 is 26-24?
SELECT Set 1 FROM table WHERE Date = jun 26 AND Set 4 = 26-24
Translate the following into a SQL query
What is Set 4, when Set 5 is NA, and when Set 3 is 19-25?
SELECT Set 4 FROM table WHERE Set 5 = na AND Set 3 = 19-25
Translate the following into a SQL query
What is the Team when the match was in buenos aires , argentina?
SELECT Team FROM table WHERE Location = buenos aires , argentina
Translate the following into a SQL query
What is the Location when the team was seve ballesteros & manuel piñero?
SELECT Location FROM table WHERE Team = seve ballesteros & manuel piñero
Translate the following into a SQL query
What is the Location when the individual was josé maria cañizares?
SELECT Location FROM table WHERE Individual = josé maria cañizares
Translate the following into a SQL query
What is the highest Year when the team was seve ballesteros & manuel piñero?
SELECT MAX Year FROM table WHERE Team = seve ballesteros & manuel piñero
Translate the following into a SQL query
What is the total number of acres at Sai Tso Wan, opening before 1978?
SELECT COUNT Acres FROM table WHERE Landfill = sai tso wan AND Opened < 1978
Translate the following into a SQL query
Which Rank has a Goals smaller than 76, and a Matches larger than 270?
SELECT SUM Rank FROM table WHERE Goals < 76 AND Matches > 270
Translate the following into a SQL query
Which Matches have a Rank smaller than 5, a Years of 1995–2003, and a Goals smaller than 104?
SELECT AVG Matches FROM table WHERE Rank < 5 AND Years = 1995–2003 AND Goals < 104
Translate the following into a SQL query
Which Goals have a Name of lee dong-gook?
SELECT MAX Goals FROM table WHERE Name = lee dong-gook
Translate the following into a SQL query
Which Rank has a Years of 1998–present?
SELECT AVG Rank FROM table WHERE Years = 1998–present
Translate the following into a SQL query
Which Matches have a Rank of 2?
SELECT COUNT Matches FROM table WHERE Rank = 2
Translate the following into a SQL query
What Position was achieved in the World Championships Competition in Tokyo, Japan?
SELECT Position FROM table WHERE Competition = world championships AND Venue = tokyo, japan
Translate the following into a SQL query
Which Competition was 1st Position with 57.03 in Notes?
SELECT Competition FROM table WHERE Position = 1st AND Notes = 57.03
Translate the following into a SQL query
What is the earliest Year for 400m h Event with 54.86 in Notes?
SELECT MIN Year FROM table WHERE Event = 400m h AND Notes = 54.86
Translate the following into a SQL query
What is the total number of appearances for players from Chaux-de-Fonds with places over 8?
SELECT COUNT Appearances FROM table WHERE Team = chaux-de-fonds AND Place > 8
Translate the following into a SQL query
What is the highest week of the game on November 9, 1997?
SELECT MAX Week FROM table WHERE Date = november 9, 1997
Translate the following into a SQL query
Which Proto-Austronesian has a Proto-Oceanic of *lima?
SELECT Proto-Austronesian FROM table WHERE Proto-Oceanic = *lima
Translate the following into a SQL query
Which Proto-Oceanic has a Proto-Polynesian of *lima?
SELECT Proto-Oceanic FROM table WHERE Proto-Polynesian = *lima
Translate the following into a SQL query
Which Number has a Proto-Polynesian of *taha?
SELECT Number FROM table WHERE Proto-Polynesian = *taha
Translate the following into a SQL query
WHich Proto-Polynesian has a Number of five?
SELECT Proto-Polynesian FROM table WHERE Number = five
Translate the following into a SQL query
Which Proto-Polynesian has a Proto-Malayo-Polynesian of *telu?
SELECT Proto-Polynesian FROM table WHERE Proto-Malayo-Polynesian = *telu
Translate the following into a SQL query
Which Proto-Oceanic has a Proto-Polynesian of *lima?
SELECT Proto-Oceanic FROM table WHERE Proto-Polynesian = *lima
Translate the following into a SQL query
How many countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997?
SELECT COUNT 2009 FROM table WHERE 1999 < 1 AND 2006 > 0 AND 1997 < 0
Translate the following into a SQL query
How much is the highest number in 2006 with fewer than 0 in 2002?
SELECT MAX 2006 FROM table WHERE 2002 < 0
Translate the following into a SQL query
How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?
SELECT SUM 2003 FROM table WHERE 2001 = 0 AND 2009 > 0 AND 1999 < 0
Translate the following into a SQL query
Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?
SELECT Country FROM table WHERE 2012 > 0 AND 2009 > 0 AND 2008 = 0 AND 2004 > 0
Translate the following into a SQL query
Which % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3?
SELECT % GDP FROM table WHERE Expenditure > 50.9 AND Year > 2009 AND Income = 39.3
Translate the following into a SQL query
Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4?
SELECT SUM Year FROM table WHERE Expenditure < 41.3 AND % GDP = x AND Income > 34.4
Translate the following into a SQL query
Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)?
SELECT Surplus(Deficit) FROM table WHERE Expenditure > 45.8 AND Year < 2011 AND % GDP = (0.9%)
Translate the following into a SQL query
Which Year has an Expenditure of 55, and an Income smaller than 36.2?
SELECT MIN Year FROM table WHERE Expenditure = 55 AND Income < 36.2
Translate the following into a SQL query
Which % GDP has a Year smaller than 2011, and an Expenditure larger than 41.3, and an Income smaller than 48, and a Surplus(Deficit) of (24.6)?
SELECT % GDP FROM table WHERE Year < 2011 AND Expenditure > 41.3 AND Income < 48 AND Surplus(Deficit) = (24.6)
Translate the following into a SQL query
What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso?
SELECT Year FROM table WHERE Tournament Name = grand prix passing shot bordeaux AND Runners-up = diego nargiso
Translate the following into a SQL query
What tournament had a score of 5–7, 6–4, 6–4?
SELECT Tournament Name FROM table WHERE Score = 5–7, 6–4, 6–4
Translate the following into a SQL query
After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango?
SELECT Score FROM table WHERE Year > 1989 AND Tournament Name = grand prix passing shot AND Runners-up = jeff tarango
Translate the following into a SQL query
What's the name of the tournament that Gianni Ocleppo was the runner-up?
SELECT Tournament Name FROM table WHERE Runners-up = gianni ocleppo
Translate the following into a SQL query
What is the lowest percentage of wins for 6½ games and more than 77 total wins?
SELECT MIN Win% FROM table WHERE Games behind = 6½ AND Wins > 77
Translate the following into a SQL query
What is the score of the competition on November 10?
SELECT Score FROM table WHERE Date = november 10
Translate the following into a SQL query
Who is the visitor when the record is 2-1?
SELECT Visitor FROM table WHERE Record = 2-1
Translate the following into a SQL query
Who is the home team when the score is 81-80?
SELECT Home FROM table WHERE Score = 81-80
Translate the following into a SQL query
How many Gold medals did Japan receive who had a Total of more than 1 medals?
SELECT SUM Gold FROM table WHERE Nation = japan AND Total > 1
Translate the following into a SQL query
What time (cst) has and NFL recap of recap with october 19, 2008 as the date?
SELECT Time (CST) FROM table WHERE NFL Recap = recap AND Date = october 19, 2008
Translate the following into a SQL query
Which week has giants stadium as the game site?
SELECT Week FROM table WHERE Game site = giants stadium
Translate the following into a SQL query
What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?
SELECT MIN Week FROM table WHERE Time (CST) = 7:15 p.m. AND Game site = fedexfield
Translate the following into a SQL query
What office was law preservation ticket holder William E. Barron running for?
SELECT Office FROM table WHERE Law Preservation ticket = william e. barron
Translate the following into a SQL query
Who was the constitutional ticken when Charles B. Sears was the republican ticket?
SELECT Constitutional ticket FROM table WHERE Republican ticket = charles b. sears
Translate the following into a SQL query
Who was the constitutional ticket when william karlin was the socialist ticket?
SELECT Constitutional ticket FROM table WHERE Socialist ticket = william karlin
Translate the following into a SQL query
What was the margin of victory on Mar 18, 1979?
SELECT Margin of victory FROM table WHERE Date = mar 18, 1979
Translate the following into a SQL query
What is the comp for the year 1989?
SELECT Comp FROM table WHERE Year = 1989
Translate the following into a SQL query
What is the team in 1989?
SELECT Team FROM table WHERE Year = 1989
Translate the following into a SQL query
What is the RAtt in the year 1988?
SELECT RAtt FROM table WHERE Year = 1988
Translate the following into a SQL query
What was the team with a Ratt of 42?
SELECT Team FROM table WHERE RAtt = 42
Translate the following into a SQL query
What was the team with a ratt of 57?
SELECT Team FROM table WHERE RAtt = 57
Translate the following into a SQL query
Who did the Giants play before week 7 in Tulane Stadium?
SELECT Opponent FROM table WHERE Week < 7 AND Game site = tulane stadium
Translate the following into a SQL query
What was the lowest attendance for week 1?
SELECT MIN Attendance FROM table WHERE Week = 1
Translate the following into a SQL query
What is the highest rank of a player from Ethiopia?
SELECT MAX Rank FROM table WHERE Country = ethiopia
Translate the following into a SQL query
How many ranks had 367 matches and more than 216 goals?
SELECT SUM Rank FROM table WHERE Matches = 367 AND Goals > 216
Translate the following into a SQL query
What is the mean rank number when goals are 230 and there are more than 535?
SELECT AVG Rank FROM table WHERE Goals = 230 AND Matches > 535
Translate the following into a SQL query
Where the audience share is 8%, what is the original airing?
SELECT Original airing FROM table WHERE Audience share (average) = 8%
Translate the following into a SQL query
For episode number 2 what is the season viewer average?
SELECT Season viewer average FROM table WHERE Episode number = 2
Translate the following into a SQL query
What episode number has an audience share of 10%?
SELECT COUNT Episode number FROM table WHERE Audience share (average) = 10%
Translate the following into a SQL query
What is the value for the item "Class" when the value of the item "Wheels" is 137?
SELECT Class FROM table WHERE Wheels = 137
Translate the following into a SQL query
What's the smallest number of games for the fenerbahçe team?
SELECT MIN Games FROM table WHERE Team = fenerbahçe
Translate the following into a SQL query
What's the mean game number for the olympiacos team when there's less than 17 rebounds?
SELECT AVG Games FROM table WHERE Team = olympiacos AND Rebounds < 17
Translate the following into a SQL query
How many games does novica veličković have when there's more than 24 rebounds?
SELECT COUNT Games FROM table WHERE Name = novica veličković AND Rebounds > 24
Translate the following into a SQL query
What is the League with a Year that is 1990/91?
SELECT League FROM table WHERE Year = 1990/91
Translate the following into a SQL query
What is the ICAO for simferopol international airport?
SELECT ICAO FROM table WHERE Airport = simferopol international airport
Translate the following into a SQL query
Which country has an IATA of gzt?
SELECT Country FROM table WHERE IATA = gzt
Translate the following into a SQL query
What country is Yerevan located in?
SELECT Country FROM table WHERE City = yerevan
Translate the following into a SQL query
What is the ICAO when the IATA is ika?
SELECT ICAO FROM table WHERE IATA = ika
Translate the following into a SQL query
What is the ICAO when the IATA is ist?
SELECT ICAO FROM table WHERE IATA = ist
Translate the following into a SQL query
Which team has 10 losses?
SELECT Team FROM table WHERE Lost = 10
Translate the following into a SQL query
In which yearly change was there a capacity of 78.4% and a rank smaller than 3?
SELECT Annual change FROM table WHERE Rank < 3 AND Capacity in use = 78.4%
Translate the following into a SQL query
In Which rank was there a location of porto alegre?
SELECT Rank FROM table WHERE Location = porto alegre
Translate the following into a SQL query
what is the number of passengers when the capacity is 81.2%?
SELECT SUM Total Passengers FROM table WHERE Capacity in use = 81.2%
Translate the following into a SQL query
what is the highest amount of passengers when there is a rank of 1?
SELECT MAX Total Passengers FROM table WHERE Rank = 1
Translate the following into a SQL query
Which highest rank had an annual change of 10.3% and a capacity of people smaller than 1,368,968?
SELECT MAX Rank FROM table WHERE Annual change = 10.3% AND Total Passengers < 1,368,968
Translate the following into a SQL query
What was the latest Week on which the Result was l 17–0?
SELECT MAX Week FROM table WHERE Result = l 17–0
Translate the following into a SQL query
What is the average cuts made at the top 25, less than 10, and at the Top 10 more than 3?
SELECT AVG Cuts made FROM table WHERE Top-25 < 10 AND Top-10 > 3
Translate the following into a SQL query
What is average Top 10 with 0 wins?
SELECT AVG Top-10 FROM table WHERE Wins < 0
Translate the following into a SQL query
What is the average event for the Open Championship Tournament, and a Top-5 less than 1?
SELECT AVG Events FROM table WHERE Tournament = the open championship AND Top-5 < 1
Translate the following into a SQL query
What is the average wins has Top-25 less than 0?
SELECT AVG Wins FROM table WHERE Top-25 < 0
Translate the following into a SQL query
What is the largest Against with a Byes larger than 0?
SELECT MAX Against FROM table WHERE Byes > 0
Translate the following into a SQL query
Which Wins has an Against of 1940, and a Byes larger than 0?
SELECT MAX Wins FROM table WHERE Against = 1940 AND Byes > 0
Translate the following into a SQL query
Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0?
SELECT AVG Draws FROM table WHERE Wins = 10 AND Peel = south mandurah AND Byes > 0
Translate the following into a SQL query
Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?
SELECT MAX Against FROM table WHERE Draws > 0 AND Losses < 16 AND Wins < 4
Translate the following into a SQL query
Which Losses has an Against of 1101, and a Byes smaller than 0?
SELECT COUNT Losses FROM table WHERE Against = 1101 AND Byes < 0
Translate the following into a SQL query
Which Byes has a Losses smaller than 1?
SELECT MAX Byes FROM table WHERE Losses < 1
Translate the following into a SQL query
What is the average number of games of the player with a rank less than 1?
SELECT AVG Games FROM table WHERE Rank < 1
Translate the following into a SQL query
What is the highest rank of the player with less than 32 points?
SELECT MAX Rank FROM table WHERE Points < 32
Translate the following into a SQL query
What is the rank of the player with less than 34 points?
SELECT SUM Rank FROM table WHERE Points < 34
Translate the following into a SQL query
Who's Fourth District has a Second District of bob springstead?
SELECT Fourth District FROM table WHERE Second District = bob springstead
Translate the following into a SQL query
Who's the First District with a Fifth District of prudy adam?
SELECT First District FROM table WHERE Fifth District = prudy adam