answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(points) FROM table_name_32 WHERE chassis = "brm p160e" AND year > 1974
CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR)
Name the sum of points for chassis of brm p160e and year more than 1974
SELECT chassis FROM table_name_64 WHERE year > 1991
CREATE TABLE table_name_64 (chassis VARCHAR, year INTEGER)
What is the chassis after 1991?
SELECT AVG(points) FROM table_name_54 WHERE year > 1992
CREATE TABLE table_name_54 (points INTEGER, year INTEGER)
What are the average points after 1992?
SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c"
CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR)
What is the sum of points in 1991, for footwork a11c chassis?
SELECT COUNT(points) FROM table_name_43 WHERE entrant = "martini racing" AND engine = "alfa romeo flat-12" AND chassis = "brabham bt45" AND year = 1976
CREATE TABLE table_name_43 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR, engine VARCHAR)
How many points does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chassis of brabham bt45, and the year 1976 have?
SELECT chassis FROM table_name_35 WHERE year = 1974 AND entrant = "goldie hexagon racing"
CREATE TABLE table_name_35 (chassis VARCHAR, year VARCHAR, entrant VARCHAR)
Which chassis is from 1974 and was an entrant of Goldie Hexagon racing?
SELECT AVG(points) FROM table_name_23 WHERE engine = "cosworth v8" AND year = 1973
CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR, year VARCHAR)
What is the average points of a Cosworth v8 engine in 1973.
SELECT chassis FROM table_name_76 WHERE engine = "alfa romeo flat-12"
CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR)
Which chassis has an Alfa Romeo flat-12 engine.
SELECT score FROM table_name_87 WHERE attendance = "32,036"
CREATE TABLE table_name_87 (score VARCHAR, attendance VARCHAR)
What was the score of the game that had an attendance of 32,036?
SELECT date FROM table_name_4 WHERE record = "46-34"
CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR)
On what date did the result leave the team with a record of 46-34?
SELECT opponent FROM table_name_37 WHERE round = "1" AND time = "n/a"
CREATE TABLE table_name_37 (opponent VARCHAR, round VARCHAR, time VARCHAR)
Name the opponent with round of 1 and time of n/a
SELECT record FROM table_name_71 WHERE opponent = "christian nielson"
CREATE TABLE table_name_71 (record VARCHAR, opponent VARCHAR)
Name the record with opponent of christian nielson
SELECT opponent FROM table_name_59 WHERE method = "decision"
CREATE TABLE table_name_59 (opponent VARCHAR, method VARCHAR)
Name the opponent with decision
SELECT 3 AS rd_place FROM table_name_53 WHERE year = "2011"
CREATE TABLE table_name_53 (year VARCHAR)
What was the 3rd place value in 2011?
SELECT tries_for FROM table_name_92 WHERE points_against = "583"
CREATE TABLE table_name_92 (tries_for VARCHAR, points_against VARCHAR)
Name the tries for points against of 583
SELECT points_for FROM table_name_73 WHERE played = "22" AND tries_for = "91"
CREATE TABLE table_name_73 (points_for VARCHAR, played VARCHAR, tries_for VARCHAR)
Nam the points for when tries for is 91 and played of 22
SELECT drawn FROM table_name_95 WHERE tries_for = "42"
CREATE TABLE table_name_95 (drawn VARCHAR, tries_for VARCHAR)
Name the drawn for tries for of 42
SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66"
CREATE TABLE table_name_60 (drawn VARCHAR, tries_against VARCHAR, points VARCHAR)
Name the Drawn for tries against of 36 and points of 66
SELECT try_bonus FROM table_name_92 WHERE lost = "10"
CREATE TABLE table_name_92 (try_bonus VARCHAR, lost VARCHAR)
Name the Try bonus with lost of 10
SELECT points_for FROM table_name_97 WHERE points_against = "450"
CREATE TABLE table_name_97 (points_for VARCHAR, points_against VARCHAR)
Name the points for when points against is of 450
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora"
CREATE TABLE table_name_3 (team_2 VARCHAR)
What was the 1st leg when Team 2 was Aurora?
SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian"
CREATE TABLE table_name_57 (team_1 VARCHAR)
What was the 2nd leg when Team 1 was Chicago Croatian?
SELECT team_2 FROM table_name_88 WHERE team_1 = "américa"
CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR)
Who was Team 2 when Team 1 was América?
SELECT nationality FROM table_name_55 WHERE nhl_team = "montreal canadiens" AND pick__number = "25"
CREATE TABLE table_name_55 (nationality VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
Which nationality do the Montreal Canadiens belong to with a pick# of 25?
SELECT pick__number FROM table_name_92 WHERE nhl_team = "california golden seals"
CREATE TABLE table_name_92 (pick__number VARCHAR, nhl_team VARCHAR)
What is the pick# for the California Golden Seals?
SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels"
CREATE TABLE table_name_81 (goal INTEGER, venue VARCHAR)
What was the Goal in Stade Roi Baudouin, Brussels?
SELECT venue FROM table_name_48 WHERE competition = "friendly" AND goal > 2
CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR, goal VARCHAR)
What Venue had 2 or more Goals in a Friendly Competition?
SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male"
CREATE TABLE table_name_42 (site INTEGER, sex_and_other_data VARCHAR)
Which Site that has a Sex and other data of old male?
SELECT age_groups FROM table_name_40 WHERE sport = "figure skating"
CREATE TABLE table_name_40 (age_groups VARCHAR, sport VARCHAR)
What is the age group for figure skating?
SELECT sport FROM table_name_58 WHERE age_groups = "21 or younger" AND competition_name = "world youth netball championships"
CREATE TABLE table_name_58 (sport VARCHAR, age_groups VARCHAR, competition_name VARCHAR)
what is the sport when the age group is 21 or younger and the competition name is world youth netball championships?
SELECT competition_name FROM table_name_42 WHERE age_groups = "17 or younger" AND sport = "athletics"
CREATE TABLE table_name_42 (competition_name VARCHAR, age_groups VARCHAR, sport VARCHAR)
what is the competition name when the age group is 17 or younger for athletics?
SELECT competing_entities FROM table_name_37 WHERE age_groups = "18 or younger" AND held_every = "one year" AND sport = "table tennis"
CREATE TABLE table_name_37 (competing_entities VARCHAR, sport VARCHAR, age_groups VARCHAR, held_every VARCHAR)
what is the competing entities when the age group is 18 or younger, held every is one year and the sport is table tennis?
SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian"
CREATE TABLE table_name_9 (result VARCHAR, episode VARCHAR, original_artist VARCHAR)
What result did Janis Ian have in the episode of top 3?
SELECT result FROM table_name_39 WHERE episode = "top 8"
CREATE TABLE table_name_39 (result VARCHAR, episode VARCHAR)
What was the result of the singer with the top 8?
SELECT song_choice FROM table_name_72 WHERE episode = "top 8"
CREATE TABLE table_name_72 (song_choice VARCHAR, episode VARCHAR)
What song was chosen for the episode with the top 8?
SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"
CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR)
Which episode had Hoagy carmichael safe with an order of 5?
SELECT order__number FROM table_name_30 WHERE result = "bottom 3" AND original_artist = "bee gees"
CREATE TABLE table_name_30 (order__number VARCHAR, result VARCHAR, original_artist VARCHAR)
In what order were the Bee Gees as the artist when it was a result of bottom 3?
SELECT COUNT(draw) FROM table_name_37 WHERE language = "danish" AND artist = "mathias"
CREATE TABLE table_name_37 (draw VARCHAR, language VARCHAR, artist VARCHAR)
Name the total number of drawn for danish and mathias
SELECT result FROM table_name_63 WHERE artist = "linn nygård"
CREATE TABLE table_name_63 (result VARCHAR, artist VARCHAR)
Name the result for linn nygård
SELECT song FROM table_name_42 WHERE draw < 7 AND artist = "martin & johannes"
CREATE TABLE table_name_42 (song VARCHAR, draw VARCHAR, artist VARCHAR)
Name the song for draw less than 7 and artists of martin & johannes
SELECT np___nnp FROM table_name_73 WHERE acdp = 1 AND others = 1 AND dp___da = 5
CREATE TABLE table_name_73 (np___nnp VARCHAR, dp___da VARCHAR, acdp VARCHAR, others VARCHAR)
Name the NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5
SELECT player FROM table_name_43 WHERE money___$__ < 335
CREATE TABLE table_name_43 (player VARCHAR, money___$__ INTEGER)
Which player won less than $335?
SELECT place FROM table_name_43 WHERE country = "australia"
CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR)
What was the place ranking for the player from Australia?
SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = "ed oliver"
CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)
How much money did the player Ed Oliver win?
SELECT competition FROM table_name_54 WHERE year > 1982 AND opponent = "parramatta eels"
CREATE TABLE table_name_54 (competition VARCHAR, year VARCHAR, opponent VARCHAR)
What competition did Parramatta Eels join after 1982?
SELECT year FROM table_name_34 WHERE competition = "nswrfl" AND score = "8-21"
CREATE TABLE table_name_34 (year VARCHAR, competition VARCHAR, score VARCHAR)
When did nswrfl has a score of 8-21?
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
How many years have less than 28,505 attendance?
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2"
CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR)
What Date is listed for the Region of France and Catalog of 82876-70291-2?
SELECT format FROM table_name_93 WHERE region = "china"
CREATE TABLE table_name_93 (format VARCHAR, region VARCHAR)
Which Format is listed that has a Region of China?
SELECT date FROM table_name_36 WHERE label = "bertelsmann music group" AND region = "europe"
CREATE TABLE table_name_36 (date VARCHAR, label VARCHAR, region VARCHAR)
What's the Date for the Label of Bertelsmann Music group and has a Region of Europe?
SELECT SUM(attendance) FROM table_name_17 WHERE opponent = "royals" AND score = "17 - 6"
CREATE TABLE table_name_17 (attendance INTEGER, opponent VARCHAR, score VARCHAR)
How many people attended the Royals game with a score of 17 - 6?
SELECT score FROM table_name_21 WHERE date = "april 27"
CREATE TABLE table_name_21 (score VARCHAR, date VARCHAR)
What was the result of April 27's game?
SELECT players_per_console FROM table_name_51 WHERE genre = "strategy" AND year = 1992
CREATE TABLE table_name_51 (players_per_console VARCHAR, genre VARCHAR, year VARCHAR)
For the strategy game in 1992, how many players were allowed per console?
SELECT genre FROM table_name_72 WHERE publisher = "atari" AND year = 1991 AND developer = "nufx"
CREATE TABLE table_name_72 (genre VARCHAR, developer VARCHAR, publisher VARCHAR, year VARCHAR)
Which Genre was published by Atari and developed by NuFX in 1991?
SELECT year FROM table_name_88 WHERE developer = "music comp"
CREATE TABLE table_name_88 (year VARCHAR, developer VARCHAR)
Which year was the game developed by Music Comp in?
SELECT record FROM table_name_65 WHERE date = "august 31"
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
Name the record for august 31
SELECT opponent FROM table_name_79 WHERE date = "august 6"
CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR)
Name the opponent for august 6
SELECT opponent FROM table_name_10 WHERE record = "52-58"
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
Name the opponent with record of 52-58
SELECT class FROM table_name_68 WHERE quantity_made = 5
CREATE TABLE table_name_68 (class VARCHAR, quantity_made VARCHAR)
What Class has a Quantity made of 5?
SELECT date_made FROM table_name_5 WHERE quantity_made = 13
CREATE TABLE table_name_5 (date_made VARCHAR, quantity_made VARCHAR)
What is listed as the Date made with a Quantity made of 13?
SELECT year FROM table_name_65 WHERE points = 4
CREATE TABLE table_name_65 (year VARCHAR, points VARCHAR)
What year shows 4 points?
SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND year < 2001
CREATE TABLE table_name_25 (points INTEGER, entrant VARCHAR, year VARCHAR)
What is the most points when the entrant was Jaguar racing earlier than 2001?
SELECT entrant FROM table_name_64 WHERE year = 1999
CREATE TABLE table_name_64 (entrant VARCHAR, year VARCHAR)
What is the entrant in 1999?
SELECT MAX(points) FROM table_name_42 WHERE chassis = "jaguar r3" AND year > 2002
CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, year VARCHAR)
What is the most points when the chassis was Jaguar R3 later than 2002?
SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1
CREATE TABLE table_name_30 (_inches VARCHAR, skin_depth INTEGER, resistivity__10_−6_ohm_inches_ VARCHAR, relative_permeability VARCHAR)
What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1?
SELECT weight FROM table_name_2 WHERE player = "jonathan bender"
CREATE TABLE table_name_2 (weight VARCHAR, player VARCHAR)
How much does Jonathan Bender weigh?
SELECT MAX(weight) FROM table_name_6 WHERE height = "7-0"
CREATE TABLE table_name_6 (weight INTEGER, height VARCHAR)
Of those with a height of 7-0, who weighs the most?
SELECT SUM(weight) FROM table_name_52 WHERE player = "deshawn stevenson"
CREATE TABLE table_name_52 (weight INTEGER, player VARCHAR)
What does DeShawn Stevenson weigh?
SELECT MAX(roll) FROM table_name_96 WHERE gender = "coed" AND authority = "state integrated" AND name = "sacred heart school"
CREATE TABLE table_name_96 (roll INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
Name the highest roll for coed and authority of state integrated with sacred heart school
SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005
CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR)
What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005?
SELECT year FROM table_name_21 WHERE engine_code = "m57d30"
CREATE TABLE table_name_21 (year VARCHAR, engine_code VARCHAR)
From what year is the engine with engine code M57D30?
SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = "m57tud30" AND year > 2002
CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR)
What is the average Redline RPM of engines with engine code M57TUD30, made after 2002?
SELECT result_f_a FROM table_name_43 WHERE opponents = "beijing hyundai"
CREATE TABLE table_name_43 (result_f_a VARCHAR, opponents VARCHAR)
What was the result against Beijing Hyundai?
SELECT h___a FROM table_name_86 WHERE opponents = "kashima antlers"
CREATE TABLE table_name_86 (h___a VARCHAR, opponents VARCHAR)
Was the game with Kashima antlers at home or away?
SELECT date FROM table_name_87 WHERE opponents = "royal antwerp"
CREATE TABLE table_name_87 (date VARCHAR, opponents VARCHAR)
What date was the game against Royal Antwerp?
SELECT record FROM table_name_19 WHERE time = "3:38"
CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR)
What Records Time is 3:38?
SELECT COUNT(2004) FROM table_name_47 WHERE 2005 < 56 AND 2006 = 14
CREATE TABLE table_name_47 (Id VARCHAR)
What Country has a number smaller than 56 in 2005 and of 14 in 2006?
SELECT COUNT(2006) FROM table_name_31 WHERE 2004 < 3 AND 2005 > 1
CREATE TABLE table_name_31 (Id VARCHAR)
What Country has a number smaller than 3 in 2004 and larger than 1 in 2005?
SELECT street_address FROM table_name_2 WHERE floors = 48
CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR)
The building with 48 floors has an address in Las Vegas of what?
SELECT street_address FROM table_name_73 WHERE name = "the palazzo"
CREATE TABLE table_name_73 (street_address VARCHAR, name VARCHAR)
The Palazzo's street address is listed as what?
SELECT song_title FROM table_name_83 WHERE artist = "winger"
CREATE TABLE table_name_83 (song_title VARCHAR, artist VARCHAR)
What's the title of the song by Winger?
SELECT 3 AS rd_place FROM table_name_36 WHERE runner_up = "runner-up"
CREATE TABLE table_name_36 (runner_up VARCHAR)
What shows for 3rd place when Runner-up shows as runner-up?
SELECT year FROM table_name_6 WHERE runner_up = "england (24 pts)"
CREATE TABLE table_name_6 (year VARCHAR, runner_up VARCHAR)
What year shows as Runner-up of england (24 pts)?
SELECT 3 AS rd_place FROM table_name_81 WHERE venue = "pardubice"
CREATE TABLE table_name_81 (venue VARCHAR)
What shows for 3rd place when the venue was Pardubice?
SELECT 3 AS rd_place FROM table_name_60 WHERE year = "1990"
CREATE TABLE table_name_60 (year VARCHAR)
what shows for 3rd place in 1990?
SELECT year FROM table_name_51 WHERE venue = "landshut"
CREATE TABLE table_name_51 (year VARCHAR, venue VARCHAR)
What year was the venue Landshut?
SELECT record FROM table_name_93 WHERE visitor = "tampa bay"
CREATE TABLE table_name_93 (record VARCHAR, visitor VARCHAR)
What is the record when Tampa Bay is the visitor?
SELECT date FROM table_name_40 WHERE decision = "joseph" AND home = "san jose"
CREATE TABLE table_name_40 (date VARCHAR, decision VARCHAR, home VARCHAR)
What is the date when Joseph is the decision and San Jose is the home team?
SELECT date FROM table_name_21 WHERE home = "detroit" AND visitor = "colorado"
CREATE TABLE table_name_21 (date VARCHAR, home VARCHAR, visitor VARCHAR)
What is the date of the match when Detroit is the home team and Colorado is the visiting team?
SELECT COUNT(attendance) FROM table_name_76 WHERE week > 4 AND date = "december 6, 1981"
CREATE TABLE table_name_76 (attendance VARCHAR, week VARCHAR, date VARCHAR)
How many people were in attendance in a week over 4 on December 6, 1981?
SELECT MIN(game) FROM table_name_5 WHERE location = "shibe park" AND date = "october 10"
CREATE TABLE table_name_5 (game INTEGER, location VARCHAR, date VARCHAR)
Name the least game for october 10 at shibe park
SELECT MIN(bronze) FROM table_name_83 WHERE rank = "1" AND total > 34
CREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, total VARCHAR)
What is the lowest bronze total that has a rank of 1 and more than 34 total medals?
SELECT MIN(bronze) FROM table_name_72 WHERE silver = "13"
CREATE TABLE table_name_72 (bronze INTEGER, silver VARCHAR)
What is the lowest bronze total that has a silver total of 13 medals?
SELECT MIN(wins) FROM table_name_45 WHERE team = "reno aces" AND appearances > 1
CREATE TABLE table_name_45 (wins INTEGER, team VARCHAR, appearances VARCHAR)
With Appearances larger than 1, what is the Wins for the Reno Aces Team?
SELECT SUM(losses) FROM table_name_54 WHERE appearances = 1 AND winning_percentage = 1 AND team = "reno aces"
CREATE TABLE table_name_54 (losses INTEGER, team VARCHAR, appearances VARCHAR, winning_percentage VARCHAR)
For the Reno Aces, what are the Losses when they had 1 Appearances and a Winning Percentage of 1?
SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = "2009" AND winning_percentage < 0
CREATE TABLE table_name_30 (appearances INTEGER, season_s_ VARCHAR, winning_percentage VARCHAR)
In 2009, what Appearances had a Winning Percentage of less than 0?
SELECT chassis FROM table_name_85 WHERE year = 1969
CREATE TABLE table_name_85 (chassis VARCHAR, year VARCHAR)
What is the chassis for the year of 1969?
SELECT occupation FROM table_name_71 WHERE rank = "5th" AND gender = "m" AND residence = "orono"
CREATE TABLE table_name_71 (occupation VARCHAR, residence VARCHAR, rank VARCHAR, gender VARCHAR)
Which Occupation has a Rank of 5th, a Gender of M, with a Residence of orono?
SELECT gender FROM table_name_28 WHERE residence = "haliburton"
CREATE TABLE table_name_28 (gender VARCHAR, residence VARCHAR)
Which Gender has a Residence of Haliburton?
SELECT MIN(votes) FROM table_name_97 WHERE rank = "5th" AND occupation = "retired" AND riding = "brant"
CREATE TABLE table_name_97 (votes INTEGER, riding VARCHAR, rank VARCHAR, occupation VARCHAR)
What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?