answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT SUM(laps) FROM table_name_5 WHERE grid = 2 | CREATE TABLE table_name_5 (laps INTEGER, grid VARCHAR) | What is the total of laps with grid of 2 |
SELECT MIN(grid) FROM table_name_33 WHERE time = "+0.499" AND laps > 21 | CREATE TABLE table_name_33 (grid INTEGER, time VARCHAR, laps VARCHAR) | What is the lowest grid with time of +0.499,when laps are larger than 21? |
SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = "gilera" AND time = "40:19.910" AND grid > 3 | CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR) | What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3? |
SELECT time FROM table_name_72 WHERE rank = 14 | CREATE TABLE table_name_72 (time VARCHAR, rank VARCHAR) | What is the time when the rank is 14? |
SELECT SUM(rank) FROM table_name_70 WHERE time = "3:12.40" | CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR) | what is the rank when the time is 3:12.40? |
SELECT SUM(rank) FROM table_name_66 WHERE heat > 4 | CREATE TABLE table_name_66 (rank INTEGER, heat INTEGER) | what is the rank when the heat is more than 4? |
SELECT nationality FROM table_name_81 WHERE heat < 3 AND time = "2:35.31" | CREATE TABLE table_name_81 (nationality VARCHAR, heat VARCHAR, time VARCHAR) | what is the nationality when the heat is less than 3 and the time is 2:35.31? |
SELECT name FROM table_name_64 WHERE heat < 3 AND rank < 18 AND nationality = "east germany" AND time = "2:35.31" | CREATE TABLE table_name_64 (name VARCHAR, time VARCHAR, nationality VARCHAR, heat VARCHAR, rank VARCHAR) | what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31? |
SELECT tie_no FROM table_name_44 WHERE away_team = "tranmere rovers" | CREATE TABLE table_name_44 (tie_no VARCHAR, away_team VARCHAR) | Which tie number had an away team of the Tranmere Rovers? |
SELECT tie_no FROM table_name_36 WHERE away_team = "tranmere rovers" | CREATE TABLE table_name_36 (tie_no VARCHAR, away_team VARCHAR) | Which tie number had an away team of the Tranmere Rovers? |
SELECT date FROM table_name_99 WHERE location = "richfield coliseum" | CREATE TABLE table_name_99 (date VARCHAR, location VARCHAR) | What date did the Boston Celtics play at Richfield Coliseum? |
SELECT MAX(game) FROM table_name_16 WHERE score = "126-108" | CREATE TABLE table_name_16 (game INTEGER, score VARCHAR) | What game ended with a final score of 126-108? |
SELECT high_rebounds FROM table_name_53 WHERE date = "february 6" | CREATE TABLE table_name_53 (high_rebounds VARCHAR, date VARCHAR) | What was the highest number of rebounds on February 6? |
SELECT COUNT(viewers__in_millions_) FROM table_name_27 WHERE finale = "may 16, 2007" | CREATE TABLE table_name_27 (viewers__in_millions_ VARCHAR, finale VARCHAR) | How many people tuned in to the finale on May 16, 2007? |
SELECT timeslot FROM table_name_43 WHERE finale = "may 20, 2003" | CREATE TABLE table_name_43 (timeslot VARCHAR, finale VARCHAR) | What time did the season finale air on May 20, 2003? |
SELECT SUM(game) FROM table_name_71 WHERE team = "toronto" | CREATE TABLE table_name_71 (game INTEGER, team VARCHAR) | What was the total score where Toronto was played? |
SELECT weight_ & _height FROM table_name_43 WHERE player = "james donaldson" | CREATE TABLE table_name_43 (weight_ VARCHAR, _height VARCHAR, player VARCHAR) | Which Weight & Height has a Player of james donaldson? |
SELECT weight_ & _height FROM table_name_65 WHERE player = "michael worrincy" | CREATE TABLE table_name_65 (weight_ VARCHAR, _height VARCHAR, player VARCHAR) | Which Weight & Height has a Player of michael worrincy? |
SELECT res FROM table_name_94 WHERE round = 1 AND time = "2:48" | CREATE TABLE table_name_94 (res VARCHAR, round VARCHAR, time VARCHAR) | What is the result of the match that went to round 1 and only for 2:48? |
SELECT COUNT(round) FROM table_name_38 WHERE event = "k-1 mma romanex" | CREATE TABLE table_name_38 (round VARCHAR, event VARCHAR) | The K-1 MMA Romanex event went how many rounds? |
SELECT res FROM table_name_63 WHERE time = "2:48" | CREATE TABLE table_name_63 (res VARCHAR, time VARCHAR) | What is the result for the match that was only 2:48 long? |
SELECT points_for FROM table_name_76 WHERE points_against = "571" | CREATE TABLE table_name_76 (points_for VARCHAR, points_against VARCHAR) | What is Points For, when Points Against is 571? |
SELECT drawn FROM table_name_63 WHERE lost = "14" AND bonus_points = "12" | CREATE TABLE table_name_63 (drawn VARCHAR, lost VARCHAR, bonus_points VARCHAR) | What is Drawn, when Lost is 14, and when Bonus Points is 12? |
SELECT points FROM table_name_14 WHERE club = "maesteg rfc" | CREATE TABLE table_name_14 (points VARCHAR, club VARCHAR) | What is Points, when Club is Maesteg RFC? |
SELECT points_for FROM table_name_24 WHERE points = "60" AND club = "bedwas rfc" | CREATE TABLE table_name_24 (points_for VARCHAR, points VARCHAR, club VARCHAR) | What is Points, when Points is 60, and when Club is Bedwas RFC? |
SELECT drawn FROM table_name_71 WHERE club = "newport rfc" | CREATE TABLE table_name_71 (drawn VARCHAR, club VARCHAR) | What is Drawn, when Club is Newport RFC? |
SELECT points_difference FROM table_name_96 WHERE points_against = "451" | CREATE TABLE table_name_96 (points_difference VARCHAR, points_against VARCHAR) | What is Points Difference, when Points Against is 451? |
SELECT MAX(silver) FROM table_name_40 WHERE gold < 0 | CREATE TABLE table_name_40 (silver INTEGER, gold INTEGER) | Which is the highest silver that has a gold less than 0? |
SELECT MIN(silver) FROM table_name_76 WHERE rank = 1 AND bronze > 5 | CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | What is the lowest silver that has 1 as the rank, with a bronze greater than 5? |
SELECT MAX(silver) FROM table_name_55 WHERE rank = 9 AND nation = "germany" AND gold < 0 | CREATE TABLE table_name_55 (silver INTEGER, gold VARCHAR, rank VARCHAR, nation VARCHAR) | What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0? |
SELECT location_attendance FROM table_name_9 WHERE record = "41–36" | CREATE TABLE table_name_9 (location_attendance VARCHAR, record VARCHAR) | What shows for the location and attendance when the record is 41–36? |
SELECT score FROM table_name_65 WHERE record = "40–36" | CREATE TABLE table_name_65 (score VARCHAR, record VARCHAR) | What is the score when the record was 40–36? |
SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = "texas" | CREATE TABLE table_name_17 (player VARCHAR, pick__number VARCHAR, college VARCHAR) | WHo is the Player got a Pick # smaller than 61, and a College of texas? |
SELECT college FROM table_name_59 WHERE round < 3 AND pick__number > 4 AND position = "wide receiver" | CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, round VARCHAR, pick__number VARCHAR) | Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver? |
SELECT MAX(round) FROM table_name_12 WHERE player = "mike williams" AND pick__number > 4 | CREATE TABLE table_name_12 (round INTEGER, player VARCHAR, pick__number VARCHAR) | Which the highest Round has a Player of mike williams, and a Pick # larger than 4? |
SELECT AVG(pick__number) FROM table_name_9 WHERE player = "mike williams" | CREATE TABLE table_name_9 (pick__number INTEGER, player VARCHAR) | Name the average Pick # of mike williams? |
SELECT date FROM table_name_62 WHERE visitor = "buffalo" | CREATE TABLE table_name_62 (date VARCHAR, visitor VARCHAR) | What date did the red wings play against the visitors, buffalo? |
SELECT decision FROM table_name_33 WHERE home = "atlanta" | CREATE TABLE table_name_33 (decision VARCHAR, home VARCHAR) | Who made the decision when atlanta was the home team? |
SELECT decision FROM table_name_81 WHERE home = "detroit" AND visitor = "boston" | CREATE TABLE table_name_81 (decision VARCHAR, home VARCHAR, visitor VARCHAR) | Who made the decision when detroit was the home team and boston was the visitor? |
SELECT decision FROM table_name_21 WHERE home = "toronto" | CREATE TABLE table_name_21 (decision VARCHAR, home VARCHAR) | Who made the decision when toronto was the home team? |
SELECT SUM(pick) FROM table_name_32 WHERE name = "cecil martin" AND overall < 268 | CREATE TABLE table_name_32 (pick INTEGER, name VARCHAR, overall VARCHAR) | The player Cecil Martin with an overall less than 268 has what total pick? |
SELECT COUNT(overall) FROM table_name_38 WHERE pick = 1 AND name = "cecil martin" | CREATE TABLE table_name_38 (overall VARCHAR, pick VARCHAR, name VARCHAR) | With the pick of 1 Cecil Martin has what number as the overall? |
SELECT position FROM table_name_76 WHERE overall = 304 | CREATE TABLE table_name_76 (position VARCHAR, overall VARCHAR) | What position does the player play with an overall of 304? |
SELECT us_modern_rock FROM table_name_90 WHERE code = "bad 0003" | CREATE TABLE table_name_90 (us_modern_rock VARCHAR, code VARCHAR) | What is the US modern rock rank of code bad 0003? |
SELECT format FROM table_name_83 WHERE code = "9 40231-2 (us only)" | CREATE TABLE table_name_83 (format VARCHAR, code VARCHAR) | What is the format of code 9 40231-2 (us only)? |
SELECT uk_singles_chart FROM table_name_9 WHERE release_date = "26 february 1990" | CREATE TABLE table_name_9 (uk_singles_chart VARCHAR, release_date VARCHAR) | What is the UK singles chart rank of the single released on 26 February 1990? |
SELECT format FROM table_name_98 WHERE code = "pro-cd-4662" | CREATE TABLE table_name_98 (format VARCHAR, code VARCHAR) | What is the format of code pro-cd-4662? |
SELECT mongolian FROM table_name_79 WHERE province = "municipality" | CREATE TABLE table_name_79 (mongolian VARCHAR, province VARCHAR) | Which mongolian has the province of municipality? |
SELECT SUM(year) FROM table_name_24 WHERE bsu_head_coach = "bus conner" | CREATE TABLE table_name_24 (year INTEGER, bsu_head_coach VARCHAR) | What is the sum of the years with bus conner as the BSU head coach? |
SELECT bsu_head_coach FROM table_name_76 WHERE opponent = "louisville" AND year > 1994 | CREATE TABLE table_name_76 (bsu_head_coach VARCHAR, opponent VARCHAR, year VARCHAR) | Who is the BSU head coach of the tournament after 1994 with louisville as the opponent? |
SELECT result FROM table_name_36 WHERE year = 1994 | CREATE TABLE table_name_36 (result VARCHAR, year VARCHAR) | What is the result in 1994? |
SELECT result FROM table_name_2 WHERE year > 1993 AND round = "first four" | CREATE TABLE table_name_2 (result VARCHAR, year VARCHAR, round VARCHAR) | What is the result after 1993 of the first four rounds? |
SELECT opponent FROM table_name_86 WHERE bsu_head_coach = "bobby dye" AND year < 1994 | CREATE TABLE table_name_86 (opponent VARCHAR, bsu_head_coach VARCHAR, year VARCHAR) | Who was the opponent before 1994 with bobby dye as the BSU head coach? |
SELECT opponent FROM table_name_98 WHERE year = 1976 | CREATE TABLE table_name_98 (opponent VARCHAR, year VARCHAR) | Who is the opponent in 1976? |
SELECT date FROM table_name_4 WHERE score = "0-2" AND opponents = "bayer leverkusen" | CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR, opponents VARCHAR) | What is Date, when Score is "0-2", and when Opponents is "Bayer Leverkusen"? |
SELECT competition FROM table_name_84 WHERE score = "2-1" AND date = "october 22, 2008" | CREATE TABLE table_name_84 (competition VARCHAR, score VARCHAR, date VARCHAR) | What is Competition, when Score is "2-1", and when Date is "October 22, 2008"? |
SELECT match_report FROM table_name_92 WHERE venue = "westfalenstadion , dortmund" | CREATE TABLE table_name_92 (match_report VARCHAR, venue VARCHAR) | What is Match Report, when Venue is "Westfalenstadion , Dortmund"? |
SELECT date FROM table_name_32 WHERE venue = "weserstadion , bremen" | CREATE TABLE table_name_32 (date VARCHAR, venue VARCHAR) | What is Date, when Venue is "Weserstadion , Bremen"? |
SELECT date FROM table_name_28 WHERE competition = "f" AND opponents = "fc astoria walldorf" | CREATE TABLE table_name_28 (date VARCHAR, competition VARCHAR, opponents VARCHAR) | What is Date, when Competition is "F", and when Opponents is "FC Astoria Walldorf"? |
SELECT SUM(pick) FROM table_name_58 WHERE name = "charley taylor" AND overall > 3 | CREATE TABLE table_name_58 (pick INTEGER, name VARCHAR, overall VARCHAR) | What is the pick of Charley Taylor, who has an overall greater than 3? |
SELECT position FROM table_name_68 WHERE overall = 143 | CREATE TABLE table_name_68 (position VARCHAR, overall VARCHAR) | What is the position of the player with a 143 overall? |
SELECT AVG(round) FROM table_name_79 WHERE position = "s" AND college = "mississippi" AND overall < 214 | CREATE TABLE table_name_79 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) | What is the average round of the s position player from the college of Mississippi and has an overall less than 214? |
SELECT COUNT(round) FROM table_name_76 WHERE position = "rb" AND college = "purdue" AND pick < 3 | CREATE TABLE table_name_76 (round VARCHAR, pick VARCHAR, position VARCHAR, college VARCHAR) | What is the total round of the rb player from Purdue with a pick less than 3? |
SELECT category FROM table_name_12 WHERE nominated_work = "24" | CREATE TABLE table_name_12 (category VARCHAR, nominated_work VARCHAR) | Which category has 24 nominated work? |
SELECT MIN(silver) FROM table_name_3 WHERE bronze = 1 AND total > 1 AND nation = "croatia" | CREATE TABLE table_name_3 (silver INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR) | How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1? |
SELECT AVG(gold) FROM table_name_59 WHERE nation = "australia" | CREATE TABLE table_name_59 (gold INTEGER, nation VARCHAR) | How many Gold medals did Australia receive? |
SELECT MIN(total) FROM table_name_65 WHERE silver = 16 AND bronze < 32 | CREATE TABLE table_name_65 (total INTEGER, silver VARCHAR, bronze VARCHAR) | How many Total medals did the country with 16 Silver and less than 32 Bronze receive? |
SELECT MIN(bronze) FROM table_name_9 WHERE rank = "11" AND silver < 1 | CREATE TABLE table_name_9 (bronze INTEGER, rank VARCHAR, silver VARCHAR) | How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver? |
SELECT AVG(episode) AS number FROM table_name_96 WHERE original_airdate = "march 21, 2010" AND season < 3 | CREATE TABLE table_name_96 (episode INTEGER, original_airdate VARCHAR, season VARCHAR) | What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3? |
SELECT COUNT(season) FROM table_name_67 WHERE original_airdate = "january 24, 1999" AND year < 1999 | CREATE TABLE table_name_67 (season VARCHAR, original_airdate VARCHAR, year VARCHAR) | What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999? |
SELECT COUNT(game) FROM table_name_17 WHERE result = "l" AND record = "2-6" | CREATE TABLE table_name_17 (game VARCHAR, result VARCHAR, record VARCHAR) | How many games have a Result of l, and a Record of 2-6? |
SELECT SUM(attendance) FROM table_name_14 WHERE opponent = "green bay packers" | CREATE TABLE table_name_14 (attendance INTEGER, opponent VARCHAR) | How many people attended the green bay packers game? |
SELECT attendance FROM table_name_62 WHERE record = "1-1" | CREATE TABLE table_name_62 (attendance VARCHAR, record VARCHAR) | How many people attended the game whose score was 1-1? |
SELECT date FROM table_name_12 WHERE score = "24-7" AND record = "4-10" | CREATE TABLE table_name_12 (date VARCHAR, score VARCHAR, record VARCHAR) | Which Date has a Score of 24-7, and a Record of 4-10? |
SELECT MIN(round) FROM table_name_76 WHERE position = "g" AND overall < 31 | CREATE TABLE table_name_76 (round INTEGER, position VARCHAR, overall VARCHAR) | Lowest round for g that was smaller than 31? |
SELECT semifinalists FROM table_name_29 WHERE tournament = "cincinnati" | CREATE TABLE table_name_29 (semifinalists VARCHAR, tournament VARCHAR) | What is the Semifinalists that has a Tournament of Cincinnati? |
SELECT aggregate FROM table_name_58 WHERE club = "crvena zvezda" | CREATE TABLE table_name_58 (aggregate VARCHAR, club VARCHAR) | The Crvena Zvezda club has what aggregate? |
SELECT COUNT(assists) FROM table_name_85 WHERE goals = 0 AND points > 1 AND pims > 0 | CREATE TABLE table_name_85 (assists VARCHAR, pims VARCHAR, goals VARCHAR, points VARCHAR) | What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims? |
SELECT decision FROM table_name_5 WHERE visitor = "calgary" AND score = "2 – 1" AND series = "4 – 3" | CREATE TABLE table_name_5 (decision VARCHAR, series VARCHAR, visitor VARCHAR, score VARCHAR) | Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3? |
SELECT visitor FROM table_name_15 WHERE series = "2 – 1" | CREATE TABLE table_name_15 (visitor VARCHAR, series VARCHAR) | Which Visitor has a Series of 2 – 1? |
SELECT visitor FROM table_name_72 WHERE home = "calgary" AND date = "april 17" | CREATE TABLE table_name_72 (visitor VARCHAR, home VARCHAR, date VARCHAR) | Which Visitor has a Home of calgary, and a Date of april 17? |
SELECT decision FROM table_name_4 WHERE visitor = "vancouver" AND score = "5 – 4" | CREATE TABLE table_name_4 (decision VARCHAR, visitor VARCHAR, score VARCHAR) | Which Decision has a Visitor of vancouver, and a Score of 5 – 4? |
SELECT visitor FROM table_name_30 WHERE home = "vancouver" AND decision = "cloutier" | CREATE TABLE table_name_30 (visitor VARCHAR, home VARCHAR, decision VARCHAR) | Which Visitor has a Home of vancouver, and a Decision of cloutier? |
SELECT decision FROM table_name_42 WHERE series = "3 – 3" | CREATE TABLE table_name_42 (decision VARCHAR, series VARCHAR) | Which Decision has a Series of 3 – 3? |
SELECT race_4 FROM table_name_76 WHERE race_1 = "dsq" | CREATE TABLE table_name_76 (race_4 VARCHAR, race_1 VARCHAR) | What's the value for race 4 when race 1 is dsq? |
SELECT race_4 FROM table_name_55 WHERE race_3 = "dns" AND race_2 = "27" | CREATE TABLE table_name_55 (race_4 VARCHAR, race_3 VARCHAR, race_2 VARCHAR) | What's the value for race 4 when race 3 is dns and race 2 is 27? |
SELECT race_4 FROM table_name_61 WHERE driver = "kevin heffernan" | CREATE TABLE table_name_61 (race_4 VARCHAR, driver VARCHAR) | What's the value for race 4 for driver kevin heffernan? |
SELECT date FROM table_name_92 WHERE game = 4 | CREATE TABLE table_name_92 (date VARCHAR, game VARCHAR) | What was the date of game 4? |
SELECT high_points FROM table_name_86 WHERE date = "november 12" | CREATE TABLE table_name_86 (high_points VARCHAR, date VARCHAR) | Who had the most points in the game on November 12? |
SELECT rank FROM table_name_34 WHERE player = "isco alarcón" | CREATE TABLE table_name_34 (rank VARCHAR, player VARCHAR) | What rank is the team that has a player named Isco Alarcón? |
SELECT COUNT(rank) FROM table_name_17 WHERE club_s_ = "valencia" AND u_17_caps = 20 | CREATE TABLE table_name_17 (rank VARCHAR, club_s_ VARCHAR, u_17_caps VARCHAR) | What is the rank of Club Valencia with a U-17 Caps of 20? |
SELECT high_assists FROM table_name_76 WHERE high_points = "t. j. ford (29)" | CREATE TABLE table_name_76 (high_assists VARCHAR, high_points VARCHAR) | What is High Assists, when High Points is "T. J. Ford (29)"? |
SELECT high_assists FROM table_name_93 WHERE date = "march 10" | CREATE TABLE table_name_93 (high_assists VARCHAR, date VARCHAR) | What is High Assists, when Date is "March 10"? |
SELECT record FROM table_name_78 WHERE team = "@ atlanta" | CREATE TABLE table_name_78 (record VARCHAR, team VARCHAR) | What is Record, when Team is "@ Atlanta"? |
SELECT team FROM table_name_69 WHERE location_attendance = "rose garden 20,020" | CREATE TABLE table_name_69 (team VARCHAR, location_attendance VARCHAR) | What is Team, when Location Attendance is "Rose Garden 20,020"? |
SELECT date FROM table_name_56 WHERE high_points = "danny granger (32)" | CREATE TABLE table_name_56 (date VARCHAR, high_points VARCHAR) | What is Date, when High Points is "Danny Granger (32)"? |
SELECT place FROM table_name_88 WHERE money___$__ = "20,903" AND player = "bob gilder" | CREATE TABLE table_name_88 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) | What is the place when the player is Bob Gilder and the money was $20,903? |
SELECT place FROM table_name_78 WHERE country = "united states" AND player = "fuzzy zoeller" | CREATE TABLE table_name_78 (place VARCHAR, country VARCHAR, player VARCHAR) | What is the Place when Fuzzy Zoeller plated in the United States? |
SELECT to_par FROM table_name_20 WHERE score = 72 - 67 - 68 - 71 = 278 | CREATE TABLE table_name_20 (to_par VARCHAR, score VARCHAR) | What is the To par when the score was 72-67-68-71=278? |
SELECT place FROM table_name_52 WHERE player = "steve pate" | CREATE TABLE table_name_52 (place VARCHAR, player VARCHAR) | What is the Place when Steve Pate was the player? |
Subsets and Splits