instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who had the decision when the visitor was Detroit and the home team was Ottawa?
SELECT Decision FROM table WHERE Visitor = detroit AND Home = ottawa
Translate the following into a SQL query
What is the score on March 18?
SELECT Score FROM table WHERE Date = march 18
Translate the following into a SQL query
Who had the highest points on March 27?
SELECT High points FROM table WHERE Date = march 27
Translate the following into a SQL query
Name the average Lead Margin on november 13-november 19, 2007?
SELECT AVG Lead Margin FROM table WHERE Dates administered = november 13-november 19, 2007
Translate the following into a SQL query
Which Poll Source has a Republican Jim Risch of 43%?
SELECT Poll Source FROM table WHERE Republican: Jim Risch = 43%
Translate the following into a SQL query
For week 15, what was the total number of attendance recorded?
SELECT COUNT Attendance FROM table WHERE Week = 15
Translate the following into a SQL query
what is the score when the home team is king's lynn?
SELECT Score FROM table WHERE Home team = king's lynn
Translate the following into a SQL query
what is the home team when the away team is frickley colliery?
SELECT Home team FROM table WHERE Away team = frickley colliery
Translate the following into a SQL query
what is the tie no, on 24 november 1971 and the away team is king's lynn?
SELECT Tie no FROM table WHERE Date = 24 november 1971 AND Away team = king's lynn
Translate the following into a SQL query
What is the Longitude of the 61.0s Latitude?
SELECT Longitude FROM table WHERE Latitude = 61.0s
Translate the following into a SQL query
What name has a longitude of 213.0e?
SELECT Name FROM table WHERE Longitude = 213.0e
Translate the following into a SQL query
Which type had an unknown manufacturer?
SELECT Type FROM table WHERE Manufacturer = unknown
Translate the following into a SQL query
What is the name of the dreamworks experience from Ferrari?
SELECT Name FROM table WHERE Themed area = dreamworks experience AND Manufacturer = ferrari
Translate the following into a SQL query
Which type opened in 1982?
SELECT Type FROM table WHERE Opened = 1982
Translate the following into a SQL query
What themed area opened in 2010 as an animal show?
SELECT Themed area FROM table WHERE Type = animal show AND Opened = 2010
Translate the following into a SQL query
Which visitor lives in Minnesota?
SELECT Visitor FROM table WHERE Home = minnesota
Translate the following into a SQL query
What was the score on november 21?
SELECT Score FROM table WHERE Date = november 21
Translate the following into a SQL query
Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?
SELECT Lead FROM table WHERE Second = cathrine norberg AND Third = anna rindeskog
Translate the following into a SQL query
What is the score of game 21?
SELECT Score FROM table WHERE Game = 21
Translate the following into a SQL query
What is the score of the game on December 22?
SELECT Score FROM table WHERE Date = december 22
Translate the following into a SQL query
What is the record when the game is greater than 24?
SELECT Record FROM table WHERE Game > 24
Translate the following into a SQL query
What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?
SELECT MAX Market Value (billion $) FROM table WHERE Rank = 02 2 AND Sales (billion $) > 113.1
Translate the following into a SQL query
What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?
SELECT Rank FROM table WHERE Headquarters = united kingdom AND Sales (billion $) = 370.9
Translate the following into a SQL query
What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?
SELECT MIN Profits (billion $) FROM table WHERE Market Value (billion $) < 201.3 AND Headquarters = united states AND Company = jpmorgan chase
Translate the following into a SQL query
What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008?
SELECT Status FROM table WHERE Area km 2 > 5.2 AND Census Ranking = 2,531 of 5,008
Translate the following into a SQL query
What is saint-andré's population?
SELECT Population FROM table WHERE Official Name = saint-andré
Translate the following into a SQL query
what's the results of week 12?
SELECT Result FROM table WHERE Week = 12
Translate the following into a SQL query
What opponent has 76,202 attendance ?
SELECT Opponent FROM table WHERE Attendance = 76,202
Translate the following into a SQL query
What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?
SELECT FIS Nordic World Ski Championships FROM table WHERE Winter Olympics = 1968
Translate the following into a SQL query
Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?
SELECT Country FROM table WHERE FIS Nordic World Ski Championships < 1989 AND Winter Olympics < 1980 AND Holmenkollen = 1956
Translate the following into a SQL query
When the Grids is less than 2 what are the total laps?
SELECT COUNT Laps FROM table WHERE Grid < 2
Translate the following into a SQL query
Which Player has a To par of –1?
SELECT Player FROM table WHERE To par = –1
Translate the following into a SQL query
Which Player has a To par of –4?
SELECT Player FROM table WHERE To par = –4
Translate the following into a SQL query
Which Place has a Score larger than 68, and a Player of david ogrin?
SELECT Place FROM table WHERE Score > 68 AND Player = david ogrin
Translate the following into a SQL query
Which Player has a Place of t2?
SELECT Player FROM table WHERE Place = t2
Translate the following into a SQL query
What event did Mikhail Avetisyan win by method of DQ (eye gouging)?
SELECT Event FROM table WHERE Method = dq (eye gouging)
Translate the following into a SQL query
For the item that has a Gecko of 'font', what is the KHTML value?
SELECT KHTML FROM table WHERE Gecko = font
Translate the following into a SQL query
What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?
SELECT Prince XML FROM table WHERE Gecko = no AND WebKit = nightly build
Translate the following into a SQL query
What is the Gecko value for the item that has a Trident value of 'font'?
SELECT Gecko FROM table WHERE Trident = font
Translate the following into a SQL query
What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?
SELECT Gecko FROM table WHERE Prince XML = yes AND KHTML = yes
Translate the following into a SQL query
Which Trident version has a Gecko value of 19.0?
SELECT Trident FROM table WHERE Gecko = 19.0
Translate the following into a SQL query
For the item with a Prince XML value of 'font', what is the WebKit value?
SELECT WebKit FROM table WHERE Prince XML = font
Translate the following into a SQL query
Which Played has a Team of cerro corá, and Losses larger than 4?
SELECT AVG Played FROM table WHERE Team = cerro corá AND Losses > 4
Translate the following into a SQL query
Which Losses has Scored of 9, and Points larger than 8?
SELECT AVG Losses FROM table WHERE Scored = 9 AND Points > 8
Translate the following into a SQL query
On Race 14 when the FLap is larger than 1, what is the podium number?
SELECT COUNT Podium FROM table WHERE Race = 14 AND FLap > 1
Translate the following into a SQL query
When the Flap is less than 15 and the podium is larger than 11, what is the pole?
SELECT Pole FROM table WHERE FLap < 15 AND Podium > 11
Translate the following into a SQL query
When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap?
SELECT FLap FROM table WHERE Pole > 0 AND Podium < 44 AND Race < 16
Translate the following into a SQL query
What is the average Week, when Opponent is Minnesota Vikings?
SELECT AVG Week FROM table WHERE Opponent = minnesota vikings
Translate the following into a SQL query
What is Opponent, when Attendance is 58,836?
SELECT Opponent FROM table WHERE Attendance = 58,836
Translate the following into a SQL query
Which engine of Rob Walker Racing Team has 47 points and F tyres?
SELECT Engine FROM table WHERE Points = 47 AND Tyres = f AND Entrant = rob walker racing team
Translate the following into a SQL query
Which entrant has 49 points and a Mclaren M7A chassis?
SELECT Entrant FROM table WHERE Points = 49 AND Chassis = mclaren m7a
Translate the following into a SQL query
How many points did Bob Gerard Racing have in 1965?
SELECT Points FROM table WHERE Entrant = bob gerard racing AND Year = 1965
Translate the following into a SQL query
Which entrant had a Brabham BT10 chassis before 1965?
SELECT Entrant FROM table WHERE Year < 1965 AND Chassis = brabham bt10
Translate the following into a SQL query
What is the Attendance on September 28, 1997?
SELECT Attendance FROM table WHERE Date = september 28, 1997
Translate the following into a SQL query
What was the Opponent on August 31, 1997?
SELECT Opponent FROM table WHERE Date = august 31, 1997
Translate the following into a SQL query
What was the Attendance on Week 10?
SELECT Attendance FROM table WHERE Week = 10
Translate the following into a SQL query
How many Points have a Home of pittsburgh, and a Score of 1–7?
SELECT SUM Points FROM table WHERE Home = pittsburgh AND Score = 1–7
Translate the following into a SQL query
Which Visitor has an Attendance larger than 10,959, and Points larger than 24?
SELECT Visitor FROM table WHERE Attendance > 10,959 AND Points > 24
Translate the following into a SQL query
Which Date has a Record of 7–7–1?
SELECT Date FROM table WHERE Record = 7–7–1
Translate the following into a SQL query
Which Date has a Record of 11–10–2?
SELECT Date FROM table WHERE Record = 11–10–2
Translate the following into a SQL query
Which position had 3 podiums and F/laps of 4?
SELECT Position FROM table WHERE Podiums = 3 AND F/Laps = 4
Translate the following into a SQL query
What is the number of races associated with Team ASM and 0 poles?
SELECT Races FROM table WHERE Poles = 0 AND Team = asm
Translate the following into a SQL query
Which team had 1 race, 1 F/lap and in the series 24 hours of Nurburgring?
SELECT Team FROM table WHERE Races = 1 AND F/Laps = 1 AND Series = 24 hours of nurburgring
Translate the following into a SQL query
What is the number of podiums associated with 4 wins?
SELECT Podiums FROM table WHERE Wins = 4
Translate the following into a SQL query
What is the number of races associated with 7 podiums and a position of 4th?
SELECT Races FROM table WHERE Position = 4th AND Podiums = 7
Translate the following into a SQL query
What is the F/Laps value associated with a position of 3rd?
SELECT F/Laps FROM table WHERE Position = 3rd
Translate the following into a SQL query
Can you tell me the Opponent that has the Time of 0:20?
SELECT Opponent FROM table WHERE Time = 0:20
Translate the following into a SQL query
Can you tell me the Time that has the Opponent of phil baroni?
SELECT Time FROM table WHERE Opponent = phil baroni
Translate the following into a SQL query
Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)?
SELECT MIN Round FROM table WHERE Location = indiana, united states AND Method = submission (guillotine choke)
Translate the following into a SQL query
When was la vista built?
SELECT Built FROM table WHERE Location = la vista
Translate the following into a SQL query
When was the sargent bridge built?
SELECT Built FROM table WHERE Name = sargent bridge
Translate the following into a SQL query
What's the location for the country of platte?
SELECT Location FROM table WHERE County = platte
Translate the following into a SQL query
what is the listing date for nuckolls county?
SELECT Listed FROM table WHERE County = nuckolls
Translate the following into a SQL query
what's the listing date for the verdigris creek bridge in royal of antelope county?
SELECT Listed FROM table WHERE County = antelope AND Location = royal AND Name = verdigris creek bridge
Translate the following into a SQL query
what's the county name for the republican river bridge listed on 1992-06-29?
SELECT County FROM table WHERE Listed = 1992-06-29 AND Name = republican river bridge
Translate the following into a SQL query
what is the country when the money ($) is more than 3,600 and player is tom watson?
SELECT Country FROM table WHERE Money ( $ ) > 3,600 AND Player = tom watson
Translate the following into a SQL query
what is the to par when the place is t10 and the score is 72-74-71-69=286?
SELECT To par FROM table WHERE Place = t10 AND Score = 72-74-71-69=286
Translate the following into a SQL query
what is the to par when the player is hale irwin?
SELECT To par FROM table WHERE Player = hale irwin
Translate the following into a SQL query
what is the to par for Dave hill?
SELECT To par FROM table WHERE Player = dave hill
Translate the following into a SQL query
what is the place when the score is 68-67-73-68=276?
SELECT Place FROM table WHERE Score = 68-67-73-68=276
Translate the following into a SQL query
Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?
SELECT Date FROM table WHERE Week < 13 AND Opponent = green bay packers
Translate the following into a SQL query
Can you tell me the average Attendance that has the Opponent of new orleans saints, and the Week larger than 12?
SELECT AVG Attendance FROM table WHERE Opponent = new orleans saints AND Week > 12
Translate the following into a SQL query
Can you tell me the Attendance that has the Opponent of new york giants?
SELECT Attendance FROM table WHERE Opponent = new york giants
Translate the following into a SQL query
What is the density (hab/km²) with a population censo 2007(hab) of 336.293*?
SELECT Density (hab/ km² ) FROM table WHERE Population censo 2007(hab) = 336.293*
Translate the following into a SQL query
What is the under 1 year-old Censo 2007(hab) population with a population censo 2007(hab) of 112.054*?
SELECT Population under 1 year-old Censo 2007(hab) FROM table WHERE Population censo 2007(hab) = 112.054*
Translate the following into a SQL query
What is the density (hab/km²) with a population under 1 year-old censo 2007(hab) of * data from the census taken by the Inei?
SELECT Density (hab/ km² ) FROM table WHERE Population under 1 year-old Censo 2007(hab) = * data from the census taken by the inei
Translate the following into a SQL query
What is the elevation msnm for a population censo 2007(hab) of 77.392*?
SELECT Elevation msnm FROM table WHERE Population censo 2007(hab) = 77.392*
Translate the following into a SQL query
What's the report about townsville crocodiles as an away team?
SELECT Report FROM table WHERE Away team = townsville crocodiles
Translate the following into a SQL query
What's the record of game 67?
SELECT Record FROM table WHERE Game = 67
Translate the following into a SQL query
What's the score of the game against the Boston Bruins and after game 68?
SELECT Score FROM table WHERE Game > 68 AND Opponent = boston bruins
Translate the following into a SQL query
what is the natural change (per 1000) when the crude death rate (per 1000) is 10?
SELECT Natural change (per 1000) FROM table WHERE Crude death rate (per 1000) = 10
Translate the following into a SQL query
what is the crude birth rate (per 1000) when the live births 1 is 356 013?
SELECT SUM Crude birth rate (per 1000) FROM table WHERE Live births 1 = 356 013
Translate the following into a SQL query
what is the natural change (per 1000) when the live births 1 is 278 977?
SELECT Natural change (per 1000) FROM table WHERE Live births 1 = 278 977
Translate the following into a SQL query
Which Player has a To par of e, and a Country of united states?
SELECT Player FROM table WHERE To par = e AND Country = united states
Translate the following into a SQL query
Which Place has a Score smaller than 72, and a To par of −1, and a Country of spain?
SELECT Place FROM table WHERE Score < 72 AND To par = −1 AND Country = spain
Translate the following into a SQL query
What was john huston's score?
SELECT Score FROM table WHERE Player = john huston
Translate the following into a SQL query
What was willie wood's to par?
SELECT To par FROM table WHERE Player = willie wood
Translate the following into a SQL query
What is the Prize amount of Winner Dominik Nitsche?
SELECT Prize FROM table WHERE Winner = dominik nitsche
Translate the following into a SQL query
What is the Winner of the Event in Nuevo Vallarta?
SELECT Winner FROM table WHERE City = nuevo vallarta
Translate the following into a SQL query
What is the Date of the Event in Punta del Este?
SELECT Date FROM table WHERE City = punta del este