instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which college had an overall number more than 180?
SELECT College FROM table WHERE Overall > 180
Translate the following into a SQL query
What is the overall number for a pick of #10, from Louisiana Tech, and a round bigger than 3?
SELECT SUM Overall FROM table WHERE Pick # = 10 AND College = louisiana tech AND Round > 3
Translate the following into a SQL query
What's the Pick average that has a School/Club Team of Alabama, with a Round that's smaller than 9?
SELECT AVG Pick FROM table WHERE School/Club Team = alabama AND Round < 9
Translate the following into a SQL query
What's the sum of the Pick that has the Player of Robert Ingalls?
SELECT COUNT Pick FROM table WHERE Player = robert ingalls
Translate the following into a SQL query
What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22?
SELECT COUNT Pick FROM table WHERE Position = tackle AND Player = woody adams AND Round > 22
Translate the following into a SQL query
What Position has a Round that's larger than 21?
SELECT Position FROM table WHERE Round > 21
Translate the following into a SQL query
What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?
SELECT SUM Europe FROM table WHERE Others = 0 AND League < 328 AND Position = mf
Translate the following into a SQL query
Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?
SELECT Investment income FROM table WHERE Occupational pensions = 7% AND Working tax credit = 2% AND Other social security benefits = 6%
Translate the following into a SQL query
Region of eastern england has what investment income?
SELECT Investment income FROM table WHERE Region = eastern england
Translate the following into a SQL query
State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?
SELECT Investment income FROM table WHERE State pensions = 7% AND Self employed = 7% AND Other income sources = 2%
Translate the following into a SQL query
Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?
SELECT Occupational pensions FROM table WHERE Other income sources = 2% AND State pensions = 7% AND Working tax credit = 2% AND Employment ( salaries & wages) = 66%
Translate the following into a SQL query
Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed?
SELECT Self employed FROM table WHERE Investment income = 2% AND Other income sources = 3% AND Employment ( salaries & wages) = 71%
Translate the following into a SQL query
Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit?
SELECT Working tax credit FROM table WHERE Employment ( salaries & wages) = 64% AND Occupational pensions = 6%
Translate the following into a SQL query
How many Drawn is which has a Games smaller than 6?
SELECT SUM Drawn FROM table WHERE Games < 6
Translate the following into a SQL query
What is the Points that has 61 - 15 Point difference and a Drawn larger than 1?
SELECT AVG Points FROM table WHERE Points difference = 61 - 15 AND Drawn > 1
Translate the following into a SQL query
How many Drawn has a Games larger than 6?
SELECT SUM Drawn FROM table WHERE Games > 6
Translate the following into a SQL query
How many jewish have a muslim less than 36,041, a total less than 161,042, a year after 2006, with a druze greater than 2,534?
SELECT SUM Jewish FROM table WHERE Muslim < 36,041 AND Total < 161,042 AND Year > 2006 AND Druze > 2,534
Translate the following into a SQL query
What is the lowest year that has a druze greater than 2,534, with a total less than 121,333?
SELECT MIN Year FROM table WHERE Druze > 2,534 AND Total < 121,333
Translate the following into a SQL query
What is the lowest jewish that has a druze less than 2,517, and a year prior to 2007?
SELECT MIN Jewish FROM table WHERE Druze < 2,517 AND Year < 2007
Translate the following into a SQL query
What is the average muslim that has a druze less than 2,534, a year prior to 2005, and a jewish greater than 100,657?
SELECT AVG Muslim FROM table WHERE Druze < 2,534 AND Year = 2005 AND Jewish > 100,657
Translate the following into a SQL query
How many muslims have a jewish of 112,803, and a year after 2008?
SELECT SUM Muslim FROM table WHERE Jewish = 112,803 AND Year > 2008
Translate the following into a SQL query
What is the smallest electorate with 78,076 quota and less than 13 candidates?
SELECT MIN Electorate FROM table WHERE Quota = 78,076 AND Candidates < 13
Translate the following into a SQL query
What is the turnout with 15 candidates and more than 377,591 valid poll?
SELECT Turnout FROM table WHERE Candidates = 15 AND Valid Poll > 377,591
Translate the following into a SQL query
What country is ranked 79?
SELECT Country FROM table WHERE Rank = 79
Translate the following into a SQL query
What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time?
SELECT MIN Rank FROM table WHERE Year > 1999 AND Accolade = the 100 greatest indie rock albums of all time
Translate the following into a SQL query
Which Week is on sunday november 28?
SELECT MIN Week FROM table WHERE Date = sunday november 28
Translate the following into a SQL query
How many weeks have an Opponent of at new york giants?
SELECT COUNT Week FROM table WHERE Opponent = at new york giants
Translate the following into a SQL query
When is the Opponent of new england patriots?
SELECT Time ( ET ) FROM table WHERE Opponent = new england patriots
Translate the following into a SQL query
Which week has a Result of w 23–6?
SELECT Week FROM table WHERE Result = w 23–6
Translate the following into a SQL query
How many people did Mayor Olav Martin Vik preside over?
SELECT AVG Innhabitants FROM table WHERE Mayor = olav martin vik
Translate the following into a SQL query
What's the area of askøy, with a Municipal code less than 1247?
SELECT SUM Area FROM table WHERE Name = askøy AND Municipal code < 1247
Translate the following into a SQL query
What Mayor is from the KRF Party?
SELECT Mayor FROM table WHERE Party = krf
Translate the following into a SQL query
What's the Municipal code of the FRP Party with an area of 100?
SELECT SUM Municipal code FROM table WHERE Party = frp AND Area = 100
Translate the following into a SQL query
How many people does the KRF Party preside over?
SELECT AVG Innhabitants FROM table WHERE Party = krf
Translate the following into a SQL query
What is the total number of overall draft picks for player whose position is C and was picked after round 9?
SELECT COUNT Overall FROM table WHERE Position = c AND Round > 9
Translate the following into a SQL query
What position was Jafus White who was picked after round 1?
SELECT Position FROM table WHERE Round > 1 AND Player = jafus white
Translate the following into a SQL query
What is the total number of overall draft picks for Fred Nixon?
SELECT COUNT Overall FROM table WHERE Player = fred nixon
Translate the following into a SQL query
Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db?
SELECT Player FROM table WHERE Round < 9 AND Overall > 143 AND Position = db
Translate the following into a SQL query
What is the highest round of the player with an overall of 152?
SELECT MAX Round FROM table WHERE Overall = 152
Translate the following into a SQL query
What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152?
SELECT AVG Round FROM table WHERE Pick # > 5 AND Position = defensive back AND Overall < 152
Translate the following into a SQL query
What is the average overall of John Ayres, who had a pick # greater than 4?
SELECT AVG Overall FROM table WHERE Name = john ayres AND Pick # > 4
Translate the following into a SQL query
What is the name of the player with a pick # less than 5 and an overall of 284?
SELECT Name FROM table WHERE Pick # < 5 AND Overall = 284
Translate the following into a SQL query
What is the average overall of Ken Whisenhunt, who has a pick # of 5?
SELECT AVG Overall FROM table WHERE Pick # = 5 AND Name = ken whisenhunt
Translate the following into a SQL query
What is the lowest pick # of John Ayres?
SELECT MIN Pick # FROM table WHERE Name = john ayres
Translate the following into a SQL query
What is the name of team with Palmeiras 4-2 portuguesa as the last match?
SELECT Team FROM table WHERE Last match = palmeiras 4-2 portuguesa
Translate the following into a SQL query
What was the manner of departure replaced by tita?
SELECT Manner of departure FROM table WHERE Replaced by = tita
Translate the following into a SQL query
What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner?
SELECT Last match FROM table WHERE Manner of departure = sacked AND Outgoing manager = geninho
Translate the following into a SQL query
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?
SELECT Last match FROM table WHERE Date of vacancy = round 2 AND Outgoing manager = ney franco
Translate the following into a SQL query
What is the last match with a resigned manner of departure and a round 1 date of vacancy?
SELECT Last match FROM table WHERE Manner of departure = resigned AND Date of vacancy = round 1
Translate the following into a SQL query
What was the issue date for the single with a Volume:Issue of 47:8-9?
SELECT Issue Date(s) FROM table WHERE Volume:Issue = 47:8-9
Translate the following into a SQL query
What is the highest effic with an avg/g of 91.9?
SELECT MAX Effic FROM table WHERE Avg/G = 91.9
Translate the following into a SQL query
What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0?
SELECT Att-Cmp-Int FROM table WHERE Effic < 117.88 AND GP-GS = 10-0
Translate the following into a SQL query
What is the sum avg/g with an effic of 858.4?
SELECT SUM Avg/G FROM table WHERE Effic = 858.4
Translate the following into a SQL query
What is the mascot for the school in 32 Hendricks County?
SELECT Mascot FROM table WHERE County = 32 hendricks
Translate the following into a SQL query
What is the mascot for the school with a student body larger than 2,191 in Noblesville?
SELECT Mascot FROM table WHERE Enrollment > 2,191 AND School = noblesville
Translate the following into a SQL query
Where is Lafayette T. Jefferson School in 79 Tippecanoe county?
SELECT Location FROM table WHERE County = 79 tippecanoe AND School = lafayette t. jefferson
Translate the following into a SQL query
Where is the school with Royals as their mascot?
SELECT Location FROM table WHERE Mascot = royals
Translate the following into a SQL query
What was the score for the game on February 12?
SELECT Score FROM table WHERE Date = february 12
Translate the following into a SQL query
What was the score for the game on February 29?
SELECT Score FROM table WHERE Date = february 29
Translate the following into a SQL query
Where was the home team in the game played against Chicago?
SELECT Home FROM table WHERE Visitor = chicago
Translate the following into a SQL query
Which Season has a Game of fcs midwest region, and a Score of 40-33?
SELECT MAX Season FROM table WHERE Game = fcs midwest region AND Score = 40-33
Translate the following into a SQL query
Which Game has a Result of win, and an Opponent of new hampshire, and a Season smaller than 2008?
SELECT Game FROM table WHERE Result = win AND Opponent = new hampshire AND Season < 2008
Translate the following into a SQL query
Which Season has a Score of 39-27?
SELECT MAX Season FROM table WHERE Score = 39-27
Translate the following into a SQL query
What result has a goal of 5?
SELECT Result FROM table WHERE Goal = 5
Translate the following into a SQL query
What's the record on May 25?
SELECT Record FROM table WHERE Date = may 25
Translate the following into a SQL query
What's greatest attendance on May 7?
SELECT MAX Attendance FROM table WHERE Date = may 7
Translate the following into a SQL query
Which January has a Record of 28–14–8?
SELECT January FROM table WHERE Record = 28–14–8
Translate the following into a SQL query
Which Points is the highest one that has a Game smaller than 43, and a January larger than 8?
SELECT MAX Points FROM table WHERE Game < 43 AND January > 8
Translate the following into a SQL query
What is the mean number of wins for the norton team in 1966, when there are 8 points?
SELECT AVG Wins FROM table WHERE Team = norton AND Year = 1966 AND Points = 8
Translate the following into a SQL query
What is the most recent year for the ajs team when there are fewer than 0 wins?
SELECT MAX Year FROM table WHERE Team = ajs AND Wins < 0
Translate the following into a SQL query
What is the smallest point amount for years prior to 1958 when the class is 350cc?
SELECT MIN Points FROM table WHERE Year < 1958 AND Class = 350cc
Translate the following into a SQL query
What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955?
SELECT MAX Wins FROM table WHERE Points < 5 AND Class = 500cc AND Team = norton AND Year > 1955
Translate the following into a SQL query
What was the first prize for the FTOPS XIII series with more than 5,291 entrants?
SELECT First Prize FROM table WHERE Entrants > 5,291 AND Series = ftops xiii
Translate the following into a SQL query
When was the game that had a first prize of $161,480?
SELECT Date FROM table WHERE First Prize = $161,480
Translate the following into a SQL query
Who won on May 2011?
SELECT Winner FROM table WHERE Date = may 2011
Translate the following into a SQL query
What is the general classification with a 13 stage?
SELECT General classification FROM table WHERE Stage = 13
Translate the following into a SQL query
What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the general classification?
SELECT Stage FROM table WHERE Points classification = daniele bennati AND General classification = giovanni visconti
Translate the following into a SQL query
What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.
SELECT General classification FROM table WHERE Points classification = daniele bennati AND Young rider classification = morris possoni AND Stage = 3
Translate the following into a SQL query
What is the general classification with riccardo riccò as the young rider classification?
SELECT General classification FROM table WHERE Young rider classification = riccardo riccò
Translate the following into a SQL query
What is the point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification?
SELECT Points classification FROM table WHERE Young rider classification = chris anker sørensen AND General classification = christian vande velde
Translate the following into a SQL query
What is the point classification of stage 15?
SELECT Points classification FROM table WHERE Stage = 15
Translate the following into a SQL query
what week number was at memorial stadium?
SELECT AVG Week FROM table WHERE Game site = memorial stadium
Translate the following into a SQL query
before week 12 what was the attendance on 1983-11-21?
SELECT SUM Attendance FROM table WHERE Date = 1983-11-21 AND Week < 12
Translate the following into a SQL query
on week 16, what was the lowest attendance?
SELECT MIN Attendance FROM table WHERE Week = 16
Translate the following into a SQL query
Who won the women's doubles when andrey antropov won the men's singles and marina yakusheva won the womens' singles?
SELECT Women's doubles FROM table WHERE Men's singles = andrey antropov AND Women's singles = marina yakusheva
Translate the following into a SQL query
At what venue is the margin of victory 7 strokes?
SELECT Venue FROM table WHERE Margin of victory = 7 strokes
Translate the following into a SQL query
What was the purse when Sherri Steinhauer was champion at Woburn Golf and Country Club?
SELECT COUNT Purse ( $ ) FROM table WHERE Champion = sherri steinhauer AND Venue = woburn golf and country club
Translate the following into a SQL query
What is the exit date of the player who transferred to Cardiff City?
SELECT Exit date FROM table WHERE To club = cardiff city
Translate the following into a SQL query
What is the exit date of the player who transferred to Portsmouth?
SELECT Exit date FROM table WHERE To club = portsmouth
Translate the following into a SQL query
Which player has a position of FW?
SELECT Player FROM table WHERE Pos. = fw
Translate the following into a SQL query
Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap?
SELECT Frequency MHz FROM table WHERE ERP W > 4 AND Call sign = w218ap
Translate the following into a SQL query
Which City of license has a Frequency MHz of 91.5 fm?
SELECT City of license FROM table WHERE Frequency MHz = 91.5 fm
Translate the following into a SQL query
Which City of license has a Call sign of w220ba?
SELECT City of license FROM table WHERE Call sign = w220ba
Translate the following into a SQL query
Which ERP W has a Frequency MHz of 89.3 fm?
SELECT MAX ERP W FROM table WHERE Frequency MHz = 89.3 fm
Translate the following into a SQL query
How many wins does a player who have $7,188,408 earnings with lower than rank 5?
SELECT MIN Wins FROM table WHERE Earnings ( $ ) = 7,188,408 AND Rank > 5
Translate the following into a SQL query
How many wins does Greg Norman have?
SELECT SUM Wins FROM table WHERE Player = greg norman
Translate the following into a SQL query
What is the lowest number played with a position of 6 and less than 1 draw?
SELECT MIN Played FROM table WHERE Position = 6 AND Drawn < 1
Translate the following into a SQL query
What is the highest against value for Palmeiras and position less than 4?
SELECT MAX Against FROM table WHERE Team = palmeiras AND Position < 4
Translate the following into a SQL query
What is the highest number played with more than 2 lost for Palmeiras and less than 1 draw?
SELECT MAX Played FROM table WHERE Lost > 2 AND Team = palmeiras AND Drawn < 1
Translate the following into a SQL query
What is the average number lost when the against value is less than 5?
SELECT AVG Lost FROM table WHERE Against < 5