instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"?
SELECT Party FROM table WHERE Results = re-elected AND First elected > 1990 AND District = minnesota 4
Translate the following into a SQL query
What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?
SELECT Incumbent FROM table WHERE Results = re-elected AND Party = democratic AND District = minnesota 7
Translate the following into a SQL query
Which Score has a Place of t5, and a Country of united states?
SELECT Score FROM table WHERE Place = t5 AND Country = united states
Translate the following into a SQL query
Name The Score of Player of seve ballesteros?
SELECT Score FROM table WHERE Player = seve ballesteros
Translate the following into a SQL query
Which Country has a Place of 2?
SELECT Country FROM table WHERE Place = 2
Translate the following into a SQL query
How many wins did they have when they had 5 losses?
SELECT Wins FROM table WHERE Losses = 5
Translate the following into a SQL query
How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?
SELECT COUNT Byes FROM table WHERE Against < 1544 AND Wins = 13 AND Draws > 0
Translate the following into a SQL query
How many byes has a draw larger than 0?
SELECT COUNT Byes FROM table WHERE Draws > 0
Translate the following into a SQL query
What is the lowest against that has less than 9 wins, and draws smaller than 0?
SELECT MIN Against FROM table WHERE Wins < 9 AND Draws < 0
Translate the following into a SQL query
What is the total number of wins that has byes less than 0?
SELECT COUNT Wins FROM table WHERE Byes < 0
Translate the following into a SQL query
What is the most money for the score 75-74-72-67=288?
SELECT MAX Money ( $ ) FROM table WHERE Score = 75-74-72-67=288
Translate the following into a SQL query
What's the American pronunciation when the Australian is əʉ?
SELECT American FROM table WHERE Australian = əʉ
Translate the following into a SQL query
What is the 17th c. pronunciation when the british is əʊ?
SELECT 17th c. FROM table WHERE British = əʊ
Translate the following into a SQL query
What is the 17th c. pronunciation when the British is i and the long vowels are e /iː/?
SELECT 17th c. FROM table WHERE British = i AND "Long" vowels = e /iː/
Translate the following into a SQL query
What's the British pronunciation when the American and Australian is i?
SELECT British FROM table WHERE American = i AND Australian = i
Translate the following into a SQL query
What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?
SELECT Height FROM table WHERE Weight = kg (lb) AND Club = sainte-foy AND Pos. = cf
Translate the following into a SQL query
What is the height of valérie dionne at Club Sainte-Foy?
SELECT Height FROM table WHERE Club = sainte-foy AND Name = valérie dionne
Translate the following into a SQL query
Who has a Date of Birth 1980-07-29?
SELECT Name FROM table WHERE Date of Birth = 1980-07-29
Translate the following into a SQL query
What is the name of the team from cisne fairfield school?
SELECT Team Name FROM table WHERE Schools = cisne fairfield
Translate the following into a SQL query
What is the name of the team from goreville vienna school?
SELECT Team Name FROM table WHERE Schools = goreville vienna
Translate the following into a SQL query
What are the colors of the team hosted by Christopher?
SELECT Colors FROM table WHERE Host = christopher
Translate the following into a SQL query
What is team 1 if Renova is team 2?
SELECT Team 1 FROM table WHERE Team 2 = renova
Translate the following into a SQL query
What is the highest to par for the 76-70-76-76=298 score?
SELECT MAX To par FROM table WHERE Score = 76-70-76-76=298
Translate the following into a SQL query
What score has a to par of 12 and is from Jersey?
SELECT Score FROM table WHERE To par = 12 AND Country = jersey
Translate the following into a SQL query
What is the average money for a to par of 15, and is from the United States?
SELECT AVG Money ( $ ) FROM table WHERE To par = 15 AND Country = united states
Translate the following into a SQL query
What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?
SELECT COUNT Money ( $ ) FROM table WHERE Place = t2 AND Country = united states AND Player = leo diegel
Translate the following into a SQL query
What county has less than $188 and a score of 74-76-73-75=298?
SELECT Country FROM table WHERE Money ( $ ) < 188 AND Score = 74-76-73-75=298
Translate the following into a SQL query
What is Opponent, when Location is "Winnipeg, Manitoba , Canada"?
SELECT Opponent FROM table WHERE Location = winnipeg, manitoba , canada
Translate the following into a SQL query
What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?
SELECT Res. FROM table WHERE Location = butte, montana , united states AND Opponent = jerome smith
Translate the following into a SQL query
What is Method, when Time is "3:20"?
SELECT Method FROM table WHERE Time = 3:20
Translate the following into a SQL query
What is Location, when Opponent is "Mario Rinaldi"?
SELECT Location FROM table WHERE Opponent = mario rinaldi
Translate the following into a SQL query
How much Grid has a Time/Retired of +0.785, and Laps larger than 29?
SELECT SUM Grid FROM table WHERE Time/Retired = +0.785 AND Laps > 29
Translate the following into a SQL query
Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?
SELECT Grid FROM table WHERE Laps > 8 AND Manufacturer = honda AND Time/Retired = retirement
Translate the following into a SQL query
How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?
SELECT SUM Laps FROM table WHERE Grid < 5 AND Time/Retired = retirement
Translate the following into a SQL query
Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?
SELECT Time/Retired FROM table WHERE Laps < 14 AND Rider = darren barton
Translate the following into a SQL query
What was the lowest lost entry for a team with fewer than 21 goals for?
SELECT MIN Lost FROM table WHERE Goals For < 21
Translate the following into a SQL query
What was the position has a played entry of more than 24?
SELECT COUNT Position FROM table WHERE Played > 24
Translate the following into a SQL query
What is the highest position for Nelson, with a played entry of more than 24?
SELECT MAX Position FROM table WHERE Team = nelson AND Played > 24
Translate the following into a SQL query
What was the average Lost entry for Newton, for games with a drawn less than 5?
SELECT AVG Lost FROM table WHERE Team = newton AND Drawn < 5
Translate the following into a SQL query
What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?
SELECT MAX Lost FROM table WHERE Drawn < 6 AND Goals Against < 44 AND Points 1 = 27
Translate the following into a SQL query
Who has a Snatch of 157.0?
SELECT Name FROM table WHERE Snatch = 157.0
Translate the following into a SQL query
What is the total bodyweight of everyone that has a Snatch of 153.0?
SELECT SUM Bodyweight FROM table WHERE Snatch = 153.0
Translate the following into a SQL query
What ranking is the Battersea Power Station?
SELECT Rank FROM table WHERE Name = battersea power station
Translate the following into a SQL query
What ranking is the structure with 01.0 87 floors?
SELECT Rank FROM table WHERE Floors = 01.0 87
Translate the following into a SQL query
What is the highest Attendance, when Date is "Oct. 26"?
SELECT MAX Attendance FROM table WHERE Date = oct. 26
Translate the following into a SQL query
What is the lowest Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267?
SELECT MIN Opponents FROM table WHERE Raiders points > 38 AND Attendance > 51,267
Translate the following into a SQL query
What is the total number of Opponents, when Raiders Points is "42", when Attendance is less than 52,505?
SELECT COUNT Opponents FROM table WHERE Raiders points = 42 AND Attendance < 52,505
Translate the following into a SQL query
What is the total number of Raiders First Downs, when Date is "Nov. 2", and when Raiders Points is greater than 42?
SELECT COUNT Raiders first downs FROM table WHERE Date = nov. 2 AND Raiders points > 42
Translate the following into a SQL query
What is the average Tournaments, when Highest Rank is "Maegashira 1"?
SELECT AVG Tournaments FROM table WHERE Highest rank = maegashira 1
Translate the following into a SQL query
What is Top Division Debut, when Tournaments is "12", and when Name is "Yamamotoyama"?
SELECT Top division debut FROM table WHERE Tournaments = 12 AND Name = yamamotoyama
Translate the following into a SQL query
What is the lowest Tournaments, when Name is "Baruto"?
SELECT MIN Tournaments FROM table WHERE Name = baruto
Translate the following into a SQL query
What is the highest Tournaments, when Pro Debut is "July 2002"?
SELECT MAX Tournaments FROM table WHERE Pro Debut = july 2002
Translate the following into a SQL query
What is Pro Debut, when Tournament is greater than 11, and when Highest Rank is "Maegashira 1"?
SELECT Pro Debut FROM table WHERE Tournaments > 11 AND Highest rank = maegashira 1
Translate the following into a SQL query
How many League Cup Goals have 0 as the total goals, with delroy facey as the name?
SELECT COUNT League Cup Goals FROM table WHERE Total Goals = 0 AND Name = delroy facey
Translate the following into a SQL query
How many total goals have 0 (3) as total apps, with league goals less than 0?
SELECT COUNT Total Goals FROM table WHERE Total Apps = 0 (3) AND League Goals < 0
Translate the following into a SQL query
What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps?
SELECT MIN League Goals FROM table WHERE FA Cup Apps = 0 AND Total Apps = 1 (3)
Translate the following into a SQL query
What was Stockholm's score when Malmo scored 2?
SELECT Stockholm FROM table WHERE Malmö = 2
Translate the following into a SQL query
What did Vaxjo score when Karlstad scored 1?
SELECT Växjö FROM table WHERE Karlstad = 1
Translate the following into a SQL query
What did Sundsvall score when Falun scored 2?
SELECT Sundsvall FROM table WHERE Falun = 2
Translate the following into a SQL query
What was the highest total when Norrkoping scored 12?
SELECT MAX Total FROM table WHERE Norrköping = 12
Translate the following into a SQL query
What did Orebro score when Umea scored 2?
SELECT Örebro FROM table WHERE Umeå = 2
Translate the following into a SQL query
What was the result of the game that was attended by 80,886 people?
SELECT Result FROM table WHERE Attendance = 80,886
Translate the following into a SQL query
What was the result of the game that was attended by 72,703 people?
SELECT Result FROM table WHERE Attendance = 72,703
Translate the following into a SQL query
What was the result of the game that was attended by 41,650 people?
SELECT Result FROM table WHERE Attendance = 41,650
Translate the following into a SQL query
When was the game against Indiana?
SELECT Date FROM table WHERE Opponent# = indiana
Translate the following into a SQL query
Which country is Brian Henninger from, who had a score larger than 69?
SELECT Country FROM table WHERE Score > 69 AND Player = brian henninger
Translate the following into a SQL query
What is Darren Clarke's total score?
SELECT COUNT Score FROM table WHERE Player = darren clarke
Translate the following into a SQL query
Who was the away team on 9 February 1988?
SELECT Away team FROM table WHERE Date = 9 february 1988
Translate the following into a SQL query
Who was the away team on 30 January 1988, when the home team was Everton?
SELECT Away team FROM table WHERE Home team = everton AND Date = 30 january 1988
Translate the following into a SQL query
On which date was the Tie no 2?
SELECT Date FROM table WHERE Tie no = 2
Translate the following into a SQL query
What was the Tie no when Manchester United was the home team?
SELECT Tie no FROM table WHERE Home team = manchester united
Translate the following into a SQL query
What was the score when the Tie no was 9?
SELECT Score FROM table WHERE Tie no = 9
Translate the following into a SQL query
Which away team goes against the home team Mauritius?
SELECT Away Team FROM table WHERE Home Team = mauritius
Translate the following into a SQL query
Who is the away team that goes against Team Zambia?
SELECT Away Team FROM table WHERE Home Team = zambia
Translate the following into a SQL query
Which away team has Tie no 3?
SELECT Away team FROM table WHERE Tie no = 3
Translate the following into a SQL query
What is the away team playing at Everton?
SELECT Away team FROM table WHERE Home team = everton
Translate the following into a SQL query
What is the home team that Bradford City is playing against?
SELECT Home team FROM table WHERE Away team = bradford city
Translate the following into a SQL query
Which Location has a Method of decision (unanimous), and Res of win x?
SELECT Location FROM table WHERE Method = decision (unanimous) AND Res. = win x
Translate the following into a SQL query
Which Round has a Time of 0:37?
SELECT Round FROM table WHERE Time = 0:37
Translate the following into a SQL query
Which result has a Record of 16-6?
SELECT Res. FROM table WHERE Record = 16-6
Translate the following into a SQL query
What Champion had a Score of 9–1?
SELECT Champion FROM table WHERE Score = 9–1
Translate the following into a SQL query
What score has 3 as the place?
SELECT Score FROM table WHERE Place = 3
Translate the following into a SQL query
What player has t7 as the place, with tje United States as the country?
SELECT Player FROM table WHERE Place = t7 AND Country = united states
Translate the following into a SQL query
What score has hal sutton as the player?
SELECT Score FROM table WHERE Player = hal sutton
Translate the following into a SQL query
Who was the artist before 2010 with a Promotional 7" as a format?
SELECT Artist FROM table WHERE Year < 2010 AND Format = promotional 7"
Translate the following into a SQL query
Who was the artist after 2012 with CD, LP as the format?
SELECT Artist FROM table WHERE Year > 2012 AND Format = cd, lp
Translate the following into a SQL query
What year had a title of Die Shaolin Affen EP and EP as the type?
SELECT AVG Year FROM table WHERE Type = ep AND Title = die shaolin affen ep
Translate the following into a SQL query
What is the title of the Misfits with a CD format?
SELECT Title FROM table WHERE Format = cd AND Artist = misfits
Translate the following into a SQL query
What was the highest number of bronze medals for the entry with rank 2 and fewer than 3 silver medals?
SELECT MAX Bronze FROM table WHERE Rank = 2 AND Silver < 3
Translate the following into a SQL query
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
SELECT AVG Gold FROM table WHERE Total < 4 AND Nation = brazil AND Bronze > 1
Translate the following into a SQL query
What is the sum of silver medals for the entry with rank 3 and a total of 4 medals?
SELECT SUM Silver FROM table WHERE Total = 4 AND Rank = 3
Translate the following into a SQL query
What shows for 3:30 pm when 1:00 is All My Children?
SELECT 3:30 pm FROM table WHERE 1:00 pm = all my children
Translate the following into a SQL query
What shows for 3:30 pm when 2:00 pm is local programs?
SELECT 6:30 pm FROM table WHERE 2:00 pm = local programs
Translate the following into a SQL query
What shows for 3:30 pm when 1:30 pm is the bold and the beautiful?
SELECT 3:30 pm FROM table WHERE 1:30 pm = the bold and the beautiful
Translate the following into a SQL query
What shows for 3:30 pm when 1:30 pm is local programs, and a 7:00 am is local programs?
SELECT 11:00 am FROM table WHERE 1:30 pm = local programs AND 7:00 am = local programs
Translate the following into a SQL query
What shows for 3:30 pm when 12:30 pm is the young and the restless?
SELECT noon FROM table WHERE 12:30 pm = the young and the restless
Translate the following into a SQL query
What shows for 3:30 pm when 2:30 pm is local programs?
SELECT 5:00 pm FROM table WHERE 2:30 pm = local programs
Translate the following into a SQL query
What season had a goal of 1?
SELECT Season FROM table WHERE Goals = 1
Translate the following into a SQL query
What club was in Netherlands and had 22 goals?
SELECT Club FROM table WHERE Country = netherlands AND Goals = 22
Translate the following into a SQL query
What season had Belgium and 1 goal?
SELECT Season FROM table WHERE Country = belgium AND Goals = 1