answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(year) FROM table_name_97 WHERE player = "david rose"
CREATE TABLE table_name_97 (year INTEGER, player VARCHAR)
What year was the player David Rose?
SELECT median_family_income FROM table_name_23 WHERE per_capita_income = "$24,114"
CREATE TABLE table_name_23 (median_family_income VARCHAR, per_capita_income VARCHAR)
What is the median family income when the per capita is $24,114?
SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585"
CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR)
What is the median household income when the per capita is $21,585?
SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343
CREATE TABLE table_name_48 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR)
What is the population where the median family income is $48,446 and there are more than 35,343 households?
SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886
CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
What is the population where the median household income is $87,832 and there are fewer than 64,886 households?
SELECT score1 FROM table_name_20 WHERE competition_or_tour = "major league soccer all-star game"
CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR)
What is the score 1 for the major league soccer all-star game?
SELECT score1 FROM table_name_85 WHERE ground = "h"
CREATE TABLE table_name_85 (score1 VARCHAR, ground VARCHAR)
What is the score 1 with a h ground?
SELECT scorers FROM table_name_34 WHERE ground = "a" AND date = "1 august 2008"
CREATE TABLE table_name_34 (scorers VARCHAR, ground VARCHAR, date VARCHAR)
Who are the scorers on 1 August 2008, where the ground was A?
SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves"
CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR)
What ground had Portsmouth reserves as an opponent?
SELECT ground FROM table_name_17 WHERE match < 6 AND opponent = "chelsea reserves"
CREATE TABLE table_name_17 (ground VARCHAR, match VARCHAR, opponent VARCHAR)
What ground had a match smaller than 6 and Chelsea Reserves as the opponent?
SELECT team FROM table_name_53 WHERE losses > 5 AND position = 12
CREATE TABLE table_name_53 (team VARCHAR, losses VARCHAR, position VARCHAR)
Which Team has Losses larger than 5, and a Position of 12?
SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11
CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)
How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?
SELECT SUM(position) FROM table_name_79 WHERE played < 12
CREATE TABLE table_name_79 (position INTEGER, played INTEGER)
How many positions have Played smaller than 12?
SELECT elector FROM table_name_51 WHERE faction = "italian" AND nationality = "prato"
CREATE TABLE table_name_51 (elector VARCHAR, faction VARCHAR, nationality VARCHAR)
Who was the Prato Elector with a faction of Italian?
SELECT elevator FROM table_name_74 WHERE elector = "jacques d'euse"
CREATE TABLE table_name_74 (elevator VARCHAR, elector VARCHAR)
What's the elevator of Jacques D'euse?
SELECT nationality FROM table_name_97 WHERE elevator = "nicholas iii"
CREATE TABLE table_name_97 (nationality VARCHAR, elevator VARCHAR)
What's the nationality for Nicholas III?
SELECT MIN(mintage) FROM table_name_93 WHERE artist = "dora de pédery-hunt" AND year < 2002
CREATE TABLE table_name_93 (mintage INTEGER, artist VARCHAR, year VARCHAR)
What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?
SELECT MAX(mintage) FROM table_name_57 WHERE theme = "common eider" AND year < 2008
CREATE TABLE table_name_57 (mintage INTEGER, theme VARCHAR, year VARCHAR)
What is the most mintage with common eider as the theme, and the year less than 2008?
SELECT MIN(year) FROM table_name_18 WHERE theme = "25th anniversary loonie" AND mintage < 35 OFFSET 000
CREATE TABLE table_name_18 (year INTEGER, theme VARCHAR, mintage VARCHAR)
What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?
SELECT artist FROM table_name_50 WHERE issue_price = "$49.95" AND year = 2010
CREATE TABLE table_name_50 (artist VARCHAR, issue_price VARCHAR, year VARCHAR)
Who was the artist that had $49.95 as the issue price for the 2010 year?
SELECT score FROM table_name_78 WHERE home_team = "southern"
CREATE TABLE table_name_78 (score VARCHAR, home_team VARCHAR)
What is the score for the southern home team?
SELECT time FROM table_name_82 WHERE home_team = "southern"
CREATE TABLE table_name_82 (time VARCHAR, home_team VARCHAR)
What time is it for the southern home team?
SELECT result FROM table_name_78 WHERE date = "november 24, 1946"
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
What is the Result of the game on November 24, 1946?
SELECT SUM(week) FROM table_name_48 WHERE date = "september 6, 1946"
CREATE TABLE table_name_48 (week INTEGER, date VARCHAR)
What is the Week number on September 6, 1946?
SELECT date FROM table_name_53 WHERE record = "5-3"
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
What is the Date of the game with a Record of 5-3?
SELECT MIN(rank) FROM table_name_86 WHERE country = "great britain"
CREATE TABLE table_name_86 (rank INTEGER, country VARCHAR)
What was the lowest ranking rower from Great Britain?
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "7:00:46"
CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)
What are the notes for the rower in ranks over 2 and having a time of 7:00:46?
SELECT programming FROM table_name_62 WHERE video = "audio only"
CREATE TABLE table_name_62 (programming VARCHAR, video VARCHAR)
Which Programming has a Video of audio only?
SELECT video FROM table_name_49 WHERE channel = 25.3
CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR)
Which Video has a Channel of 25.3?
SELECT video FROM table_name_14 WHERE aspect = "16:9"
CREATE TABLE table_name_14 (video VARCHAR, aspect VARCHAR)
Which Video has an Aspect of 16:9?
SELECT date FROM table_name_62 WHERE michael_signer = "4%"
CREATE TABLE table_name_62 (date VARCHAR, michael_signer VARCHAR)
On which date did Michael Signer earn 4%?
SELECT source FROM table_name_54 WHERE michael_signer = "5%"
CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR)
Which polling source gave Michael Signer 5%?
SELECT date FROM table_name_10 WHERE undecided = "42%"
CREATE TABLE table_name_10 (date VARCHAR, undecided VARCHAR)
Which date had the undecided percentage at 42%?
SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%"
CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR)
What is the Rich Savage percentage in the poll with Jody Wagner at 30%?
SELECT rich_savage FROM table_name_82 WHERE undecided = "68%"
CREATE TABLE table_name_82 (rich_savage VARCHAR, undecided VARCHAR)
What is the Rich Savage percentage in the poll that had undecideds at 68%?
SELECT opponent FROM table_name_40 WHERE record = "31-24"
CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR)
Who was the opponent when the record was 31-24?
SELECT score FROM table_name_43 WHERE game = "48"
CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR)
What was the score of Game 48?
SELECT opponent FROM table_name_19 WHERE location_attendance = "madison square garden"
CREATE TABLE table_name_19 (opponent VARCHAR, location_attendance VARCHAR)
Who was the opponent at the game at Madison Square Garden?
SELECT score FROM table_name_54 WHERE location_attendance = "great western forum"
CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR)
What was the score of the game at Great Western Forum?
SELECT romaji_title FROM table_name_78 WHERE japanese_title = "花より男子2(リターンズ)"
CREATE TABLE table_name_78 (romaji_title VARCHAR, japanese_title VARCHAR)
Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)?
SELECT romaji_title FROM table_name_65 WHERE tv_station = "fuji tv" AND average_ratings = "12.41%"
CREATE TABLE table_name_65 (romaji_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%?
SELECT japanese_title FROM table_name_12 WHERE episodes > 9 AND romaji_title = "haikei, chichiue-sama"
CREATE TABLE table_name_12 (japanese_title VARCHAR, episodes VARCHAR, romaji_title VARCHAR)
Which Japanese Title has more than 9 Episodes, and a Romaji Title of haikei, chichiue-sama?
SELECT romaji_title FROM table_name_24 WHERE episodes = 11 AND tv_station = "fuji tv" AND average_ratings = "14.9%"
CREATE TABLE table_name_24 (romaji_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR)
Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%?
SELECT result FROM table_name_49 WHERE year > 1995 AND episode = "season 6"
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, episode VARCHAR)
What was the result of nomination for Season 6 after 1995?
SELECT category FROM table_name_73 WHERE nominee_s_ = "john frank levey" AND year > 1995
CREATE TABLE table_name_73 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
What was the category of the award that John Frank Levey was nominated for after 1995?
SELECT english_translation FROM table_name_12 WHERE language = "french" AND artist = "rachel"
CREATE TABLE table_name_12 (english_translation VARCHAR, language VARCHAR, artist VARCHAR)
What is the English Translation for the French song by the Artist Rachel?
SELECT song FROM table_name_69 WHERE artist = "robert cogoi"
CREATE TABLE table_name_69 (song VARCHAR, artist VARCHAR)
What is the Song by Artist Robert Cogoi?
SELECT points FROM table_name_64 WHERE draw > 7 AND artist = "sabahudin kurt"
CREATE TABLE table_name_64 (points VARCHAR, draw VARCHAR, artist VARCHAR)
How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7?
SELECT COUNT(converted) FROM table_name_71 WHERE number = "35" AND withdrawn < 1952
CREATE TABLE table_name_71 (converted VARCHAR, number VARCHAR, withdrawn VARCHAR)
How much Converted has a Number of 35, and a Withdrawn smaller than 1952?
SELECT AVG(latitude) FROM table_name_15 WHERE water__sqmi_ < 2.106 AND county = "dickey" AND pop__2010_ < 95
CREATE TABLE table_name_15 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, county VARCHAR)
What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95?
SELECT MAX(geo_id) FROM table_name_99 WHERE land___sqmi__ > 38.117 AND water__sqmi_ > 2.065
CREATE TABLE table_name_99 (geo_id INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)
What is the highest GEO ID for land masses over 38.117 sq mi and over 2.065 sq mi of water?
SELECT COUNT(geo_id) FROM table_name_28 WHERE water__sqmi_ > 0.587 AND township = "riggin" AND ansi_code > 1759257
CREATE TABLE table_name_28 (geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR, township VARCHAR)
What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257?
SELECT class FROM table_name_94 WHERE identifier = "cbf-fm-14"
CREATE TABLE table_name_94 (class VARCHAR, identifier VARCHAR)
What's the class when the identifier is cbf-fm-14?
SELECT frequency FROM table_name_47 WHERE identifier = "cbf-fm-9"
CREATE TABLE table_name_47 (frequency VARCHAR, identifier VARCHAR)
What's the frequency when the identifier is cbf-fm-9?
SELECT recnet FROM table_name_38 WHERE identifier = "cbf-fm-20"
CREATE TABLE table_name_38 (recnet VARCHAR, identifier VARCHAR)
What's the RECNet when the identifier is cbf-fm-20?
SELECT recnet FROM table_name_9 WHERE power = "199 watts"
CREATE TABLE table_name_9 (recnet VARCHAR, power VARCHAR)
What's the RECNet when the power is 199 watts?
SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"
CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)
What's the frequency when the identifier is cbf-fm-14 having a class of A?
SELECT ag FROM table_name_73 WHERE d3 & 4 = "46" AND transmitter = "seaham"
CREATE TABLE table_name_73 (ag VARCHAR, transmitter VARCHAR, d3 VARCHAR)
What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham?
SELECT ag FROM table_name_71 WHERE d3 & 4 = "41"
CREATE TABLE table_name_71 (ag VARCHAR, d3 VARCHAR)
What is the AG value associated with a D3&4 of 41?
SELECT label FROM table_name_45 WHERE date = "15 december 1992"
CREATE TABLE table_name_45 (label VARCHAR, date VARCHAR)
which Label is in 15 december 1992?
SELECT album FROM table_name_53 WHERE artist = "various artists (compilation)" AND label = "laface"
CREATE TABLE table_name_53 (album VARCHAR, artist VARCHAR, label VARCHAR)
Which Album has an Artist of various artists (compilation), and a Label of laface?
SELECT date FROM table_name_14 WHERE album = "l'un n'empêche pas l'autre"
CREATE TABLE table_name_14 (date VARCHAR, album VARCHAR)
When has an Album of l'un n'empêche pas l'autre?
SELECT track_s_ FROM table_name_86 WHERE date = "18 november 1985"
CREATE TABLE table_name_86 (track_s_ VARCHAR, date VARCHAR)
Which Track(s) is on 18 november 1985?
SELECT label FROM table_name_61 WHERE album = "so red the rose"
CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR)
Which Label that has an Album of so red the rose?
SELECT MIN(lane) FROM table_name_75 WHERE name = "natalie coughlin" AND rank > 1
CREATE TABLE table_name_75 (lane INTEGER, name VARCHAR, rank VARCHAR)
What is the least lane number that Natalie Coughlin was in when she was ranked greater than 1?
SELECT athlete FROM table_name_49 WHERE time = "6:36.05"
CREATE TABLE table_name_49 (athlete VARCHAR, time VARCHAR)
Who is the Athlete with a rowing Time of 6:36.05?
SELECT song FROM table_name_9 WHERE artist = "sex pistols"
CREATE TABLE table_name_9 (song VARCHAR, artist VARCHAR)
What song was made by the sex pistols?
SELECT song FROM table_name_66 WHERE band_tour_venue = "6. tool (usa) encore"
CREATE TABLE table_name_66 (song VARCHAR, band_tour_venue VARCHAR)
What song has the band tour vnue of 6. tool (usa) encore?
SELECT total FROM table_name_15 WHERE a_score < 6.6 AND b_score = 8.925
CREATE TABLE table_name_15 (total VARCHAR, a_score VARCHAR, b_score VARCHAR)
What is the total when the A score was less than 6.6, and the B score was 8.925?
SELECT AVG(total) FROM table_name_89 WHERE position < 4 AND b_score > 9.125 AND a_score < 6.6
CREATE TABLE table_name_89 (total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR)
What total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6?
SELECT score FROM table_name_59 WHERE away_team = "watford"
CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)
What is the score when watford was the away team?
SELECT score FROM table_name_91 WHERE home_team = "york city"
CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR)
What is the score when york city was the home team?
SELECT score FROM table_name_6 WHERE game > 29 AND record = "24-6"
CREATE TABLE table_name_6 (score VARCHAR, game VARCHAR, record VARCHAR)
What score has a game greater than 29, with 24-6 as the record?
SELECT record FROM table_name_61 WHERE opponent = "@ detroit"
CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR)
What record has @ detroit as the opponent?
SELECT high_assists FROM table_name_95 WHERE high_points = "mcwilliams-franklin (22)"
CREATE TABLE table_name_95 (high_assists VARCHAR, high_points VARCHAR)
What high assists have McWilliams-franklin (22) as the high points?
SELECT high_assists FROM table_name_31 WHERE location_attendance = "uic pavilion 3,520"
CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR)
What high assists have uic pavilion 3,520 as the location/attendance?
SELECT game FROM table_name_94 WHERE high_rebounds = "jones (10)"
CREATE TABLE table_name_94 (game VARCHAR, high_rebounds VARCHAR)
What game has jones (10) as the high rebounds?
SELECT cores FROM table_name_28 WHERE release_price___usd__ = "$426"
CREATE TABLE table_name_28 (cores VARCHAR, release_price___usd__ VARCHAR)
How many cores does the processor with a release price of $426 have?
SELECT frequency FROM table_name_50 WHERE model_number = "core i7-3610qe"
CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR)
What was the frequency of the Core i7-3610QE?
SELECT cores FROM table_name_3 WHERE release_date = "april 2012" AND release_price___usd__ = "$393" AND part_number_s_ = "av8063801117503"
CREATE TABLE table_name_3 (cores VARCHAR, part_number_s_ VARCHAR, release_date VARCHAR, release_price___usd__ VARCHAR)
How many cores does the processor released in April 2012 with a price of $393 and part number av8063801117503 have?
SELECT area_km² FROM table_name_45 WHERE country = "japan"
CREATE TABLE table_name_45 (area_km² VARCHAR, country VARCHAR)
What is Japan's Area km²?
SELECT island FROM table_name_98 WHERE density__per_km²_ = "1,368"
CREATE TABLE table_name_98 (island VARCHAR, density__per_km²_ VARCHAR)
Which island has a density (per km²) of 1,368?
SELECT country FROM table_name_32 WHERE density__per_km²_ = "6,814"
CREATE TABLE table_name_32 (country VARCHAR, density__per_km²_ VARCHAR)
Which country has a density (per km²) of 6,814?
SELECT island FROM table_name_20 WHERE population = "9,520 (2000)"
CREATE TABLE table_name_20 (island VARCHAR, population VARCHAR)
Which island has a population of 9,520 (2000)?
SELECT area_km² FROM table_name_99 WHERE population = "99,685 (2008)"
CREATE TABLE table_name_99 (area_km² VARCHAR, population VARCHAR)
What is the area km² for a population of 99,685 (2008)?
SELECT island FROM table_name_43 WHERE country = "united kingdom"
CREATE TABLE table_name_43 (island VARCHAR, country VARCHAR)
Which island is in the United Kingdom?
SELECT pitcher FROM table_name_40 WHERE location = "kingdome" AND season = "1983"
CREATE TABLE table_name_40 (pitcher VARCHAR, location VARCHAR, season VARCHAR)
Who is the pitcher from the 1983 season in location Kingdome?
SELECT pitcher FROM table_name_5 WHERE opponent = "cleveland indians" AND season = "1994"
CREATE TABLE table_name_5 (pitcher VARCHAR, opponent VARCHAR, season VARCHAR)
Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent?
SELECT opponent FROM table_name_11 WHERE decision = "w" AND season = "2011"
CREATE TABLE table_name_11 (opponent VARCHAR, decision VARCHAR, season VARCHAR)
Who is the opponent for the 2011 season with a decision of W?
SELECT season FROM table_name_60 WHERE location = "safeco field" AND decision = "l" AND opponent = "boston red sox"
CREATE TABLE table_name_60 (season VARCHAR, opponent VARCHAR, location VARCHAR, decision VARCHAR)
What season was played at Safeco Field, against the Boston Red Sox, with a decision of L?
SELECT decision FROM table_name_35 WHERE opponent = "new york yankees" AND season = "1983"
CREATE TABLE table_name_35 (decision VARCHAR, opponent VARCHAR, season VARCHAR)
What was the decision for the 1983 season for the game played against the New York Yankees?
SELECT encoding FROM table_name_44 WHERE tracks__side = "80" AND sectors__track = "11"
CREATE TABLE table_name_44 (encoding VARCHAR, tracks__side VARCHAR, sectors__track VARCHAR)
what is the encoding when the tracks/side is 80 and sectors/track is 11?
SELECT MAX(bronze) FROM table_name_16 WHERE total < 2
CREATE TABLE table_name_16 (bronze INTEGER, total INTEGER)
What is the highest bronze for less than 2 total trophies?
SELECT MAX(total) FROM table_name_64 WHERE finish = "t64" AND year_won > 2006
CREATE TABLE table_name_64 (total INTEGER, finish VARCHAR, year_won VARCHAR)
Which Total has a Finish of t64, and a Year won larger than 2006?
SELECT AVG(year_won) FROM table_name_6 WHERE finish = "t24" AND country = "england"
CREATE TABLE table_name_6 (year_won INTEGER, finish VARCHAR, country VARCHAR)
Which year won has a Finish of t24, and a Country of england?
SELECT MIN(bronze) FROM table_name_45 WHERE total > 2 AND silver < 1 AND rank > 10 AND gold < 0
CREATE TABLE table_name_45 (bronze INTEGER, gold VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
What is the smallest bronze value for countries with totals over 2, golds of 0, silvers under 1, and ranks over 10?
SELECT school FROM table_name_53 WHERE previous_conference = "lost river" AND enrollment = "a"
CREATE TABLE table_name_53 (school VARCHAR, previous_conference VARCHAR, enrollment VARCHAR)
Which school has an enrollment of A and had lost river as their previous conference?
SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277
CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR)
What is the average year joined of the 277 county?
SELECT ihsaa_class FROM table_name_71 WHERE county < 228
CREATE TABLE table_name_71 (ihsaa_class VARCHAR, county INTEGER)
What is the IHSAA class of the county that is less than 228?
SELECT engine FROM table_name_12 WHERE transmission = "4-speed automatic" AND acceleration_0_100km_h__0_62mph_ = "10.4 s"
CREATE TABLE table_name_12 (engine VARCHAR, transmission VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?