instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who was played against with a result of 3–6, 2–6?
SELECT Against FROM table WHERE Result = 3–6, 2–6
Translate the following into a SQL query
Name the least year for paris, france venue
SELECT MIN Year FROM table WHERE Venue = paris, france
Translate the following into a SQL query
What's the total number of picks for mckinney high school?
SELECT SUM Pick FROM table WHERE School = mckinney high school
Translate the following into a SQL query
What was the highest pick for the player Adam Jones?
SELECT MAX Pick FROM table WHERE Player = adam jones
Translate the following into a SQL query
What's the total number of picks for the player Matt Murton?
SELECT SUM Pick FROM table WHERE Player = matt murton
Translate the following into a SQL query
What position was pick 32?
SELECT Position FROM table WHERE Pick = 32
Translate the following into a SQL query
Who won at the Barbagallo Raceway circuit?
SELECT Winner FROM table WHERE Circuit = barbagallo raceway
Translate the following into a SQL query
What was the title of the race at Oran Park Raceway?
SELECT Race Title FROM table WHERE Circuit = oran park raceway
Translate the following into a SQL query
Who won at the Oran Park Raceway?
SELECT Winner FROM table WHERE Circuit = oran park raceway
Translate the following into a SQL query
When Jim Richards won at the Winton Motor Raceway circuit, what was the city and state listed?
SELECT City / State FROM table WHERE Winner = jim richards AND Circuit = winton motor raceway
Translate the following into a SQL query
What is the capacity of the mine that is operated by Cyprus Amax minerals?
SELECT Capacity (thousands of metric tons) FROM table WHERE Operator = cyprus amax minerals
Translate the following into a SQL query
What rank is the Silver Bell mine of Pima county?
SELECT Rank FROM table WHERE County = pima AND Mine = silver bell
Translate the following into a SQL query
What is the capacity of the Pinto Valley mine in Gila county?
SELECT Capacity (thousands of metric tons) FROM table WHERE County = gila AND Mine = pinto valley
Translate the following into a SQL query
What is the first leg with an agg of 10-2?
SELECT 1st leg FROM table WHERE Agg. = 10-2
Translate the following into a SQL query
What is the agg of team 2 for Vantour Club Mangoungou?
SELECT Agg. FROM table WHERE Team 2 = vantour club mangoungou
Translate the following into a SQL query
What is the first leg of team 1 for Hardware stars?
SELECT 1st leg FROM table WHERE Team 1 = hardware stars
Translate the following into a SQL query
What is the agg with a second leg of 0-1?
SELECT Agg. FROM table WHERE 2nd leg = 0-1
Translate the following into a SQL query
What team 2 had a 1st leg of 1-1, and agg of 3-1?
SELECT Team 2 FROM table WHERE 1st leg = 1-1 AND Agg. = 3-1
Translate the following into a SQL query
What team 2 had a second leg of 3-2?
SELECT Team 2 FROM table WHERE 2nd leg = 3-2
Translate the following into a SQL query
On what date was the game played at home against the opponent Siena?
SELECT Date FROM table WHERE Opponent = siena AND Ground = home
Translate the following into a SQL query
What time was the game played against Cagliari that lasted 16 rounds?
SELECT Time FROM table WHERE Opponent = cagliari AND Round = 16
Translate the following into a SQL query
Where was the game played that had a score of 3-2 and a time of 15:00 cet?
SELECT Ground FROM table WHERE Score = 3-2 AND Time = 15:00 cet
Translate the following into a SQL query
What was the score on April 18?
SELECT Score FROM table WHERE Date = april 18
Translate the following into a SQL query
What was the attendance when Nakamura (0-1) lost?
SELECT Attendance FROM table WHERE Loss = nakamura (0-1)
Translate the following into a SQL query
What was their record when they lost with Lilly (0-1) pitching?
SELECT Record FROM table WHERE Loss = lilly (0-1)
Translate the following into a SQL query
What was their record when the attendance was 26,827?
SELECT Record FROM table WHERE Attendance = 26,827
Translate the following into a SQL query
Who is the December playmate with a February playmate Anne-Marie Fox?
SELECT December FROM table WHERE February = anne-marie fox
Translate the following into a SQL query
Who is the August playmate with the October playmate Shannon Long?
SELECT August FROM table WHERE October = shannon long
Translate the following into a SQL query
Who is the December playmate with a November playmate Marlene Janssen?
SELECT December FROM table WHERE November = marlene janssen
Translate the following into a SQL query
Who is the November playmate with the July playmate Hope Marie Carlton?
SELECT November FROM table WHERE July = hope marie carlton
Translate the following into a SQL query
Who is the March playmate with an August playmate Gianna Amore?
SELECT March FROM table WHERE August = gianna amore
Translate the following into a SQL query
Who is the January playmate with the November playmate Donna Edmondson?
SELECT January FROM table WHERE November = donna edmondson
Translate the following into a SQL query
What is the home stadium of the Tennessee Titans?
SELECT Stadium FROM table WHERE Host Team = tennessee titans
Translate the following into a SQL query
When were the Houston Texans the visiting team later in the season?
SELECT MAX Week FROM table WHERE Visiting Team = houston texans
Translate the following into a SQL query
The final score was 24-34 on what date?
SELECT Date FROM table WHERE Final Score = 24-34
Translate the following into a SQL query
What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?
SELECT SUM Gold FROM table WHERE Silver = 2 AND Total < 7
Translate the following into a SQL query
What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?
SELECT SUM Total FROM table WHERE Bronze = 7 AND Gold > 18
Translate the following into a SQL query
What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals?
SELECT MIN Gold FROM table WHERE Silver > 11 AND Rank = 1 AND Bronze < 7
Translate the following into a SQL query
What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?
SELECT MAX Total FROM table WHERE Bronze = 7 AND Silver > 12
Translate the following into a SQL query
What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals?
SELECT MIN Gold FROM table WHERE Total = 37 AND Rank = 1 AND Bronze > 7
Translate the following into a SQL query
Name the score for yuliya ustyuzhanina
SELECT Score FROM table WHERE Opponent = yuliya ustyuzhanina
Translate the following into a SQL query
Name the date for hard surface and tournament of fort walton beach
SELECT Date FROM table WHERE Surface = hard AND Tournament = fort walton beach
Translate the following into a SQL query
Name the opponent with score of 1–6, 6–4, 6–4
SELECT Opponent FROM table WHERE Score = 1–6, 6–4, 6–4
Translate the following into a SQL query
Name the score for 10 april 2007 and opponent of selima sfar
SELECT Score FROM table WHERE Date = 10 april 2007 AND Opponent = selima sfar
Translate the following into a SQL query
How many runners had placings over 8?
SELECT COUNT Runners FROM table WHERE Placing > 8
Translate the following into a SQL query
Which course had a jockey of Royston FFrench?
SELECT Course FROM table WHERE Jockey = royston ffrench
Translate the following into a SQL query
What is the average prize for the Buttercross Limited Stakes?
SELECT AVG Prize (Β£K) FROM table WHERE Race = buttercross limited stakes
Translate the following into a SQL query
How many total runners had jockeys of Olivier Peslier with placings under 2?
SELECT SUM Runners FROM table WHERE Jockey = olivier peslier AND Placing < 2
Translate the following into a SQL query
Name the games with marks of 21
SELECT Games FROM table WHERE Marks = 21
Translate the following into a SQL query
Name the kicks with goals of 1
SELECT Kicks FROM table WHERE Goals = 1
Translate the following into a SQL query
Name the goals with games of 6
SELECT Goals FROM table WHERE Games = 6
Translate the following into a SQL query
What game had the date was it with the final score of 7-23
SELECT Date FROM table WHERE Final Score = 7-23
Translate the following into a SQL query
What was the final score of the game at the astrodome?
SELECT Final Score FROM table WHERE Stadium = astrodome
Translate the following into a SQL query
What was the final score for the date of December 30?
SELECT Final Score FROM table WHERE Date = december 30
Translate the following into a SQL query
What was the name of the Visiting team at Jack Murphy Stadium?
SELECT Visiting Team FROM table WHERE Stadium = jack murphy stadium
Translate the following into a SQL query
What was the name of the host team at Texas stadium?
SELECT Host Team FROM table WHERE Stadium = texas stadium
Translate the following into a SQL query
What was the name of the host team dated December 16?
SELECT Host Team FROM table WHERE Date = december 16
Translate the following into a SQL query
Are there any Teams after 1997?
SELECT Team FROM table WHERE Year > 1997
Translate the following into a SQL query
Which class has laps under 77?
SELECT Class FROM table WHERE Laps < 77
Translate the following into a SQL query
Who boarded first class?
SELECT Boarded FROM table WHERE Class = first
Translate the following into a SQL query
What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?
SELECT MIN Attendance FROM table WHERE Away Fans < 151 AND Opponent = bury
Translate the following into a SQL query
What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?
SELECT MIN Points FROM table WHERE Year = 1978 AND Chassis = ensign n177
Translate the following into a SQL query
What are the highest number of points with an Entrant of warsteiner brewery?
SELECT MAX Points FROM table WHERE Entrant = warsteiner brewery
Translate the following into a SQL query
What is the D 43 when D 46 is R 6?
SELECT D 43 FROM table WHERE D 46 = r 6
Translate the following into a SQL query
What is the D44 when D43 is R 14?
SELECT D 44 FROM table WHERE D 43 = r 14
Translate the following into a SQL query
What is the D48 when D 43 is plurality ↑??
SELECT D 48 FROM table WHERE D 43 = plurality ↑
Translate the following into a SQL query
What is the D44 when D41 is D 16?
SELECT D 44 FROM table WHERE D 41 = d 16
Translate the following into a SQL query
What gender is the team that has a decile of 5 and in the Dalefield area?
SELECT Gender FROM table WHERE Decile = 5 AND Area = dalefield
Translate the following into a SQL query
What school in Dalefield has a roll less than 81?
SELECT Name FROM table WHERE Roll < 81 AND Area = dalefield
Translate the following into a SQL query
What is the lowest Height (m) on the island of Burray?
SELECT MIN Height (m) FROM table WHERE Island = burray
Translate the following into a SQL query
What group on the island of Faray has a Height (m) of 32 and a Population of 0?
SELECT Group FROM table WHERE Height (m) = 32 AND Population = 0 AND Island = faray
Translate the following into a SQL query
What group has a Population of see hoy?
SELECT Group FROM table WHERE Population = see hoy
Translate the following into a SQL query
What group on the island of Muckle Green Holm has a population of 0?
SELECT Group FROM table WHERE Population = 0 AND Island = muckle green holm
Translate the following into a SQL query
What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?
SELECT Area ( ha ) FROM table WHERE Height (m) > 7 AND Island = linga holm
Translate the following into a SQL query
What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?
SELECT Population FROM table WHERE Height (m) = 15 AND Area ( ha ) = 00017 17
Translate the following into a SQL query
What is the roll number of the school in Aramoho with a decile of 1?
SELECT Roll FROM table WHERE Area = aramoho AND Decile = 1
Translate the following into a SQL query
What is the area of Mangamahu primary school?
SELECT Area FROM table WHERE Name = mangamahu primary school
Translate the following into a SQL query
What is the area of the coed school with a state authority and a roll number of 122?
SELECT Area FROM table WHERE Authority = state AND Gender = coed AND Roll = 122
Translate the following into a SQL query
Which result is older than 2007?
SELECT Result / Category FROM table WHERE Year < 2007
Translate the following into a SQL query
What year was the Album/Song Speaking louder than before?
SELECT SUM Year FROM table WHERE Album / Song = speaking louder than before
Translate the following into a SQL query
What is the most recent year with the Album/Song "the best worst-case scenario"?
SELECT MAX Year FROM table WHERE Album / Song = the best worst-case scenario
Translate the following into a SQL query
What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface?
SELECT Score FROM table WHERE Surface = clay AND Partner = remi tezuka
Translate the following into a SQL query
What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament?
SELECT Score FROM table WHERE Partner = ksenia lykina AND Tournament = kurume
Translate the following into a SQL query
What was the score of the final in which Melanie South played with partner Katie O'Brien?
SELECT Score FROM table WHERE Partner = katie o'brien
Translate the following into a SQL query
What was the outcome of the tournament in Edinburgh?
SELECT Outcome FROM table WHERE Tournament = edinburgh
Translate the following into a SQL query
What is the total decile with an Authority of state, and a Name of newfield park school?
SELECT SUM Decile FROM table WHERE Authority = state AND Name = newfield park school
Translate the following into a SQL query
What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?
SELECT MAX Decile FROM table WHERE Roll > 34 AND Gender = coed AND Authority = state integrated AND Area = georgetown
Translate the following into a SQL query
What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?
SELECT MIN Roll FROM table WHERE Authority = state AND Name = newfield park school AND Decile < 2
Translate the following into a SQL query
Which name has an Area of makarewa?
SELECT Name FROM table WHERE Area = makarewa
Translate the following into a SQL query
Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131?
SELECT Name FROM table WHERE Gender = coed AND Decile > 5 AND Roll = 131
Translate the following into a SQL query
Add up all the Ends columns that have goals smaller than 0.
SELECT SUM Ends FROM table WHERE Goals < 0
Translate the following into a SQL query
What was the competition in 2003?
SELECT Competition FROM table WHERE Year = 2003
Translate the following into a SQL query
What was the competition in 2003?
SELECT Competition FROM table WHERE Year = 2003
Translate the following into a SQL query
Which position has 50+12 points and fewer than 10 draws?
SELECT MAX Position FROM table WHERE Points = 50+12 AND Draws < 10
Translate the following into a SQL query
How many positions have goals of fewer than 40 and more than 38 played?
SELECT COUNT Position FROM table WHERE Goals for < 40 AND Played > 38
Translate the following into a SQL query
How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?
SELECT SUM Losses FROM table WHERE Goal Difference < -2 AND Club = cd sabadell AND Played > 38
Translate the following into a SQL query
What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points?
SELECT AVG Played FROM table WHERE Goals for < 43 AND Draws > 9 AND Position > 17 AND Points = 30-8
Translate the following into a SQL query
What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126?
SELECT COUNT Loss FROM table WHERE Avg/G < -3.3 AND Gain > 126
Translate the following into a SQL query
What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had?
SELECT COUNT Loss FROM table WHERE Gain > 27 AND Avg/G < 55.9 AND Name = jackson, t. AND Long < 34
Translate the following into a SQL query
What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?
SELECT COUNT Long FROM table WHERE Loss = 0 AND Gain < 17 AND Avg/G > 0 AND Name = dubose, e.