answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT AVG(latitude) FROM table_name_72 WHERE land___sqmi__ < 35.874 AND pop__2010_ > 35 AND county = "cass" AND water__sqmi_ = 0.008
CREATE TABLE table_name_72 (latitude INTEGER, water__sqmi_ VARCHAR, county VARCHAR, land___sqmi__ VARCHAR, pop__2010_ VARCHAR)
Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?
SELECT county FROM table_name_4 WHERE latitude < 46.935364 AND geo_id = 3801700500
CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR)
In what county is the latitude less than 46.935364 and GEO ID is 3801700500?
SELECT opponent FROM table_name_33 WHERE score = "35-14"
CREATE TABLE table_name_33 (opponent VARCHAR, score VARCHAR)
Who was the opponent at the game with a score of 35-14?
SELECT result FROM table_name_21 WHERE record = "5-1"
CREATE TABLE table_name_21 (result VARCHAR, record VARCHAR)
What was the result of the game when the record was 5-1?
SELECT result FROM table_name_49 WHERE opponent = "los angeles dons"
CREATE TABLE table_name_49 (result VARCHAR, opponent VARCHAR)
What was the result of the game against the Los Angeles Dons?
SELECT AVG(year) FROM table_name_75 WHERE venue = "bydgoszcz, poland" AND event = "junior team"
CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR)
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?
SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships"
CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR)
Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?
SELECT AVG(year) FROM table_name_94 WHERE competition = "commonwealth youth games"
CREATE TABLE table_name_94 (year INTEGER, competition VARCHAR)
Which Year has a Competition of commonwealth youth games?
SELECT COUNT(rank) FROM table_name_86 WHERE year = 1986
CREATE TABLE table_name_86 (rank VARCHAR, year VARCHAR)
What is the total for 1986?
SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 15
CREATE TABLE table_name_61 (name VARCHAR, year VARCHAR, floors VARCHAR)
What is the name before 1954 with more than 15 floors?
SELECT MIN(rank) FROM table_name_86 WHERE name = "el paso natural gas company building"
CREATE TABLE table_name_86 (rank INTEGER, name VARCHAR)
What is the lowest rank for El Paso Natural Gas Company Building?
SELECT rank FROM table_name_64 WHERE province = "gauteng"
CREATE TABLE table_name_64 (rank VARCHAR, province VARCHAR)
What is the rank of the gauteng province?
SELECT MIN(population_estimate__2013_) FROM table_name_57 WHERE percentage = 23.7
CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR)
What is the lowest 2013 population estimate of the province with a 23.7 percentage?
SELECT years_runner_up FROM table_name_81 WHERE team = "duisburg"
CREATE TABLE table_name_81 (years_runner_up VARCHAR, team VARCHAR)
What year(s) was Duisburg runner-up?
SELECT MIN(year) FROM table_name_48 WHERE notes = "18.04 m wl"
CREATE TABLE table_name_48 (year INTEGER, notes VARCHAR)
What was the earliest year with a note of 18.04 m wl?
SELECT venue FROM table_name_29 WHERE year < 2011 AND competition = "world junior championships"
CREATE TABLE table_name_29 (venue VARCHAR, year VARCHAR, competition VARCHAR)
What venue had a competition of World Junior Championships before 2011?
SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops"
CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR)
Who was the developer of Call of Duty: Black Ops?
SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter"
CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR)
What is the platform for the game of the third-person shooter genre?
SELECT platform_s_ FROM table_name_95 WHERE year = 2007
CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR)
What is the platform of the game from 2007?
SELECT developer_s_ FROM table_name_4 WHERE game = "resident evil 4"
CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR)
Who was the developer of Resident Evil 4?
SELECT SUM(rank) FROM table_name_52 WHERE name = "flori lang" AND time < 22.27
CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, time VARCHAR)
What was the rank of flori lang when his time was less than 22.27
SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.67
CREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR)
What lane had a heat after 12, a rank of 38 and a time larger than 22.67?
SELECT game FROM table_name_14 WHERE record = "27-12"
CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR)
What game has 27-12 record?
SELECT date FROM table_name_43 WHERE record = "21-11"
CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)
What date was the record 21-11?
SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93"
CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR)
What is the location/attendance for the w 95-93 score?
SELECT location_attendance FROM table_name_95 WHERE record = "26-11"
CREATE TABLE table_name_95 (location_attendance VARCHAR, record VARCHAR)
What is the location/attendance with a 26-11 record?
SELECT opponent FROM table_name_44 WHERE record = "26-12"
CREATE TABLE table_name_44 (opponent VARCHAR, record VARCHAR)
Which opponent has a 26-12 record?
SELECT time FROM table_name_95 WHERE rower = "lee ka man"
CREATE TABLE table_name_95 (time VARCHAR, rower VARCHAR)
What is Lee Ka Man's Time?
SELECT COUNT(rank) FROM table_name_35 WHERE time = "8:23.02"
CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR)
What is the Rank of the rower with a Time of 8:23.02?
SELECT MAX(gold) FROM table_name_40 WHERE rank = "7" AND bronze < 0
CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
What is the most gold when the rank is 7 and bronze is less than 0?
SELECT MAX(gold) FROM table_name_33 WHERE total = 7
CREATE TABLE table_name_33 (gold INTEGER, total VARCHAR)
what is the most gold when the total is 7?
SELECT MIN(gold) FROM table_name_71 WHERE rank = "10" AND silver < 0
CREATE TABLE table_name_71 (gold INTEGER, rank VARCHAR, silver VARCHAR)
what is the least gold when the rank is 10 and silver is less than 0?
SELECT MIN(total) FROM table_name_24 WHERE nation = "sweden (swe)" AND silver < 0
CREATE TABLE table_name_24 (total INTEGER, nation VARCHAR, silver VARCHAR)
what is the lowest total when the nation is sweden (swe) and silver is less than 0?
SELECT AVG(total) FROM table_name_64 WHERE silver > 2 AND bronze = 12 AND gold < 12
CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?
SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660
CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR)
What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?
SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995
CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)
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 COUNT(longitude) FROM table_name_68 WHERE township = "nogosek" AND geo_id > 3809357060
CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR)
What is the total longitude of Nogosek and a GEO ID larger than 3809357060?
SELECT SUM(band) FROM table_name_46 WHERE power__w_ < 400
CREATE TABLE table_name_46 (band INTEGER, power__w_ INTEGER)
What Band number has a Power (W) of 400 or less?
SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400
CREATE TABLE table_name_33 (band INTEGER, power__w_ INTEGER)
What Band's Power (W) is 400 or less?
SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150"
CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR)
What is the Wavelength of Frequency (MHz) 14.050–14.150?
SELECT recipients_and_nominees FROM table_name_73 WHERE year = 1994
CREATE TABLE table_name_73 (recipients_and_nominees VARCHAR, year VARCHAR)
Who are the recipients in 1994?
SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won"
CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)
Who are the recipients that won for David Duchovny role/episode?
SELECT category FROM table_name_37 WHERE year = 1998 AND role_episode = "david duchovny"
CREATE TABLE table_name_37 (category VARCHAR, year VARCHAR, role_episode VARCHAR)
What's the category in 1998 with the role/episode of David Duchovny?
SELECT network FROM table_name_69 WHERE aspect = "4:3" AND channel > 31.4
CREATE TABLE table_name_69 (network VARCHAR, aspect VARCHAR, channel VARCHAR)
Which network has more than 31.4 channels with a 4:3 aspect?
SELECT video FROM table_name_97 WHERE aspect = "4:3" AND channel = 31.2
CREATE TABLE table_name_97 (video VARCHAR, aspect VARCHAR, channel VARCHAR)
Which video is on channel 31.2 with a 4:3 aspect?
SELECT video FROM table_name_77 WHERE aspect = "16:9"
CREATE TABLE table_name_77 (video VARCHAR, aspect VARCHAR)
Which video has a 16:9 aspect?
SELECT constituency_number FROM table_name_94 WHERE reserved_for___sc___st__none_ = "none" AND district = "seoni"
CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR)
What's the constituency number of the Seoni district and has none reserved?
SELECT district FROM table_name_64 WHERE reserved_for___sc___st__none_ = "none" AND name = "paraswada"
CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
What is the district of Paraswada with none reserved?
SELECT reserved_for___sc___st__none_ FROM table_name_43 WHERE constituency_number = "108"
CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
What's the reserved number for constituency number 108?
SELECT name FROM table_name_65 WHERE constituency_number = "108"
CREATE TABLE table_name_65 (name VARCHAR, constituency_number VARCHAR)
What's the name of Constituency number 108?
SELECT MIN(total) FROM table_name_77 WHERE bronze > 1 AND silver = 0 AND gold < 0
CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?
SELECT SUM(bronze) FROM table_name_49 WHERE total < 8 AND rank = 9 AND silver < 0
CREATE TABLE table_name_49 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
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 nation FROM table_name_19 WHERE rank > 4 AND total = 2 AND silver > 0
CREATE TABLE table_name_19 (nation VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR)
What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?
SELECT AVG(rank) FROM table_name_9 WHERE total > 5 AND gold > 6
CREATE TABLE table_name_9 (rank INTEGER, total VARCHAR, gold VARCHAR)
What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
SELECT artist FROM table_name_7 WHERE draw > 4 AND points < 5
CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR, points VARCHAR)
Which artist has a draw higher than 4 and fewer than 5 points?
SELECT artist FROM table_name_42 WHERE points = 13
CREATE TABLE table_name_42 (artist VARCHAR, points VARCHAR)
Which artist has 13 points?
SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5
CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER)
What is the greatest B score when the A score was less than 6.5?
SELECT time FROM table_name_66 WHERE notes = "sa/b" AND country = "great britain"
CREATE TABLE table_name_66 (time VARCHAR, notes VARCHAR, country VARCHAR)
What is the Time of the Great Britain players with Notes of SA/B?
SELECT rowers FROM table_name_99 WHERE notes = "fc" AND time = "7:41.97"
CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR)
What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?
SELECT MIN(week) FROM table_name_66 WHERE opponent = "minnesota vikings"
CREATE TABLE table_name_66 (week INTEGER, opponent VARCHAR)
What is the Week of the game against the Minnesota Vikings?
SELECT AVG(week) FROM table_name_71 WHERE opponent = "green bay packers"
CREATE TABLE table_name_71 (week INTEGER, opponent VARCHAR)
What is the Week of the game against Green Bay Packers?
SELECT attendance FROM table_name_46 WHERE result = "l 20-14"
CREATE TABLE table_name_46 (attendance VARCHAR, result VARCHAR)
What is the Attendance of the game with a Result of L 20-14?
SELECT MIN(week) FROM table_name_93 WHERE date = "october 5, 2003"
CREATE TABLE table_name_93 (week INTEGER, date VARCHAR)
What is the Week number on October 5, 2003?
SELECT COUNT(week) FROM table_name_78 WHERE attendance = "62,123"
CREATE TABLE table_name_78 (week VARCHAR, attendance VARCHAR)
What is the Week number with an Attendance of 62,123?
SELECT SUM(number_of_households) FROM table_name_58 WHERE county = "ottawa"
CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR)
How many households are in Ottawa?
SELECT SUM(enrollment) FROM table_name_28 WHERE location = "culver"
CREATE TABLE table_name_28 (enrollment INTEGER, location VARCHAR)
What is the sum of enrollments for schools located in Culver?
SELECT year_joined FROM table_name_46 WHERE enrollment = 413
CREATE TABLE table_name_46 (year_joined VARCHAR, enrollment VARCHAR)
Which year did the school with enrollment of 413 join?
SELECT COUNT(year) FROM table_name_83 WHERE category = "best play"
CREATE TABLE table_name_83 (year VARCHAR, category VARCHAR)
How many years was Reasons to be Pretty nominated for best play?
SELECT MIN(year) FROM table_name_56 WHERE category = "best performance by a leading actor in a play"
CREATE TABLE table_name_56 (year INTEGER, category VARCHAR)
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?
SELECT match_report FROM table_name_23 WHERE date = "28 february 2009"
CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR)
What is the match report from the game played on 28 february 2009?
SELECT match_report FROM table_name_4 WHERE date = "25 april 2009"
CREATE TABLE table_name_4 (match_report VARCHAR, date VARCHAR)
What is the match report from the game played on 25 april 2009?
SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND date = "3 january 2009"
CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR)
Where was the game played on 3 january 2009 against east fife?
SELECT match_report FROM table_name_13 WHERE venue = "stark's park" AND competition = "second division" AND date = "23 august 2008"
CREATE TABLE table_name_13 (match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
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_name_29 WHERE opponents = "stirling albion" AND venue = "forthbank stadium"
CREATE TABLE table_name_29 (match_report VARCHAR, opponents VARCHAR, venue VARCHAR)
What is the match report for the game played at forthbank stadium against stirling albion?
SELECT AVG(quantity) FROM table_name_85 WHERE drg_number_s_ = "99 011"
CREATE TABLE table_name_85 (quantity INTEGER, drg_number_s_ VARCHAR)
What is average quantity, when DRG number is 99 011?
SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3
CREATE TABLE table_name_19 (railway_number_s_ VARCHAR, quantity VARCHAR)
Which railway number has 3 quantity?
SELECT drg_number_s_ FROM table_name_32 WHERE railway_number_s_ = "xxx"
CREATE TABLE table_name_32 (drg_number_s_ VARCHAR, railway_number_s_ VARCHAR)
Which DRG number has xxx railway number?
SELECT quantity FROM table_name_58 WHERE axle_arrangement___uic___bauart = "c n2t" AND drg_number_s_ = "99 093"
CREATE TABLE table_name_58 (quantity VARCHAR, axle_arrangement___uic___bauart VARCHAR, drg_number_s_ VARCHAR)
Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?
SELECT song FROM table_name_8 WHERE date = "march 8, 2008"
CREATE TABLE table_name_8 (song VARCHAR, date VARCHAR)
What song came out on March 8, 2008?
SELECT topic_of_the_show FROM table_name_5 WHERE date = "march 15, 2008"
CREATE TABLE table_name_5 (topic_of_the_show VARCHAR, date VARCHAR)
What was the topic of the show on March 15, 2008?
SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8
CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR)
When against is more than 1244 with less than 8 losses, what is the average of wins?
SELECT name FROM table_name_76 WHERE ref_number > 8 AND location = "anawan street"
CREATE TABLE table_name_76 (name VARCHAR, ref_number VARCHAR, location VARCHAR)
What is the name of the mill located on Anawan Street with a reference number larger than 8?
SELECT name FROM table_name_7 WHERE ref_number < 55 AND built = 1910 AND construction = "red brick"
CREATE TABLE table_name_7 (name VARCHAR, construction VARCHAR, ref_number VARCHAR, built VARCHAR)
What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?
SELECT location FROM table_name_7 WHERE built < 1872 AND name = "durfee mill no. 1"
CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR)
What is the location of the Durfee Mill No. 1, built before 1872 ?
SELECT location FROM table_name_99 WHERE ref_number = 44
CREATE TABLE table_name_99 (location VARCHAR, ref_number VARCHAR)
What is the location of the mill with a reference number of 44?
SELECT construction FROM table_name_89 WHERE name__wade_giles_ = "fu-hsing"
CREATE TABLE table_name_89 (construction VARCHAR, name__wade_giles_ VARCHAR)
Which Construction is named of fu-hsing?
SELECT construction FROM table_name_69 WHERE name__wade_giles_ = "heng-hai"
CREATE TABLE table_name_69 (construction VARCHAR, name__wade_giles_ VARCHAR)
which Construction is named heng-hai?
SELECT characters FROM table_name_33 WHERE construction = "1873, foochow navy yard"
CREATE TABLE table_name_33 (characters VARCHAR, construction VARCHAR)
Who has a Construction of 1873, foochow navy yard?
SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = "fu-ching"
CREATE TABLE table_name_64 (name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR)
Which Name (pinyin) is named fu-ching?
SELECT characters FROM table_name_1 WHERE construction = "1870, foochow navy yard" AND name__wade_giles_ = "fu-hsing"
CREATE TABLE table_name_1 (characters VARCHAR, construction VARCHAR, name__wade_giles_ VARCHAR)
Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?
SELECT label FROM table_name_16 WHERE release = "liebesgrüsse aus ost-berlin"
CREATE TABLE table_name_16 (label VARCHAR, release VARCHAR)
Which Label has a Release of liebesgrüsse aus ost-berlin?
SELECT SUM(rank) FROM table_name_20 WHERE games_played > 5
CREATE TABLE table_name_20 (rank INTEGER, games_played INTEGER)
What is the rank of the person with more than 5 games played?
SELECT COUNT(gold) FROM table_name_61 WHERE bronze > 1 AND silver > 1 AND rank = "total"
CREATE TABLE table_name_61 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?
SELECT COUNT(gold) FROM table_name_27 WHERE bronze > 1 AND nation = "total" AND silver < 18
CREATE TABLE table_name_27 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR)
How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?
SELECT SUM(bronze) FROM table_name_51 WHERE nation = "west germany"
CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR)
How many bronzes have west germany as the nation?
SELECT COUNT(gold) FROM table_name_86 WHERE nation = "denmark" AND total < 1
CREATE TABLE table_name_86 (gold VARCHAR, nation VARCHAR, total VARCHAR)
How many golds have denmark as the nation, with a total less than 1?
SELECT COUNT(total) FROM table_name_60 WHERE gold = 1 AND rank = "12" AND silver > 0
CREATE TABLE table_name_60 (total VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR)
How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?
SELECT MIN(silver) FROM table_name_15 WHERE bronze = 1 AND total = 1 AND rank = "17" AND gold < 0
CREATE TABLE table_name_15 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR)
What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?
SELECT first_publisher FROM table_name_31 WHERE year < 1999
CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER)
What is the First Publisher prior to 1999?
SELECT isbn FROM table_name_48 WHERE year = 1999
CREATE TABLE table_name_48 (isbn VARCHAR, year VARCHAR)
What is the ISBN in 1999?