instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which Opponent has a Series of bruins lead 2–1?
SELECT Opponent FROM table WHERE Series = bruins lead 2–1
Translate the following into a SQL query
Which Date has a Game of 4?
SELECT Date FROM table WHERE Game = 4
Translate the following into a SQL query
Which Game has a Score of 3–6?
SELECT SUM Game FROM table WHERE Score = 3–6
Translate the following into a SQL query
What is the Rank of industrial and commercial bank of china 277,236?
SELECT Rank FROM table WHERE First quarter = industrial and commercial bank of china 277,236
Translate the following into a SQL query
What was result of goal 4?
SELECT Result FROM table WHERE Goal = 4
Translate the following into a SQL query
Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?
SELECT Player FROM table WHERE College/Junior/Club Team (League) = shawinigan dynamos (qmjhl)
Translate the following into a SQL query
What is the highest round for the Minnesota Junior Stars (Mjhl)?
SELECT MAX Round FROM table WHERE College/Junior/Club Team (League) = minnesota junior stars (mjhl)
Translate the following into a SQL query
When did woking compete?
SELECT Date FROM table WHERE Opponent = woking
Translate the following into a SQL query
Which Opponent has an Attendance of 375?
SELECT Opponent FROM table WHERE Attendance = 375
Translate the following into a SQL query
How much Attendance has an Opponent of oxford united?
SELECT SUM Attendance FROM table WHERE Opponent = oxford united
Translate the following into a SQL query
Which Attendance has an Opponent of crawley town?
SELECT Attendance FROM table WHERE Opponent = crawley town
Translate the following into a SQL query
How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?
SELECT SUM Podiums FROM table WHERE Series = macau grand prix AND Season < 2008
Translate the following into a SQL query
How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?
SELECT COUNT Wins FROM table WHERE Series = formula 3 euro series AND Podiums > 2
Translate the following into a SQL query
What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?
SELECT MAX Wins FROM table WHERE Season < 2007 AND Team = silverstone motorsport academy
Translate the following into a SQL query
What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?
SELECT MAX Season FROM table WHERE Podiums = 0 AND Races = 1 AND Wins > 0
Translate the following into a SQL query
Name the week for december 4, 2009
SELECT Week FROM table WHERE Date = december 4, 2009
Translate the following into a SQL query
Name the opponent with record of 6-2
SELECT Opponent FROM table WHERE Record = 6-2
Translate the following into a SQL query
Name the opponent with result of w 35-21
SELECT Opponent FROM table WHERE Result = w 35-21
Translate the following into a SQL query
Name the date with resultof w 35-7
SELECT Date FROM table WHERE Result = w 35-7
Translate the following into a SQL query
Name the date with record of 3-1
SELECT Date FROM table WHERE Record = 3-1
Translate the following into a SQL query
Name the week for date of bye
SELECT Week FROM table WHERE Date = bye
Translate the following into a SQL query
What is the friendly game for Germany of France?
SELECT Friendly FROM table WHERE Germany = france
Translate the following into a SQL query
What company is numbered larger than 5 and priced at $389M?
SELECT Company FROM table WHERE Number > 5 AND Price = $389m
Translate the following into a SQL query
Which category was william ivey long a nominee and nominated in?
SELECT Category FROM table WHERE Result = nominated AND Nominee = william ivey long
Translate the following into a SQL query
What is the half-life discovered in 2003?
SELECT Half-life FROM table WHERE Discovery year = 2003
Translate the following into a SQL query
What is the decay mode of the 265m hs isotope discovered in 1984?
SELECT Decay mode FROM table WHERE Discovery year = 1984 AND Isotope = 265m hs
Translate the following into a SQL query
What is the Frequency MHz of Trinidad, Colorado?
SELECT Frequency MHz FROM table WHERE City of license = trinidad, colorado
Translate the following into a SQL query
What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?
SELECT City of license FROM table WHERE ERP W < 500 AND Class = a AND Frequency MHz > 89.7
Translate the following into a SQL query
Which venue has a capacity larger than 5,000 for Molodechno team?
SELECT Venue FROM table WHERE Capacity > 5,000 AND Team = molodechno
Translate the following into a SQL query
What is the smallest capacity for Fandok?
SELECT MIN Capacity FROM table WHERE Team = fandok
Translate the following into a SQL query
What is the highest pick number of a defensive back with less than 136 overall points?
SELECT MAX Pick # FROM table WHERE Overall < 136 AND Position = defensive back
Translate the following into a SQL query
What is the lowest pick number of John Scully?
SELECT MIN Pick # FROM table WHERE Name = john scully
Translate the following into a SQL query
What is the total points with less than 5 games?
SELECT COUNT Points FROM table WHERE Games < 5
Translate the following into a SQL query
What was the outcome for the India Open?
SELECT Outcome FROM table WHERE Venue = india open
Translate the following into a SQL query
What was the Outcome at the 1985 India Open?
SELECT Outcome FROM table WHERE Year = 1985 AND Venue = india open
Translate the following into a SQL query
What was the outcome in 1982 with Kang Haeng-Suk as partner?
SELECT Outcome FROM table WHERE Partner = kang haeng-suk AND Year = 1982
Translate the following into a SQL query
Which Party has a First elected smaller than 1878, and a District of south carolina 3?
SELECT Party FROM table WHERE First elected < 1878 AND District = south carolina 3
Translate the following into a SQL query
Which Result has a First elected of 1876, and a District of south carolina 3?
SELECT Result FROM table WHERE First elected = 1876 AND District = south carolina 3
Translate the following into a SQL query
Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson?
SELECT Result FROM table WHERE First elected > 1876 AND Incumbent = john s. richardson
Translate the following into a SQL query
Who is the incumbent that is a republican and first elected before 1864?
SELECT Incumbent FROM table WHERE Party = republican AND First elected < 1864
Translate the following into a SQL query
What district is the democratic Francis C. Le Blond from?
SELECT District FROM table WHERE Party = democratic AND Incumbent = francis c. le blond
Translate the following into a SQL query
In the Ohio 4 district, that is the first elected date that has a result of re-elected?
SELECT SUM First elected FROM table WHERE Result = re-elected AND District = ohio 4
Translate the following into a SQL query
What is the party in Ohio 6 District?
SELECT Party FROM table WHERE District = ohio 6
Translate the following into a SQL query
Which To par has a Year of 1994?
SELECT To par FROM table WHERE Year = 1994
Translate the following into a SQL query
Which Country has a Margin of victory of 2 strokes?
SELECT Country FROM table WHERE Margin of victory = 2 strokes
Translate the following into a SQL query
Which Year is the lowest one that has a To par of –1?
SELECT MIN Year FROM table WHERE To par = –1
Translate the following into a SQL query
Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?
SELECT Margin of victory FROM table WHERE Year > 1994 AND To par = –14 AND Score = 69-67-69-69=274
Translate the following into a SQL query
What was the record after the game at the Astrodome?
SELECT Record FROM table WHERE Location = astrodome
Translate the following into a SQL query
What was the record after the game against the Houston Oilers?
SELECT Record FROM table WHERE Opponent = houston oilers
Translate the following into a SQL query
What is the average total score of Belarus, which had an E score less than 8.2?
SELECT AVG Total FROM table WHERE Nation = belarus AND E Score < 8.2
Translate the following into a SQL query
What is the total of the team with a T score greater than 8 and an E score less than 8.4?
SELECT SUM Total FROM table WHERE T Score > 8 AND E Score < 8.4
Translate the following into a SQL query
What is the T score of the team with an E score of 6.625?
SELECT T Score FROM table WHERE E Score = 6.625
Translate the following into a SQL query
What is the total of Poland, which has an E score greater than 7.725?
SELECT COUNT Total FROM table WHERE Nation = poland AND E Score > 7.725
Translate the following into a SQL query
What is the total of the team with a T score less than 6.8?
SELECT SUM Total FROM table WHERE T Score < 6.8
Translate the following into a SQL query
What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?
SELECT Date FROM table WHERE Competition = 2012 afc challenge cup AND Venue = dasarath rangasala stadium, kathmandu
Translate the following into a SQL query
Which Social Liberal Party has 4.5% of the Conservative People's Party?
SELECT Social Liberal Party (B) FROM table WHERE Conservative People's Party (C) = 4.5%
Translate the following into a SQL query
What opposition do 31.1% of Social Democrats have?
SELECT Opposition FROM table WHERE Social Democrats (A) = 31.1%
Translate the following into a SQL query
What is the Liberal Alliance that is backed by the Polling Firm, Capacent, and 13.0% of the Socialist People's Party?
SELECT Liberal Alliance (I) FROM table WHERE Polling Firm = capacent AND Socialist People's Party (F) = 13.0%
Translate the following into a SQL query
Which Position has a Round larger than 14, and a School/Club Team of north texas?
SELECT Position FROM table WHERE Round > 14 AND School/Club Team = north texas
Translate the following into a SQL query
Which Round has a Player of anthony christnovich?
SELECT Round FROM table WHERE Player = anthony christnovich
Translate the following into a SQL query
Which Round is the lowest one that has a School/Club Team of virginia?
SELECT MIN Round FROM table WHERE School/Club Team = virginia
Translate the following into a SQL query
What is the name of the leading scorer on 2006-11-22?
SELECT Leading scorer FROM table WHERE Date = 2006-11-22
Translate the following into a SQL query
What is the name of the leading scorer when the record was 9–6?
SELECT Leading scorer FROM table WHERE Record = 9–6
Translate the following into a SQL query
What is the number of people in Attendance when Visitor was the warriors on 2006-11-04?
SELECT Attendance FROM table WHERE Visitor = warriors AND Date = 2006-11-04
Translate the following into a SQL query
What team was the visitor when there were more than 16,182 people in attendance and the record was 6–3?
SELECT Visitor FROM table WHERE Attendance > 16,182 AND Record = 6–3
Translate the following into a SQL query
What is the name of the visitor on 2006-11-04?
SELECT Visitor FROM table WHERE Date = 2006-11-04
Translate the following into a SQL query
What is the name of the Leading scorer when the Score was 89–102?
SELECT Leading scorer FROM table WHERE Score = 89–102
Translate the following into a SQL query
Which Year is the highest one that has a Population larger than 13,012, and a Borough of richmondshire?
SELECT MAX Year FROM table WHERE Population > 13,012 AND Borough = richmondshire
Translate the following into a SQL query
How many people live in Norton?
SELECT SUM Population FROM table WHERE Town = norton
Translate the following into a SQL query
Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?
SELECT Year FROM table WHERE Borough = harrogate AND Rank < 6 AND Definition = civil parish
Translate the following into a SQL query
Which Definition has a Rank smaller than 12, and a Town of tadcaster?
SELECT Definition FROM table WHERE Rank < 12 AND Town = tadcaster
Translate the following into a SQL query
Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?
SELECT MIN Rank FROM table WHERE Borough = richmondshire AND Population > 8,178
Translate the following into a SQL query
How many bronze medals did Bulgaria receive?
SELECT Bronze FROM table WHERE Nation = bulgaria
Translate the following into a SQL query
What was Phil Mickelson's score to par?
SELECT To par FROM table WHERE Player = phil mickelson
Translate the following into a SQL query
What name has an overall less than 268, and 1 as the round?
SELECT Name FROM table WHERE Overall < 268 AND Round = 1
Translate the following into a SQL query
How many pick #'s have james britt as the name, with a round greater than 2?
SELECT COUNT Pick # FROM table WHERE Name = james britt AND Round > 2
Translate the following into a SQL query
what is the score on november 15
SELECT Score FROM table WHERE Date = november 15
Translate the following into a SQL query
Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4?
SELECT MAX Wins FROM table WHERE Country = united states AND Player = andy bean AND Rank < 4
Translate the following into a SQL query
Which Country has a Rank of 5?
SELECT Country FROM table WHERE Rank = 5
Translate the following into a SQL query
Which Earnings ($) is the lowest one that has a Rank smaller than 1?
SELECT MIN Earnings ( $ ) FROM table WHERE Rank < 1
Translate the following into a SQL query
What is the score of the game on September 13 when the Expos were the opponent?
SELECT Score FROM table WHERE Opponent = expos AND Date = september 13
Translate the following into a SQL query
Who was the opponent on the September 3 game?
SELECT Opponent FROM table WHERE Date = september 3
Translate the following into a SQL query
What is the save of the game on September 15?
SELECT Save FROM table WHERE Date = september 15
Translate the following into a SQL query
Which Game site has a Week larger than 14?
SELECT Game site FROM table WHERE Week > 14
Translate the following into a SQL query
Which Date has a Game site of jeppesen stadium?
SELECT Date FROM table WHERE Game site = jeppesen stadium
Translate the following into a SQL query
Which Game site has 27,189 Attendances ?
SELECT Game site FROM table WHERE Attendance = 27,189
Translate the following into a SQL query
When is it has 15,557 Attendances?
SELECT Date FROM table WHERE Attendance = 15,557
Translate the following into a SQL query
With an Overall less than 171, what is the Round pick of Lance Moon?
SELECT MIN Round FROM table WHERE Name = lance moon AND Overall < 171
Translate the following into a SQL query
What is the Name of draft Pick #10?
SELECT Name FROM table WHERE Pick # = 10
Translate the following into a SQL query
How many Rounds have a Defensive End Pick?
SELECT COUNT Round FROM table WHERE Position = defensive end
Translate the following into a SQL query
What was the time when Shinya Aoki was the opponent?
SELECT Time FROM table WHERE Opponent = shinya aoki
Translate the following into a SQL query
Which method was used in round 1 with a record of 1-0?
SELECT Method FROM table WHERE Round = 1 AND Record = 1-0
Translate the following into a SQL query
Which rank has a team of Suzuki with under 16 points?
SELECT Rank FROM table WHERE Team = suzuki AND Points < 16
Translate the following into a SQL query
Which class has a rank of 5th?
SELECT Class FROM table WHERE Rank = 5th
Translate the following into a SQL query
Which team has a class of 500cc and rank of 16th?
SELECT Team FROM table WHERE Class = 500cc AND Rank = 16th
Translate the following into a SQL query
Which team has 16 points and ranks 14th?
SELECT Team FROM table WHERE Points = 16 AND Rank = 14th
Translate the following into a SQL query
What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21?
SELECT Dance FROM table WHERE Worst dancer(s) = priscilla presley AND Worst score = 21
Translate the following into a SQL query
What is the best score of the dance freestyle?
SELECT Best score FROM table WHERE Dance = freestyle
Translate the following into a SQL query
Which dance has the worst dancer(s) as marissa jaret winokur?
SELECT Dance FROM table WHERE Worst dancer(s) = marissa jaret winokur
Translate the following into a SQL query
Which Points have an Opponent of vancouver canucks?
SELECT AVG Points FROM table WHERE Opponent = vancouver canucks