answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(attendance) FROM table_name_46 WHERE record = "1-6"
CREATE TABLE table_name_46 (attendance INTEGER, record VARCHAR)
What attendance does 1-6 record have?
SELECT record FROM table_name_69 WHERE opponent = "tampa bay buccaneers"
CREATE TABLE table_name_69 (record VARCHAR, opponent VARCHAR)
What is the record of Tampa Bay Buccaneers?
SELECT nationality FROM table_name_79 WHERE position = "right wing" AND pick__number = "20"
CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR, pick__number VARCHAR)
What Nationality has a Position of right wing, with a #20 pick?
SELECT college_junior_club_team FROM table_name_31 WHERE position = "centre" AND pick__number = "22"
CREATE TABLE table_name_31 (college_junior_club_team VARCHAR, position VARCHAR, pick__number VARCHAR)
What College/junior/club team has a Position of centre, and pick is #22?
SELECT nhl_team FROM table_name_72 WHERE pick__number = "32"
CREATE TABLE table_name_72 (nhl_team VARCHAR, pick__number VARCHAR)
What is the NHL team that had pick number 32?
SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"
CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR)
What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?
SELECT player FROM table_name_22 WHERE nhl_team = "new york rangers" AND pick__number = "31"
CREATE TABLE table_name_22 (player VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?
SELECT SUM(seasons_in_league) FROM table_name_82 WHERE best_position = "5th (2007)"
CREATE TABLE table_name_82 (seasons_in_league INTEGER, best_position VARCHAR)
Which sum of Seasons in league has a Best Position of 5th (2007)?
SELECT city FROM table_name_99 WHERE seasons_in_league = 17 AND club = "shakhter"
CREATE TABLE table_name_99 (city VARCHAR, seasons_in_league VARCHAR, club VARCHAR)
Which City has Seasons in league of 17, and a Club of shakhter?
SELECT team FROM table_name_9 WHERE season > 2008
CREATE TABLE table_name_9 (team VARCHAR, season INTEGER)
What team won after 2008?
SELECT team FROM table_name_66 WHERE points < 203
CREATE TABLE table_name_66 (team VARCHAR, points INTEGER)
What team has fewer than 203 points?
SELECT SUM(points) FROM table_name_69 WHERE season = 2007
CREATE TABLE table_name_69 (points INTEGER, season VARCHAR)
What is total amount of points for the 2007 season?
SELECT driver FROM table_name_66 WHERE team = "collé racing" AND points > 206
CREATE TABLE table_name_66 (driver VARCHAR, team VARCHAR, points VARCHAR)
Who is the driver for team Collé Racing with more than 206 points?
SELECT result FROM table_name_97 WHERE couple = "steve & anna"
CREATE TABLE table_name_97 (result VARCHAR, couple VARCHAR)
What was the result when the couple was steve & anna?
SELECT score FROM table_name_72 WHERE couple = "shannon & derek"
CREATE TABLE table_name_72 (score VARCHAR, couple VARCHAR)
What was the score when the couple was shannon & derek?
SELECT music FROM table_name_30 WHERE couple = "mario & karina"
CREATE TABLE table_name_30 (music VARCHAR, couple VARCHAR)
What music did Mario & Karina perform?
SELECT result FROM table_name_80 WHERE score = "21 (7, 7, 7)" AND couple = "steve & anna"
CREATE TABLE table_name_80 (result VARCHAR, score VARCHAR, couple VARCHAR)
What was the result for Steve & Anna when the score was 21 (7, 7, 7)?
SELECT result FROM table_name_28 WHERE score = "21 (7, 6, 8)"
CREATE TABLE table_name_28 (result VARCHAR, score VARCHAR)
What was the result when the score was 21 (7, 6, 8)?
SELECT points FROM table_name_4 WHERE score = "3–3" AND date = "november 11"
CREATE TABLE table_name_4 (points VARCHAR, score VARCHAR, date VARCHAR)
Which Points have a Score of 3–3, and a Date of november 11?
SELECT date FROM table_name_22 WHERE home = "pittsburgh" AND record = "3–6–5"
CREATE TABLE table_name_22 (date VARCHAR, home VARCHAR, record VARCHAR)
Which Date has a Home of pittsburgh, and a Record of 3–6–5?
SELECT record FROM table_name_91 WHERE score = "4–4" AND points = 17
CREATE TABLE table_name_91 (record VARCHAR, score VARCHAR, points VARCHAR)
Which Record has a Score of 4–4, and Points of 17?
SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3
CREATE TABLE table_name_90 (loses INTEGER, wins VARCHAR, pos VARCHAR)
What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?
SELECT COUNT(rank) FROM table_name_6 WHERE bronze > 1 AND silver > 0 AND nation = "norway (host nation)" AND total > 16
CREATE TABLE table_name_6 (rank VARCHAR, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?
SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6
CREATE TABLE table_name_59 (bronze INTEGER, total VARCHAR, silver VARCHAR)
Which Bronze has a Total of 11, and a Silver smaller than 6?
SELECT AVG(bronze) FROM table_name_5 WHERE nation = "canada" AND rank < 6
CREATE TABLE table_name_5 (bronze INTEGER, nation VARCHAR, rank VARCHAR)
Which Bronze has a Nation of canada, and a Rank smaller than 6?
SELECT MIN(gold) FROM table_name_34 WHERE bronze > 6
CREATE TABLE table_name_34 (gold INTEGER, bronze INTEGER)
Which Gold has a Bronze larger than 6?
SELECT SUM(gold) FROM table_name_25 WHERE rank > 6 AND nation = "netherlands" AND bronze < 0
CREATE TABLE table_name_25 (gold INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?
SELECT torque FROM table_name_49 WHERE name = "1.6 petrol" AND power = "daewoo"
CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR, power VARCHAR)
What is the torque of the 1.6 petrol with daewoo power?
SELECT torque FROM table_name_49 WHERE name = "1.2 petrol"
CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR)
What is the torque of 1.2 petrol?
SELECT power FROM table_name_66 WHERE name = "1.9 diesel"
CREATE TABLE table_name_66 (power VARCHAR, name VARCHAR)
What is the power of 1.9 diesel?
SELECT current_map FROM table_name_25 WHERE namesake = "derain crater"
CREATE TABLE table_name_25 (current_map VARCHAR, namesake VARCHAR)
What is the current map designation of the feature for which derain crater was the namesake?
SELECT albedo_feature_name FROM table_name_65 WHERE name = "neruda"
CREATE TABLE table_name_65 (albedo_feature_name VARCHAR, name VARCHAR)
What is the Albedo name for Neruda?
SELECT number FROM table_name_28 WHERE name = "kuiper"
CREATE TABLE table_name_28 (number VARCHAR, name VARCHAR)
What number is Kuiper?
SELECT current_map FROM table_name_63 WHERE namesake = "discovery rupes"
CREATE TABLE table_name_63 (current_map VARCHAR, namesake VARCHAR)
What is the current map designation of the feature which was named for discovery rupes?
SELECT current_map FROM table_name_24 WHERE name = "debussy"
CREATE TABLE table_name_24 (current_map VARCHAR, name VARCHAR)
What is the current map designation for Debussy?
SELECT current_map FROM table_name_72 WHERE name = "beethoven"
CREATE TABLE table_name_72 (current_map VARCHAR, name VARCHAR)
What is the current map designation for Beethoven?
SELECT overall_fht_points FROM table_name_90 WHERE name = "denis kornilov"
CREATE TABLE table_name_90 (overall_fht_points VARCHAR, name VARCHAR)
What is the overall FHT points for Denis Kornilov?
SELECT MIN(2 AS nd__m_) FROM table_name_99 WHERE points > 251.6
CREATE TABLE table_name_99 (points INTEGER)
What is the lowest 2nd (m) when the points were larger than 251.6?
SELECT city FROM table_name_20 WHERE rank = 7
CREATE TABLE table_name_20 (city VARCHAR, rank VARCHAR)
What city ranked 7?
SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3
CREATE TABLE table_name_3 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR)
How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?
SELECT MIN(rank) FROM table_name_90 WHERE floors < 62 AND name = "etihad tower 5"
CREATE TABLE table_name_90 (rank INTEGER, floors VARCHAR, name VARCHAR)
What is the rank of Etihad Tower 5, with less than 62 floors?
SELECT city FROM table_name_45 WHERE rank > 15 AND floors > 43
CREATE TABLE table_name_45 (city VARCHAR, rank VARCHAR, floors VARCHAR)
What city has a building ranked greater than 15 with floors greater than 43?
SELECT league FROM table_name_31 WHERE sport = "baseball" AND club = "laredo apaches"
CREATE TABLE table_name_31 (league VARCHAR, sport VARCHAR, club VARCHAR)
Which league is for baseball with Laredo Apaches?
SELECT league FROM table_name_70 WHERE sport = "arena football" AND club = "laredo lobos"
CREATE TABLE table_name_70 (league VARCHAR, sport VARCHAR, club VARCHAR)
Which league has arena football in the club Laredo Lobos?
SELECT home_team FROM table_name_14 WHERE game = "game 3"
CREATE TABLE table_name_14 (home_team VARCHAR, game VARCHAR)
Which was the home team for game 3?
SELECT tv_time FROM table_name_66 WHERE road_team = "phoenix" AND date = "june 18"
CREATE TABLE table_name_66 (tv_time VARCHAR, road_team VARCHAR, date VARCHAR)
What was the TV time for Chicago's road game against Phoenix on June 18?
SELECT tv_time FROM table_name_30 WHERE home_team = "phoenix" AND result = "98-99"
CREATE TABLE table_name_30 (tv_time VARCHAR, home_team VARCHAR, result VARCHAR)
What was the TV time for the road game against Phoenix where the score was 98-99?
SELECT home_team FROM table_name_90 WHERE date = "june 9"
CREATE TABLE table_name_90 (home_team VARCHAR, date VARCHAR)
Who was the home team on June 9?
SELECT tv_time FROM table_name_29 WHERE date = "june 9"
CREATE TABLE table_name_29 (tv_time VARCHAR, date VARCHAR)
What was the TV time for the game on June 9?
SELECT conference FROM table_name_94 WHERE division = "east" AND home_stadium = "fedexfield"
CREATE TABLE table_name_94 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR)
At which Conference was the Division in the East, and the Home Stadium named fedexfield?
SELECT home_stadium FROM table_name_64 WHERE division = "south" AND conference = "national" AND city = "charlotte, north carolina"
CREATE TABLE table_name_64 (home_stadium VARCHAR, city VARCHAR, division VARCHAR, conference VARCHAR)
What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?
SELECT home_stadium FROM table_name_25 WHERE conference = "american" AND city = "nashville, tennessee"
CREATE TABLE table_name_25 (home_stadium VARCHAR, conference VARCHAR, city VARCHAR)
Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?
SELECT conference FROM table_name_69 WHERE division = "south" AND home_stadium = "georgia dome"
CREATE TABLE table_name_69 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR)
What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?
SELECT division FROM table_name_14 WHERE city = "jacksonville, florida"
CREATE TABLE table_name_14 (division VARCHAR, city VARCHAR)
Which Division does the City being jacksonville, florida belong to?
SELECT score FROM table_name_11 WHERE date = "1/22"
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
What score has 1/22 as the date?
SELECT score FROM table_name_86 WHERE date = "12/1"
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR)
What score has 12/1 as the date?
SELECT open_source FROM table_name_48 WHERE cost___us$__ = "free" AND activity = "some" AND editor = "markitup"
CREATE TABLE table_name_48 (open_source VARCHAR, editor VARCHAR, cost___us$__ VARCHAR, activity VARCHAR)
Which source has a Cost free, and an Activity of some, and an Editor of markitup?
SELECT site FROM table_name_46 WHERE cost___us$__ = "free" AND editor = "jsvi"
CREATE TABLE table_name_46 (site VARCHAR, cost___us$__ VARCHAR, editor VARCHAR)
Which site has a Cost free and a Editor of jsvi?
SELECT cost___us$__ FROM table_name_66 WHERE open_source = "no"
CREATE TABLE table_name_66 (cost___us$__ VARCHAR, open_source VARCHAR)
What is the cost of an Open Source that is no?
SELECT venue FROM table_name_64 WHERE weight__kg_ > 55 AND result = "won"
CREATE TABLE table_name_64 (venue VARCHAR, weight__kg_ VARCHAR, result VARCHAR)
What venue has a weight (kg) greater than 55, and won as the result?
SELECT group FROM table_name_18 WHERE weight__kg_ < 55
CREATE TABLE table_name_18 (group VARCHAR, weight__kg_ INTEGER)
Which group has a weight (kg) less than 55?
SELECT position FROM table_name_54 WHERE pick__number = 45
CREATE TABLE table_name_54 (position VARCHAR, pick__number VARCHAR)
Which position has 45 picks?
SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye"
CREATE TABLE table_name_54 (record VARCHAR, week VARCHAR, game_site VARCHAR)
What is the record of the game before week 5 and a bye game site?
SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33
CREATE TABLE table_name_28 (seasons VARCHAR, entries VARCHAR, poles VARCHAR)
Which Seasons have Entries larger than 52, and Poles of 33?
SELECT seasons FROM table_name_66 WHERE poles > 29 AND entries > 191
CREATE TABLE table_name_66 (seasons VARCHAR, poles VARCHAR, entries VARCHAR)
Which Seasons have a Poles larger than 29, and Entries larger than 191?
SELECT away_leg FROM table_name_60 WHERE opposition = "aarhus gymnastik forening"
CREATE TABLE table_name_60 (away_leg VARCHAR, opposition VARCHAR)
What ist the Away Leg with an Opposition that is aarhus gymnastik forening?
SELECT 2007 FROM table_name_70 WHERE 2006 = "236"
CREATE TABLE table_name_70 (Id VARCHAR)
What 2007 has 236 for 2006?
SELECT 2011 FROM table_name_72 WHERE 2010 = "2r" AND 2008 = "a"
CREATE TABLE table_name_72 (Id VARCHAR)
What 2011 has 2r as 2010, and a 2008 of A?
SELECT 2012 FROM table_name_4 WHERE tournament = "tournament played"
CREATE TABLE table_name_4 (tournament VARCHAR)
What is the 2012 that has tournament played as the tournament?
SELECT artist FROM table_name_51 WHERE place > 1 AND points = 229
CREATE TABLE table_name_51 (artist VARCHAR, place VARCHAR, points VARCHAR)
Which artist had a place larger than 1 with 229 points?
SELECT MIN(january) FROM table_name_13 WHERE opponent = "florida panthers" AND points < 59
CREATE TABLE table_name_13 (january INTEGER, opponent VARCHAR, points VARCHAR)
Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?
SELECT record FROM table_name_97 WHERE game = 41
CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
Which Record has a Game of 41?
SELECT score FROM table_name_18 WHERE january > 21 AND points = 63
CREATE TABLE table_name_18 (score VARCHAR, january VARCHAR, points VARCHAR)
Which Score has a January larger than 21, and Points of 63?
SELECT COUNT(points) FROM table_name_21 WHERE record = "25–10–11" AND january > 28
CREATE TABLE table_name_21 (points VARCHAR, record VARCHAR, january VARCHAR)
How many Points have a Record of 25–10–11, and a January larger than 28?
SELECT province FROM table_name_72 WHERE established = 1870
CREATE TABLE table_name_72 (province VARCHAR, established VARCHAR)
what province was established in 1870
SELECT incumbent FROM table_name_3 WHERE district = "ohio 13"
CREATE TABLE table_name_3 (incumbent VARCHAR, district VARCHAR)
Who is the Incumbent that has a District of ohio 13 in Democratic Party?
SELECT score FROM table_name_39 WHERE champion = "ken rosewall" AND year = "1957"
CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR)
What is the score of champion Ken Rosewall in 1957?
SELECT surface FROM table_name_47 WHERE runner_up = "brian gottfried"
CREATE TABLE table_name_47 (surface VARCHAR, runner_up VARCHAR)
What is the surface of the match with Brian Gottfried as the runner-up?
SELECT score FROM table_name_93 WHERE runner_up = "anders järryd"
CREATE TABLE table_name_93 (score VARCHAR, runner_up VARCHAR)
What is the score of the match with anders järryd as the runner-up?
SELECT MIN(bronze) FROM table_name_66 WHERE total = 4 AND gold < 1
CREATE TABLE table_name_66 (bronze INTEGER, total VARCHAR, gold VARCHAR)
What is the low bronze total for the team with 4 total and under 1 gold?
SELECT AVG(total) FROM table_name_33 WHERE bronze > 3 AND gold > 8
CREATE TABLE table_name_33 (total INTEGER, bronze VARCHAR, gold VARCHAR)
What is the average total for teams with over 3 bronzes and over 8 golds?
SELECT MIN(silver) FROM table_name_99 WHERE total < 1
CREATE TABLE table_name_99 (silver INTEGER, total INTEGER)
What is the low silver total associated with under 1 total?
SELECT points FROM table_name_92 WHERE highest_position < 9 AND position = 22
CREATE TABLE table_name_92 (points VARCHAR, highest_position VARCHAR, position VARCHAR)
What is the number of points associated with the highest position under 9 and a current position of 22?
SELECT performer_1 FROM table_name_93 WHERE performer_3 = "paul merton" AND performer_4 = "sandi toksvig"
CREATE TABLE table_name_93 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)
Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?
SELECT performer_1 FROM table_name_64 WHERE episode = 16
CREATE TABLE table_name_64 (performer_1 VARCHAR, episode VARCHAR)
Episode of 16 involves which performer 1?
SELECT performer_1 FROM table_name_55 WHERE performer_2 = "compilation 1"
CREATE TABLE table_name_55 (performer_1 VARCHAR, performer_2 VARCHAR)
Performer 2 of compilation 1 had what performer 1?
SELECT schwaben FROM table_name_98 WHERE oberbayern = "fc ingolstadt 04" AND mittelfranken = "sv seligenporten"
CREATE TABLE table_name_98 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten
SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremberg ii"
CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?
SELECT incumbent FROM table_name_64 WHERE district = "south carolina 3"
CREATE TABLE table_name_64 (incumbent VARCHAR, district VARCHAR)
Who was the incumbent for south carolina 3 district?
SELECT first_elected FROM table_name_56 WHERE district = "south carolina 1"
CREATE TABLE table_name_56 (first_elected VARCHAR, district VARCHAR)
When was the incumbent from the south carolina 1 district first elected?
SELECT incumbent FROM table_name_96 WHERE first_elected = "1892" AND result = "retired to run for the senate democratic hold"
CREATE TABLE table_name_96 (incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?
SELECT incumbent FROM table_name_82 WHERE result = "retired to run for the senate democratic hold"
CREATE TABLE table_name_82 (incumbent VARCHAR, result VARCHAR)
Who was the incumbent that retired to run for the senate democratic hold?
SELECT result FROM table_name_83 WHERE first_elected = "1892" AND incumbent = "w. jasper talbert"
CREATE TABLE table_name_83 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
What was the result of W. Jasper Talbert who was first elected in 1892?
SELECT nationality FROM table_name_35 WHERE 224 = "xo" AND 220 = "xo"
CREATE TABLE table_name_35 (nationality VARCHAR)
Which Nationality has a 2.24 of xo, and a 2.20 of xo?
SELECT athlete FROM table_name_8 WHERE 224 = "xo" AND 220 = "o" AND 215 = "o"
CREATE TABLE table_name_8 (athlete VARCHAR)
Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?
SELECT MIN(election) FROM table_name_69 WHERE _number_of_candidates_nominated > 7 AND _percentage_of_popular_vote = "2.75%" AND _number_of_seats_won < 0
CREATE TABLE table_name_69 (election INTEGER, _number_of_seats_won VARCHAR, _number_of_candidates_nominated VARCHAR, _percentage_of_popular_vote VARCHAR)
What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?
SELECT SUM(played) FROM table_name_22 WHERE lost > 14 AND drawn = 8 AND team = "ipatinga"
CREATE TABLE table_name_22 (played INTEGER, team VARCHAR, lost VARCHAR, drawn VARCHAR)
How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?
SELECT COUNT(drawn) FROM table_name_55 WHERE difference = "3" AND points < 52
CREATE TABLE table_name_55 (drawn VARCHAR, difference VARCHAR, points VARCHAR)
How many Drawn have a Difference of 3, and Points smaller than 52?
SELECT MAX(points) FROM table_name_80 WHERE position < 4 AND team = "são paulo" AND drawn > 12
CREATE TABLE table_name_80 (points INTEGER, drawn VARCHAR, position VARCHAR, team VARCHAR)
Which Points is the highest one that has a Position smaller than 4, and a Team of são paulo, and Drawn larger than 12?
SELECT SUM(lost) FROM table_name_18 WHERE points > 40 AND position = 11 AND played < 38
CREATE TABLE table_name_18 (lost INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38?