instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who constructed olivier panis' car that retired after +1 lap?
SELECT Constructor FROM table WHERE Time/Retired = +1 lap AND Driver = olivier panis
Translate the following into a SQL query
What is the high assists of Hamilton (24)?
SELECT High assists FROM table WHERE High points = hamilton (24)
Translate the following into a SQL query
What series had a high points of Prince (23)?
SELECT Series FROM table WHERE High points = prince (23)
Translate the following into a SQL query
What category of the British Soap Awards resulted in nominated?
SELECT Category FROM table WHERE Awards = british soap awards AND Result = nominated
Translate the following into a SQL query
What category was nominated in 2010 fo the British Soap Awards?
SELECT Category FROM table WHERE Year = 2010 AND Result = nominated AND Awards = british soap awards
Translate the following into a SQL query
Which country is Dyer from?
SELECT Country FROM table WHERE Name = dyer
Translate the following into a SQL query
What country is the athlete moving from Everton from?
SELECT Country FROM table WHERE Moving from = everton
Translate the following into a SQL query
Name the tournament for 2009 2r
SELECT Tournament FROM table WHERE 2009 = 2r
Translate the following into a SQL query
Name the 2011 for 2009 being 2r at wimbledon
SELECT 2011 FROM table WHERE 2009 = 2r AND Tournament = wimbledon
Translate the following into a SQL query
Name the 2012 for 2009 of 1r
SELECT 2012 FROM table WHERE 2009 = 1r
Translate the following into a SQL query
Who was the away team when the home team was South Melbourne?
SELECT Away team FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
What is the high assist total for players from 2010 and under 76 rebounds?
SELECT MAX Asts FROM table WHERE From = 2010 AND Rebs < 76
Translate the following into a SQL query
What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida?
SELECT COUNT Swimsuit FROM table WHERE Evening Gown > 9.48 AND Country = florida AND Interview > 8.94
Translate the following into a SQL query
What is the total average for swimsuits smaller than 9.62 in Colorado?
SELECT SUM Average FROM table WHERE Swimsuit < 9.62 AND Country = colorado
Translate the following into a SQL query
What was the bronze medal count of the team that finished with 47 total medals?
SELECT AVG Bronze FROM table WHERE Total = 47
Translate the following into a SQL query
What is the silver medal count of the team that finished with 8 bronze medals?
SELECT SUM Silver FROM table WHERE Bronze = 8
Translate the following into a SQL query
What is the status of rené hoppe?
SELECT Status FROM table WHERE Athlete = rené hoppe
Translate the following into a SQL query
How many times does Switzerland have under 7 golds and less than 3 silvers?
SELECT COUNT Total FROM table WHERE Country = switzerland AND Gold < 7 AND Silver < 3
Translate the following into a SQL query
What athlete has less than 7 gold and 14 total medals?
SELECT Athlete FROM table WHERE Gold < 7 AND Total = 14
Translate the following into a SQL query
What is the average crowd size for the home team hawthorn?
SELECT AVG Crowd FROM table WHERE Home team = hawthorn
Translate the following into a SQL query
Where did the away team score 8.13 (61)?
SELECT Venue FROM table WHERE Away team score = 8.13 (61)
Translate the following into a SQL query
When did the home team score 9.13 (67)?
SELECT Date FROM table WHERE Home team score = 9.13 (67)
Translate the following into a SQL query
Where does St Kilda play?
SELECT Venue FROM table WHERE Home team = st kilda
Translate the following into a SQL query
Who was the home team when Fitzroy was the away team?
SELECT Home team FROM table WHERE Away team = fitzroy
Translate the following into a SQL query
What was the home team score at Kardinia Park?
SELECT Home team score FROM table WHERE Venue = kardinia park
Translate the following into a SQL query
What was the lowest crowd size for the Carlton at home?
SELECT MIN Crowd FROM table WHERE Home team = carlton
Translate the following into a SQL query
Name the engine with rounds of 7 with geki driver
SELECT Engine FROM table WHERE Rounds = 7 AND Driver = geki
Translate the following into a SQL query
Name the driver for 3 rounds
SELECT Driver FROM table WHERE Rounds = 3
Translate the following into a SQL query
What was the attendance of the North Melbourne's home game?
SELECT COUNT Crowd FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
What was the attendance at the Fitzroy home game?
SELECT SUM Crowd FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
What was Richmond's highest attendance?
SELECT MAX Crowd FROM table WHERE Home team = richmond
Translate the following into a SQL query
Which ground is match 4 held on?
SELECT Ground FROM table WHERE Match = 4
Translate the following into a SQL query
Which game number did they play the Chicago team?
SELECT Game FROM table WHERE Team = chicago
Translate the following into a SQL query
What was the season record when the location attendance was Air Canada Centre 19,800?
SELECT Record FROM table WHERE Location Attendance = air canada centre 19,800
Translate the following into a SQL query
Name the visitor for home of ny rangers
SELECT Visitor FROM table WHERE Home = ny rangers
Translate the following into a SQL query
What is the label for a CD released in 2004?
SELECT Label FROM table WHERE Media = cd AND Release Date = 2004
Translate the following into a SQL query
Who made a release in the US in 1982?
SELECT Label FROM table WHERE Release Date = 1982 AND Country = us
Translate the following into a SQL query
On which date did a home team score 6.17 (53)?
SELECT Date FROM table WHERE Home team score = 6.17 (53)
Translate the following into a SQL query
In the match where the venue was arden street oval, what was the crowd attendance?
SELECT SUM Crowd FROM table WHERE Venue = arden street oval
Translate the following into a SQL query
What was the crowd attendance in the match at punt road oval?
SELECT SUM Crowd FROM table WHERE Venue = punt road oval
Translate the following into a SQL query
What team played st kilda at their home with a crowd larger than 12,528?
SELECT Away team FROM table WHERE Crowd > 12,528 AND Home team = st kilda
Translate the following into a SQL query
What was the score when the home team had a crowd larger than 21,188?
SELECT Home team score FROM table WHERE Crowd > 21,188
Translate the following into a SQL query
Where did north melbourne play while away?
SELECT Venue FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
What did the team score at home in north melbourne?
SELECT Home team score FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
What is the computation for 5 or less TD's?
SELECT AVG Comp% FROM table WHERE TD's < 5
Translate the following into a SQL query
What was the time of the driver in grid 2?
SELECT Time/Retired FROM table WHERE Grid < 2
Translate the following into a SQL query
What time did Carroll Shelby have in Grid 14?
SELECT Time/Retired FROM table WHERE Grid < 14 AND Driver = carroll shelby
Translate the following into a SQL query
What time did the ferrari car that finished 62 laps have?
SELECT Time/Retired FROM table WHERE Laps < 62 AND Constructor = ferrari
Translate the following into a SQL query
What is the date of the game where the vistor team was the Knicks and more than 18,165 were in attendance?
SELECT Date FROM table WHERE Visitor = knicks AND Attendance > 18,165
Translate the following into a SQL query
Whats teo fabi average lap time while having less than 9 grids?
SELECT AVG Laps FROM table WHERE Driver = teo fabi AND Grid < 9
Translate the following into a SQL query
Which driver drove in grid 19?
SELECT Driver FROM table WHERE Grid = 19
Translate the following into a SQL query
Who was the opponent on April 29?
SELECT Opponent FROM table WHERE Date = april 29
Translate the following into a SQL query
How many attended the game on April 17?
SELECT SUM Attendance FROM table WHERE Date = april 17
Translate the following into a SQL query
What is the record on April 3?
SELECT Record FROM table WHERE Date = april 3
Translate the following into a SQL query
What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?
SELECT Weight FROM table WHERE Internal storage = 16-64 gb AND Wireless network = wi-fi, 3g
Translate the following into a SQL query
Which wireless network did LCD displays with 4 GB of internal storage use?
SELECT Wireless network FROM table WHERE Screen type = lcd AND Internal storage = 4 gb
Translate the following into a SQL query
What's the lowest number of draws when the wins are less than 15, and against is 1228?
SELECT MIN Draws FROM table WHERE Wins < 15 AND Against = 1228
Translate the following into a SQL query
What's the sum of draws for against larger than 1228 with fewer than 1 wins?
SELECT SUM Draws FROM table WHERE Against > 1228 AND Wins < 1
Translate the following into a SQL query
On what dates did Jim Jarmusch win the Lifetime Achievement?
SELECT Dates FROM table WHERE Lifetime Achievement = jim jarmusch
Translate the following into a SQL query
Which team was the home team when Colorado was the visitor and the record became 26–15–9?
SELECT Home FROM table WHERE Visitor = colorado AND Record = 26–15–9
Translate the following into a SQL query
What was the score when the record became 25–14–9?
SELECT Score FROM table WHERE Record = 25–14–9
Translate the following into a SQL query
What was the date the record became 26–14–9?
SELECT Date FROM table WHERE Record = 26–14–9
Translate the following into a SQL query
What team was the home team when Colorado was the visitor and the record became 22–13–6?
SELECT Home FROM table WHERE Visitor = colorado AND Record = 22–13–6
Translate the following into a SQL query
What's the venue for the asian games tournament?
SELECT Venue FROM table WHERE Tournament = asian games
Translate the following into a SQL query
Which tournament resulted in 6th place?
SELECT Tournament FROM table WHERE Result = 6th
Translate the following into a SQL query
What's the latest year that Doha, Qatar hosted a tournament?
SELECT MAX Year FROM table WHERE Venue = doha, qatar
Translate the following into a SQL query
What's the average of all years tournaments were hosted in Doha, Qatar?
SELECT AVG Year FROM table WHERE Venue = doha, qatar
Translate the following into a SQL query
What is the overall draft number for the running back drafted after round 1 from fresno state?
SELECT SUM Overall FROM table WHERE Position = running back AND Round > 1 AND College = fresno state
Translate the following into a SQL query
What is the overall total for players drafted from notre dame?
SELECT SUM Overall FROM table WHERE College = notre dame
Translate the following into a SQL query
Name the sum of gold which has a silver more than 1
SELECT SUM Gold FROM table WHERE Silver > 1
Translate the following into a SQL query
Name the average rank for west germany when gold is more than 1
SELECT AVG Rank FROM table WHERE Nation = west germany AND Gold > 1
Translate the following into a SQL query
Name the average rank for when bronze is more than 1
SELECT AVG Rank FROM table WHERE Bronze > 1
Translate the following into a SQL query
I want the sum of gold for silver being less than 0
SELECT SUM Gold FROM table WHERE Silver < 0
Translate the following into a SQL query
Which 2011–12 has a 2010–11 smaller than 26.016, and a Rank 2013 larger than 20, and a Club of rubin kazan?
SELECT AVG 2011–12 FROM table WHERE 2010–11 < 26.016 AND Rank 2013 > 20 AND Club = rubin kazan
Translate the following into a SQL query
Which Rank 2014 has a 2009–10 of 21.233?
SELECT AVG Rank 2014 FROM table WHERE 2009–10 = 21.233
Translate the following into a SQL query
Which 2013–14 has a Rank 2014 smaller than 23, and a 2011–12 larger than 19.1, and a Rank 2013 of 14?
SELECT AVG 2013–14 FROM table WHERE Rank 2014 < 23 AND 2011–12 > 19.1 AND Rank 2013 = 14
Translate the following into a SQL query
What are the polling dates when Larry O'Brien has 37%?
SELECT Polling Dates FROM table WHERE Larry O'Brien = 37%
Translate the following into a SQL query
What dates and firm does Larry O'Brien have 18% when Terry Kilrea dropped out?
SELECT Terry Kilrea (dropped out) FROM table WHERE Larry O'Brien = 18%
Translate the following into a SQL query
What dates does Alex Munter have 25% and the polling firm of Decima?
SELECT Polling Dates FROM table WHERE Alex Munter = 25% AND Polling Firm = decima
Translate the following into a SQL query
What are the Decima polling dates when Larry O'Brien has 37%?
SELECT Polling Dates FROM table WHERE Polling Firm = decima AND Larry O'Brien = 37%
Translate the following into a SQL query
What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?
SELECT Terry Kilrea (dropped out) FROM table WHERE Polling Firm = holinshed AND Bob Chiarelli = 22.5%
Translate the following into a SQL query
What is Date, when Outcome is "Runner Up", and when Opponent is "Lu Jiaxiang"?
SELECT Date FROM table WHERE Outcome = runner up AND Opponent = lu jiaxiang
Translate the following into a SQL query
What is Opponent, when Tournament is "Phuket , Thailand"?
SELECT Opponent FROM table WHERE Tournament = phuket , thailand
Translate the following into a SQL query
What is Surface, when Tournament is "Saint Joseph , United States"?
SELECT Surface FROM table WHERE Tournament = saint joseph , united states
Translate the following into a SQL query
What is Tournament, when Opponent is "Lu Jiaxiang"?
SELECT Tournament FROM table WHERE Opponent = lu jiaxiang
Translate the following into a SQL query
What is Outcome, when Tournament is "Chiang Mai , Thailand"?
SELECT Outcome FROM table WHERE Tournament = chiang mai , thailand
Translate the following into a SQL query
What is Outcome, when Date is "19 September 2012"?
SELECT Outcome FROM table WHERE Date = 19 september 2012
Translate the following into a SQL query
What Poles have Races smaller than 4?
SELECT AVG Poles FROM table WHERE Races < 4
Translate the following into a SQL query
What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
SELECT COUNT Points FROM table WHERE Series = italian formula renault 2.0 AND Poles < 0
Translate the following into a SQL query
What is the total number of Points with Wins larger than 0, a Position of 12th, and Poles larger than 0?
SELECT SUM Points FROM table WHERE Wins > 0 AND Position = 12th AND Poles > 0
Translate the following into a SQL query
What is the smallest Wins with a Position of 20th, and Poles smaller than 0?
SELECT MIN Wins FROM table WHERE Position = 20th AND Poles < 0
Translate the following into a SQL query
What is the date of the match located in Madrid, Esp?
SELECT Date FROM table WHERE Location = madrid, esp
Translate the following into a SQL query
Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson?
SELECT Miss Maja Pilipinas FROM table WHERE Second runner-up = maria penson
Translate the following into a SQL query
Can you tell me the Miss Maja Pilipinas that has the Year of 1969?
SELECT Miss Maja Pilipinas FROM table WHERE Year = 1969
Translate the following into a SQL query
Can you tell me the Third runner-up that has the Year of 1969?
SELECT Third runner-up FROM table WHERE Year = 1969
Translate the following into a SQL query
What is 7 säwen if 3 dree is 3d dredda?
SELECT 7 säwen FROM table WHERE 3 dree = 3d dredda
Translate the following into a SQL query
What is 3 dree if 8 acht is 8th achta?
SELECT 3 dree FROM table WHERE 8 acht = 8th achta
Translate the following into a SQL query
What is 5 fiew when 7 säwen equals 17 säwentieen?
SELECT 5 fiew FROM table WHERE 7 säwen = 17 säwentieen
Translate the following into a SQL query
What is 5 fiew if 7 säwen is 7th säwenda?
SELECT 5 fiew FROM table WHERE 7 säwen = 7th säwenda
Translate the following into a SQL query
Name the 4 vea for 6 sas at 60 zastich?
SELECT 4 vea FROM table WHERE 6 sas = 60 zastich