instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Name the polyunsaturated fat with a saturated fat of 25g
SELECT Polyunsaturated fat FROM table WHERE Saturated fat = 25g
Translate the following into a SQL query
Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g
SELECT Total fat FROM table WHERE Polyunsaturated fat = 11g AND Monounsaturated fat = 45g
Translate the following into a SQL query
Name the result for friendly competition on 9 october 2010
SELECT Result FROM table WHERE Competition = friendly AND Date = 9 october 2010
Translate the following into a SQL query
Name the result for uncaf nations cup 2009 and 6 goal
SELECT Result FROM table WHERE Competition = uncaf nations cup 2009 AND Goal = 6
Translate the following into a SQL query
Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?
SELECT Team 1 FROM table WHERE Team 2 = la nuova piovese (veneto a)
Translate the following into a SQL query
What was the 2nd leg where the team 2 was budoni (sardinia)?
SELECT 2nd leg FROM table WHERE Team 2 = budoni (sardinia)
Translate the following into a SQL query
Which was the team 1 that had a team 2 which was avigliano (basilicata)?
SELECT Team 1 FROM table WHERE Team 2 = avigliano (basilicata)
Translate the following into a SQL query
How much cash was on hand after debt of $82,741?
SELECT Cash On Hand FROM table WHERE After Debt = $82,741
Translate the following into a SQL query
What was the amount of loans received with a total debt of $169,256?
SELECT Loans Received, 3Q FROM table WHERE Total Debt = $169,256
Translate the following into a SQL query
What was the amount of total receipts when $925,745 was raised?
SELECT Total Receipts FROM table WHERE Money Raised, 3Q = $925,745
Translate the following into a SQL query
How much money was spent when the amount after debt was $1,757,936?
SELECT Money Spent, 3Q FROM table WHERE After Debt = $1,757,936
Translate the following into a SQL query
How much is after debt when cash on hand is $651,300?
SELECT After Debt FROM table WHERE Cash On Hand = $651,300
Translate the following into a SQL query
What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)?
SELECT MIN Total FROM table WHERE Bronze > 0 AND Nation = france (fra)
Translate the following into a SQL query
What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?
SELECT MAX Silver FROM table WHERE Bronze = 1 AND Gold = 1
Translate the following into a SQL query
What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?
SELECT COUNT Total FROM table WHERE Bronze < 1 AND Silver < 1 AND Gold < 1
Translate the following into a SQL query
What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
SELECT SUM Bronze FROM table WHERE Gold > 0 AND Silver < 1 AND Total < 1
Translate the following into a SQL query
what is the result for 11 august 2010?
SELECT Result FROM table WHERE Date = 11 august 2010
Translate the following into a SQL query
what is the result when the competition is friendly on 8 october 2009?
SELECT Result FROM table WHERE Competition = friendly AND Date = 8 october 2009
Translate the following into a SQL query
On the date of 20 July 1999 what is the English abbr.?
SELECT English abbr. FROM table WHERE From = 20 july 1999
Translate the following into a SQL query
What is the date for the group union for Europe?
SELECT From FROM table WHERE Group name = group union for europe
Translate the following into a SQL query
What is the group name on the date of 20 July 1999?
SELECT Group name FROM table WHERE From = 20 july 1999
Translate the following into a SQL query
For the group name European Progressive Democrats what is the French abbr?
SELECT French abbr. FROM table WHERE Group name = european progressive democrats
Translate the following into a SQL query
Which Livery has a Description of 20t tanker, with a date later than 1941?
SELECT Livery FROM table WHERE Description = 20t tanker AND Date > 1941
Translate the following into a SQL query
What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date prior to 1897?
SELECT Description FROM table WHERE Livery = black AND Date < 1897 AND Number & name = scottish tar distillers no. 78
Translate the following into a SQL query
What was the score of the game that Washington played at home against Florida?
SELECT Score FROM table WHERE Home = washington AND Visitor = florida
Translate the following into a SQL query
What driver has BRM as a constructor and had more than 30 laps?
SELECT Driver FROM table WHERE Constructor = brm AND Laps > 30
Translate the following into a SQL query
How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?
SELECT COUNT Lost FROM table WHERE Period = 12 november 2012 – 27 november 2012 AND Managed > 2
Translate the following into a SQL query
What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?
SELECT AVG Attendance FROM table WHERE Season < 1986 AND Margin = 6 AND Score = 13.16 (94) – 13.10 (88)
Translate the following into a SQL query
When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?
SELECT MIN Season FROM table WHERE Venue = waverley park AND Score = 15.12 (102) – 9.14 (68) AND Margin > 34
Translate the following into a SQL query
How many seasons feature essendon, and a Score of 15.12 (102) – 9.14 (68)?
SELECT COUNT Season FROM table WHERE Premier = essendon AND Score = 15.12 (102) – 9.14 (68)
Translate the following into a SQL query
How low was the attendance at the game that ended with a home team score of 16.13 (109)?
SELECT MIN Crowd FROM table WHERE Home team score = 16.13 (109)
Translate the following into a SQL query
What was the date of the game at MCG?
SELECT Date FROM table WHERE Venue = mcg
Translate the following into a SQL query
What was the date of the game where Geelong was the home team?
SELECT Date FROM table WHERE Home team = geelong
Translate the following into a SQL query
What was the crowd size for the game where Footscray was the away team?
SELECT COUNT Crowd FROM table WHERE Away team = footscray
Translate the following into a SQL query
How many total wins do the Texas Tech Red Raiders have including the 7 regular season wins?
SELECT MAX Total FROM table WHERE Team = texas tech red raiders AND Regular Season > 7
Translate the following into a SQL query
What is the total round with an overall of 199 with sweden?
SELECT SUM Round FROM table WHERE Nationality = sweden AND Overall = 199
Translate the following into a SQL query
What is the total for Canada during round 2?
SELECT Overall FROM table WHERE Nationality = canada AND Round = 2
Translate the following into a SQL query
Which team scores 119 in round 4?
SELECT Club team FROM table WHERE Round = 4 AND Overall = 119
Translate the following into a SQL query
What was the attendance at the Kings game when Anaheim was the visiting team?
SELECT Attendance FROM table WHERE Visitor = anaheim
Translate the following into a SQL query
What was the score of the Kings game when they had a record of 8–11–1?
SELECT Score FROM table WHERE Record = 8–11–1
Translate the following into a SQL query
Name the high points for charlotte
SELECT High points FROM table WHERE Team = charlotte
Translate the following into a SQL query
Name the team on february 12
SELECT Team FROM table WHERE Date = february 12
Translate the following into a SQL query
Name the location attendance for game more than 54 on february 25
SELECT Location Attendance FROM table WHERE Game > 54 AND Date = february 25
Translate the following into a SQL query
Name the record for february 27
SELECT Record FROM table WHERE Date = february 27
Translate the following into a SQL query
Name the team for 48 game
SELECT Team FROM table WHERE Game = 48
Translate the following into a SQL query
What's the average of shows that had a timeslot rank greater that 3 but still had a smaller viewership less than 4.87?
SELECT AVG Share FROM table WHERE Rank (Timeslot) > 3 AND Viewers (m) < 4.87
Translate the following into a SQL query
Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times?
SELECT Division FROM table WHERE Conference = afc AND Wins = 10 AND Appearances > 18
Translate the following into a SQL query
How many losses did the East Division have who appeared 18 times and lost 8?
SELECT MIN Wins FROM table WHERE Division = east AND Losses = 8 AND Appearances < 18
Translate the following into a SQL query
How many losses did the division who appeared less than 16 times have?
SELECT Losses FROM table WHERE Appearances < 16
Translate the following into a SQL query
How many medals for spain with 1 silver?
SELECT SUM Total FROM table WHERE Silver = 1 AND Nation = spain
Translate the following into a SQL query
How many silvers for finland?
SELECT Silver FROM table WHERE Nation = finland
Translate the following into a SQL query
How many medals for spain that has 1 silver and 1 bronze?
SELECT COUNT Total FROM table WHERE Silver = 1 AND Bronze = 1 AND Nation = spain
Translate the following into a SQL query
What is the record when they play the canucks and have under 98 points?
SELECT Record FROM table WHERE Points < 98 AND Opponent = canucks
Translate the following into a SQL query
How many attended the game against the sharks with over 86 points?
SELECT AVG Attendance FROM table WHERE Points > 86 AND Opponent = sharks
Translate the following into a SQL query
Name the song that has a track larger than 7 and means death.
SELECT Recorded FROM table WHERE Track > 7 AND Translation = death
Translate the following into a SQL query
Which track 7 title was recorded in 1959-09-15?
SELECT Title FROM table WHERE Recorded = 1959-09-15 AND Track = 7
Translate the following into a SQL query
Which track translates to Flemish Women?
SELECT Track FROM table WHERE Translation = flemish women
Translate the following into a SQL query
What is the high capacity that has an average under 489 and a highest over 778?
SELECT MAX Capacity FROM table WHERE Average < 489 AND Highest > 778
Translate the following into a SQL query
On the album titled β€œLoud” who was the other performer on the song directed by Melina Matsoukas?
SELECT Other performer(s) FROM table WHERE Director(s) = melina matsoukas AND Album = loud
Translate the following into a SQL query
What is the decision when vancouver is at home and winnipeg is away?
SELECT Decision FROM table WHERE Home = vancouver AND Visitor = winnipeg
Translate the following into a SQL query
What is the record of the team from chicago?
SELECT Record FROM table WHERE Home = chicago
Translate the following into a SQL query
Where was the away team st kilda?
SELECT Venue FROM table WHERE Away team = st kilda
Translate the following into a SQL query
Which club has 1 cap?
SELECT Club/province FROM table WHERE Caps = 1
Translate the following into a SQL query
Which position has a club of Meralomas and a player named David Biddle?
SELECT Position FROM table WHERE Club/province = meralomas AND Player = david biddle
Translate the following into a SQL query
What is the average number of caps for Meralomas with positions of centre?
SELECT AVG Caps FROM table WHERE Club/province = meralomas AND Position = centre
Translate the following into a SQL query
Who are the scorers when the score is 9-2?
SELECT Scorers FROM table WHERE Score = 9-2
Translate the following into a SQL query
What is the smallest population in a region greater than 9?
SELECT MIN Population FROM table WHERE Region > 9
Translate the following into a SQL query
What is the average area for code 98030 with population over 312?
SELECT AVG Area (km 2 ) FROM table WHERE Code = 98030 AND Population > 312
Translate the following into a SQL query
What is the attendance on may 28?
SELECT Attendance FROM table WHERE Date = may 28
Translate the following into a SQL query
On the Date of 4 Oct 2009, who was the Runner(s)-up?
SELECT Runner(s)-up FROM table WHERE Date = 4 oct 2009
Translate the following into a SQL query
On the Date of 2 Aug 2009, who was the Runner(s)-up?
SELECT Runner(s)-up FROM table WHERE Date = 2 aug 2009
Translate the following into a SQL query
Which Tournament was on the Date 6 Sep 2009?
SELECT Tournament FROM table WHERE Date = 6 sep 2009
Translate the following into a SQL query
What was the Winning score for the Mynavi ABC Championship Tournament?
SELECT Winning score FROM table WHERE Tournament = mynavi abc championship
Translate the following into a SQL query
What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009?
SELECT Winning score FROM table WHERE Margin of victory = 5 strokes AND Date = 6 sep 2009
Translate the following into a SQL query
Who was the Runner(s)-up on the Date 4 Oct 2009?
SELECT Runner(s)-up FROM table WHERE Date = 4 oct 2009
Translate the following into a SQL query
What is the score with third place of stefan edberg?
SELECT Score FROM table WHERE Third Place = stefan edberg
Translate the following into a SQL query
Name the runner-up for algarve tournament
SELECT Runner-up FROM table WHERE Tournament = algarve
Translate the following into a SQL query
I want to know the tournament that has a third place of magnus gustafsson
SELECT Tournament FROM table WHERE Third Place = magnus gustafsson
Translate the following into a SQL query
Who was the winner when the third place was fernando meligeni?
SELECT Winner FROM table WHERE Third Place = fernando meligeni
Translate the following into a SQL query
Name the tournament for patrick rafter winning
SELECT Tournament FROM table WHERE Winner = patrick rafter
Translate the following into a SQL query
Who was the owner in 1996 of trainer Nick Zito?
SELECT Owner FROM table WHERE Trainer = nick zito AND Year = 1996
Translate the following into a SQL query
What year did jockey Ramon Dominguez have a distance of 1-1/16?
SELECT Year FROM table WHERE Distance = 1-1/16 AND Jockey = ramon dominguez
Translate the following into a SQL query
Who was the owner of the trainer Steve Klesaris?
SELECT Owner FROM table WHERE Trainer = steve klesaris
Translate the following into a SQL query
Who is the owner of the Raglan Road winner?
SELECT Owner FROM table WHERE Winner = raglan road
Translate the following into a SQL query
What year was Burning Roma the winner?
SELECT Year FROM table WHERE Winner = burning roma
Translate the following into a SQL query
What is the win/loss of coach Peter German?
SELECT Win/Loss FROM table WHERE Coach = peter german
Translate the following into a SQL query
Name the home team scored 9.8 (62)
SELECT Home team FROM table WHERE Home team score = 9.8 (62)
Translate the following into a SQL query
Which tyre was before 1995 with 142 laps?
SELECT Tyres FROM table WHERE Year < 1995 AND Laps = 142
Translate the following into a SQL query
Which tyres has more than 5 laps with team nissan motorsports international?
SELECT Tyres FROM table WHERE Laps > 5 AND Team = nissan motorsports international
Translate the following into a SQL query
What position that has m tyres and 352 or more laps?
SELECT Pos. FROM table WHERE Tyres = m AND Laps > 352
Translate the following into a SQL query
who is the team 2 when the 1st leg is 2-2?
SELECT Team 2 FROM table WHERE 1st leg = 2-2
Translate the following into a SQL query
who is the team 2 when the team 1 is sestese(e16)?
SELECT Team 2 FROM table WHERE Team 1 = sestese(e16)
Translate the following into a SQL query
who is the team 2 when the 2nd leg is 3-4?
SELECT Team 2 FROM table WHERE 2nd leg = 3-4
Translate the following into a SQL query
who is the team 2 when the 1st leg is 1-1 and the team 1 is verucchio(f15)?
SELECT Team 2 FROM table WHERE 1st leg = 1-1 AND Team 1 = verucchio(f15)
Translate the following into a SQL query
What is the largest base pair with a Strain of unspecified?
SELECT MAX Base Pairs FROM table WHERE Strain = unspecified
Translate the following into a SQL query
What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than 832?
SELECT MIN Base Pairs FROM table WHERE Species = borrelia garinii AND Genes > 832
Translate the following into a SQL query
What type has an unspecified species and less than 367 genes?
SELECT Type FROM table WHERE Species = unspecified AND Genes < 367
Translate the following into a SQL query
What base pair has 832 genes?
SELECT Base Pairs FROM table WHERE Genes = 832
Translate the following into a SQL query
How many genes have a Species of leptospira interrogans, and a Base Pairs smaller than 4,277,185?
SELECT SUM Genes FROM table WHERE Species = leptospira interrogans AND Base Pairs < 4,277,185
Translate the following into a SQL query
Which competition was ranked 9?
SELECT Competition FROM table WHERE Rank = 9