instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Tell me the elevation for oslo
SELECT Elevation FROM table WHERE County = oslo
Translate the following into a SQL query
What was the result of the match against Pat Lawlor?
SELECT Result FROM table WHERE Opponent = pat lawlor
Translate the following into a SQL query
Tell me the sum of cars per set for operator of london midland
SELECT SUM Cars per Set FROM table WHERE Operator = london midland
Translate the following into a SQL query
Tell me the title of japan january 31, 2008
SELECT Title FROM table WHERE Japan = january 31, 2008
Translate the following into a SQL query
Tell me japan for jigsaw land: japan graffiti
SELECT Japan FROM table WHERE Title = jigsaw land: japan graffiti
Translate the following into a SQL query
Tell me north america for january 23, 2013
SELECT North America FROM table WHERE Japan = january 23, 2013
Translate the following into a SQL query
Tell me the north america for september 18, 2009
SELECT North America FROM table WHERE Europe = september 18, 2009
Translate the following into a SQL query
Tell me europe for japan of january 28, 2010
SELECT Europe FROM table WHERE Japan = january 28, 2010
Translate the following into a SQL query
Tell me the north america for phantom brave
SELECT North America FROM table WHERE Title = phantom brave
Translate the following into a SQL query
What is the average played value in Belgrade with attendance greater than 26,222?
SELECT AVG Played FROM table WHERE City = belgrade AND Average attendance > 26,222
Translate the following into a SQL query
Tell me the role of festival theatre
SELECT Role FROM table WHERE Theatre = festival theatre
Translate the following into a SQL query
Tell me the lowest year for shubert theatre
SELECT MIN Year FROM table WHERE Theatre = shubert theatre
Translate the following into a SQL query
Tell me the total number of years for lady cecily waynflete and opera house, kennedy center
SELECT COUNT Year FROM table WHERE Role = lady cecily waynflete AND Theatre = opera house, kennedy center
Translate the following into a SQL query
Tell me the role for tea and sympathy
SELECT Role FROM table WHERE Play = tea and sympathy
Translate the following into a SQL query
When was the first beatification in Korea that was canonised before 1984?
SELECT MIN Beatified FROM table WHERE Place = korea AND Canonised < 1984
Translate the following into a SQL query
When was Laurent-Marie-Joseph Imbert / St. Imbert, who was beatified after 1909 and canonised after 1984, martyred?
SELECT MAX Martyred FROM table WHERE Beatified > 1909 AND Name = laurent-marie-joseph imbert / st. imbert AND Canonised > 1984
Translate the following into a SQL query
When was the person(s) who were canonised before 1988 beatified?
SELECT Beatified FROM table WHERE Canonised < 1988
Translate the following into a SQL query
When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred?
SELECT MAX Martyred FROM table WHERE Beatified = 1909 AND Name = john hoan trinh doan / st. john hoan AND Canonised > 1988
Translate the following into a SQL query
What is the sum of year with the local host Sai?
SELECT SUM Year FROM table WHERE Local Host(s) = sai
Translate the following into a SQL query
Who are the local hosts for the United States in years earlier than 2007?
SELECT Local Host(s) FROM table WHERE Country = united states AND Year < 2007
Translate the following into a SQL query
Which city has a conference of LCC2 and a year earlier than 2009?
SELECT City FROM table WHERE Year < 2009 AND Conference = lcc2
Translate the following into a SQL query
Tell me the class with rank of 89th
SELECT Class FROM table WHERE Rank = 89th
Translate the following into a SQL query
Tell me the most year for 3 points
SELECT MAX Year FROM table WHERE Points = 3
Translate the following into a SQL query
Which lane is Goksu Bicer in?
SELECT Lane FROM table WHERE Swimmer = goksu bicer
Translate the following into a SQL query
Which Driver that has a Grid less than 9 and a Time/Retired of 2:06:26.358?
SELECT Driver FROM table WHERE Grid < 9 AND Time/Retired = 2:06:26.358
Translate the following into a SQL query
Which driver drove a Ferrari in the 2007 European Grand Prix with a grid less than 3?
SELECT Driver FROM table WHERE Constructor = ferrari AND Grid < 3
Translate the following into a SQL query
Name the location of ufc 98
SELECT Location FROM table WHERE Event = ufc 98
Translate the following into a SQL query
What is the smallest number of wins for the Totals Tournament with a Top-25 value greater than 3?
SELECT MIN Wins FROM table WHERE Tournament = totals AND Top-25 > 3
Translate the following into a SQL query
What is the sum of Top-5 values with events values less than 2?
SELECT SUM Top-5 FROM table WHERE Events < 2
Translate the following into a SQL query
What is the smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1?
SELECT MIN Wins FROM table WHERE Cuts made > 4 AND Top-5 < 1
Translate the following into a SQL query
Tell me the competition for 2nd position with year more than 2005
SELECT Competition FROM table WHERE Position = 2nd AND Year > 2005
Translate the following into a SQL query
Name the sum of year for 2nd position for junior race
SELECT SUM Year FROM table WHERE Position = 2nd AND Event = junior race
Translate the following into a SQL query
Name the venue for 2nd position of year before 2008
SELECT Venue FROM table WHERE Year < 2008 AND Position = 2nd
Translate the following into a SQL query
Which circuit did Raymond Mays win?
SELECT Circuit FROM table WHERE Winning driver = raymond mays
Translate the following into a SQL query
Which Circuit did Johnny Wakefield win?
SELECT Circuit FROM table WHERE Winning driver = johnny wakefield
Translate the following into a SQL query
Tell me the lowest bronze for panama and total larger than 8
SELECT MIN Bronze FROM table WHERE Nation = panama AND Total > 8
Translate the following into a SQL query
Tell me the average total for guatemala and bronze less than 2
SELECT AVG Total FROM table WHERE Nation = guatemala AND Bronze < 2
Translate the following into a SQL query
Tell me the number of bronze for silver of 0 and total less than 1
SELECT COUNT Bronze FROM table WHERE Silver = 0 AND Total < 1
Translate the following into a SQL query
Tell me the sum of total for rank of 1
SELECT SUM Total FROM table WHERE Rank = 1
Translate the following into a SQL query
Tell me the total number for costa rica and rank more than 8
SELECT COUNT Total FROM table WHERE Nation = costa rica AND Rank > 8
Translate the following into a SQL query
What years did Tymerlan Huseynov, whose average is larger than 0.361, play?
SELECT Career FROM table WHERE Average > 0.361 AND Player = tymerlan huseynov
Translate the following into a SQL query
Who scored more than 8 goals, had more than 75 caps, and averaged 0.432?
SELECT Player FROM table WHERE Goals > 8 AND Caps > 75 AND Average = 0.432
Translate the following into a SQL query
What is the sum of the averages when there are 68 caps and less than 9 goals?
SELECT SUM Average FROM table WHERE Caps = 68 AND Goals < 9
Translate the following into a SQL query
Tell me the 1968 for 1r
SELECT 1968 FROM table WHERE 1967 = 1r
Translate the following into a SQL query
Tell me the round of 32 for conference of southland
SELECT Round of 32 FROM table WHERE Conference = southland
Translate the following into a SQL query
Tell me the lowest # of bids for win percent of .667
SELECT MIN # of Bids FROM table WHERE Win % = .667
Translate the following into a SQL query
Tell me the sum of cap/hor for double chair and vertical less than 479
SELECT SUM Cap./Hour FROM table WHERE Type = double chair AND Vertical < 479
Translate the following into a SQL query
What's the compression ratio when the vin code is c?
SELECT Compression Ratio FROM table WHERE VIN Code = c
Translate the following into a SQL query
Tell me the sum of year for extra of junior team competition
SELECT SUM Year FROM table WHERE Extra = junior team competition
Translate the following into a SQL query
Tell me the lens zoom for aperture of model s2600
SELECT Lens(35mmequiv.) zoom, aperture FROM table WHERE Model = s2600
Translate the following into a SQL query
Tell me the screen size for pixels of model s6400
SELECT Screen size,pixels FROM table WHERE Model = s6400
Translate the following into a SQL query
Name the sensor res for model of s9200
SELECT Sensor res., size FROM table WHERE Model = s9200
Translate the following into a SQL query
Tell me the nation for bronze more than 0 and total more than 8 with gold of 4
SELECT Nation FROM table WHERE Bronze > 0 AND Total > 8 AND Gold = 4
Translate the following into a SQL query
Who is Team Suzuki's rider and ranks higher than 6?
SELECT Rider FROM table WHERE Rank > 6 AND Team = suzuki
Translate the following into a SQL query
Who was the lowest division in the 7th season?
SELECT MIN Division FROM table WHERE Reg. Season = 7th
Translate the following into a SQL query
In 1924/25, who was in the playoffs?
SELECT Playoffs FROM table WHERE Year = 1924/25
Translate the following into a SQL query
Which division has no playoff but has a 12th game in their season?
SELECT MAX Division FROM table WHERE Playoffs = no playoff AND Reg. Season = 12th
Translate the following into a SQL query
What was the venue of the competition that held the 1st position in 2011?
SELECT Venue FROM table WHERE Position = 1st AND Year = 2011
Translate the following into a SQL query
What was the position of the Olympic Games in the year 2008?
SELECT Position FROM table WHERE Competition = olympic games AND Year = 2008
Translate the following into a SQL query
Which competition held the 1st position in 2009?
SELECT Competition FROM table WHERE Position = 1st AND Year = 2009
Translate the following into a SQL query
Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?
SELECT Venue FROM table WHERE Year > 2006 AND Notes = 3000 m s'chase AND Position = 2nd AND Competition = african championships
Translate the following into a SQL query
Tell me the label for US region and catalog of 10008-2
SELECT Label FROM table WHERE Region = us AND Catalog = 10008-2
Translate the following into a SQL query
Tell me the date for format of cd/dvd
SELECT Date FROM table WHERE Format = cd/dvd
Translate the following into a SQL query
Tell me the format for european union
SELECT Format FROM table WHERE Region = european union
Translate the following into a SQL query
Tell me the catalog for date larger than 2004
SELECT Catalog FROM table WHERE Date > 2004
Translate the following into a SQL query
I want the lowest date for catalog of 6561910008-1
SELECT MIN Date FROM table WHERE Catalog = 6561910008-1
Translate the following into a SQL query
What date was there a crowd larger than 30,343?
SELECT Date FROM table WHERE Crowd > 30,343
Translate the following into a SQL query
Which venue was played in when the Away team scored 11.5 (71)?
SELECT Venue FROM table WHERE Away team score = 11.5 (71)
Translate the following into a SQL query
What was the lowest Crowd total from a game in which Essendon was the Away team?
SELECT MIN Crowd FROM table WHERE Away team = essendon
Translate the following into a SQL query
Which Venue was played in when the Away team scored 13.13 (91)?
SELECT Venue FROM table WHERE Away team score = 13.13 (91)
Translate the following into a SQL query
Which Venue was used when the Home team was geelong?
SELECT Venue FROM table WHERE Home team = geelong
Translate the following into a SQL query
What is the highest scored in the 2010 east asian football championship?
SELECT MAX Scored FROM table WHERE Competition = 2010 east asian football championship
Translate the following into a SQL query
Which country is Wellington located in?
SELECT Country FROM table WHERE City = wellington
Translate the following into a SQL query
What label is in download format in the United States?
SELECT Label FROM table WHERE Region = united states AND Format = download
Translate the following into a SQL query
What label is in download format in the United States?
SELECT Label FROM table WHERE Region = united states AND Format = download
Translate the following into a SQL query
What label has RTRADLP 346 as catalogue?
SELECT Label FROM table WHERE Catalogue = rtradlp 346
Translate the following into a SQL query
What label has 22 January 2008 date?
SELECT Label FROM table WHERE Date = 22 january 2008
Translate the following into a SQL query
What is the label for catalogue of RT-346-5?
SELECT Label FROM table WHERE Catalogue = rt-346-5
Translate the following into a SQL query
What position is mentioned for Rice school?
SELECT Position FROM table WHERE School/Club Team = rice
Translate the following into a SQL query
What is the average round for Wisconsin when the overall is larger than 238 and there is a defensive end?
SELECT AVG Round FROM table WHERE Overall > 238 AND Position = defensive end AND School/Club Team = wisconsin
Translate the following into a SQL query
What is the average round when there is a defensive back and an overall smaller than 199?
SELECT AVG Round FROM table WHERE Position = defensive back AND Overall < 199
Translate the following into a SQL query
What was the date of game with a score of 42-6?
SELECT Date FROM table WHERE Score = 42-6
Translate the following into a SQL query
What stadium was the game played at when the result was hunter mariners def. sheffield eagles?
SELECT Stadium FROM table WHERE Result = hunter mariners def. sheffield eagles
Translate the following into a SQL query
What city has a Result of brisbane broncos def. halifax blue sox?
SELECT City FROM table WHERE Result = brisbane broncos def. halifax blue sox
Translate the following into a SQL query
Which player was drafted after round 9 and number 464 overall?
SELECT Player FROM table WHERE Round > 9 AND Overall = 464
Translate the following into a SQL query
What was James Reed's draft round number?
SELECT COUNT Round FROM table WHERE Player = james reed
Translate the following into a SQL query
What was the overall draft number of Tom Fleming, a wide receiver?
SELECT COUNT Overall FROM table WHERE Position = wide receiver AND Player = tom fleming
Translate the following into a SQL query
Which player is from Dartmouth?
SELECT Player FROM table WHERE School/Club Team = dartmouth
Translate the following into a SQL query
What position does the player from tulsa play?
SELECT Position FROM table WHERE School/Country = tulsa
Translate the following into a SQL query
What is the sum of Magnitude on february 12, 1953?
SELECT SUM Magnitude FROM table WHERE Date = february 12, 1953
Translate the following into a SQL query
What was the final score of a baseball game that happened before 2005?
SELECT Final score FROM table WHERE Sport = baseball AND Year < 2005
Translate the following into a SQL query
What venue did Richmond play as the away team?
SELECT Venue FROM table WHERE Away team = richmond
Translate the following into a SQL query
What is the team of Essendon's score in the game where they were the home team?
SELECT Home team score FROM table WHERE Home team = essendon
Translate the following into a SQL query
Who is the away side when st kilda is the home side?
SELECT Away team FROM table WHERE Home team = st kilda
Translate the following into a SQL query
What is the away side score when footscray is the home side?
SELECT Away team score FROM table WHERE Home team = footscray
Translate the following into a SQL query
What is the home team's score at kardinia park?
SELECT Home team score FROM table WHERE Venue = kardinia park
Translate the following into a SQL query
What was the lowest crowd seen at a game that Richmond was the Away team in?
SELECT MIN Crowd FROM table WHERE Away team = richmond
Translate the following into a SQL query
What was the highest crowd count seen in the Windy Hill venue?
SELECT MAX Crowd FROM table WHERE Venue = windy hill
Translate the following into a SQL query
On what date did Brunswick Street Oval see more than 19,500 people?
SELECT Date FROM table WHERE Crowd > 19,500 AND Venue = brunswick street oval
Translate the following into a SQL query
What was the score of the Away team that played against the Home team of Fitzroy?
SELECT Away team score FROM table WHERE Home team = fitzroy