instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
How many wins for team mv agusta, over 10 points, and after 1957?
SELECT SUM Wins FROM table WHERE Team = mv agusta AND Points > 10 AND Year > 1957
Translate the following into a SQL query
What College/Junior/Club Team (League) has a round of 3?
SELECT College/Junior/Club Team (League) FROM table WHERE Round = 3
Translate the following into a SQL query
What player has a round larger than 1 in Austria?
SELECT Player FROM table WHERE Round > 1 AND Nationality = austria
Translate the following into a SQL query
Which player's nationality is from Sweden?
SELECT Player FROM table WHERE Nationality = sweden
Translate the following into a SQL query
What College/Junior/Club Team (League) from Canada has a round smaller than 3?
SELECT College/Junior/Club Team (League) FROM table WHERE Nationality = canada AND Round < 3
Translate the following into a SQL query
What was the distance in 1997?
SELECT Distance FROM table WHERE Year = 1997
Translate the following into a SQL query
Who was the opponents in the final on January 5, 2003, on a hard surface?
SELECT Opponents in the final FROM table WHERE Surface = hard AND Date = january 5, 2003
Translate the following into a SQL query
What was the final score on the February 19, 2012 final?
SELECT Score in the final FROM table WHERE Date = february 19, 2012
Translate the following into a SQL query
Name the least attendance with venue of away on 24 august 2007
SELECT MIN Attendance (Away) FROM table WHERE Venue = away AND Date = 24 august 2007
Translate the following into a SQL query
Name the average attendance with result of won 2-0 on 2 november 2007
SELECT AVG Attendance (Away) FROM table WHERE Result = won 2-0 AND Date = 2 november 2007
Translate the following into a SQL query
What is the uniform number of the player whose last name is Wiltshire?
SELECT MIN Uni# FROM table WHERE Surname = wiltshire
Translate the following into a SQL query
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?
SELECT Fourth quarter FROM table WHERE Rank > 3 AND Second quarter = johnson & johnson 156,515.9
Translate the following into a SQL query
With a rank of 2 what is the second quarter?
SELECT Second quarter FROM table WHERE Rank = 2
Translate the following into a SQL query
When the third quarter is China Mobile 195,680.4, what is the rank?
SELECT Rank FROM table WHERE Third quarter = china mobile 195,680.4
Translate the following into a SQL query
When the first quarter is procter & gamble 138,013, what is the rank?
SELECT Rank FROM table WHERE First quarter = procter & gamble 138,013
Translate the following into a SQL query
When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?
SELECT Fourth quarter FROM table WHERE Rank < 4 AND Second quarter = exxon mobil 341,140.3
Translate the following into a SQL query
What is the Term end that has a Party of united australia and 184 days in office?
SELECT Term end FROM table WHERE Party = united australia AND Term in office = 184 days
Translate the following into a SQL query
How many values for INT's occur with more than 0 yards, over 6 sacks, and average above 17.5?
SELECT COUNT INT'S FROM table WHERE Yards > 0 AND Sacks > 6 AND Average > 17.5
Translate the following into a SQL query
What is the sum of average values for 23 yards?
SELECT SUM Average FROM table WHERE Yards = 23
Translate the following into a SQL query
What is the lowest value of INT's with an average more than 25?
SELECT MIN INT'S FROM table WHERE Average > 25
Translate the following into a SQL query
What are the most yards for 2 sacks and an average greater than 0?
SELECT MAX Yards FROM table WHERE Sacks = 2 AND Average > 0
Translate the following into a SQL query
What is the sum of values for INT'S with Mossy Cade for 0 yards and less than 3 sacks?
SELECT SUM INT'S FROM table WHERE Yards = 0 AND Sacks < 3 AND Player = mossy cade
Translate the following into a SQL query
What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
SELECT Bronze FROM table WHERE Location = bangkok AND Year = 1978
Translate the following into a SQL query
What's listed for the lowest Year that a Silver of Kim Kyung-Ho?
SELECT MIN Year FROM table WHERE Silver = kim kyung-ho
Translate the following into a SQL query
What's the Gold that also has Bronze of Kim Sun-Bin?
SELECT Gold FROM table WHERE Bronze = kim sun-bin
Translate the following into a SQL query
What's the Bronze that's also got a Godl of Kim Woo-Jin?
SELECT Bronze FROM table WHERE Gold = kim woo-jin
Translate the following into a SQL query
What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi?
SELECT MAX Year FROM table WHERE Bronze = wataru haraguchi
Translate the following into a SQL query
What was the score when their record was 35–23–15?
SELECT Score FROM table WHERE Record = 35–23–15
Translate the following into a SQL query
Which home team has a score of 5 – 6?
SELECT Home FROM table WHERE Score = 5 – 6
Translate the following into a SQL query
In what county is the school of Merrillville?
SELECT County FROM table WHERE School = merrillville
Translate the following into a SQL query
The school of Portage was in what conference previous?
SELECT Previous Conference FROM table WHERE School = portage
Translate the following into a SQL query
What is the name of the school that is in Valparaiso?
SELECT School FROM table WHERE Location = valparaiso
Translate the following into a SQL query
Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0?
SELECT MAX FA Cup FROM table WHERE Malaysia Cup = 0 AND Player = ahmad fouzee masuri AND Total > 0
Translate the following into a SQL query
How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
SELECT COUNT Total FROM table WHERE Player = ahmad fouzee masuri AND FA Cup > 0
Translate the following into a SQL query
Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
SELECT AVG FA Cup FROM table WHERE Player = khairan ezuan razali AND Total < 0
Translate the following into a SQL query
How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a League smaller than 2?
SELECT COUNT Malaysia Cup FROM table WHERE Total > 3 AND Player = ivan yusoff AND League < 2
Translate the following into a SQL query
Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?
SELECT SUM FA Cup FROM table WHERE Malaysia Cup > 0 AND Total = 8
Translate the following into a SQL query
Which Year is the highest one that has a Venue of edmonton, canada?
SELECT MAX Year FROM table WHERE Venue = edmonton, canada
Translate the following into a SQL query
Which Position has a Competition of world championships, and a Year larger than 1997?
SELECT Position FROM table WHERE Competition = world championships AND Year > 1997
Translate the following into a SQL query
Which Venue has a Notes of heptathlon, and a Year of 1991?
SELECT Venue FROM table WHERE Notes = heptathlon AND Year = 1991
Translate the following into a SQL query
What days held has noiz as the wrestler?
SELECT Days held FROM table WHERE Wrestler = noiz
Translate the following into a SQL query
What location has tatsuhito takaiwa as the wrestler?
SELECT Location FROM table WHERE Wrestler = tatsuhito takaiwa
Translate the following into a SQL query
What event has 8 as the days held?
SELECT Event FROM table WHERE Days held = 8
Translate the following into a SQL query
What event has unknown as the days held.?
SELECT Event FROM table WHERE Days held = unknown
Translate the following into a SQL query
What is the Displacement of the Iveco F1CE3481E Engine?
SELECT Displacement FROM table WHERE Engine = iveco f1ce3481e
Translate the following into a SQL query
What is the Displacement of the 180 Multijet Power/3.0 HDI Model?
SELECT Displacement FROM table WHERE Model = 180 multijet power/3.0 hdi
Translate the following into a SQL query
What is the Valvetrain of the Diesel Engines Model?
SELECT Valvetrain FROM table WHERE Model = diesel engines
Translate the following into a SQL query
Year(s) won of 1994 , 1997 has what average total?
SELECT AVG Total FROM table WHERE Year(s) won = 1994 , 1997
Translate the following into a SQL query
Player of corey pavin, and a To par larger than 5 has what average total?
SELECT AVG Total FROM table WHERE Player = corey pavin AND To par > 5
Translate the following into a SQL query
Total smaller than 285, and a To par larger than 1 belongs to what player?
SELECT Player FROM table WHERE Total < 285 AND To par > 1
Translate the following into a SQL query
Total larger than 285, and a Finish of t30 belongs to what player?
SELECT Player FROM table WHERE Total > 285 AND Finish = t30
Translate the following into a SQL query
Which player for a team with an 18-20 record had the most rebounds in a game?
SELECT High rebounds FROM table WHERE Record = 18-20
Translate the following into a SQL query
What is the total area of Kruzof island?
SELECT COUNT Area (km 2 ) FROM table WHERE Island's Name = kruzof island
Translate the following into a SQL query
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74
SELECT COUNT Frequency MHz FROM table WHERE Class = d AND Call sign = k201bm AND ERP W < 74
Translate the following into a SQL query
Name the least frequency Mhz with call sign of k202ag
SELECT MIN Frequency MHz FROM table WHERE Call sign = k202ag
Translate the following into a SQL query
Name the class with call sign of k220cp
SELECT Class FROM table WHERE Call sign = k220cp
Translate the following into a SQL query
What is the Winnipeg Jets record?
SELECT Record FROM table WHERE Opponent = winnipeg jets
Translate the following into a SQL query
What's the stadium on November 8?
SELECT Home FROM table WHERE Date = november 8
Translate the following into a SQL query
Who was the visitor on March 17?
SELECT Visitor FROM table WHERE Date = march 17
Translate the following into a SQL query
What's the score for Toronto Maple Leafs on November 10?
SELECT Score FROM table WHERE Home = toronto maple leafs AND Date = november 10
Translate the following into a SQL query
Who was the visitor on October 31?
SELECT Visitor FROM table WHERE Date = october 31
Translate the following into a SQL query
What is the rank associated with 0 wins and a 350cc class?
SELECT Rank FROM table WHERE Wins = 0 AND Class = 350cc
Translate the following into a SQL query
What is the run 2 of the athlete from Australia with a run 1 less than 53.75?
SELECT Run 2 FROM table WHERE Country = australia AND Run 1 < 53.75
Translate the following into a SQL query
What is the run 2 of athlete Maria Orlova from Russia?
SELECT SUM Run 2 FROM table WHERE Country = russia AND Athlete = maria orlova
Translate the following into a SQL query
What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91?
SELECT SUM Run 3 FROM table WHERE Run 1 > 53.75 AND Run 2 < 52.91
Translate the following into a SQL query
What is the lowest run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has?
SELECT MIN Run 3 FROM table WHERE Run 2 < 53.72 AND Run 1 = 53.1
Translate the following into a SQL query
What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35?
SELECT MIN Run 2 FROM table WHERE Run 1 = 52.44 AND Run 3 < 52.35
Translate the following into a SQL query
How many points are associated with over 1 top 5, 1 win, over 0 poles, and andrew ranger as the driver?
SELECT MAX Points FROM table WHERE Top 5's > 1 AND Wins = 1 AND Poles > 0 AND Driver = andrew ranger
Translate the following into a SQL query
How many points are associated with 0 poles?
SELECT COUNT Points FROM table WHERE Poles < 0
Translate the following into a SQL query
How many wins are associated with a position of under 6, over 8 top 5s, and 1793 points?
SELECT SUM Wins FROM table WHERE Position < 6 AND Top 5's = 8 AND Points = 1793
Translate the following into a SQL query
What is the first game that has a home team of Detroit?
SELECT MIN Game # FROM table WHERE Home = detroit
Translate the following into a SQL query
Which home team has higher than 92 points?
SELECT Home FROM table WHERE Points > 92
Translate the following into a SQL query
what team's score is 101?
SELECT Team FROM table WHERE Score = 101
Translate the following into a SQL query
what team played against zimbabwe in 1999?
SELECT Team FROM table WHERE Year = 1999 AND Versus = zimbabwe
Translate the following into a SQL query
what is the team that played in 2006?
SELECT Team FROM table WHERE Year = 2006
Translate the following into a SQL query
What is the lowest amount of points driver Romain Grosjean, who has an average pre-2010 less than 0, has?
SELECT MIN Points FROM table WHERE Driver = romain grosjean AND Average pre-2010 < 0
Translate the following into a SQL query
What is the average number of entries driver Mark Webber, who has more than 1014.5 points, has?
SELECT AVG Entries FROM table WHERE Driver = mark webber AND Points > 1014.5
Translate the following into a SQL query
What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0?
SELECT MAX Average points per race entered FROM table WHERE Points < 969 AND Average pre-2010 < 0
Translate the following into a SQL query
What is the lowest average points per race entered of driver kimi räikkönen, who has more than 194 entries?
SELECT MIN Average points per race entered FROM table WHERE Driver = kimi räikkönen AND Entries > 194
Translate the following into a SQL query
What is the first game played against the Chicago Black Hawks?
SELECT MIN Game FROM table WHERE Opponent = chicago black hawks
Translate the following into a SQL query
Name the opponent for 9 november 1991
SELECT Opponent FROM table WHERE Date = 9 november 1991
Translate the following into a SQL query
Which Losses is the lowest one that has Wins smaller than 0?
SELECT MIN Losses FROM table WHERE Wins < 0
Translate the following into a SQL query
Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0?
SELECT Losses FROM table WHERE Season > 1941 AND Team = hamilton wildcats AND Ties = 0
Translate the following into a SQL query
Which Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1?
SELECT SUM Season FROM table WHERE Ties < 1 AND Team = vancouver grizzlies AND Wins < 1
Translate the following into a SQL query
How many Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season larger than 1941?
SELECT COUNT Ties FROM table WHERE Wins < 1 AND Games = 6 AND Losses = 6 AND Season > 1941
Translate the following into a SQL query
Which Wins have a Team of winnipeg blue bombers, and a Season larger than 1964?
SELECT AVG Wins FROM table WHERE Team = winnipeg blue bombers AND Season > 1964
Translate the following into a SQL query
What engine class is associated with a year after 1985 and over 0 wins?
SELECT Class FROM table WHERE Year > 1985 AND Wins > 0
Translate the following into a SQL query
Which opponent has a loss of trout (7-4)?
SELECT Opponent FROM table WHERE Loss = trout (7-4)
Translate the following into a SQL query
Which opponent has a save of smith (22)?
SELECT Opponent FROM table WHERE Save = smith (22)
Translate the following into a SQL query
How much Gold has a Bronze larger than 1, and a Silver larger than 2?
SELECT COUNT Gold FROM table WHERE Bronze > 1 AND Silver > 2
Translate the following into a SQL query
Which Total has a Nation of japan (jpn), and a Silver smaller than 1?
SELECT AVG Total FROM table WHERE Nation = japan (jpn) AND Silver < 1
Translate the following into a SQL query
What is the margin of victory in WGC-Accenture Match Play Championship?
SELECT Margin of victory FROM table WHERE Tournament = wgc-accenture match play championship
Translate the following into a SQL query
On what date was Nick Price the runner-up?
SELECT Date FROM table WHERE Runner(s) up = nick price
Translate the following into a SQL query
What is the margin of victory for Nick Price as a runner-up?
SELECT Margin of victory FROM table WHERE Runner(s) up = nick price
Translate the following into a SQL query
What is the margin of victory for PGA Championship?
SELECT Margin of victory FROM table WHERE Tournament = pga championship
Translate the following into a SQL query
On what date was the winning score –20 (68-67-65-64=264)?
SELECT Date FROM table WHERE Winning score = –20 (68-67-65-64=264)
Translate the following into a SQL query
Which player was D past Round 3?
SELECT Player FROM table WHERE Position = d AND Round > 3
Translate the following into a SQL query
Which Round was F picked?
SELECT Round FROM table WHERE Position = f
Translate the following into a SQL query
What Position is Ryan Russell?
SELECT Position FROM table WHERE Player = ryan russell
Translate the following into a SQL query
What country does Round 4 come from?
SELECT Nationality FROM table WHERE Round = 4