instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the latest year the world championships were held in Thun?
SELECT MAX Year FROM table WHERE Place = thun
Translate the following into a SQL query
Who won gold when the world championships were held in Phoenix?
SELECT Gold FROM table WHERE Place = phoenix
Translate the following into a SQL query
What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84?
SELECT MIN ANSI code FROM table WHERE Longitude > -101.333926 AND GEO ID < 3806700900 AND Township = adler AND Land ( sqmi ) > 35.84
Translate the following into a SQL query
Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?
SELECT AVG Latitude FROM table WHERE Land ( sqmi ) < 35.874 AND Pop. (2010) > 35 AND County = cass AND Water (sqmi) = 0.008
Translate the following into a SQL query
In what county is the latitude less than 46.935364 and GEO ID is 3801700500?
SELECT County FROM table WHERE Latitude < 46.935364 AND GEO ID = 3801700500
Translate the following into a SQL query
Who was the opponent at the game with a score of 35-14?
SELECT Opponent FROM table WHERE Score = 35-14
Translate the following into a SQL query
What was the result of the game when the record was 5-1?
SELECT Result FROM table WHERE Record = 5-1
Translate the following into a SQL query
What was the result of the game against the Los Angeles Dons?
SELECT Result FROM table WHERE Opponent = los angeles dons
Translate the following into a SQL query
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?
SELECT AVG Year FROM table WHERE Venue = bydgoszcz, poland AND Event = junior team
Translate the following into a SQL query
Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?
SELECT Venue FROM table WHERE Year < 2009 AND Event = 3000 m AND Competition = world youth championships
Translate the following into a SQL query
Which Year has a Competition of commonwealth youth games?
SELECT AVG Year FROM table WHERE Competition = commonwealth youth games
Translate the following into a SQL query
What is the total for 1986?
SELECT COUNT Rank FROM table WHERE Year = 1986
Translate the following into a SQL query
What is the name before 1954 with more than 15 floors?
SELECT Name FROM table WHERE Year < 1954 AND Floors > 15
Translate the following into a SQL query
What is the lowest rank for El Paso Natural Gas Company Building?
SELECT MIN Rank FROM table WHERE Name = el paso natural gas company building
Translate the following into a SQL query
What is the lowest 2013 population estimate of south africa, which has a percentage greater than 19.8 and a 2011 population greater than 51,770,561?
SELECT MIN Population Estimate (2013) FROM table WHERE Percentage > 19.8 AND Province = south africa AND Population (2011) > 51,770,561
Translate the following into a SQL query
What is the rank of the gauteng province?
SELECT Rank FROM table WHERE Province = gauteng
Translate the following into a SQL query
What is the lowest 2013 population estimate of the province with a 23.7 percentage?
SELECT MIN Population Estimate (2013) FROM table WHERE Percentage = 23.7
Translate the following into a SQL query
What year(s) was Duisburg runner-up?
SELECT Years runner-up FROM table WHERE Team = duisburg
Translate the following into a SQL query
What was the earliest year with a note of 18.04 m wl?
SELECT MIN Year FROM table WHERE Notes = 18.04 m wl
Translate the following into a SQL query
What venue had a competition of World Junior Championships before 2011?
SELECT Venue FROM table WHERE Year < 2011 AND Competition = world junior championships
Translate the following into a SQL query
Who was the developer of Call of Duty: Black Ops?
SELECT Developer(s) FROM table WHERE Game = call of duty: black ops
Translate the following into a SQL query
What is the platform for the game of the third-person shooter genre?
SELECT Platform(s) FROM table WHERE Genre = third-person shooter
Translate the following into a SQL query
What is the platform of the game from 2007?
SELECT Platform(s) FROM table WHERE Year = 2007
Translate the following into a SQL query
Who was the developer of Resident Evil 4?
SELECT Developer(s) FROM table WHERE Game = resident evil 4
Translate the following into a SQL query
What was the rank of flori lang when his time was less than 22.27
SELECT SUM Rank FROM table WHERE Name = flori lang AND Time < 22.27
Translate the following into a SQL query
What lane had a heat after 12, a rank of 38 and a time larger than 22.67?
SELECT AVG Lane FROM table WHERE Heat > 12 AND Rank = 38 AND Time > 22.67
Translate the following into a SQL query
What game has 27-12 record?
SELECT Game FROM table WHERE Record = 27-12
Translate the following into a SQL query
What date was the record 21-11?
SELECT Date FROM table WHERE Record = 21-11
Translate the following into a SQL query
What is the location/attendance for the w 95-93 score?
SELECT Location Attendance FROM table WHERE Score = w 95-93
Translate the following into a SQL query
What is the location/attendance with a 26-11 record?
SELECT Location Attendance FROM table WHERE Record = 26-11
Translate the following into a SQL query
Which opponent has a 26-12 record?
SELECT Opponent FROM table WHERE Record = 26-12
Translate the following into a SQL query
What is Lee Ka Man's Time?
SELECT Time FROM table WHERE Rower = lee ka man
Translate the following into a SQL query
What is the Rank of the rower with a Time of 8:23.02?
SELECT COUNT Rank FROM table WHERE Time = 8:23.02
Translate the following into a SQL query
What is the most gold when the rank is 7 and bronze is less than 0?
SELECT MAX Gold FROM table WHERE Rank = 7 AND Bronze < 0
Translate the following into a SQL query
what is the most gold when the total is 7?
SELECT MAX Gold FROM table WHERE Total = 7
Translate the following into a SQL query
what is the least gold when the rank is 10 and silver is less than 0?
SELECT MIN Gold FROM table WHERE Rank = 10 AND Silver < 0
Translate the following into a SQL query
what is the lowest total when the nation is sweden (swe) and silver is less than 0?
SELECT MIN Total FROM table WHERE Nation = sweden (swe) AND Silver < 0
Translate the following into a SQL query
what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?
SELECT AVG Total FROM table WHERE Silver > 2 AND Bronze = 12 AND Gold < 12
Translate the following into a SQL query
What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?
SELECT COUNT Longitude FROM table WHERE Latitude = 48.930222 AND GEO ID < 3806755660
Translate the following into a SQL query
What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?
SELECT Latitude FROM table WHERE Land ( sqmi ) < 34.401 AND GEO ID < 3807157722 AND Longitude = -98.475995
Translate the following into a SQL query
What is the total longitude of Nogosek and a GEO ID larger than 3809357060?
SELECT COUNT Longitude FROM table WHERE Township = nogosek AND GEO ID > 3809357060
Translate the following into a SQL query
What Band number has a Power (W) of 400 or less?
SELECT SUM Band FROM table WHERE Power (W) < 400
Translate the following into a SQL query
What Band's Power (W) is 400 or less?
SELECT MAX Band FROM table WHERE Power (W) > 400
Translate the following into a SQL query
What is the Wavelength of Frequency (MHz) 14.050–14.150?
SELECT Wavelength FROM table WHERE Frequency (MHz) = 14.050–14.150
Translate the following into a SQL query
Who are the recipients in 1994?
SELECT Recipients and nominees FROM table WHERE Year = 1994
Translate the following into a SQL query
Who are the recipients that won for David Duchovny role/episode?
SELECT Recipients and nominees FROM table WHERE Role/Episode = david duchovny AND Result = won
Translate the following into a SQL query
What's the category in 1998 with the role/episode of David Duchovny?
SELECT Category FROM table WHERE Year = 1998 AND Role/Episode = david duchovny
Translate the following into a SQL query
Which network has more than 31.4 channels with a 4:3 aspect?
SELECT Network FROM table WHERE Aspect = 4:3 AND Channel > 31.4
Translate the following into a SQL query
Which video is on channel 31.2 with a 4:3 aspect?
SELECT Video FROM table WHERE Aspect = 4:3 AND Channel = 31.2
Translate the following into a SQL query
Which video has a 16:9 aspect?
SELECT Video FROM table WHERE Aspect = 16:9
Translate the following into a SQL query
What's the constituency number of the Seoni district and has none reserved?
SELECT Constituency number FROM table WHERE Reserved for ( SC / ST /None) = none AND District = seoni
Translate the following into a SQL query
What is the district of Paraswada with none reserved?
SELECT District FROM table WHERE Reserved for ( SC / ST /None) = none AND Name = paraswada
Translate the following into a SQL query
What's the reserved number for constituency number 108?
SELECT Reserved for ( SC / ST /None) FROM table WHERE Constituency number = 108
Translate the following into a SQL query
What's the name of Constituency number 108?
SELECT Name FROM table WHERE Constituency number = 108
Translate the following into a SQL query
What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?
SELECT MIN Total FROM table WHERE Bronze > 1 AND Silver = 0 AND Gold < 0
Translate the following into a SQL query
What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?
SELECT SUM Bronze FROM table WHERE Total < 8 AND Rank = 9 AND Silver < 0
Translate the following into a SQL query
What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?
SELECT Nation FROM table WHERE Rank > 4 AND Total = 2 AND Silver > 0
Translate the following into a SQL query
What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
SELECT AVG Rank FROM table WHERE Total > 5 AND Gold > 6
Translate the following into a SQL query
Which artist has a draw higher than 4 and fewer than 5 points?
SELECT Artist FROM table WHERE Draw > 4 AND Points < 5
Translate the following into a SQL query
Which artist has 13 points?
SELECT Artist FROM table WHERE Points = 13
Translate the following into a SQL query
What is the greatest B score when the A score was less than 6.5?
SELECT MAX B Score FROM table WHERE A Score < 6.5
Translate the following into a SQL query
What is the Time of the Great Britain players with Notes of SA/B?
SELECT Time FROM table WHERE Notes = sa/b AND Country = great britain
Translate the following into a SQL query
What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?
SELECT Rowers FROM table WHERE Notes = fc AND Time = 7:41.97
Translate the following into a SQL query
What is the Week of the game against the Minnesota Vikings?
SELECT MIN Week FROM table WHERE Opponent = minnesota vikings
Translate the following into a SQL query
What is the Week of the game against Green Bay Packers?
SELECT AVG Week FROM table WHERE Opponent = green bay packers
Translate the following into a SQL query
What is the Attendance of the game with a Result of L 20-14?
SELECT Attendance FROM table WHERE Result = l 20-14
Translate the following into a SQL query
What is the Week number on October 5, 2003?
SELECT MIN Week FROM table WHERE Date = october 5, 2003
Translate the following into a SQL query
What is the Week number with an Attendance of 62,123?
SELECT COUNT Week FROM table WHERE Attendance = 62,123
Translate the following into a SQL query
How many households are in Ottawa?
SELECT SUM Number of households FROM table WHERE County = ottawa
Translate the following into a SQL query
What county has a population more than 603,403 and a mediuan family income of $61,694?
SELECT County FROM table WHERE Population > 603,403 AND Median family income = $61,694
Translate the following into a SQL query
What is the sum of enrollments for schools located in Culver?
SELECT SUM Enrollment FROM table WHERE Location = culver
Translate the following into a SQL query
Which year did the school with enrollment of 413 join?
SELECT Year Joined FROM table WHERE Enrollment = 413
Translate the following into a SQL query
How many years was Reasons to be Pretty nominated for best play?
SELECT COUNT Year FROM table WHERE Category = best play
Translate the following into a SQL query
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?
SELECT MIN Year FROM table WHERE Category = best performance by a leading actor in a play
Translate the following into a SQL query
What is the match report from the game played on 28 february 2009?
SELECT Match Report FROM table WHERE Date = 28 february 2009
Translate the following into a SQL query
What is the match report from the game played on 25 april 2009?
SELECT Match Report FROM table WHERE Date = 25 april 2009
Translate the following into a SQL query
Where was the game played on 3 january 2009 against east fife?
SELECT Venue FROM table WHERE Opponents = east fife AND Date = 3 january 2009
Translate the following into a SQL query
What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?
SELECT Match Report FROM table WHERE Venue = stark's park AND Competition = second division AND Date = 23 august 2008
Translate the following into a SQL query
What is the match report for the game played at forthbank stadium against stirling albion?
SELECT Match Report FROM table WHERE Opponents = stirling albion AND Venue = forthbank stadium
Translate the following into a SQL query
What is average quantity, when DRG number is 99 011?
SELECT AVG Quantity FROM table WHERE DRG number(s) = 99 011
Translate the following into a SQL query
Which railway number has 3 quantity?
SELECT Railway number(s) FROM table WHERE Quantity = 3
Translate the following into a SQL query
Which DRG number has xxx railway number?
SELECT DRG number(s) FROM table WHERE Railway number(s) = xxx
Translate the following into a SQL query
Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?
SELECT Quantity FROM table WHERE Axle arrangement ( UIC ) Bauart = c n2t AND DRG number(s) = 99 093
Translate the following into a SQL query
What song came out on March 8, 2008?
SELECT Song FROM table WHERE Date = march 8, 2008
Translate the following into a SQL query
What was the topic of the show on March 15, 2008?
SELECT Topic of the Show FROM table WHERE Date = march 15, 2008
Translate the following into a SQL query
When against is more than 1244 with less than 8 losses, what is the average of wins?
SELECT AVG Wins FROM table WHERE Against > 1244 AND Losses < 8
Translate the following into a SQL query
What is the name of the mill located on Anawan Street with a reference number larger than 8?
SELECT Name FROM table WHERE Ref# > 8 AND Location = anawan street
Translate the following into a SQL query
What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?
SELECT Name FROM table WHERE Ref# < 55 AND Built = 1910 AND Construction = red brick
Translate the following into a SQL query
What is the location of the Durfee Mill No. 1, built before 1872 ?
SELECT Location FROM table WHERE Built < 1872 AND Name = durfee mill no. 1
Translate the following into a SQL query
What is the location of the mill with a reference number of 44?
SELECT Location FROM table WHERE Ref# = 44
Translate the following into a SQL query
Which Construction is named of fu-hsing?
SELECT Construction FROM table WHERE Name (Wade Giles) = fu-hsing
Translate the following into a SQL query
which Construction is named heng-hai?
SELECT Construction FROM table WHERE Name (Wade Giles) = heng-hai
Translate the following into a SQL query
Who has a Construction of 1873, foochow navy yard?
SELECT Characters FROM table WHERE Construction = 1873, foochow navy yard
Translate the following into a SQL query
Which Name (pinyin) is named fu-ching?
SELECT Name (pinyin) FROM table WHERE Name (Wade Giles) = fu-ching
Translate the following into a SQL query
Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?
SELECT Characters FROM table WHERE Construction = 1870, foochow navy yard AND Name (Wade Giles) = fu-hsing
Translate the following into a SQL query
Which Label has a Release of liebesgrüsse aus ost-berlin?
SELECT Label FROM table WHERE Release = liebesgrüsse aus ost-berlin
Translate the following into a SQL query
What is the rank of the person with more than 5 games played?
SELECT SUM Rank FROM table WHERE Games played > 5
Translate the following into a SQL query
How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?
SELECT COUNT Gold FROM table WHERE Bronze > 1 AND Silver > 1 AND Rank = total
Translate the following into a SQL query
How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?
SELECT COUNT Gold FROM table WHERE Bronze > 1 AND Nation = total AND Silver < 18
Translate the following into a SQL query
How many bronzes have west germany as the nation?
SELECT SUM Bronze FROM table WHERE Nation = west germany