answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(candidates) FROM table_1342256_38 WHERE incumbent = "Leon Sacks"
what was the number of candidates when Leon Sacks was incumbent?
CREATE TABLE table_1342256_38 (candidates VARCHAR, incumbent VARCHAR)
SELECT week FROM table_24814477_2 WHERE opponent = "Amsterdam Admirals"
What week did the Galaxy play the Amsterdam Admirals?
CREATE TABLE table_24814477_2 (week VARCHAR, opponent VARCHAR)
SELECT AVG(elected) FROM table_name_19 WHERE incumbent = "ed towns" AND district < 10
What year was Incumbent Ed Towns elected with a district smaller than 10?
CREATE TABLE table_name_19 (elected INTEGER, incumbent VARCHAR, district VARCHAR)
SELECT MAX(lost) FROM table_name_95 WHERE percentage = "50.00%" AND played < 2
what is the most lost games when the percentage is 50.00% and games played is less than 2?
CREATE TABLE table_name_95 (lost INTEGER, percentage VARCHAR, played VARCHAR)
SELECT date FROM table_name_68 WHERE score = "115-93"
what is the date when the score is 115-93?
CREATE TABLE table_name_68 (date VARCHAR, score VARCHAR)
SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley"
Which state was first elected in 1914, and a Member of edward jolley?
CREATE TABLE table_name_97 (state VARCHAR, first_elected VARCHAR, member VARCHAR)
SELECT event FROM table_17417383_6 WHERE athlete = "Redouane Bouchtouk"
Name the event for redouane bouchtouk
CREATE TABLE table_17417383_6 (event VARCHAR, athlete VARCHAR)
SELECT away_team AS score FROM table_name_45 WHERE away_team = "footscray"
What was Footscray's score as an away team?
CREATE TABLE table_name_45 (away_team VARCHAR)
SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'
How many paragraphs for the document with name 'Summer Show'?
CREATE TABLE Documents (document_ID VARCHAR, document_name VARCHAR); CREATE TABLE Paragraphs (document_ID VARCHAR)
SELECT team FROM table_name_26 WHERE lost > 2 AND position < 7 AND drawn < 2 AND points = 22
Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?
CREATE TABLE table_name_26 (team VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR, position VARCHAR)
SELECT 2011 FROM table_name_59 WHERE 2010 = "2r"
Name the 2011 with 2010 of 2r
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Aruba"
How tall is the contestant from Aruba?
CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR)
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR)
SELECT name FROM table_name_65 WHERE year_completion_expected > 2016
What are the names for projects that will be completed after 2016?
CREATE TABLE table_name_65 (name VARCHAR, year_completion_expected INTEGER)
SELECT MIN(total) FROM table_name_4 WHERE rider = "christina liebherr"
What was the total for christina liebherr?
CREATE TABLE table_name_4 (total INTEGER, rider VARCHAR)
SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = "8-10-7"
Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7?
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR, game VARCHAR, december VARCHAR)
SELECT event FROM table_name_34 WHERE games = "2008 beijing" AND medal = "bronze"
Which event in the 2008 Beijing Games had a bronze medal?
CREATE TABLE table_name_34 (event VARCHAR, games VARCHAR, medal VARCHAR)
SELECT date FROM table_name_29 WHERE republican = "mike huckabee" AND sample_size = 496
What was the date of the poll with a sample size of 496 where Republican Mike Huckabee was chosen?
CREATE TABLE table_name_29 (date VARCHAR, republican VARCHAR, sample_size VARCHAR)
SELECT MAX(pick) FROM table_name_46 WHERE round > 6 AND overall > 216
What is the highest Pick that has a round greater than 6 and an overall greater than 216?
CREATE TABLE table_name_46 (pick INTEGER, round VARCHAR, overall VARCHAR)
SELECT tie_no FROM table_name_34 WHERE home_team = "wealdstone"
What was the Tie no when the Home team was wealdstone?
CREATE TABLE table_name_34 (tie_no VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_51 WHERE red_list < 7
What is the name with a red lest less than 7?
CREATE TABLE table_name_51 (name VARCHAR, red_list INTEGER)
SELECT year FROM table_name_90 WHERE nominee = "stephen sondheim" AND category = "best original score"
Which Year has a Nominee of stephen sondheim, and a Category of the best original score?
CREATE TABLE table_name_90 (year VARCHAR, nominee VARCHAR, category VARCHAR)
SELECT years_for_jazz FROM table_name_38 WHERE player = "andre owens"
Which player is Andre Owens in Year for Jazz?
CREATE TABLE table_name_38 (years_for_jazz VARCHAR, player VARCHAR)
SELECT power FROM table_250230_2 WHERE model = "Type R"
What is the power of the Type R?
CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR)
SELECT MAX(november) FROM table_name_31 WHERE game = 15
What is the latest day in November with a game 15?
CREATE TABLE table_name_31 (november INTEGER, game VARCHAR)
SELECT indianapolis_concerts FROM table_17085724_1 WHERE sarasota = "Les Minski"
Name the indianapolis concerts for les minski
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, sarasota VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = "monsieur hawarden"
What is the nomination title used for the original film, Monsieur Hawarden?
CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT MIN(gold) FROM table_name_11 WHERE nation = "west germany" AND total > 8
How many golds for west germany with over 8 total?
CREATE TABLE table_name_11 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT replaced_by FROM table_name_58 WHERE position_in_table = "5th"
Who replaced when the position in table is 5th?
CREATE TABLE table_name_58 (replaced_by VARCHAR, position_in_table VARCHAR)
SELECT record FROM table_name_51 WHERE location_attendance = "ford center" AND game > 30 AND score = "87–79"
Which Record has a Location/Attendance of ford center, a Game larger than 30, and a Score of 87–79?
CREATE TABLE table_name_51 (record VARCHAR, score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT date FROM table_name_92 WHERE tie_no = "4"
What date has a Tie Number of 4?
CREATE TABLE table_name_92 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_91 WHERE event = "1500m freestyle"
What is the date of the 1500m freestyle event?
CREATE TABLE table_name_91 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_50 WHERE away_team = "richmond"
On what date was Richmond hosted as the away team?
CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_86 WHERE opponent = "clemson"
What is the result against Clemson?
CREATE TABLE table_name_86 (result VARCHAR, opponent VARCHAR)
SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = "Jordan Dunne"
How many original Australian performers are there when the Original West End Performer is Jordan Dunne?
CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR, original_west_end_performer VARCHAR)
SELECT record FROM table_11964154_9 WHERE location_attendance = "KeyArena 13,627"
what's the record where location attendance is keyarena 13,627
CREATE TABLE table_11964154_9 (record VARCHAR, location_attendance VARCHAR)
SELECT seating FROM table_name_6 WHERE notes = "in service" AND introduced = 2008
How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?
CREATE TABLE table_name_6 (seating VARCHAR, notes VARCHAR, introduced VARCHAR)
SELECT date FROM table_name_28 WHERE game_site = "fenway park"
What was the date of the game played at Fenway Park?
CREATE TABLE table_name_28 (date VARCHAR, game_site VARCHAR)
SELECT years FROM table_name_97 WHERE name = "ladbrooks school"
Which years have a Name of ladbrooks school?
CREATE TABLE table_name_97 (years VARCHAR, name VARCHAR)
SELECT punjabi__pakistan_ FROM table_name_58 WHERE kurdish = "یـــەک شـەمـمـە yak sham"
What is the Punjabi (Pakistan) word for the Kurdish word یـــەک شـەمـمـە yak sham?
CREATE TABLE table_name_58 (punjabi__pakistan_ VARCHAR, kurdish VARCHAR)
SELECT date FROM table_name_94 WHERE surface = "clay"
On which date did the tournament final with the clay surface take place?
CREATE TABLE table_name_94 (date VARCHAR, surface VARCHAR)
SELECT MIN(episode) FROM table_15187735_4 WHERE netflix = "S02E20"
What is the first episode with a netflix episode code of s02e20?
CREATE TABLE table_15187735_4 (episode INTEGER, netflix VARCHAR)
SELECT video FROM table_name_97 WHERE aspect = "4:3" AND channel = 31.2
Which video is on channel 31.2 with a 4:3 aspect?
CREATE TABLE table_name_97 (video VARCHAR, aspect VARCHAR, channel VARCHAR)
SELECT featuring FROM table_name_18 WHERE title = "energy of the daleks"
who is featuring when the title is energy of the daleks?
CREATE TABLE table_name_18 (featuring VARCHAR, title VARCHAR)
SELECT date FROM table_name_99 WHERE points < 35 AND home = "chicago"
What is the date of the game with less than 35 points and chicago as the home team?
CREATE TABLE table_name_99 (date VARCHAR, points VARCHAR, home VARCHAR)
SELECT district FROM table_2668374_13 WHERE incumbent = "John Smilie"
What district had an election with incumbent john smilie?
CREATE TABLE table_2668374_13 (district VARCHAR, incumbent VARCHAR)
SELECT player FROM table_11677691_3 WHERE hometown = "Roebuck, South Carolina"
What player's hometown is Roebuck, South Carolina?
CREATE TABLE table_11677691_3 (player VARCHAR, hometown VARCHAR)
SELECT opponent FROM table_name_88 WHERE date = "november 20, 1966"
Who is the opponent on November 20, 1966?
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR)
SELECT part_3 FROM table_1745843_6 WHERE class = "5"
What's the part 3 of the verb in class 5?
CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR)
SELECT death_date FROM table_name_65 WHERE rank < 49 AND age__as_of_1_february_2014_ = "112 years, 172 days"
Which Death date has a Rank smaller than 49, and an Age (as of 1 February 2014) of 112 years, 172 days?
CREATE TABLE table_name_65 (death_date VARCHAR, rank VARCHAR, age__as_of_1_february_2014_ VARCHAR)
SELECT seasons FROM table_name_24 WHERE driver = "fernando alonso"
Which seasons have fernando alonso as the driver?
CREATE TABLE table_name_24 (seasons VARCHAR, driver VARCHAR)
SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = "Resigned November 26, 1798" AND vacator = "John Hunter ( DR )"
What are all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )?
CREATE TABLE table_224839_3 (state__class_ VARCHAR, reason_for_change VARCHAR, vacator VARCHAR)
SELECT games FROM table_name_91 WHERE drawn < 1 AND lost < 1
Which Games have a Drawn smaller than 1, and a Lost smaller than 1?
CREATE TABLE table_name_91 (games VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = "jud larson"
Jud Larson who which race after 1956?
CREATE TABLE table_name_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR)
SELECT presenter FROM table_name_45 WHERE uk_broadcast_date = "1996-09-25"
Who is the presenter of the episode broadcast in the UK on 1996-09-25?
CREATE TABLE table_name_45 (presenter VARCHAR, uk_broadcast_date VARCHAR)
SELECT original_air_date FROM table_21781578_2 WHERE season_no = 2
What was the original air date for season number 2?
CREATE TABLE table_21781578_2 (original_air_date VARCHAR, season_no VARCHAR)
SELECT COUNT(track) FROM table_name_25 WHERE translation = "brussels"
What is the total track that is translated in brussels?
CREATE TABLE table_name_25 (track VARCHAR, translation VARCHAR)
SELECT team FROM table_29261823_10 WHERE opponent = "Elfsborg"
what was the name of the team opponent to elfsborg
CREATE TABLE table_29261823_10 (team VARCHAR, opponent VARCHAR)
SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti"
List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR)
SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"
How many pageants were margaret ann awitan bayot the delegate of?
CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)
SELECT COUNT(pick__number) FROM table_name_66 WHERE position = "guard" AND round < 6
What are the total number of picks for a guard with fewer than 6 rounds?
CREATE TABLE table_name_66 (pick__number VARCHAR, position VARCHAR, round VARCHAR)
SELECT Name FROM team WHERE NOT Team_id IN (SELECT Team FROM match_season)
What are the names of teams that do no have match season record?
CREATE TABLE match_season (Name VARCHAR, Team_id VARCHAR, Team VARCHAR); CREATE TABLE team (Name VARCHAR, Team_id VARCHAR, Team VARCHAR)
SELECT COUNT(laps) FROM table_name_29 WHERE qual = "128.260"
What is the total number of laps with a 128.260 qual?
CREATE TABLE table_name_29 (laps VARCHAR, qual VARCHAR)
SELECT MIN(avg_g) FROM table_name_52 WHERE long > 8 AND loss < 34 AND gain > 16 AND name = "bullock, chris"
Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larger than 16, and a Name of bullock, chris?
CREATE TABLE table_name_52 (avg_g INTEGER, name VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR)
SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)
Who has friends that are older than the average age? Print their friends and their ages as well
CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
SELECT tournament FROM table_name_11 WHERE opponent = "lesley joseph"
What tournament is lesley joseph the opponent?
CREATE TABLE table_name_11 (tournament VARCHAR, opponent VARCHAR)
SELECT 2009 FROM table_name_40 WHERE 1999 = "3r" AND 2002 = "w"
What 2009 has 3r as the 1999, and w as 2002?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE venue = "western oval"
What did the home team score at Western Oval?
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993–94" AND tropical_cyclones < 11
What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones
CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)
SELECT single___pack_name FROM table_name_30 WHERE genre = "rock" AND artist = "reo speedwagon"
What is the name of the available rock single/pack by REO Speedwagon?
CREATE TABLE table_name_30 (single___pack_name VARCHAR, genre VARCHAR, artist VARCHAR)
SELECT bats FROM table_name_23 WHERE first = "mitchell"
Which bats did mitchell play first?
CREATE TABLE table_name_23 (bats VARCHAR, first VARCHAR)
SELECT MAX(pick__number) FROM table_name_25 WHERE overall = 184 AND round > 6
Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?
CREATE TABLE table_name_25 (pick__number INTEGER, overall VARCHAR, round VARCHAR)
SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WHERE city = "serravalle scrivia"
What is the lowest density of serravalle scrivia?
CREATE TABLE table_name_87 (density__inhabitants_km_2__ INTEGER, city VARCHAR)
SELECT AVG(grid) FROM table_name_79 WHERE driver = "christian vietoris" AND laps < 12
What is the average grid of driver Christian Vietoris who has less than 12 laps?
CREATE TABLE table_name_79 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT notes FROM table_name_94 WHERE position = "12th"
What are the notes of events that finished in 12th position?
CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR)
SELECT nhl_team FROM table_2781227_7 WHERE player = "Ryan Meade"
What NHL team picked Ryan Meade for the draft?
CREATE TABLE table_2781227_7 (nhl_team VARCHAR, player VARCHAR)
SELECT democratic_ticket FROM table_name_68 WHERE liberal_ticket = "edward r. dudley"
Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?
CREATE TABLE table_name_68 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT home_team FROM table_name_62 WHERE date = "20 april 1957" AND venue = "victoria park"
Who is the home team at Victoria Park on 20 April 1957?
CREATE TABLE table_name_62 (home_team VARCHAR, date VARCHAR, venue VARCHAR)
SELECT name FROM table_name_91 WHERE year = "1988"
Which event happened in 1988?
CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR)
SELECT 2004 FROM table_name_13 WHERE ship_size = "ship size"
What was the cargo value in 2004 for ship size?
CREATE TABLE table_name_13 (ship_size VARCHAR)
SELECT directed_by FROM table_25679312_2 WHERE prod_code = 10
Who directed the episode with the production code 10?
CREATE TABLE table_25679312_2 (directed_by VARCHAR, prod_code VARCHAR)
SELECT AVG(round) FROM table_name_59 WHERE player = "stan adams"
What round of the draft was Stan Adams selected?
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR)
SELECT SUM(points) FROM table_name_82 WHERE game < 14
How many points was before game 14?
CREATE TABLE table_name_82 (points INTEGER, game INTEGER)
SELECT COUNT(rank) FROM table_name_4 WHERE notes = "r" AND country = "brazil"
What's Brazil's rank when it has notes of R?
CREATE TABLE table_name_4 (rank VARCHAR, notes VARCHAR, country VARCHAR)
SELECT height FROM table_name_80 WHERE number = 52
What is the height of number 52?
CREATE TABLE table_name_80 (height VARCHAR, number VARCHAR)
SELECT total FROM table_name_12 WHERE set_1 = "25–22"
Which Total has a Set 1 of 25–22?
CREATE TABLE table_name_12 (total VARCHAR, set_1 VARCHAR)
SELECT points FROM table_name_32 WHERE goals = "79" AND games = "38"
How many points were scored by the player with 79 goals and who played 38 games?
CREATE TABLE table_name_32 (points VARCHAR, goals VARCHAR, games VARCHAR)
SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks"
Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".
CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR)
SELECT champions FROM table_13416000_3 WHERE first_driver_s_ = "Hiroki Yoshimoto ( 2005 )"
How many champions were there when the first driver was hiroki yoshimoto ( 2005 )?
CREATE TABLE table_13416000_3 (champions VARCHAR, first_driver_s_ VARCHAR)
SELECT 2000 FROM table_name_67 WHERE tournament = "canada masters"
What is 2000, when Tournament is "Canada Masters"?
CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT surface FROM table_name_14 WHERE partner = "natalia gussoni"
What surface has natalia gussoni as the partner?
CREATE TABLE table_name_14 (surface VARCHAR, partner VARCHAR)
SELECT COUNT(round) FROM table_name_17 WHERE fastest_lap = "damon hill" AND pole_position = "michael schumacher" AND grand_prix = "hungarian grand prix"
During the hungarian grand prix where the pole position was michael schumacher and the fastest lap was driven by damon hill, what's the total number of rounds of races matching these standards?
CREATE TABLE table_name_17 (round VARCHAR, grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion"
What is the IHSAA class when the county was 83 vermillion?
CREATE TABLE table_name_40 (ihsaa_class VARCHAR, county VARCHAR)
SELECT away_team FROM table_name_66 WHERE tie_no = "5"
What is the away team with a 5 tie no?
CREATE TABLE table_name_66 (away_team VARCHAR, tie_no VARCHAR)
SELECT psd___pc FROM table_name_65 WHERE date = "18-22/04/2009"
What is the psd-pc for 18-22/04/2009?
CREATE TABLE table_name_65 (psd___pc VARCHAR, date VARCHAR)
SELECT SUM(grid) FROM table_name_75 WHERE driver = "joão urbano"
What is the grid of driver joão urbano?
CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR)
SELECT title FROM table_25996938_1 WHERE us_viewers__million_ = "18.74"
Which episode did 18.74 million people tune in?
CREATE TABLE table_25996938_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT notes FROM table_name_74 WHERE competition = "world championships" AND position = "2nd"
Which Notes have a Competition of world championships, and a Position of 2nd?
CREATE TABLE table_name_74 (notes VARCHAR, competition VARCHAR, position VARCHAR)
SELECT location FROM table_name_41 WHERE opponent = "vs. ole miss" AND loss = "mckean (4-1)"
What is the Location when the opponent shows vs. ole miss, and a Loss of mckean (4-1)?
CREATE TABLE table_name_41 (location VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT SUM(rank) FROM table_name_6 WHERE wins = 17
Tell me the sum of rank with wins of 17
CREATE TABLE table_name_6 (rank INTEGER, wins VARCHAR)