instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Where is moving to the type loaned out under the name tragodara?
SELECT Moving to FROM table WHERE Type = loaned out AND Name = tragodara
Translate the following into a SQL query
What is the name when moving to atlético minero?
SELECT Name FROM table WHERE Moving to = atlético minero
Translate the following into a SQL query
what is the type movinig to alianza atlético?
SELECT Type FROM table WHERE Moving to = alianza atlético
Translate the following into a SQL query
what is the name moving to atlético minero?
SELECT Name FROM table WHERE Moving to = atlético minero
Translate the following into a SQL query
What is the surface on 15 August 2009?
SELECT Surface FROM table WHERE Date = 15 august 2009
Translate the following into a SQL query
How many seats does the party of others have with a change of -1 and more than 0% votes?
SELECT SUM Seats FROM table WHERE Change = -1 AND Party = others AND % votes > 0
Translate the following into a SQL query
What are the fewest seats with a -3.7% change and more than 4.7% votes?
SELECT MIN Seats FROM table WHERE % change = -3.7 AND % votes > 4.7
Translate the following into a SQL query
What is the change number with fewer than 4.7% votes and more than 0 seats?
SELECT SUM Change FROM table WHERE % votes < 4.7 AND Seats > 0
Translate the following into a SQL query
What are the fewest seats with fewer than 5.4% seats and more than -1 change?
SELECT MIN Seats FROM table WHERE % votes < 5.4 AND Change > -1
Translate the following into a SQL query
What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?
SELECT Score in the final FROM table WHERE Partner = olga lugina AND Tournament = poitiers , france itf $25,000
Translate the following into a SQL query
What surface did Ruxandra Dragomir play on?
SELECT Surface FROM table WHERE Partner = ruxandra dragomir
Translate the following into a SQL query
Who had the opponent of Lenka Cenková kateřina šišková in the final?
SELECT Partner FROM table WHERE Opponents in the final = lenka cenková kateřina šišková
Translate the following into a SQL query
What tournament had an opponent of Els Callens Nancy Feber?
SELECT Tournament FROM table WHERE Opponents in the final = els callens nancy feber
Translate the following into a SQL query
What kind of Winning driver has a Winning constructor of mercer?
SELECT Winning driver FROM table WHERE Winning constructor = mercer
Translate the following into a SQL query
Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?
SELECT Winning driver FROM table WHERE Winning constructor = mercedes AND Name = elgin trophy
Translate the following into a SQL query
Name the Report of tourist trophy?
SELECT Report FROM table WHERE Name = tourist trophy
Translate the following into a SQL query
Name the Winning constructor on 31 may and a Circuit of madonie?
SELECT Winning constructor FROM table WHERE Date = 31 may AND Circuit = madonie
Translate the following into a SQL query
Name the Date of mercedes, and a Circuit of elgin?
SELECT Date FROM table WHERE Winning constructor = mercedes AND Circuit = elgin
Translate the following into a SQL query
Name the Winning driver of mercedes on 22 august?
SELECT Winning driver FROM table WHERE Winning constructor = mercedes AND Date = 22 august
Translate the following into a SQL query
Which coach had a 2007-2008 season of 6th?
SELECT Coach FROM table WHERE 2007-2008 season = 6th
Translate the following into a SQL query
Which stadium did Rashid Budaj coach?
SELECT Stadium FROM table WHERE Coach = rashid budaj
Translate the following into a SQL query
Who coached for al farwaniyah?
SELECT Coach FROM table WHERE City = al farwaniyah
Translate the following into a SQL query
Who was the coach for qadsia?
SELECT Coach FROM table WHERE Club = qadsia
Translate the following into a SQL query
Which stadium had the club Kuwait?
SELECT Stadium FROM table WHERE Club = kuwait
Translate the following into a SQL query
What's the score in 1990?
SELECT Score FROM table WHERE Year = 1990
Translate the following into a SQL query
Who was the champion of the Philips Open with a runner-up of Javier Sánchez?
SELECT Champion FROM table WHERE Name = philips open AND Runner-up = javier sánchez
Translate the following into a SQL query
What's the score of the Nice International Championships where Björn Borg was the champion?
SELECT Score FROM table WHERE Name = nice international championships AND Champion = björn borg
Translate the following into a SQL query
What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?
SELECT Year FROM table WHERE Score = 6–2, 2–6, 5–7, 7–6, 8–6
Translate the following into a SQL query
What's the name when Henrik Sundström was champion?
SELECT Name FROM table WHERE Champion = henrik sundström
Translate the following into a SQL query
When the away team was Bolton Wanderers, what was the score?
SELECT Score FROM table WHERE Away team = bolton wanderers
Translate the following into a SQL query
On the date of 30/01/1991, when the away team was Liverpool, what was the score?
SELECT Score FROM table WHERE Date = 30/01/1991 AND Away team = liverpool
Translate the following into a SQL query
When the tie no was 1, what was the score?
SELECT Score FROM table WHERE Tie no = 1
Translate the following into a SQL query
When the home team was Shrewsbury town, what was the score?
SELECT Score FROM table WHERE Home team = shrewsbury town
Translate the following into a SQL query
When the home team was Woking, what was the tie no?
SELECT Tie no FROM table WHERE Home team = woking
Translate the following into a SQL query
How many people attended the game against away team Cambridge City?
SELECT Attendance FROM table WHERE Away team = cambridge city
Translate the following into a SQL query
Who was the home team that played against Aylesbury Vale?
SELECT Home team FROM table WHERE Away team = aylesbury vale
Translate the following into a SQL query
Which home team has 44 ties?
SELECT Home team FROM table WHERE Tie no = 44
Translate the following into a SQL query
How many people attended the game with home team Witton Albion?
SELECT Attendance FROM table WHERE Home team = witton albion
Translate the following into a SQL query
What was the attendance at the Billericay Town home game?
SELECT Attendance FROM table WHERE Home team = billericay town
Translate the following into a SQL query
What was the tie number of the away game for Ashford Town (Middx)?
SELECT Tie no FROM table WHERE Away team = ashford town (middx)
Translate the following into a SQL query
What was the attendance at the Billericay Town home game?
SELECT Attendance FROM table WHERE Home team = billericay town
Translate the following into a SQL query
Who was the away team at the game attended by 81?
SELECT Away team FROM table WHERE Attendance = 81
Translate the following into a SQL query
What score has a tie of 5?
SELECT Score FROM table WHERE Tie no = 5
Translate the following into a SQL query
What was the date of the game that tied at 3?
SELECT Date FROM table WHERE Tie no = 3
Translate the following into a SQL query
What is European Release Date, when North American Release Date is "2013-03-05"?
SELECT European Release Date FROM table WHERE North American Release Date = 2013-03-05
Translate the following into a SQL query
What is Japanese Release Date, when Australia Release Date is "2006-03-23"?
SELECT Japanese Release Date FROM table WHERE Australia Release Date = 2006-03-23
Translate the following into a SQL query
What is North American Release Date, when Japanese Release Date is "2011-06-23"?
SELECT North American Release Date FROM table WHERE Japanese Release Date = 2011-06-23
Translate the following into a SQL query
What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?
SELECT SUM Goal Difference FROM table WHERE Draws = 8 AND Goals against = 32 AND Wins < 12
Translate the following into a SQL query
What's the lowest goal difference when the position is higher than 16?
SELECT MIN Goal Difference FROM table WHERE Position > 16
Translate the following into a SQL query
Which venue was the opposing team New Zealand on 22/11/1997?
SELECT Venue FROM table WHERE Opposing Teams = new zealand AND Date = 22/11/1997
Translate the following into a SQL query
What day was the opposing team Australia and the against 25?
SELECT Date FROM table WHERE Against = 25 AND Opposing Teams = australia
Translate the following into a SQL query
What was the status for the opposing team South Africa?
SELECT Status FROM table WHERE Opposing Teams = south africa
Translate the following into a SQL query
What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?
SELECT AVG League Goals FROM table WHERE FA Cup Goals = 0 AND Position = mf AND League Cup Apps = 0 AND Name = ben thornley
Translate the following into a SQL query
What is the Total Apps when League Cup Apps is 0 (1), and position is df?
SELECT Total Apps FROM table WHERE League Cup Apps = 0 (1) AND Position = df
Translate the following into a SQL query
What is the total goals for Mark Ward?
SELECT MIN Total Goals FROM table WHERE Name = mark ward
Translate the following into a SQL query
What is the political party of Jackie Goldberg?
SELECT Party FROM table WHERE Name = jackie goldberg
Translate the following into a SQL query
During what years was Christine Kehoe in Assembly?
SELECT Years in Assembly FROM table WHERE Name = christine kehoe
Translate the following into a SQL query
What were the San Francisco resident's years in assembly?
SELECT Years in Assembly FROM table WHERE Residence = san francisco
Translate the following into a SQL query
What political party does the person from San Diego belong to?
SELECT Party FROM table WHERE Residence = san diego
Translate the following into a SQL query
Which Opposing Teams is on 06/02/1988?
SELECT Opposing Teams FROM table WHERE Date = 06/02/1988
Translate the following into a SQL query
When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in?
SELECT Date FROM table WHERE Status = five nations AND Venue = twickenham , london AND Opposing Teams = ireland
Translate the following into a SQL query
What's the attendance when the opponents are cambridge united?
SELECT Attendance FROM table WHERE Opponents = cambridge united
Translate the following into a SQL query
What's the average attendance when the opponents are dundalk?
SELECT AVG Attendance FROM table WHERE Opponents = dundalk
Translate the following into a SQL query
What's the total attendance for H/A of A and opponents of wolverhampton wanderers?
SELECT COUNT Attendance FROM table WHERE H / A = a AND Opponents = wolverhampton wanderers
Translate the following into a SQL query
Which Total has a Gold smaller than 4?
SELECT MIN Total FROM table WHERE Gold < 4
Translate the following into a SQL query
Which Rank has a Nation of china (chn), and a Bronze smaller than 4?
SELECT MAX Rank FROM table WHERE Nation = china (chn) AND Bronze < 4
Translate the following into a SQL query
How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4?
SELECT COUNT Total FROM table WHERE Bronze < 13 AND Nation = netherlands (ned) AND Gold > 4
Translate the following into a SQL query
Which website was founded before 1897, and is located in Adaminaby?
SELECT Website FROM table WHERE Founded < 1897 AND Suburb/Town = adaminaby
Translate the following into a SQL query
Which website is located in Albury and has a school of Albury High School?
SELECT Website FROM table WHERE Suburb/Town = albury AND School = albury high school
Translate the following into a SQL query
What is the average year founded that is located in Broken Hill and has school years of k-6?
SELECT AVG Founded FROM table WHERE Years = k-6 AND Suburb/Town = broken hill
Translate the following into a SQL query
What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school?
SELECT Suburb/Town FROM table WHERE Years = k-6 AND Founded < 1875 AND School = ashfield public school
Translate the following into a SQL query
What is the year Airds High School was founded?
SELECT Founded FROM table WHERE School = airds high school
Translate the following into a SQL query
Which website has 1921 as the year founded?
SELECT Website FROM table WHERE Founded = 1921
Translate the following into a SQL query
What Score points has a Rank points of defending champion?
SELECT Score points FROM table WHERE Rank points = defending champion
Translate the following into a SQL query
What Rank points has an Event of wc beijing, and Score points of 11?
SELECT Rank points FROM table WHERE Event = wc beijing AND Score points = 11
Translate the following into a SQL query
What Shooter has a Total of 28?
SELECT Shooter FROM table WHERE Total = 28
Translate the following into a SQL query
What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4?
SELECT Shooter FROM table WHERE Event = wc beijing AND Total = 16 AND Rank points = 4
Translate the following into a SQL query
What is the average against of Murrayfield, Edinburgh?
SELECT AVG Against FROM table WHERE Venue = murrayfield, edinburgh
Translate the following into a SQL query
What is the status of the Wales opposing team?
SELECT Status FROM table WHERE Opposing Teams = wales
Translate the following into a SQL query
What date has an against of 7?
SELECT Date FROM table WHERE Against = 7
Translate the following into a SQL query
What District was Incumbent Steve Israel First elected after 1998 in the Democratic party?
SELECT District FROM table WHERE First elected > 1998 AND Party = democratic AND Incumbent = steve israel
Translate the following into a SQL query
What are the results of a first elected prior to year 1982?
SELECT Results FROM table WHERE First elected < 1982
Translate the following into a SQL query
Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected?
SELECT Incumbent FROM table WHERE Party = democratic AND Results = re-elected AND First elected > 1992 AND District = new york 1
Translate the following into a SQL query
What is Gene Sauers' to par?
SELECT To par FROM table WHERE Player = gene sauers
Translate the following into a SQL query
Where is john daly of united states from?
SELECT Place FROM table WHERE Country = united states AND Player = john daly
Translate the following into a SQL query
What is the average rank of the city of el paso, which has a population greater than 672,538?
SELECT AVG Rank FROM table WHERE City = el paso AND Population > 672,538
Translate the following into a SQL query
What is the state of the city of denver, which has a rank less than 10?
SELECT State FROM table WHERE Rank < 10 AND City = denver
Translate the following into a SQL query
What is the result when the round is less than 3, the location is in Auckland, New Zealand, and tko is the method?
SELECT Result FROM table WHERE Round < 3 AND Location = auckland, new zealand AND Method = tko
Translate the following into a SQL query
What is the smallest round to have a record of 4-0?
SELECT MIN Round FROM table WHERE Record = 4-0
Translate the following into a SQL query
What is the result of a round greater than 3?
SELECT Result FROM table WHERE Round > 3
Translate the following into a SQL query
Which event has Toa Naketoatama as an opponent?
SELECT Event FROM table WHERE Opponent = toa naketoatama
Translate the following into a SQL query
How many kills have 15 as the injured, with a year prior to 1987?
SELECT SUM Killed FROM table WHERE Injured = 15 AND Year < 1987
Translate the following into a SQL query
What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"?
SELECT Date FROM table WHERE Opposing Teams = south africa AND Venue = vodacom park , bloemfontein
Translate the following into a SQL query
What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams is "U.S.A."?
SELECT AVG Against FROM table WHERE Status = 2007 rugby world cup AND Opposing Teams = u.s.a.
Translate the following into a SQL query
What is Venue, when Status is "2007 Rugby World Cup", when Against is less than 22, and when Date is "08/09/2007"?
SELECT Venue FROM table WHERE Status = 2007 rugby world cup AND Against < 22 AND Date = 08/09/2007
Translate the following into a SQL query
What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"?
SELECT MIN Against FROM table WHERE Status = first test AND Date = 26/05/2007
Translate the following into a SQL query
What is Opposing Teams, when Against is "20", and when Venue is "Twickenham , London"?
SELECT Opposing Teams FROM table WHERE Against = 20 AND Venue = twickenham , london
Translate the following into a SQL query
What is the record when Danilo Pereira was the opponent?
SELECT Record FROM table WHERE Opponent = danilo pereira
Translate the following into a SQL query
Which event had Edson Claas Vieira as an opponent?
SELECT Event FROM table WHERE Opponent = edson claas vieira
Translate the following into a SQL query
Which method was used when Rafael Cavalcante was the opponent?
SELECT Method FROM table WHERE Opponent = rafael cavalcante