instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver?
SELECT MIN Bronze FROM table WHERE Rank = 11 AND Silver < 1
Translate the following into a SQL query
What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?
SELECT AVG Episode number FROM table WHERE Original airdate = march 21, 2010 AND Season < 3
Translate the following into a SQL query
What is Show, when Episode Number is 1, when Year is less than 2010, and when Original Airdate is January 20, 2008?
SELECT Show FROM table WHERE Episode number = 1 AND Year < 2010 AND Original airdate = january 20, 2008
Translate the following into a SQL query
What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?
SELECT COUNT Season FROM table WHERE Original airdate = january 24, 1999 AND Year < 1999
Translate the following into a SQL query
How many games have a Result of l, and a Record of 2-6?
SELECT COUNT Game FROM table WHERE Result = l AND Record = 2-6
Translate the following into a SQL query
How many people attended the green bay packers game?
SELECT SUM Attendance FROM table WHERE Opponent = green bay packers
Translate the following into a SQL query
How many people attended the game whose score was 1-1?
SELECT Attendance FROM table WHERE Record = 1-1
Translate the following into a SQL query
Which Date has a Score of 24-7, and a Record of 4-10?
SELECT Date FROM table WHERE Score = 24-7 AND Record = 4-10
Translate the following into a SQL query
Lowest round for g that was smaller than 31?
SELECT MIN Round FROM table WHERE Position = g AND Overall < 31
Translate the following into a SQL query
What is the Semifinalists that has a Tournament of Cincinnati?
SELECT Semifinalists FROM table WHERE Tournament = cincinnati
Translate the following into a SQL query
The Crvena Zvezda club has what aggregate?
SELECT Aggregate FROM table WHERE Club = crvena zvezda
Translate the following into a SQL query
What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims?
SELECT COUNT Assists FROM table WHERE Goals = 0 AND Points > 1 AND Pims > 0
Translate the following into a SQL query
What is league position when manchester played against luton town when 41,288 fans attended?
SELECT League position FROM table WHERE Attendance > 41,288 AND Opponents = luton town
Translate the following into a SQL query
How many Neutral Wins have Home Losses larger than 2, and a Loss of 7, and an Away Wins larger than 3?
SELECT COUNT Neutral Wins FROM table WHERE Home Losses > 2 AND Loss = 7 AND Away Wins > 3
Translate the following into a SQL query
How many Away Losses have Home Losses larger than 3, and Wins smaller than 5?
SELECT COUNT Away Losses FROM table WHERE Home Losses > 3 AND Wins < 5
Translate the following into a SQL query
Which Home Wins have Neutral Wins of 1, and Neutral Losses smaller than 0?
SELECT AVG Home Wins FROM table WHERE Neutral Wins = 1 AND Neutral Losses < 0
Translate the following into a SQL query
Which Wins is the lowest one that has Home Losses larger than 3, and Neutral Losses smaller than 0?
SELECT MIN Wins FROM table WHERE Home Losses > 3 AND Neutral Losses < 0
Translate the following into a SQL query
Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3?
SELECT Decision FROM table WHERE Visitor = calgary AND Score = 2 – 1 AND Series = 4 – 3
Translate the following into a SQL query
Which Visitor has a Series of 2 – 1?
SELECT Visitor FROM table WHERE Series = 2 – 1
Translate the following into a SQL query
Which Visitor has a Home of calgary, and a Date of april 17?
SELECT Visitor FROM table WHERE Home = calgary AND Date = april 17
Translate the following into a SQL query
Which Decision has a Visitor of vancouver, and a Score of 5 – 4?
SELECT Decision FROM table WHERE Visitor = vancouver AND Score = 5 – 4
Translate the following into a SQL query
Which Visitor has a Home of vancouver, and a Decision of cloutier?
SELECT Visitor FROM table WHERE Home = vancouver AND Decision = cloutier
Translate the following into a SQL query
Which Decision has a Series of 3 – 3?
SELECT Decision FROM table WHERE Series = 3 – 3
Translate the following into a SQL query
What's the value for race 4 when race 1 is dsq?
SELECT Race 4 FROM table WHERE Race 1 = dsq
Translate the following into a SQL query
What's the value for race 4 when race 3 is dns and race 2 is 27?
SELECT Race 4 FROM table WHERE Race 3 = dns AND Race 2 = 27
Translate the following into a SQL query
What's the value for race 4 for driver kevin heffernan?
SELECT Race 4 FROM table WHERE Driver = kevin heffernan
Translate the following into a SQL query
What was the date of game 4?
SELECT Date FROM table WHERE Game = 4
Translate the following into a SQL query
Who had the most points in the game on November 12?
SELECT High points FROM table WHERE Date = november 12
Translate the following into a SQL query
What rank is the team that has a player named Isco Alarcón?
SELECT Rank FROM table WHERE Player = isco alarcón
Translate the following into a SQL query
What is the rank of Club Valencia with a U-17 Caps of 20?
SELECT COUNT Rank FROM table WHERE Club(s) = valencia AND U-17 Caps = 20
Translate the following into a SQL query
What is High Assists, when High Points is "T. J. Ford (29)"?
SELECT High assists FROM table WHERE High points = t. j. ford (29)
Translate the following into a SQL query
What is High Assists, when Date is "March 10"?
SELECT High assists FROM table WHERE Date = march 10
Translate the following into a SQL query
What is Record, when Team is "@ Atlanta"?
SELECT Record FROM table WHERE Team = @ atlanta
Translate the following into a SQL query
What is Team, when Location Attendance is "Rose Garden 20,020"?
SELECT Team FROM table WHERE Location Attendance = rose garden 20,020
Translate the following into a SQL query
What is Date, when High Points is "Danny Granger (32)"?
SELECT Date FROM table WHERE High points = danny granger (32)
Translate the following into a SQL query
What is the place when the player is Bob Gilder and the money was $20,903?
SELECT Place FROM table WHERE Money ( $ ) = 20,903 AND Player = bob gilder
Translate the following into a SQL query
What is the Place when Fuzzy Zoeller plated in the United States?
SELECT Place FROM table WHERE Country = united states AND Player = fuzzy zoeller
Translate the following into a SQL query
What is the To par when the score was 72-67-68-71=278?
SELECT To par FROM table WHERE Score = 72-67-68-71=278
Translate the following into a SQL query
What is the Place when Steve Pate was the player?
SELECT Place FROM table WHERE Player = steve pate
Translate the following into a SQL query
What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?
SELECT MIN Diameter (km) FROM table WHERE Year named = 1997 AND Longitude = 212.0e AND Latitude = 47.0n
Translate the following into a SQL query
What's the latitude when the longitude is 152.0e later than 1997?
SELECT Latitude FROM table WHERE Year named > 1997 AND Longitude = 152.0e
Translate the following into a SQL query
What's the diameter when longitude is 105.0e before 2003?
SELECT SUM Diameter (km) FROM table WHERE Longitude = 105.0e AND Year named < 2003
Translate the following into a SQL query
What's the average year for the name aida-wedo dorsa with a diameter less than 450?
SELECT AVG Year named FROM table WHERE Name = aida-wedo dorsa AND Diameter (km) < 450
Translate the following into a SQL query
What's the total diameter when longitude is 357.8e later than 1985?
SELECT COUNT Diameter (km) FROM table WHERE Longitude = 357.8e AND Year named > 1985
Translate the following into a SQL query
what is the average 65 to 69 when the oblast\age is belgorod and 40 to 44 is more than 1,906?
SELECT AVG 65 to 69 FROM table WHERE Oblast\Age = belgorod AND 40 to 44 > 1,906
Translate the following into a SQL query
what is the average 60 to 64 when 50 to 54 is less than 2,054, 35 to 39 is more than 1,704, 30 to 34 is less than 1,381 and oblast\age is evenkia?
SELECT AVG 60 to 64 FROM table WHERE 50 to 54 < 2,054 AND 35 to 39 > 1,704 AND 30 to 34 < 1,381 AND Oblast\Age = evenkia
Translate the following into a SQL query
How many times is 55 to 59 less than 1,677, oblast\age is gorod moscow and 50 to 54 is more than 1,562?
SELECT COUNT C/W 15+ FROM table WHERE 55 to 59 < 1,677 AND Oblast\Age = gorod moscow AND 50 to 54 > 1,562
Translate the following into a SQL query
what is the average c/w 15+ when 18 to 19 is 132 and 65 to 69 is more than 1,869?
SELECT AVG C/W 15+ FROM table WHERE 18 to 19 = 132 AND 65 to 69 > 1,869
Translate the following into a SQL query
In what year was Lesli Margherita nominated?
SELECT SUM Year FROM table WHERE Nominee = lesli margherita
Translate the following into a SQL query
Who was nominated for Best Theatre Choreographer?
SELECT Nominee FROM table WHERE Category = best theatre choreographer
Translate the following into a SQL query
What hometown was FR Year, and ha Brown's Gymnastics club?
SELECT Hometown FROM table WHERE Year = fr AND Club = brown's gymnastics
Translate the following into a SQL query
What year was Asi Peko?
SELECT Year FROM table WHERE Name = asi peko
Translate the following into a SQL query
What is the height for the Oakville Gymnastics Club?
SELECT Height FROM table WHERE Club = oakville gymnastics club
Translate the following into a SQL query
when was the loan ended when the loan club is spartak moscow?
SELECT Ended FROM table WHERE Loan Club = spartak moscow
Translate the following into a SQL query
What is the loan start source when the loan club is fulham?
SELECT Start Source FROM table WHERE Loan Club = fulham
Translate the following into a SQL query
When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
SELECT Started FROM table WHERE Country = eng AND Loan Club = sunderland AND End Source = south wales echo
Translate the following into a SQL query
when was the loan ended when the country is ghana?
SELECT Ended FROM table WHERE Country = ghana
Translate the following into a SQL query
what is the loan club with the start source is bbc sport and started on 9 february?
SELECT Loan Club FROM table WHERE Start Source = bbc sport AND Started = 9 february
Translate the following into a SQL query
what is the start source when started on 2 february?
SELECT Start Source FROM table WHERE Started = 2 february
Translate the following into a SQL query
What is the lowest Finished, when Post is less than 2?
SELECT MIN Finished FROM table WHERE Post < 2
Translate the following into a SQL query
What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"?
SELECT Owner FROM table WHERE Finished < 15 AND Trainer = steve asmussen AND Horse = z fortune
Translate the following into a SQL query
What is the Time/ Behind, when Jockey is "Jose Lezcano"?
SELECT Time/ Behind FROM table WHERE Jockey = jose lezcano
Translate the following into a SQL query
What is Jockey, when Post is 12?
SELECT Jockey FROM table WHERE Post = 12
Translate the following into a SQL query
What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?
SELECT COUNT Post FROM table WHERE Trainer = steve asmussen AND Time/ Behind = 19 ½
Translate the following into a SQL query
What is Jockey, when Horse is "Eight Belles"?
SELECT Jockey FROM table WHERE Horse = eight belles
Translate the following into a SQL query
Who is the team captain of the Guldensporen Stadion with a stadium capacity larger than 12,919?
SELECT Team captain FROM table WHERE Capacity > 12,919 AND Stadium = guldensporen stadion
Translate the following into a SQL query
Who is the team captain of Regenboogstadion?
SELECT Team captain FROM table WHERE Stadium = regenboogstadion
Translate the following into a SQL query
Who is the current manager of the team located in tubize?
SELECT Current manager FROM table WHERE Location = tubize
Translate the following into a SQL query
Where is the location of the team with a current manager of Ariel Jacobs?
SELECT Location FROM table WHERE Current manager = ariel jacobs
Translate the following into a SQL query
What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?
SELECT Victory Margin (in lengths) FROM table WHERE Finish = 1st AND Jockey = kent desormeaux AND Time = 1:35.66
Translate the following into a SQL query
What was the time of the Kentucky Derby?
SELECT Time FROM table WHERE Race = kentucky derby
Translate the following into a SQL query
What was the finish of the Kentucky Derby?
SELECT Finish FROM table WHERE Race = kentucky derby
Translate the following into a SQL query
Which race had a finish of 1st at Saratoga Race Course?
SELECT Race FROM table WHERE Finish = 1st AND Track = saratoga race course
Translate the following into a SQL query
Who was the player in 1981?
SELECT Player FROM table WHERE Year = 1981
Translate the following into a SQL query
What is the team for 1976?
SELECT Team FROM table WHERE Year = 1976
Translate the following into a SQL query
What is the opponent for the date of august 5?
SELECT Opponent FROM table WHERE Date = august 5
Translate the following into a SQL query
What is the result for the date of august 23?
SELECT Result FROM table WHERE Date = august 23
Translate the following into a SQL query
When the opponent is houston oilers what is the result?
SELECT Result FROM table WHERE Opponent = houston oilers
Translate the following into a SQL query
Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?
SELECT AVG Goals Against FROM table WHERE Drawn > 9 AND Lost > 15 AND Position = 24 AND Played < 46
Translate the following into a SQL query
Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45?
SELECT SUM Points 2 FROM table WHERE Drawn = 15 AND Position > 20 AND Goals For < 45
Translate the following into a SQL query
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
SELECT MAX Goals For FROM table WHERE Position > 2 AND Lost > 18 AND Team = matlock town AND Goals Against > 79
Translate the following into a SQL query
Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?
SELECT SUM Points 2 FROM table WHERE Goal Average 1 > 1.17 AND Goals Against > 48 AND Position > 6
Translate the following into a SQL query
What is the 1986 value with A in 1991 and A in 1987?
SELECT 1986 FROM table WHERE 1991 = a AND 1987 = a
Translate the following into a SQL query
What is the 1995 value with A in 1986 and 2r in 1992?
SELECT 1995 FROM table WHERE 1986 = a AND 1992 = 2r
Translate the following into a SQL query
What is the 1989 value with F in 1990?
SELECT 1989 FROM table WHERE 1990 = f
Translate the following into a SQL query
What is the 1987 value of the 1994 atp masters series?
SELECT 1987 FROM table WHERE 1994 = atp masters series
Translate the following into a SQL query
What is the lowest round that a pick had a position of ls?
SELECT MIN Round FROM table WHERE Position = ls
Translate the following into a SQL query
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?
SELECT SUM Round FROM table WHERE Position = ls AND Overall > 230
Translate the following into a SQL query
WHAT IS THE VENUE ON MARCH 28, 2008?
SELECT Venue FROM table WHERE Date = march 28, 2008
Translate the following into a SQL query
How many were in Attendance on October 8?
SELECT COUNT Attendance FROM table WHERE Date = october 8
Translate the following into a SQL query
In what Game was the Attendance more than 45,718 with a Time of 2:55?
SELECT COUNT Game FROM table WHERE Attendance > 45,718 AND Time = 2:55
Translate the following into a SQL query
What is the Location of the Game on October 8?
SELECT Location FROM table WHERE Date = october 8
Translate the following into a SQL query
What is the nationality for the player with over 64 goals?
SELECT Nat. FROM table WHERE Goals > 64
Translate the following into a SQL query
What was the score of the game where Philadelphia was the visitor?
SELECT Score FROM table WHERE Visitor = philadelphia
Translate the following into a SQL query
What are the average spectators from the Group H Round?
SELECT AVG Spectators FROM table WHERE Round = group h
Translate the following into a SQL query
Can you tell me the Manufacturer that has the Rider of stefan bradl?
SELECT Manufacturer FROM table WHERE Rider = stefan bradl
Translate the following into a SQL query
Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?
SELECT MAX Grid FROM table WHERE Time = +15.532 AND Laps > 23
Translate the following into a SQL query
Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?
SELECT SUM Grid FROM table WHERE Time = +6.355 AND Laps > 23
Translate the following into a SQL query
What is Time, when Location is "Savannah, Georgia , United States"?
SELECT Time FROM table WHERE Location = savannah, georgia , united states
Translate the following into a SQL query
What is the total number of Round(s), when Time is "N/A", when Location is "Alabama , United States", and when Record is "1-2-0"?
SELECT COUNT Round FROM table WHERE Time = n/a AND Location = alabama , united states AND Record = 1-2-0