instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the home team of the game on February 4?
SELECT Home FROM table WHERE Date = february 4
Translate the following into a SQL query
What Team had less than 1 point with a Zakspeed 871 chassis?
SELECT Team FROM table WHERE Points < 1 AND Chassis = zakspeed 871
Translate the following into a SQL query
What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine?
SELECT MIN Points FROM table WHERE Engine = ford cosworth dfr (mader) 3.5 v8
Translate the following into a SQL query
What year was a Rial Arc2 chassis used?
SELECT SUM Year FROM table WHERE Chassis = rial arc2
Translate the following into a SQL query
Name the bronze when silver is 1
SELECT Bronze FROM table WHERE Silver = 1
Translate the following into a SQL query
Name the least silver when gold is less than 0
SELECT MIN Silver FROM table WHERE Gold < 0
Translate the following into a SQL query
Name the least silver for nation of total when bronze is more than 24
SELECT MIN Silver FROM table WHERE Nation = total AND Bronze > 24
Translate the following into a SQL query
Name the year with finish of 12th and record of 23-36
SELECT Year FROM table WHERE Finish = 12th AND Record = 23-36
Translate the following into a SQL query
Name the record for 1997
SELECT Record FROM table WHERE Year = 1997
Translate the following into a SQL query
Name the year for jesus alfaro and finish of 6th
SELECT Year FROM table WHERE Manager = jesus alfaro AND Finish = 6th
Translate the following into a SQL query
Name the manager for playoffs of missed for 1999
SELECT Manager FROM table WHERE Playoffs = missed AND Year = 1999
Translate the following into a SQL query
What was the average attendance when the record was 17-18?
SELECT AVG Attendance FROM table WHERE Record = 17-18
Translate the following into a SQL query
What was marlboro brm's lowest points by using brm p160b?
SELECT MIN Points FROM table WHERE Entrant = marlboro brm AND Chassis = brm p160b
Translate the following into a SQL query
What is the total points in 1974?
SELECT COUNT Points FROM table WHERE Year = 1974
Translate the following into a SQL query
Who has 0 points in 1974?
SELECT Entrant FROM table WHERE Points = 0 AND Year = 1974
Translate the following into a SQL query
What is the lowest points of using mclaren m14a as chassis?
SELECT MIN Points FROM table WHERE Chassis = mclaren m14a
Translate the following into a SQL query
Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year?
SELECT SUM Year FROM table WHERE Location = saint paul AND Final-Score > 14.35 AND Event = all around
Translate the following into a SQL query
Competition of u.s championships, and a Event of all around has what average year?
SELECT AVG Year FROM table WHERE Competition = u.s championships AND Event = all around
Translate the following into a SQL query
What film was in 1970?
SELECT Film FROM table WHERE Year = 1970
Translate the following into a SQL query
Who wrote the lyrics for Mukti?
SELECT Lyricist FROM table WHERE Film = mukti
Translate the following into a SQL query
What song was directed by Shankar Jaikishan?
SELECT Song FROM table WHERE Music director(s) = shankar jaikishan
Translate the following into a SQL query
What song was written after 1976 and directed by Rahul Dev Burman?
SELECT Song FROM table WHERE Year > 1976 AND Music director(s) = rahul dev burman
Translate the following into a SQL query
What is the population for the place with a Former Name of bluie west-1?
SELECT MIN Population FROM table WHERE Former Name = bluie west-1
Translate the following into a SQL query
What car does Scott Deware own that has rounds under 12?
SELECT Car(s) FROM table WHERE Rounds < 12 AND Owner(s) = scott deware
Translate the following into a SQL query
Which City or town has a Top division titles of 17
SELECT City or town FROM table WHERE Top division titles = 17
Translate the following into a SQL query
Which City or town has top division smaller than 40 and Gaziantepspor Club ?
SELECT City or town FROM table WHERE Number of seasons in top division < 40 AND Club = gaziantepspor
Translate the following into a SQL query
What is the 2003 value with 2r in 2008 and 1r in 2011?
SELECT 2003 FROM table WHERE 2008 = 2r AND 2011 = 1r
Translate the following into a SQL query
What is the 2007 value with 2r in 2011 and 2r in 2008?
SELECT 2007 FROM table WHERE 2011 = 2r AND 2008 = 2r
Translate the following into a SQL query
What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon?
SELECT 2007 FROM table WHERE 2009 = 1r AND 2011 = 2r AND Tournament = wimbledon
Translate the following into a SQL query
What is the 2003 value with 1r in 2009 at the Australian Open?
SELECT 2003 FROM table WHERE 2009 = 1r AND Tournament = australian open
Translate the following into a SQL query
How many wins did they have at Richmond Cricket Ground Stadium?
SELECT Wins FROM table WHERE Stadium = richmond cricket ground
Translate the following into a SQL query
How many games did they play in 1905?
SELECT AVG Played FROM table WHERE Years = 1905
Translate the following into a SQL query
Which term in office has a qld state, a Party of labor, and an Electorate of fisher?
SELECT Term in office FROM table WHERE State = qld AND Party = labor AND Electorate = fisher
Translate the following into a SQL query
Which member has an Electorate of kennedy?
SELECT Member FROM table WHERE Electorate = kennedy
Translate the following into a SQL query
Which Party has a Member of david jull?
SELECT Party FROM table WHERE Member = david jull
Translate the following into a SQL query
Which term in office has an Electorate of hinkler?
SELECT Term in office FROM table WHERE Electorate = hinkler
Translate the following into a SQL query
Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann?
SELECT Electorate FROM table WHERE State = qld AND Party = national AND Member = hon evan adermann
Translate the following into a SQL query
Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?
SELECT State FROM table WHERE Term in office = 1984–1996 AND Party = labor AND Member = robert tickner
Translate the following into a SQL query
What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109?
SELECT SUM Decile FROM table WHERE Authority = state AND Name = pokuru school AND Roll < 109
Translate the following into a SQL query
Name the most laps for corvette racing in 2004
SELECT MAX Laps FROM table WHERE Team = corvette racing AND Year = 2004
Translate the following into a SQL query
Name the class for 4th position with year before 2006
SELECT Class FROM table WHERE Pos. = 4th AND Year < 2006
Translate the following into a SQL query
Name the total number of laps for 23rd position
SELECT COUNT Laps FROM table WHERE Pos. = 23rd
Translate the following into a SQL query
Name the team with laps less than 315 and co-drivers of david brabham franck lagorce?
SELECT Team FROM table WHERE Laps < 315 AND Co-Drivers = david brabham franck lagorce
Translate the following into a SQL query
Name the team for co-drivers of david brabham mario andretti
SELECT Team FROM table WHERE Co-Drivers = david brabham mario andretti
Translate the following into a SQL query
Name the highest year with points more than 0
SELECT MAX Year FROM table WHERE Points > 0
Translate the following into a SQL query
Name the highest points when year is more than 1953
SELECT MAX Points FROM table WHERE Year > 1953
Translate the following into a SQL query
Name the engine when points are 0 and chassis is kuzma indy roadster for 1954
SELECT Engine FROM table WHERE Points = 0 AND Chassis = kuzma indy roadster AND Year = 1954
Translate the following into a SQL query
Name the least points with chassis of kurtis kraft 3000 and year before 1951
SELECT MIN Points FROM table WHERE Chassis = kurtis kraft 3000 AND Year < 1951
Translate the following into a SQL query
What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?
SELECT COUNT Total Region FROM table WHERE Mirani = 5,220 AND Mackay < 75,020
Translate the following into a SQL query
What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412?
SELECT SUM Pioneer FROM table WHERE Sarina < 3,268 AND Mirani < 4,412
Translate the following into a SQL query
What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926?
SELECT SUM Mirani FROM table WHERE Total Region < 48,530 AND Mackay < 13,486 AND Pioneer > 9,926
Translate the following into a SQL query
What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611?
SELECT MIN Pioneer FROM table WHERE Year = 1966 AND Sarina > 4,611
Translate the following into a SQL query
What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966?
SELECT MIN Pioneer FROM table WHERE Sarina < 7,537 AND Year = 1966 AND Mirani < 5,379
Translate the following into a SQL query
What is the year of the TV series directed by Soroush Sehat?
SELECT Year FROM table WHERE Director = soroush sehat
Translate the following into a SQL query
What is the title of the TV series with a character of Sheyda/Ashraf?
SELECT Title FROM table WHERE Character = sheyda/ashraf
Translate the following into a SQL query
What is the year of the TV series that has a character of Leiloon Bala Barareh?
SELECT Year FROM table WHERE Character = leiloon bala barareh
Translate the following into a SQL query
What is the title of the TV series in 2012?
SELECT Title FROM table WHERE Year = 2012
Translate the following into a SQL query
Who published Star Citizen in 2014?
SELECT Publisher FROM table WHERE Year = 2014 AND Title = star citizen
Translate the following into a SQL query
Which title was developed by Battlecry Studios?
SELECT Title FROM table WHERE Developer = battlecry studios
Translate the following into a SQL query
How many people were at the match on July 13/
SELECT Attendance FROM table WHERE Date = july 13
Translate the following into a SQL query
Who was the opponent on July 27?
SELECT Opponent FROM table WHERE Date = july 27
Translate the following into a SQL query
For Ynysybwl RFC, what was the losing bonus for 416 points?
SELECT Losing bonus FROM table WHERE Points for = 416 AND Club = ynysybwl rfc
Translate the following into a SQL query
For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?
SELECT Drawn FROM table WHERE Played = 22 AND Points against = 453 AND Losing bonus = 5
Translate the following into a SQL query
For the club that had tries of 50 and drawn of 0, what were the points?
SELECT Points against FROM table WHERE Drawn = 0 AND Tries for = 50
Translate the following into a SQL query
The club that had 546 points against, what was the losing bonus?
SELECT Losing bonus FROM table WHERE Points against = 546
Translate the following into a SQL query
What is the lost of Ynysybwl RFC?
SELECT Lost FROM table WHERE Club = ynysybwl rfc
Translate the following into a SQL query
How many points does Club have?
SELECT Points FROM table WHERE Club = club
Translate the following into a SQL query
When is Part 6, when Part 4 is on March 2, 2008?
SELECT Part 6 FROM table WHERE Part 4 = march 2, 2008
Translate the following into a SQL query
What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?
SELECT Title FROM table WHERE Episode # > 2 AND Part 6 = january 6, 2008
Translate the following into a SQL query
When is Part 2, when Part 4 is on December 9, 2007?
SELECT Part 2 FROM table WHERE Part 4 = december 9, 2007
Translate the following into a SQL query
When is Part 1, when Part 4 is on February 10, 2008?
SELECT Part 1 FROM table WHERE Part 4 = february 10, 2008
Translate the following into a SQL query
When is Part 2, when Part 5 is on January 24, 2008?
SELECT Part 2 FROM table WHERE Part 5 = january 24, 2008
Translate the following into a SQL query
Who was the finals opponent on the hard surface tournament?
SELECT Opponent in the final FROM table WHERE Surface = hard
Translate the following into a SQL query
Which surface was played during Curitiba tournament?
SELECT Surface FROM table WHERE Tournament = curitiba
Translate the following into a SQL query
What is the highest round for UFC 109?
SELECT MAX Round FROM table WHERE Event = ufc 109
Translate the following into a SQL query
What round was the opponent Manny Gamburyan?
SELECT Round FROM table WHERE Opponent = manny gamburyan
Translate the following into a SQL query
What was the earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964?
SELECT MIN Week FROM table WHERE Attendance < 16,375 AND Date = november 22, 1964
Translate the following into a SQL query
What was the week of the game played December 6, 1964?
SELECT SUM Week FROM table WHERE Date = december 6, 1964
Translate the following into a SQL query
What is the fewest losses that had an against score of 2190 and more than 0 draws?
SELECT MIN Losses FROM table WHERE Against = 2190 AND Draws > 0
Translate the following into a SQL query
What is the fewest number of draws for teams with more than 0 byes?
SELECT MIN Draws FROM table WHERE Byes > 0
Translate the following into a SQL query
What is the sum of losses for Geelong Amateur, with 0 byes?
SELECT SUM Losses FROM table WHERE Bellarine FL = geelong amateur AND Byes < 0
Translate the following into a SQL query
What is the sum of the number of wins for teams with more than 0 draws?
SELECT SUM Wins FROM table WHERE Draws > 0
Translate the following into a SQL query
What is the Stadium that hosts the team Jacksonville Jaguars?
SELECT Stadium FROM table WHERE Host team = jacksonville jaguars
Translate the following into a SQL query
What stadium was used on November 13?
SELECT Stadium FROM table WHERE Date = november 13
Translate the following into a SQL query
What is the host team with the stadium Lincoln Financial Field?
SELECT Host team FROM table WHERE Stadium = lincoln financial field
Translate the following into a SQL query
What team visited the Cleveland Browns Stadium?
SELECT Visiting team FROM table WHERE Stadium = cleveland browns stadium
Translate the following into a SQL query
What stadium did the Denver Broncos visit?
SELECT Stadium FROM table WHERE Visiting team = denver broncos
Translate the following into a SQL query
What team visited the Jacksonville Municipal Stadium?
SELECT Visiting team FROM table WHERE Stadium = jacksonville municipal stadium
Translate the following into a SQL query
How many people boarded and de-boarded the Amtrak in Linthicum?
SELECT COUNT Boardings and deboardings FROM table WHERE City = linthicum
Translate the following into a SQL query
In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626?
SELECT SUM Rank FROM table WHERE Boardings and deboardings < 683,626 AND State = california AND Station = irvine station
Translate the following into a SQL query
At south station what was the total rank when boarding and deboardings were smaller than 1,360,162?
SELECT SUM Rank FROM table WHERE Station = south station AND Boardings and deboardings < 1,360,162
Translate the following into a SQL query
Which is the highest rank that has 8,995,551 boardings and deboardings?
SELECT MAX Rank FROM table WHERE Boardings and deboardings = 8,995,551
Translate the following into a SQL query
The Europe listing of 00 0 0 (0) also has what listed as the total?
SELECT Total FROM table WHERE Europe = 00 0 0 (0)
Translate the following into a SQL query
The league of 400 (21) has what years listed?
SELECT Years FROM table WHERE League = 400 (21)
Translate the following into a SQL query
With a FA Cup of 0 44 0 (0), the other [C] is listed as what?
SELECT Other [C ] FROM table WHERE FA Cup = 0 44 0 (0)
Translate the following into a SQL query
The Europe listing of 117 0 (8) belongs to what league?
SELECT League FROM table WHERE Europe = 117 0 (8)
Translate the following into a SQL query
The League Cup of 0 40 0 (6) also has what listed in the Europe column?
SELECT Europe FROM table WHERE League Cup = 0 40 0 (6)
Translate the following into a SQL query
The other [C] of 0 12 0 (0) belongs to what FA Cup?
SELECT FA Cup FROM table WHERE Other [C ] = 0 12 0 (0)
Translate the following into a SQL query
What is the lowest VIII Edition Gold with a Silver of 4?
SELECT MIN Gold FROM table WHERE Silver = 4 AND Edition = viii
Translate the following into a SQL query
What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?
SELECT MAX Bronze FROM table WHERE Silver > 10 AND Edition = i AND Gold > 9