instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?
SELECT SUM B Score FROM table WHERE Total > 15.325 AND A Score < 6.4
Translate the following into a SQL query
Which Total has an A Score of 6.5, and a Position larger than 5?
SELECT MIN Total FROM table WHERE A Score = 6.5 AND Position > 5
Translate the following into a SQL query
What is the date of week 11?
SELECT Date FROM table WHERE Week = 11
Translate the following into a SQL query
What is the latest week when the chicago bears are the opponent?
SELECT MAX Week FROM table WHERE Opponent = chicago bears
Translate the following into a SQL query
What song placed higher than#4?
SELECT Song FROM table WHERE Place > 4
Translate the following into a SQL query
Who is the artist that drew higher than 4?
SELECT Artist FROM table WHERE Draw > 4
Translate the following into a SQL query
What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?
SELECT COUNT Starts FROM table WHERE Driver = nasser al-attiyah AND Points > 1
Translate the following into a SQL query
What's the smallest number of podiums having more than 6 starts and 5 finishes?
SELECT MIN Podiums FROM table WHERE Finishes = 5 AND Starts > 6
Translate the following into a SQL query
What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium?
SELECT COUNT Stage wins FROM table WHERE Finishes > 1 AND Podiums < 1 AND Driver = federico villagra AND Starts < 8
Translate the following into a SQL query
What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?
SELECT SUM Finishes FROM table WHERE Podiums = 0 AND Stage wins = 0 AND Driver = lambros athanassoulas
Translate the following into a SQL query
What is the average number of electorates (2003) reserved for sc with a constituency number of 50?
SELECT AVG Number of electorates (2003) FROM table WHERE Reserved for ( SC / ST /None) = sc AND Constituency number = 50
Translate the following into a SQL query
Which Finals have a Pre-Season larger than 0?
SELECT MIN Finals FROM table WHERE Pre-Season > 0
Translate the following into a SQL query
How much A-League has a Pre-Season larger than 0?
SELECT COUNT A-League FROM table WHERE Pre-Season > 0
Translate the following into a SQL query
What is the last issue entry for Aron's Absurd Armada?
SELECT Last Issue FROM table WHERE Title = aron's absurd armada
Translate the following into a SQL query
What is the title that was first published in August 2010?
SELECT Title FROM table WHERE First Issue = august 2010
Translate the following into a SQL query
What is the completed entry for Aron's Absurd Armada?
SELECT Completed? FROM table WHERE Title = aron's absurd armada
Translate the following into a SQL query
What is the title that was first published in February 2009 and is still ongoing?
SELECT Title FROM table WHERE Last Issue = ongoing AND First Issue = february 2009
Translate the following into a SQL query
What is the last issue entry of Time and Again?
SELECT Last Issue FROM table WHERE Title = time and again
Translate the following into a SQL query
What the rank of the Virgin Islands athlete with react under 0.168?
SELECT Rank FROM table WHERE React < 0.168 AND Nationality = virgin islands
Translate the following into a SQL query
What is the lowest rank for Chris Brown with react greater than 0.244?
SELECT MIN Rank FROM table WHERE Athlete = chris brown AND React > 0.244
Translate the following into a SQL query
What is the highest rank of an athlete from Belgium with react greater than 0.162?
SELECT MAX Rank FROM table WHERE Nationality = belgium AND React > 0.162
Translate the following into a SQL query
What is the average number of partners for the firm with a rank under 71, other over 77, and largest city of Philadelphia?
SELECT AVG Partners FROM table WHERE Rank < 71 AND Largest U.S. City = philadelphia AND Other > 77
Translate the following into a SQL query
What is the smallest rank for the city having partners of 342, other under 147, and largest city of Cleveland?
SELECT MIN Rank FROM table WHERE Partners = 342 AND Largest U.S. City = cleveland AND Other < 147
Translate the following into a SQL query
What is the number of partners for the city ranked under 294, total over 264, largest city of Chicago, and other over 46?
SELECT Partners FROM table WHERE Rank < 294 AND Total > 264 AND Largest U.S. City = chicago AND Other > 46
Translate the following into a SQL query
What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?
SELECT MAX 2008 FROM table WHERE 2009 = 3.4 AND 2005 > 2.9
Translate the following into a SQL query
What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
SELECT SUM 2006 FROM table WHERE 2007 < 6.7 AND 2009 < 3.4
Translate the following into a SQL query
What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?
SELECT COUNT 2005 FROM table WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.2
Translate the following into a SQL query
What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006?
SELECT MIN 2009 FROM table WHERE 2005 = 11.8 AND 2006 < 12.6
Translate the following into a SQL query
What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?
SELECT MAX 2005 FROM table WHERE 2007 < 42 AND TV Station (Operator) = tv3 AND 2010 < 29.5
Translate the following into a SQL query
What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?
SELECT Date FROM table WHERE Partner = alexander krasnorutskiy AND Score = 6–3, 4–6, 6–2
Translate the following into a SQL query
Which IHSAA Class has a Mascot of eagles, and a City of evansville?
SELECT IHSAA Class FROM table WHERE Mascot = eagles AND City = evansville
Translate the following into a SQL query
Which City has a School of indianapolis brebeuf?
SELECT City FROM table WHERE School = indianapolis brebeuf
Translate the following into a SQL query
How much Enrollment has a School of indianapolis tindley?
SELECT COUNT Enrollment FROM table WHERE School = indianapolis tindley
Translate the following into a SQL query
Which County has an IHSAA Class of aaaa, and a Mascot of cardinals?
SELECT County FROM table WHERE IHSAA Class = aaaa AND Mascot = cardinals
Translate the following into a SQL query
How many Total Goals values have 0 League Cup Goals?
SELECT COUNT Total Goals FROM table WHERE League Cup Goals < 0
Translate the following into a SQL query
What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals?
SELECT MIN FA Cup Goals FROM table WHERE FA Cup Apps = 4 AND Total Apps = 49 AND Total Goals > 17
Translate the following into a SQL query
What is the average number of League Goals for palyers with 0 FA Cup Goals?
SELECT AVG League Goals FROM table WHERE FA Cup Goals < 0
Translate the following into a SQL query
what is the highest silver when the total is 4 and bronze is less than 1?
SELECT MAX Silver FROM table WHERE Total = 4 AND Bronze < 1
Translate the following into a SQL query
what is the gold when the bronze is 1, total is 6 and silver is less than 3?
SELECT SUM Gold FROM table WHERE Bronze = 1 AND Total = 6 AND Silver < 3
Translate the following into a SQL query
What is province of community with height larger than 1.8 and is in el cibao region?
SELECT Province, Community FROM table WHERE Geographical Regions = el cibao AND Height > 1.8
Translate the following into a SQL query
What contestant is from santo domingo este and has height smaller than 1.79?
SELECT Contestant FROM table WHERE Height < 1.79 AND Hometown = santo domingo este
Translate the following into a SQL query
What is total number of height of province, with community of com. dom. lto. America?
SELECT COUNT Height FROM table WHERE Province, Community = com. dom. lto. america
Translate the following into a SQL query
what is the previous conference when the year joined is 1932 and the mascot is tigers?
SELECT Previous Conference FROM table WHERE Year Joined = 1932 AND Mascot = tigers
Translate the following into a SQL query
what is the school when the location is rochester?
SELECT School FROM table WHERE Location = rochester
Translate the following into a SQL query
what is the location when the school is muncie burris?
SELECT Location FROM table WHERE School = muncie burris
Translate the following into a SQL query
what is the mascot when the school is warsaw?
SELECT Mascot FROM table WHERE School = warsaw
Translate the following into a SQL query
what is the mascot when the county is 43 kosciusko?
SELECT Mascot FROM table WHERE County = 43 kosciusko
Translate the following into a SQL query
what is the county when the year left is 1998?
SELECT County FROM table WHERE Year Left = 1998
Translate the following into a SQL query
which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?
SELECT Film FROM table WHERE Category = best actress – musical or comedy AND Lost to = nicole kidman ( moulin rouge! )
Translate the following into a SQL query
which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
SELECT Category FROM table WHERE Result = nominated AND Lost to = jennifer westfeldt ( kissing jessica stein )
Translate the following into a SQL query
Which the Lost to is in 2000
SELECT Lost to FROM table WHERE Year = 2000
Translate the following into a SQL query
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?
SELECT AVG Attendance FROM table WHERE Opponent = pittsburgh steelers AND Opponents > 0
Translate the following into a SQL query
Who is the team that has a pick less than 154 and an offensive guard position?
SELECT Team FROM table WHERE Position = offensive guard AND Pick < 154
Translate the following into a SQL query
What is the Weight of the GK Player with 2012 Club of CN Atlètic-Barceloneta?
SELECT Weight FROM table WHERE Pos. = gk AND 2012 club = cn atlètic-barceloneta
Translate the following into a SQL query
What is the Height of the CF Player with 2012 club of Posillipo?
SELECT Height FROM table WHERE Pos. = cf AND 2012 club = posillipo
Translate the following into a SQL query
What is the Attendance of Game 24?
SELECT SUM Attendance FROM table WHERE Game = 24
Translate the following into a SQL query
What is the Venue of Game 41 with a Score F–A of 1–2?
SELECT Venue FROM table WHERE Score F–A = 1–2 AND Game = 41
Translate the following into a SQL query
Who are the opponents in the February 19, 1996 final?
SELECT Opponents in the final FROM table WHERE Date = february 19, 1996
Translate the following into a SQL query
What was the final score on March 22, 1993?
SELECT Score in the final FROM table WHERE Date = march 22, 1993
Translate the following into a SQL query
What is the outcome on June 9, 1997?
SELECT Outcome FROM table WHERE Date = june 9, 1997
Translate the following into a SQL query
What school has an IHSAA Class of aaa, and their mascot is Tiger Cubs?
SELECT School FROM table WHERE IHSAA Class = aaa AND Mascot = tiger cubs
Translate the following into a SQL query
What is the IHSAA Football Class for county 67 putnam at Greencastle?
SELECT IHSAA Football Class FROM table WHERE County = 67 putnam AND School = greencastle
Translate the following into a SQL query
What school has more than 533 enrolled and is an IHSAA Football Class of aa?
SELECT School FROM table WHERE Enrollment > 533 AND IHSAA Football Class = aa
Translate the following into a SQL query
Where is the IHSAA Class of aaa school with more than 590 enrolled?
SELECT Location FROM table WHERE IHSAA Class = aaa AND Enrollment > 590
Translate the following into a SQL query
Which location has 111 as the days held?
SELECT Location FROM table WHERE Days held = 111
Translate the following into a SQL query
What days held has 1 as the reign with eden black as the wrestlers?
SELECT Days held FROM table WHERE Reign = 1 AND Wrestlers = eden black
Translate the following into a SQL query
What wrestlers have summer brawl 2006 as the event?
SELECT Wrestlers FROM table WHERE Event = summer brawl 2006
Translate the following into a SQL query
What is the average amount of points larger than 154 laps?
SELECT AVG Points FROM table WHERE Laps > 154
Translate the following into a SQL query
What home team played against Crystal Palace?
SELECT Home team FROM table WHERE Away team = crystal palace
Translate the following into a SQL query
What is the lowest win % with a 0-2 record and more than 2 apps?
SELECT MIN Win % FROM table WHERE Record = 0-2 AND Apps > 2
Translate the following into a SQL query
What is the lowest apps for rank 3 and 0% wins?
SELECT MIN Apps FROM table WHERE Rank = 3 AND Win % < 0
Translate the following into a SQL query
What artist had a peak position under 2, and more than 200,000 in sales?
SELECT Artist FROM table WHERE Peak position < 2 AND Sales > 200,000
Translate the following into a SQL query
Which points has place smaller than 2?
SELECT Points FROM table WHERE Place < 2
Translate the following into a SQL query
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?
SELECT Size FROM table WHERE Year Joined < 1974 AND IHSAA Class = aa AND # / County = 89 wayne AND School = centerville
Translate the following into a SQL query
What's the year that Hagerstown joined?
SELECT Year Joined FROM table WHERE School = hagerstown
Translate the following into a SQL query
What county is Fountain City?
SELECT # / County FROM table WHERE Location = fountain city
Translate the following into a SQL query
What's the previous conference of Fountain City with a size more than 287?
SELECT Previous Conference FROM table WHERE Size > 287 AND Location = fountain city
Translate the following into a SQL query
What is the people's party with an 8.0% green-communist?
SELECT People's Party FROM table WHERE Green-Communist = 8.0%
Translate the following into a SQL query
What is the social democrat released on October 10, 1999?
SELECT Social Democratic FROM table WHERE Date Released = october 10, 1999
Translate the following into a SQL query
What is the green-communist with a 15.5% lead?
SELECT Green-Communist FROM table WHERE Lead = 15.5%
Translate the following into a SQL query
What is the left bloc with a 49.0% socialist?
SELECT Left Bloc FROM table WHERE Socialist = 49.0%
Translate the following into a SQL query
Which polling institute has a 30.7% for social democratic?
SELECT Polling institute FROM table WHERE Social Democratic = 30.7%
Translate the following into a SQL query
What is the people's party with a 30.0% social democratic?
SELECT People's Party FROM table WHERE Social Democratic = 30.0%
Translate the following into a SQL query
What is the week with w 31-21 result?
SELECT Week FROM table WHERE Result = w 31-21
Translate the following into a SQL query
In week 7, what was the average attendance?
SELECT AVG Attendance FROM table WHERE Week = 7
Translate the following into a SQL query
Who was the opponent on september 10, 1979?
SELECT Opponent FROM table WHERE Date = september 10, 1979
Translate the following into a SQL query
When was twenty released?
SELECT Date of release FROM table WHERE Title = twenty
Translate the following into a SQL query
On what date was god & guns released?
SELECT Date of release FROM table WHERE Title = god & guns
Translate the following into a SQL query
What was the Billboard peak for the album released on September 12, 2000 by sanctuary?
SELECT Billboard peak FROM table WHERE Label = sanctuary AND Date of release = september 12, 2000
Translate the following into a SQL query
Where did god & guns peak on the Billboard?
SELECT Billboard peak FROM table WHERE Title = god & guns
Translate the following into a SQL query
What was the Billboard peak for the album released on February 2, 1976 by MCA?
SELECT Billboard peak FROM table WHERE Label = mca AND Date of release = february 2, 1976
Translate the following into a SQL query
What venue was the tour match against eastern province played at with more than 0 against?
SELECT Venue FROM table WHERE Status = tour match AND Against > 0 AND Opposing Team = eastern province
Translate the following into a SQL query
What is the status of the game where there was more than 22 against?
SELECT Status FROM table WHERE Against > 22
Translate the following into a SQL query
In which game did the opponents score 14 points?
SELECT Game FROM table WHERE Opponents = 14
Translate the following into a SQL query
What was the streak after the game on Dec. 12?
SELECT Streak FROM table WHERE Date = dec. 12
Translate the following into a SQL query
What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?
SELECT AMT 3.0 (Desktop) FROM table WHERE Feature = vlan settings for intel amt network interfaces
Translate the following into a SQL query
What is the number of silver when bronze is 0, and rank is less than 2?
SELECT SUM Silver FROM table WHERE Bronze = 0 AND Rank < 2
Translate the following into a SQL query
What is the silver when the Total is 1, and Gold is 1?
SELECT AVG Silver FROM table WHERE Total = 1 AND Gold = 1
Translate the following into a SQL query
What is the number of silver when the total is less than 1?
SELECT COUNT Silver FROM table WHERE Total < 1
Translate the following into a SQL query
What is the largest silver number when the rank is smaller than 1?
SELECT MAX Silver FROM table WHERE Rank < 1