instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?
SELECT AVG Year FROM table WHERE Beer Name = maggs magnificent mild AND Prize = gold medal AND Category = mild and porter AND Competition = siba south east region beer competition
Translate the following into a SQL query
What beer won a silver medal at the camra reading branch beer festival in 2008?
SELECT Beer Name FROM table WHERE Prize = silver medal AND Competition = camra reading branch beer festival AND Year = 2008
Translate the following into a SQL query
What is Model Number, when Part Number(s) is AY80609003987AB?
SELECT Model number FROM table WHERE Part number(s) = ay80609003987ab
Translate the following into a SQL query
What is Frequency, when Part Number(s) is AY80609004002AC?
SELECT Frequency FROM table WHERE Part number(s) = ay80609004002ac
Translate the following into a SQL query
What is sSpec Number, when Frequency is 1 GHZ?
SELECT sSpec number FROM table WHERE Frequency = 1 ghz
Translate the following into a SQL query
What is Release Date, when sSpec Number is SLBZE(C0)SLBR8?
SELECT Release date FROM table WHERE sSpec number = slbze(c0)slbr8
Translate the following into a SQL query
What is L2 Cache, when Model Number is Atom Z625?
SELECT L2 cache FROM table WHERE Model number = atom z625
Translate the following into a SQL query
Which Pick has a Player of renaldo wynn, and a Round smaller than 1?
SELECT COUNT Pick FROM table WHERE Player = renaldo wynn AND Round < 1
Translate the following into a SQL query
Which Round has a Player of damon jones?
SELECT SUM Round FROM table WHERE Player = damon jones
Translate the following into a SQL query
Which College has a Round smaller than 2?
SELECT College FROM table WHERE Round < 2
Translate the following into a SQL query
What was the lead margin when Nixon had 48% and reporting was done by Rasmussen Reports?
SELECT COUNT Lead Margin FROM table WHERE Democrat: Jay Nixon = 48% AND Poll Source = rasmussen reports
Translate the following into a SQL query
What are the dates where Hulshof had 37% and Nixon had 48%?
SELECT Dates administered FROM table WHERE Republican: Kenny Hulshof = 37% AND Democrat: Jay Nixon = 48%
Translate the following into a SQL query
Which event is located in Northfield, Mn?
SELECT Event FROM table WHERE Location = northfield, mn
Translate the following into a SQL query
Which event has a distance of ft10in (m)?
SELECT Event FROM table WHERE Distance = ft10in (m)
Translate the following into a SQL query
What distance does the Bass Pro Shops event have?
SELECT Distance FROM table WHERE Event = bass pro shops
Translate the following into a SQL query
On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?
SELECT Date FROM table WHERE Handler = mike jackson AND Event = indianapolis boat, sport & travel show
Translate the following into a SQL query
Who did they play when there were only 751 in attendance?
SELECT Opponent FROM table WHERE Attendance < 751
Translate the following into a SQL query
When did they play the swindon wildcats away?
SELECT Date FROM table WHERE Venue = away AND Opponent = swindon wildcats
Translate the following into a SQL query
Who was the Man of the Match when they played the Romford Raiders at home?
SELECT Man of the Match FROM table WHERE Venue = home AND Opponent = romford raiders
Translate the following into a SQL query
What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)?
SELECT Nat. FROM table WHERE App(L/C/E) = 0 (0/0/0) AND Name = yahaya
Translate the following into a SQL query
What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa?
SELECT Transfer fee FROM table WHERE App(L/C/E) = 0 (0/0/0) AND Notes = to anagennisi karditsa
Translate the following into a SQL query
what is the american name when the triple dotted value is 15/2 or 7 1/2?
SELECT American name FROM table WHERE Triple Dotted Value = 15/2 or 7 1/2
Translate the following into a SQL query
what is the british name when the american name is sixteenth note?
SELECT British name FROM table WHERE American name = sixteenth note
Translate the following into a SQL query
what is the value when the british name is quaver?
SELECT Value FROM table WHERE British name = quaver
Translate the following into a SQL query
what is the british name when the double dotted value is 7/32?
SELECT British name FROM table WHERE Double Dotted Value = 7/32
Translate the following into a SQL query
what is the double dotted value when the triple dotted value is 15/128?
SELECT Double Dotted Value FROM table WHERE Triple Dotted Value = 15/128
Translate the following into a SQL query
what is the value when the british name is maxima?
SELECT Value FROM table WHERE British name = maxima
Translate the following into a SQL query
What is Home Team, when Date is "28 January 1984", and when Tie No is "4"?
SELECT Home team FROM table WHERE Date = 28 january 1984 AND Tie no = 4
Translate the following into a SQL query
What is Date, when Away Team is "Gillingham"?
SELECT Date FROM table WHERE Away team = gillingham
Translate the following into a SQL query
What is Home Team, when Date is "1 February 1984", and when Tie No is "5"?
SELECT Home team FROM table WHERE Date = 1 february 1984 AND Tie no = 5
Translate the following into a SQL query
What is Away Team, when Home Team is "Sheffield Wednesday"?
SELECT Away team FROM table WHERE Home team = sheffield wednesday
Translate the following into a SQL query
What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"?
SELECT Date FROM table WHERE Tie no = replay AND Away team = crystal palace
Translate the following into a SQL query
What to par has tom kite as the player?
SELECT To par FROM table WHERE Player = tom kite
Translate the following into a SQL query
What player has a t57 as the finish?
SELECT Player FROM table WHERE Finish = t57
Translate the following into a SQL query
What is the lowest total that has 1992 as the year (s) won?
SELECT MIN Total FROM table WHERE Year(s) won = 1992
Translate the following into a SQL query
What player has +21 as the to par?
SELECT Player FROM table WHERE To par = +21
Translate the following into a SQL query
Which to par has a total less than 296?
SELECT To par FROM table WHERE Total < 296
Translate the following into a SQL query
What finish has +21 as the to par?
SELECT Finish FROM table WHERE To par = +21
Translate the following into a SQL query
What is the total number of events that had 34 cuts and 3 in the top 10?
SELECT COUNT Events FROM table WHERE Cuts made < 34 AND Top-10 > 3
Translate the following into a SQL query
Who played with more than 51,901 attendance and resulted in t 13-13?
SELECT Opponent FROM table WHERE Attendance > 51,901 AND Result = t 13-13
Translate the following into a SQL query
Who had the most rebounds on January 3?
SELECT High rebounds FROM table WHERE Date = january 3
Translate the following into a SQL query
Which surface had a date after 1982 and partner of Guy Forget?
SELECT Surface FROM table WHERE Date > 1982 AND Partner = guy forget
Translate the following into a SQL query
What was the result of the week 9 game?
SELECT Result FROM table WHERE Week = 9
Translate the following into a SQL query
What was the attendance during the november 16, 1975 game?
SELECT MAX Attendance FROM table WHERE Date = november 16, 1975
Translate the following into a SQL query
What is the total number in class for the Whitehaven Coal?
SELECT SUM Number in class FROM table WHERE Owner = whitehaven coal
Translate the following into a SQL query
What was built in a class with less than 10, and the Downer Rail owner?
SELECT Built FROM table WHERE Number in class < 10 AND Owner = downer rail
Translate the following into a SQL query
Which class has more than 15 people in the class?
SELECT Class FROM table WHERE Number in class > 15
Translate the following into a SQL query
Who is the owner that built in 2009-2011?
SELECT Owner FROM table WHERE Built = 2009-2011
Translate the following into a SQL query
Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?
SELECT AVG Grid FROM table WHERE Manufacturer = aprilia AND Rider = bradley smith
Translate the following into a SQL query
Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher?
SELECT Time FROM table WHERE Laps = 19 AND Grid > 19 AND Manufacturer = ktm AND Rider = randy krummenacher
Translate the following into a SQL query
Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?
SELECT Time FROM table WHERE Manufacturer = aprilia AND Grid < 16 AND Rider = sandro cortese
Translate the following into a SQL query
Name the Silver which has a Bronze of 19, and a Total larger than 58?
SELECT MIN Silver FROM table WHERE Bronze = 19 AND Total > 58
Translate the following into a SQL query
What kind of Silver has a Rank of 3, and a Gold smaller than 2?
SELECT COUNT Silver FROM table WHERE Rank = 3 AND Gold < 2
Translate the following into a SQL query
COunt the silver that has a Bronze smaller than 1?
SELECT SUM Silver FROM table WHERE Bronze < 1
Translate the following into a SQL query
Name the Total which has a Silver larger than 19?
SELECT MAX Total FROM table WHERE Silver > 19
Translate the following into a SQL query
Name the Silver that has a Total smaller than 2, and a Nation of south korea?
SELECT AVG Silver FROM table WHERE Total < 2 AND Nation = south korea
Translate the following into a SQL query
What is the location of the match with chad armstrong as the opponent?
SELECT Location FROM table WHERE Opponent = chad armstrong
Translate the following into a SQL query
What is Scott Verplank's score?
SELECT Score FROM table WHERE Player = scott verplank
Translate the following into a SQL query
What place is United States player Corey Pavin in?
SELECT Place FROM table WHERE Country = united states AND Player = corey pavin
Translate the following into a SQL query
Which country has a score of 70-71-72=213?
SELECT Country FROM table WHERE Score = 70-71-72=213
Translate the following into a SQL query
Where does Bob Tway Place?
SELECT Place FROM table WHERE Player = bob tway
Translate the following into a SQL query
What is the place with a to par of E and a score of 69-69-72=210?
SELECT Place FROM table WHERE To par = e AND Score = 69-69-72=210
Translate the following into a SQL query
WHAT IS THE COUNTRY WITH DAVE BARR?
SELECT Country FROM table WHERE Player = dave barr
Translate the following into a SQL query
WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD?
SELECT To par FROM table WHERE Place = t7 AND Score = 72-67=139 AND Player = raymond floyd
Translate the following into a SQL query
WHAT IS THE PLACE WITH PLAYER mark o'meara?
SELECT Place FROM table WHERE Player = mark o'meara
Translate the following into a SQL query
Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2?
SELECT MAX Drawn FROM table WHERE Position < 4 AND Lost < 2
Translate the following into a SQL query
How many Points have a Position larger than 3, and a Played smaller than 14?
SELECT COUNT Points FROM table WHERE Position > 3 AND Played < 14
Translate the following into a SQL query
Which Lost has a Position of 4, and a Drawn smaller than 3?
SELECT AVG Lost FROM table WHERE Position = 4 AND Drawn < 3
Translate the following into a SQL query
Which Position has a Lost larger than 4, and a Played larger than 14?
SELECT AVG Position FROM table WHERE Lost > 4 AND Played > 14
Translate the following into a SQL query
On which week was the opponent the oakland raiders?
SELECT SUM Week FROM table WHERE Opponent = oakland raiders
Translate the following into a SQL query
What was the attendance at the game where the opponent was the denver broncos?
SELECT Attendance FROM table WHERE Opponent = denver broncos
Translate the following into a SQL query
How many people are enrolled in platteville, wi?
SELECT SUM Enrollment FROM table WHERE Location = platteville, wi
Translate the following into a SQL query
What is the team nickname of university of wisconsin-platteville?
SELECT Nickname FROM table WHERE Institution = university of wisconsin-platteville
Translate the following into a SQL query
What is To Par, when Place is 3?
SELECT To par FROM table WHERE Place = 3
Translate the following into a SQL query
What is Country, when Player is "Rives McBee"?
SELECT Country FROM table WHERE Player = rives mcbee
Translate the following into a SQL query
What is Place, when Player is "Tony Lema"?
SELECT Place FROM table WHERE Player = tony lema
Translate the following into a SQL query
What is Score, when To Par is "E"?
SELECT Score FROM table WHERE To par = e
Translate the following into a SQL query
What is Country, when Score is 71-71-69=211?
SELECT Country FROM table WHERE Score = 71-71-69=211
Translate the following into a SQL query
What is Country, when Score is 71-74-70=215?
SELECT Country FROM table WHERE Score = 71-74-70=215
Translate the following into a SQL query
What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?
SELECT 2004/ 05 FROM table WHERE 2007/ 08 = not held AND 2012/ 13 = a AND 2011/ 12 = a AND 2010/ 11 = not held
Translate the following into a SQL query
What shows for 2012/ 13 when the 2007/ 08 is not held, and the 2011/ 12 is non-ranking?
SELECT 2012/ 13 FROM table WHERE 2007/ 08 = not held AND 2011/ 12 = non-ranking
Translate the following into a SQL query
What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A?
SELECT 2011/ 12 FROM table WHERE 2010/ 11 = not held AND 2012/ 13 = a
Translate the following into a SQL query
What is the 2004/ 05 when the 2011/ 12 is non-ranking?
SELECT 2004/ 05 FROM table WHERE 2011/ 12 = non-ranking
Translate the following into a SQL query
What is the 2012/ 13 when the 2011/ 12 is non-ranking?
SELECT 2012/ 13 FROM table WHERE 2011/ 12 = non-ranking
Translate the following into a SQL query
What is the 2010/ 11 when the 2011/ 12 is ranking tournaments?
SELECT 2010/ 11 FROM table WHERE 2011/ 12 = ranking tournaments
Translate the following into a SQL query
what is the lost when played is less than 42?
SELECT SUM Lost FROM table WHERE Played < 42
Translate the following into a SQL query
what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?
SELECT Goal Difference FROM table WHERE Drawn > 11 AND Goals Against < 63 AND Goals For < 87 AND Lost > 16
Translate the following into a SQL query
how many times is lost less than 7 and the position 2?
SELECT COUNT Goals For FROM table WHERE Lost < 7 AND Position = 2
Translate the following into a SQL query
what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?
SELECT SUM Position FROM table WHERE Points 1 < 36 AND Goals For < 40 AND Drawn < 9
Translate the following into a SQL query
How many executions in persona have a number with known sentences of 2 (1543–1544)?
SELECT Executions in persona FROM table WHERE Number of autos da fé with known sentences = 2 (1543–1544)
Translate the following into a SQL query
How many were penanced when the number with known sentences was 71 (1600–1773)?
SELECT Penanced FROM table WHERE Number of autos da fé with known sentences = 71 (1600–1773)
Translate the following into a SQL query
How many were penanced for a total of 7666?
SELECT Penanced FROM table WHERE Total = 7666
Translate the following into a SQL query
How man executions in effigie took place at the Lamego tribunal?
SELECT Executions in effigie FROM table WHERE Tribunal = lamego
Translate the following into a SQL query
How many were penanced with 0 executions in effigie for a total of 21?
SELECT Penanced FROM table WHERE Executions in effigie = 0 AND Total = 21
Translate the following into a SQL query
Which tribunal had a total of 4167?
SELECT Tribunal FROM table WHERE Total = 4167
Translate the following into a SQL query
What is the Opponent of the Game on October 20?
SELECT Opponent FROM table WHERE Date = october 20
Translate the following into a SQL query
Which institution is located in Reading, PA?
SELECT Institution FROM table WHERE Location = reading, pa
Translate the following into a SQL query
What was the nick name for the school established in 1958?
SELECT Nickname FROM table WHERE Established = 1958
Translate the following into a SQL query
When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?
SELECT MAX Laps FROM table WHERE Team = mi-jack conquest racing AND Driver = justin wilson AND Grid < 5
Translate the following into a SQL query
When the team is newman/haas racing and the grid size is 3, what's the time/retired?
SELECT Time/Retired FROM table WHERE Team = newman/haas racing AND Grid = 3