instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What venue features an away side score of 11.11 (77)?
SELECT Venue FROM table WHERE Away team score = 11.11 (77)
Translate the following into a SQL query
Who is the away side when the crowd is over 14,112 with an away team score of 11.11 (77)?
SELECT Away team FROM table WHERE Crowd > 14,112 AND Away team score = 11.11 (77)
Translate the following into a SQL query
How many points did the away team of st kilda score?
SELECT Away team score FROM table WHERE Away team = st kilda
Translate the following into a SQL query
Tell me the date with result of l 13–9
SELECT Date FROM table WHERE Result = l 13–9
Translate the following into a SQL query
Tell me the total number of week for w 35–7
SELECT COUNT Week FROM table WHERE Result = w 35–7
Translate the following into a SQL query
Tell me the average week for result of l 34–24
SELECT AVG Week FROM table WHERE Result = l 34–24
Translate the following into a SQL query
Who was the President of Czechoslovakia when an ambassador's tenure began in 1950?
SELECT Czechoslovak president FROM table WHERE Tenure Begin = 1950
Translate the following into a SQL query
What is the total share for an episode with an air date of November 19, 2007?
SELECT SUM Share FROM table WHERE Air Date = november 19, 2007
Translate the following into a SQL query
Which manufacturer has a Time/Retired of +15.665?
SELECT Manufacturer FROM table WHERE Time/Retired = +15.665
Translate the following into a SQL query
What were the laps of aprilia with a grid of 10?
SELECT Laps FROM table WHERE Manufacturer = aprilia AND Grid = 10
Translate the following into a SQL query
What was the size of the crowd at the game played at Junction Oval?
SELECT AVG Crowd FROM table WHERE Venue = junction oval
Translate the following into a SQL query
When was the game when North Melbourne was the home team?
SELECT Date FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
Which School/Club Team does Andrew Jones play for?
SELECT School/Club Team FROM table WHERE Player = andrew jones
Translate the following into a SQL query
Which School/Club Team did not make it to round 2?
SELECT School/Club Team FROM table WHERE Round < 2
Translate the following into a SQL query
Which player is the 24 pick?
SELECT Player FROM table WHERE Pick = 24
Translate the following into a SQL query
What is the average round of the number 16 pick?
SELECT AVG Round FROM table WHERE Pick = 16
Translate the following into a SQL query
How many games were lost where the win percentage is smaller than 16.7 and the played games is 3?
SELECT COUNT Lost FROM table WHERE Win % < 16.7 AND Played = 3
Translate the following into a SQL query
Where is pine valley?
SELECT Location FROM table WHERE Name = pine valley
Translate the following into a SQL query
What is augusta's low rank?
SELECT MIN Rank FROM table WHERE Location = augusta
Translate the following into a SQL query
Which group has a registration less than 75 in 2011, more then 140 in 2005, and less than 148 in 2002?
SELECT Group FROM table WHERE 2011 Registrations > 75 AND 2005 Registrations > 140 AND 2002 Registrations < 148
Translate the following into a SQL query
Which Model has the GCM (kg) Technical Capacity of 42000?
SELECT Model FROM table WHERE GCM (kg) Technical Capacity = 42000
Translate the following into a SQL query
Which Model has a GCM (kg) Technical Capacity of 35000, a GVM (kg) Technical Capacity of 16000, and Cummins Interact 6.0-euro III (turbo intercooler) for the Engine?
SELECT Model FROM table WHERE GCM (kg) Technical Capacity = 35000 AND GVM (kg) Technical Capacity = 16000 AND Engine make/Capacity = cummins interact 6.0-euro iii (turbo intercooler)
Translate the following into a SQL query
Which Torque Nm@rpm has a Power kW@rpm equal to 184 @ 2500 and a GVM (kg) Technical Capacity of 16000?
SELECT Torque Nm@rpm FROM table WHERE Power kW@rpm = 184 @ 2500 AND GVM (kg) Technical Capacity = 16000
Translate the following into a SQL query
Which character won before 2006?
SELECT Character FROM table WHERE Result = won AND Year < 2006
Translate the following into a SQL query
In 2004 who was favourite maa?
SELECT Character FROM table WHERE Category = favourite maa AND Year = 2004
Translate the following into a SQL query
What were the results after 2004?
SELECT Result FROM table WHERE Year > 2004
Translate the following into a SQL query
In 2007 what category won?
SELECT Category FROM table WHERE Result = won AND Year < 2007
Translate the following into a SQL query
What's the D 48 √ when the D 40 √ is D 37?
SELECT D 48 √ FROM table WHERE D 40 √ = d 37
Translate the following into a SQL query
What's the D 42 √ when D 46 √ is majority→?
SELECT D 42 √ FROM table WHERE D 46 √ = majority→
Translate the following into a SQL query
What's the D 40 √ when D 43 √ is d 14?
SELECT D 40 √ FROM table WHERE D 43 √ = d 14
Translate the following into a SQL query
What's the D 42 √ when D 44 √ is majority→?
SELECT D 42 √ FROM table WHERE D 44 √ = majority→
Translate the following into a SQL query
What's the D 44 √ when D 46 √ is d 26?
SELECT D 44 √ FROM table WHERE D 46 √ = d 26
Translate the following into a SQL query
What's the D 42 √ when D 43 √ is r 5?
SELECT D 42 √ FROM table WHERE D 43 √ = r 5
Translate the following into a SQL query
How many benue houses have been founded?
SELECT COUNT Founded FROM table WHERE House Name = benue
Translate the following into a SQL query
When is the earliest year founded for houses named after the river benue?
SELECT MIN Founded FROM table WHERE Named after = river benue
Translate the following into a SQL query
What composition was founded in 1976?
SELECT Composition FROM table WHERE Founded = 1976
Translate the following into a SQL query
What colours have a House Name of ogun?
SELECT Colours FROM table WHERE House Name = ogun
Translate the following into a SQL query
What's the average attendance on january 6, 2008?
SELECT AVG Attendance FROM table WHERE Date = january 6, 2008
Translate the following into a SQL query
What was the score when the spurs were the visitors?
SELECT Score FROM table WHERE Visitor = spurs
Translate the following into a SQL query
What was the score when the nets were the visitors and attendance was over 16,494?
SELECT Score FROM table WHERE Attendance > 16,494 AND Visitor = nets
Translate the following into a SQL query
Which name has a type of lake, a County of hennepin, and a USGS 7.5 Map of rogers?
SELECT Name FROM table WHERE Type = lake AND County = hennepin AND USGS 7.5' Map = rogers
Translate the following into a SQL query
What is the total GNIS Feature ID with a County of idaho?
SELECT SUM GNIS Feature ID FROM table WHERE County = idaho
Translate the following into a SQL query
What is the lowest GNIS Feature ID from County of sheridan?
SELECT MIN GNIS Feature ID FROM table WHERE County = sheridan
Translate the following into a SQL query
Which state has a GNIS Feature ID larger than 624634, and a USGS 7.5 Map of temple peak?
SELECT State FROM table WHERE GNIS Feature ID > 624634 AND USGS 7.5' Map = temple peak
Translate the following into a SQL query
Which state has a Name of diamond lake, and a GNIS Feature ID of 1579127?
SELECT State FROM table WHERE Name = diamond lake AND GNIS Feature ID = 1579127
Translate the following into a SQL query
Who directed the episode written cyrus nowrasteh?
SELECT Directed by FROM table WHERE Written by = cyrus nowrasteh
Translate the following into a SQL query
What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126?
SELECT COUNT Rank (Pakistan) FROM table WHERE World Rank < 11 AND Height (m) < 8126
Translate the following into a SQL query
Which 2006 tournament had a 4R performance in 2001?
SELECT 2006 FROM table WHERE 2001 = 4r
Translate the following into a SQL query
Which tournament had a performance of 1R in 2004 and 2R in 1998?
SELECT Tournament FROM table WHERE 2004 = 1r AND 1998 = 2r
Translate the following into a SQL query
Which 1998 tournament had a performance of 3R in 2007?
SELECT 1998 FROM table WHERE 2007 = 3r
Translate the following into a SQL query
What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?
SELECT 2005 FROM table WHERE 2006 = 1r AND 2002 = 1r
Translate the following into a SQL query
What did home team score at glenferrie oval?
SELECT Home team score FROM table WHERE Venue = glenferrie oval
Translate the following into a SQL query
For End of Fiscal Years before 2003 with a GDP $Billions OMB/BEA est.=MW.com of 10,980 what is the highest Gross Debt in $Billions undeflated Treas.?
SELECT MAX Gross Debt in $Billions undeflated Treas. FROM table WHERE GDP $Billions OMB/BEA est.=MW.com = 10,980 AND End of Fiscal Year < 2003
Translate the following into a SQL query
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?
SELECT AVG Gross Debt in $Billions undeflated Treas. FROM table WHERE End of Fiscal Year > 1980 AND as % of GDP Low-High = 83.4-84.4 AND Debt Held By Public ($Billions) < 7,552
Translate the following into a SQL query
For End of Fiscal Year(s) with as % of GDP (Treas/MW, OMB or OMB/MW) of 28 and Gross Debt in $Billions undeflated Treas. smaller than 370.9 what would be the sum of Debt Held By Public ($Billions)?
SELECT COUNT Debt Held By Public ($Billions) FROM table WHERE as % of GDP (Treas/MW, OMB or OMB/MW) = 28 AND Gross Debt in $Billions undeflated Treas. < 370.9
Translate the following into a SQL query
For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?
SELECT COUNT Gross Debt in $Billions undeflated Treas. FROM table WHERE Debt Held By Public ($Billions) > 236.8 AND as % of GDP Low-High = 33.4
Translate the following into a SQL query
What player was selected in Round 6?
SELECT Player FROM table WHERE Round = 6
Translate the following into a SQL query
What is the nationality of the player who played for the Peterborough Petes (OHL)?
SELECT Nationality FROM table WHERE College/junior/club team (league) = peterborough petes (ohl)
Translate the following into a SQL query
Which round was Mike Peca (C) of Canada selected in?
SELECT SUM Round FROM table WHERE Nationality = canada AND Player = mike peca (c)
Translate the following into a SQL query
What is the smallest grid for Ayrton Senna?
SELECT MIN Grid FROM table WHERE Driver = ayrton senna
Translate the following into a SQL query
What is the Time/Retired for laps higher than 52 on a grid larger than 21?
SELECT Time/Retired FROM table WHERE Laps > 52 AND Grid > 21
Translate the following into a SQL query
What is the sum of laps for grid 20?
SELECT SUM Laps FROM table WHERE Grid = 20
Translate the following into a SQL query
What is the most laps for Ayrton Senna?
SELECT MAX Laps FROM table WHERE Driver = ayrton senna
Translate the following into a SQL query
what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?
SELECT SUM Parallel Bars FROM table WHERE Floor Exercise > 9.137 AND Horizontal Bar = 9.225 AND Vault > 9.5
Translate the following into a SQL query
what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?
SELECT MAX Floor Exercise FROM table WHERE Pommel Horse = 9.65 AND Horizontal Bar > 9.475
Translate the following into a SQL query
Which tournament had A in 2008, and a 1r in 2010?
SELECT Tournament FROM table WHERE 2008 = a AND 2010 = 1r
Translate the following into a SQL query
What was the position for 2008, where 2012 was q1, and 2010 was 1r?
SELECT 2008 FROM table WHERE 2012 = q1 AND 2010 = 1r
Translate the following into a SQL query
Which venue has a Goal of 3?
SELECT Venue FROM table WHERE Goal = 3
Translate the following into a SQL query
Which venue was used on 10 september 2010?
SELECT Venue FROM table WHERE Date = 10 september 2010
Translate the following into a SQL query
How many carries for the player with under 6 yards and an average of over 5?
SELECT COUNT Car. FROM table WHERE Yards < 6 AND Avg. > 5
Translate the following into a SQL query
What was the longest carry for kevin clemens with under 31 yards total?
SELECT MAX Long FROM table WHERE Player = kevin clemens AND Yards < 31
Translate the following into a SQL query
How many TDs for the player with a long of less than 4 and under 8 yards?
SELECT SUM TD's FROM table WHERE Long < 4 AND Yards < 8
Translate the following into a SQL query
What is the average for the player with 1 TD, over 4 as a long, and under 1 carry?
SELECT MIN Avg. FROM table WHERE TD's = 1 AND Long > 4 AND Car. < 1
Translate the following into a SQL query
What was the attendance at Brunswick Street Oval?
SELECT COUNT Crowd FROM table WHERE Venue = brunswick street oval
Translate the following into a SQL query
What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?
SELECT First Day Cover Cancellation FROM table WHERE Date of Issue = 13 june 2005
Translate the following into a SQL query
What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?
SELECT First Day Cover Cancellation FROM table WHERE Denomination = $0.50 AND Date of Issue = 13 june 2005
Translate the following into a SQL query
What's the Denomination listed for the Date of Issue 12 April 2005?
SELECT Denomination FROM table WHERE Date of Issue = 12 april 2005
Translate the following into a SQL query
Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?
SELECT Paper Type FROM table WHERE Denomination = $0.50 AND Date of Issue = 4 february 2005
Translate the following into a SQL query
What's the Date of Issue for Design of Katalin Kovats?
SELECT Date of Issue FROM table WHERE Design = katalin kovats
Translate the following into a SQL query
What was the average for the player that scored 116 yards and had TD's less than 1?
SELECT COUNT Avg. FROM table WHERE Yards = 116 AND TD's < 1
Translate the following into a SQL query
What was the lowest recorded record for a player with an average larger than 13?
SELECT MIN Rec. FROM table WHERE Avg. > 13
Translate the following into a SQL query
How many yards did Hank Edwards make when he had TD's of 1 and an average higher than 13?
SELECT COUNT Yards FROM table WHERE TD's = 1 AND Player = hank edwards AND Avg. > 13
Translate the following into a SQL query
How many yards were averaged by the player that had a higher than 13 average with less than 18 long?
SELECT AVG Yards FROM table WHERE Long < 18 AND Avg. > 13
Translate the following into a SQL query
What is the highest number of yards recorded for a player that had more than 4 TD's?
SELECT MAX Yards FROM table WHERE TD's > 4
Translate the following into a SQL query
For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?
SELECT MAX Passenger Fleet FROM table WHERE Airline/Holding = wizz air AND Current Destinations < 83
Translate the following into a SQL query
Which alliance has a rank of 40?
SELECT Alliance/ Association FROM table WHERE Rank = 40
Translate the following into a SQL query
For airlines named Aeroflot Group, what is the alliance?
SELECT Alliance/ Association FROM table WHERE Airline/Holding = aeroflot group
Translate the following into a SQL query
In which year was a linebacker pick 17?
SELECT Year FROM table WHERE Position = linebacker AND Pick = 17
Translate the following into a SQL query
What is the name of the cornerback from 1997?
SELECT Player name FROM table WHERE Position = cornerback AND Year = 1997
Translate the following into a SQL query
What is the name of the player from after 1989 from Washington State?
SELECT Player name FROM table WHERE Year > 1989 AND College = washington state
Translate the following into a SQL query
Which race has a Margin of 8?
SELECT Race FROM table WHERE Margin = 8
Translate the following into a SQL query
How many Runners have a Placing that isn't 1?
SELECT COUNT Runners FROM table WHERE Placing > 1
Translate the following into a SQL query
What is the lowest number of Runners that has a Placing that isn't 1?
SELECT MIN Runners FROM table WHERE Placing < 1
Translate the following into a SQL query
What is the lowest Prize amount for the Irish Derby Race?
SELECT MIN Prize (£K) FROM table WHERE Race = irish derby
Translate the following into a SQL query
How many people attended the game that resulted in an away team score of 18.17 (125)?
SELECT SUM Crowd FROM table WHERE Away team score = 18.17 (125)
Translate the following into a SQL query
What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg?
SELECT AVG Mintage FROM table WHERE Issue Price = $1,099.99 AND Artist = pamela stagg
Translate the following into a SQL query
What was the year that had an issue price of $1,295.95?
SELECT AVG Year FROM table WHERE Issue Price = $1,295.95
Translate the following into a SQL query
What is the composition with an artist of Henry Purdy, a year smaller than 2002, and a mint more than 1,998?
SELECT Composition FROM table WHERE Year < 2002 AND Mintage > 1,998 AND Artist = henry purdy
Translate the following into a SQL query
What was the average mintage for that of artist Celia Godkin, before the year 2010?
SELECT AVG Mintage FROM table WHERE Artist = celia godkin AND Year < 2010
Translate the following into a SQL query
Where is the Venue that has an away team score of 13.16 (94) points?
SELECT Venue FROM table WHERE Away team score = 13.16 (94)