answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT county FROM table_name_3 WHERE median_family_income = "$79,331"
CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)
What County has a Median Family Income of $79,331?
SELECT MAX(gold) FROM table_name_1 WHERE total < 171 AND nation = "united states" AND bronze < 9
CREATE TABLE table_name_1 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?
SELECT COUNT(gold) FROM table_name_80 WHERE nation = "australia"
CREATE TABLE table_name_80 (gold VARCHAR, nation VARCHAR)
How many total gold medals did Australia receive?
SELECT MAX(bronze) FROM table_name_58 WHERE nation = "canada"
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR)
How many total bronze medals did Canada receive?
SELECT gold FROM table_name_10 WHERE nation = "india"
CREATE TABLE table_name_10 (gold VARCHAR, nation VARCHAR)
How many total gold medals did India receive?
SELECT 1997 FROM table_name_57 WHERE 1991 = "a" AND tournament = "australian open"
CREATE TABLE table_name_57 (tournament VARCHAR)
Which 1997's accompanying 1991 was a when the tournament was the australian open?
SELECT 1997 FROM table_name_77 WHERE 1992 = "1r" AND 1994 = "a"
CREATE TABLE table_name_77 (Id VARCHAR)
Which 1997's 1992 was 1r when 1994 was a?
SELECT 1995 FROM table_name_61 WHERE tournament = "french open"
CREATE TABLE table_name_61 (tournament VARCHAR)
Which 1995's tournament was the French Open?
SELECT 1989 FROM table_name_81 WHERE 1991 = "1r" AND 1994 = "1r"
CREATE TABLE table_name_81 (Id VARCHAR)
Which 1989's 1991 and 1994 stats were 1r?
SELECT 1990 FROM table_name_78 WHERE 1992 = "3r"
CREATE TABLE table_name_78 (Id VARCHAR)
Which 1990s 1992 was 3r?
SELECT linda_mccartney FROM table_name_80 WHERE stuart = "electric guitar"
CREATE TABLE table_name_80 (linda_mccartney VARCHAR, stuart VARCHAR)
Which Linda McCartney has a Stuart of electric guitar?
SELECT whitten FROM table_name_12 WHERE stuart = "bass" AND paul_mccartney = "electric guitar"
CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR)
Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar?
SELECT mcintosh FROM table_name_88 WHERE whitten = "drums" AND stuart = "bass" AND paul_mccartney = "electric guitar"
CREATE TABLE table_name_88 (mcintosh VARCHAR, paul_mccartney VARCHAR, whitten VARCHAR, stuart VARCHAR)
Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Paul McCartney of electric guitar?
SELECT paul_mccartney FROM table_name_98 WHERE linda_mccartney = "keyboards"
CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)
Which Paul McCartney has a Linda McCartney of keyboards?
SELECT mcintosh FROM table_name_78 WHERE stuart = "bass" AND linda_mccartney = "keyboards or drum"
CREATE TABLE table_name_78 (mcintosh VARCHAR, stuart VARCHAR, linda_mccartney VARCHAR)
Which McIntosh has a Stuart of bass, and a Linda McCartney of keyboards or drum?
SELECT paul_mccartney FROM table_name_15 WHERE linda_mccartney = "keyboards or drum"
CREATE TABLE table_name_15 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)
Which Paul McCartney has a Linda McCartney of keyboards or drum?
SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24
CREATE TABLE table_name_70 (grid INTEGER, laps VARCHAR, bike VARCHAR, time VARCHAR)
What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24?
SELECT AVG(total) FROM table_name_70 WHERE nation = "denmark" AND gold > 0
CREATE TABLE table_name_70 (total INTEGER, nation VARCHAR, gold VARCHAR)
The nation of denmark has what average total nad more than 0 gold?
SELECT MAX(gold) FROM table_name_61 WHERE nation = "switzerland" AND silver < 0
CREATE TABLE table_name_61 (gold INTEGER, nation VARCHAR, silver VARCHAR)
Switzerland has how many gold and less than 0 silver?
SELECT COUNT(year) FROM table_name_9 WHERE score = "734-5d"
CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
How many years had a score of 734-5d?
SELECT venue FROM table_name_82 WHERE city = "manchester" AND year < 2003
CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR)
Which venue had a city of Manchester before 2003?
SELECT venue FROM table_name_85 WHERE city = "manchester" AND year = 2003
CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR)
Which venue had a city of Manchester in 2003?
SELECT venue FROM table_name_8 WHERE score = "734-5d"
CREATE TABLE table_name_8 (venue VARCHAR, score VARCHAR)
Which venue had a score of 734-5d?
SELECT AVG(top_5) FROM table_name_3 WHERE top_10 = 5 AND cuts_made < 12
CREATE TABLE table_name_3 (top_5 INTEGER, top_10 VARCHAR, cuts_made VARCHAR)
What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made?
SELECT AVG(top_10) FROM table_name_31 WHERE top_25 = 2 AND cuts_made < 10
CREATE TABLE table_name_31 (top_10 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made?
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 = 11
CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR)
What is the total number of top-25s for the major that has 11 top-10s?
SELECT SUM(events) FROM table_name_66 WHERE cuts_made > 12 AND top_5 > 2 AND top_10 > 11
CREATE TABLE table_name_66 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)
How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?
SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1
CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR)
How many total wins are associated with events with 1 top-10?
SELECT AVG(cuts_made) FROM table_name_93 WHERE top_10 = 11 AND wins < 1
CREATE TABLE table_name_93 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR)
What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?
SELECT week FROM table_name_52 WHERE date = "bye"
CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR)
What week did they have a bye?
SELECT tournament FROM table_name_5 WHERE 2006 = "0-0"
CREATE TABLE table_name_5 (tournament VARCHAR)
What tournament in 2006 had a score of 0-0?
SELECT MAX(extra_points) FROM table_name_38 WHERE player = "albert herrnstein" AND points > 15
CREATE TABLE table_name_38 (extra_points INTEGER, player VARCHAR, points VARCHAR)
What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?
SELECT touchdowns FROM table_name_88 WHERE player = "william cole"
CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR)
How many touchdowns were scored by William Cole?
SELECT record FROM table_name_81 WHERE attendance = "26,236"
CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR)
For the game with 26,236 attendance, what was the record?
SELECT record FROM table_name_28 WHERE attendance = "49,222"
CREATE TABLE table_name_28 (record VARCHAR, attendance VARCHAR)
What's the record for the game with an attendance of 49,222?
SELECT high_rebounds FROM table_name_41 WHERE date = "june 11"
CREATE TABLE table_name_41 (high_rebounds VARCHAR, date VARCHAR)
Who had the most rebounds and how many did he have during the game on June 11?
SELECT high_points FROM table_name_54 WHERE date = "june 13"
CREATE TABLE table_name_54 (high_points VARCHAR, date VARCHAR)
Who was the leading scorer and how many did he score for the game on June 13?
SELECT college_junior_club_team FROM table_name_19 WHERE round < 8 AND pick = 50
CREATE TABLE table_name_19 (college_junior_club_team VARCHAR, round VARCHAR, pick VARCHAR)
What College/Junior/Club Team has Pick 50 before Round 8?
SELECT MAX(overall) FROM table_name_33 WHERE slalom = "39" AND season < 1996
CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR)
What is the highest overall prior to 1996 with a slalom of 39?
SELECT MIN(overall) FROM table_name_57 WHERE downhill = "1" AND season < 1992
CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR)
What is the lowest overall score prior to 1992 with a downhill score of 1?
SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12
CREATE TABLE table_name_28 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR)
What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?
SELECT MAX(super_g) FROM table_name_43 WHERE slalom = "58" AND overall > 2
CREATE TABLE table_name_43 (super_g INTEGER, slalom VARCHAR, overall VARCHAR)
What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2?
SELECT location__all_in_nagano__ FROM table_name_7 WHERE name = "sakakita bs"
CREATE TABLE table_name_7 (location__all_in_nagano__ VARCHAR, name VARCHAR)
What location has the name of Sakakita BS?
SELECT location__all_in_nagano__ FROM table_name_18 WHERE name = "sakakita bs"
CREATE TABLE table_name_18 (location__all_in_nagano__ VARCHAR, name VARCHAR)
Which location includes Sakakita BS?
SELECT dist_from_origin FROM table_name_57 WHERE location__all_in_nagano__ = "azumino" AND name = "toyoshina ic"
CREATE TABLE table_name_57 (dist_from_origin VARCHAR, location__all_in_nagano__ VARCHAR, name VARCHAR)
What is the distance from origin in Azumino including Toyoshina IC?
SELECT district FROM table_name_7 WHERE first_elected < 2006 AND towns_represented = "broken arrow, tulsa"
CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, towns_represented VARCHAR)
Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa?
SELECT COUNT(first_elected) FROM table_name_91 WHERE district = "16"
CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR)
How many values of first elected are for district 16?
SELECT towns_represented FROM table_name_65 WHERE district = "31"
CREATE TABLE table_name_65 (towns_represented VARCHAR, district VARCHAR)
Which towns are represented in district 31?
SELECT COUNT(deposits) FROM table_name_63 WHERE non_interest_income = 0.9500000000000001 AND no_of_branches_offices < 17
CREATE TABLE table_name_63 (deposits VARCHAR, non_interest_income VARCHAR, no_of_branches_offices VARCHAR)
How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?
SELECT npl_net FROM table_name_30 WHERE bank = "citibank"
CREATE TABLE table_name_30 (npl_net VARCHAR, bank VARCHAR)
Which NPL net's bank was citibank?
SELECT championship FROM table_name_88 WHERE winning_score = (77 - 76 - 74 - 73 = 300)
CREATE TABLE table_name_88 (championship VARCHAR, winning_score VARCHAR)
Which championship has a winning score of (77-76-74-73=300)?
SELECT championship FROM table_name_89 WHERE margin = "8 strokes"
CREATE TABLE table_name_89 (championship VARCHAR, margin VARCHAR)
Which championship has a margin of 8 strokes?
SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (4)"
CREATE TABLE table_name_7 (championship VARCHAR)
What is the 54 holes for The Open Championship (4)?
SELECT tournament FROM table_name_28 WHERE 2007 = "wta premier 5 tournaments"
CREATE TABLE table_name_28 (tournament VARCHAR)
Which Tournament has a 2007 of wta premier 5 tournaments?
SELECT tournament FROM table_name_38 WHERE 2011 = "nh"
CREATE TABLE table_name_38 (tournament VARCHAR)
Which Tournament was played in NH in 2011?
SELECT tournament FROM table_name_21 WHERE 2010 = "2r" AND 2011 = "1r"
CREATE TABLE table_name_21 (tournament VARCHAR)
Which Tournament has a 2010 of 2r, and a 2011 of 1r?
SELECT MIN(first_issued) FROM table_name_51 WHERE color = "green"
CREATE TABLE table_name_51 (first_issued INTEGER, color VARCHAR)
When was Color of green first issued?
SELECT MAX(first_issued) FROM table_name_26 WHERE color = "green"
CREATE TABLE table_name_26 (first_issued INTEGER, color VARCHAR)
When was Color of green last issued?
SELECT reverse FROM table_name_33 WHERE color = "green"
CREATE TABLE table_name_33 (reverse VARCHAR, color VARCHAR)
What reverse has a color of green?
SELECT value FROM table_name_1 WHERE first_issued < 1998 AND reverse = "guitar of agustín pío barrios"
CREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR)
How much was a Reverse of guitar of agustín pío barrios before 1998?
SELECT MIN(pick__number) FROM table_name_16 WHERE college = "byu"
CREATE TABLE table_name_16 (pick__number INTEGER, college VARCHAR)
What is BYU's lowest pick?
SELECT SUM(round) FROM table_name_36 WHERE pick__number < 26 AND position = "cornerback" AND overall > 41
CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
Which cornerback round has a pick number lower than 26 and an overall higher than 41?
SELECT COUNT(overall) FROM table_name_6 WHERE college = "wyoming"
CREATE TABLE table_name_6 (overall VARCHAR, college VARCHAR)
What is the overall number for the College of Wyoming?
SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145
CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR)
What is the total round for a wide receiver with an overall of more than 145?
SELECT pick__number FROM table_name_42 WHERE overall < 145 AND college = "ohio state"
CREATE TABLE table_name_42 (pick__number VARCHAR, overall VARCHAR, college VARCHAR)
What is College of Ohio State's pick number with an overall lower than 145?
SELECT COUNT(enrollment) FROM table_name_74 WHERE _number___county = "49 marion" AND mascot = "warriors"
CREATE TABLE table_name_74 (enrollment VARCHAR, _number___county VARCHAR, mascot VARCHAR)
How many are enrolled at 49 Marion with the Warriors as their mascot?
SELECT location FROM table_name_35 WHERE school = "terre haute north"
CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR)
Where is Terre Haute North located?
SELECT AVG(enrollment) FROM table_name_24 WHERE _number___county = "41 johnson"
CREATE TABLE table_name_24 (enrollment INTEGER, _number___county VARCHAR)
What's the enrollment at 41 Johnson?
SELECT school FROM table_name_56 WHERE mascot = "greyhounds"
CREATE TABLE table_name_56 (school VARCHAR, mascot VARCHAR)
What school has the greyhounds as mascots?
SELECT status FROM table_name_4 WHERE configuration = "b-b" AND type = "diesel-mechanical"
CREATE TABLE table_name_4 (status VARCHAR, configuration VARCHAR, type VARCHAR)
for type diesel-mechanical and configuration b-b, what is the status?
SELECT origin FROM table_name_37 WHERE versions = "tth"
CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR)
Where is the origin of the tth version?
SELECT record FROM table_name_4 WHERE game = 7
CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR)
What is the record of game 7?
SELECT MIN(points) FROM table_name_18 WHERE october < 10 AND game < 2
CREATE TABLE table_name_18 (points INTEGER, october VARCHAR, game VARCHAR)
What is the lowest number of points of the game before game 2 before October 10?
SELECT opponent FROM table_name_72 WHERE date = "july 9"
CREATE TABLE table_name_72 (opponent VARCHAR, date VARCHAR)
what team played on july 9
SELECT party FROM table_name_3 WHERE result = "re-elected" AND first_elected < 1894 AND incumbent = "charles h. grosvenor"
CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?
SELECT incumbent FROM table_name_50 WHERE district = "ohio 13"
CREATE TABLE table_name_50 (incumbent VARCHAR, district VARCHAR)
Who was the incumbent from the Ohio 13 district?
SELECT party FROM table_name_22 WHERE first_elected = 1894 AND district = "ohio 16"
CREATE TABLE table_name_22 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
What is the party of the representative first elected in 1894 from the Ohio 16 district?
SELECT score FROM table_name_58 WHERE opposition = "leicestershire" AND year > 1906
CREATE TABLE table_name_58 (score VARCHAR, opposition VARCHAR, year VARCHAR)
What score has Leicestershire as the opponent after 1906?
SELECT venue FROM table_name_50 WHERE score = "3 runs" AND city = "buxton"
CREATE TABLE table_name_50 (venue VARCHAR, score VARCHAR, city VARCHAR)
Where in Buxton has 3 runs?
SELECT city FROM table_name_97 WHERE year = 1889
CREATE TABLE table_name_97 (city VARCHAR, year VARCHAR)
What city was in 1889?
SELECT score FROM table_name_42 WHERE city = "leicester"
CREATE TABLE table_name_42 (score VARCHAR, city VARCHAR)
What is the score in Leicester?
SELECT COUNT(year) FROM table_name_53 WHERE score = "1 run"
CREATE TABLE table_name_53 (year VARCHAR, score VARCHAR)
How many years has 1 run?
SELECT MAX(year) FROM table_name_26 WHERE venue = "aigburth"
CREATE TABLE table_name_26 (year INTEGER, venue VARCHAR)
What year was in Aigburth?
SELECT MIN(season__number) FROM table_name_63 WHERE format__number = "q145"
CREATE TABLE table_name_63 (season__number INTEGER, format__number VARCHAR)
Which season has q145 as its format?
SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = "q146"
CREATE TABLE table_name_26 (episode__number INTEGER, format__number VARCHAR)
What is the average episode number with q146 format?
SELECT opponent FROM table_name_21 WHERE game > 1 AND record = "3-2-0"
CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR, record VARCHAR)
Who is the opponent of Game 1 with a 3-2-0 record?
SELECT record FROM table_name_36 WHERE game = 9
CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR)
What is game 9's record?
SELECT opponent FROM table_name_53 WHERE record = "1-1-0"
CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR)
Who is the opponent of the team with a 1-1-0 record?
SELECT 3 AS rd_liga_3rd FROM table_name_41 WHERE date = "2010-11"
CREATE TABLE table_name_41 (date VARCHAR)
What is the 3rd Liga from 2010-11?
SELECT 3 AS rd_liga_3rd FROM table_name_36 WHERE game_1 = "0-1" AND date = "2008-09"
CREATE TABLE table_name_36 (game_1 VARCHAR, date VARCHAR)
What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?
SELECT score_in_the_final FROM table_name_12 WHERE outcome = "winner" AND surface = "hard (i)"
CREATE TABLE table_name_12 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
Which Score in the final has an Outcome of winner, and a Surface of hard (i)?
SELECT surface FROM table_name_45 WHERE partner = "jim thomas" AND date = 2007
CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR, date VARCHAR)
Which Surface has a Partner of jim thomas, and a Date of 2007?
SELECT attendance FROM table_name_58 WHERE result = "won 5-2"
CREATE TABLE table_name_58 (attendance VARCHAR, result VARCHAR)
What was the Attendance in the game with a Result of won 5-2?
SELECT competition FROM table_name_39 WHERE venue = "home" AND attendance = "1,268"
CREATE TABLE table_name_39 (competition VARCHAR, venue VARCHAR, attendance VARCHAR)
What was the home Competition with Attendance of 1,268?
SELECT school_club_team FROM table_name_94 WHERE wnba_team = "sacramento monarchs"
CREATE TABLE table_name_94 (school_club_team VARCHAR, wnba_team VARCHAR)
What school or club team did the player chosen for the Sacramento Monarchs play for?
SELECT player FROM table_name_57 WHERE wnba_team = "chicago sky"
CREATE TABLE table_name_57 (player VARCHAR, wnba_team VARCHAR)
What player was chosen for the Chicago Sky?
SELECT player FROM table_name_47 WHERE wnba_team = "chicago sky"
CREATE TABLE table_name_47 (player VARCHAR, wnba_team VARCHAR)
Which player was picked for the Chicago Sky?
SELECT position FROM table_name_14 WHERE height = 205 AND shirt_no = 8
CREATE TABLE table_name_14 (position VARCHAR, height VARCHAR, shirt_no VARCHAR)
What is the position of the player with a height of 205 and shirt no 8?
SELECT player FROM table_name_84 WHERE height = 182
CREATE TABLE table_name_84 (player VARCHAR, height VARCHAR)
What is the name of the player who is a height of 182?
SELECT SUM(gold) FROM table_name_81 WHERE participants = 4 AND silver < 0
CREATE TABLE table_name_81 (gold INTEGER, participants VARCHAR, silver VARCHAR)
What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0?