answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT district FROM table_1342331_5 WHERE incumbent = "William J. Driver"
what's the district with incumbent being william j. driver
CREATE TABLE table_1342331_5 (district VARCHAR, incumbent VARCHAR)
SELECT SUM(fa_cup) FROM table_name_13 WHERE championship < 5 AND league_cup = 0 AND total > 3
How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total?
CREATE TABLE table_name_13 (fa_cup INTEGER, total VARCHAR, championship VARCHAR, league_cup VARCHAR)
SELECT COUNT(win_percentage) FROM table_name_89 WHERE postseason = "did not qualify" AND rank > 8
What number of win% has a postseason of did not qualify and rank larger than 8?
CREATE TABLE table_name_89 (win_percentage VARCHAR, postseason VARCHAR, rank VARCHAR)
SELECT aam_member FROM table_name_21 WHERE aam_accredited = "no" AND state = "california" AND astc_member = "yes" AND city = "sacramento"
What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?
CREATE TABLE table_name_21 (aam_member VARCHAR, city VARCHAR, astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR)
SELECT pos FROM table_name_23 WHERE year < 1973
What was the position of the teams before 1973?
CREATE TABLE table_name_23 (pos VARCHAR, year INTEGER)
SELECT transaction_type, COUNT(*) FROM Financial_transactions GROUP BY transaction_type
Show the transaction type and the number of transactions.
CREATE TABLE Financial_transactions (transaction_type VARCHAR)
SELECT year FROM table_name_25 WHERE type = "grand prix" AND engine = "i8" AND displacement_cc = "1500"
What year was the Grand Prix with an i8 engine and a cc displacement of 1500?
CREATE TABLE table_name_25 (year VARCHAR, displacement_cc VARCHAR, type VARCHAR, engine VARCHAR)
SELECT snatch FROM table_name_92 WHERE total = "409kg"
What was the Snatch weight for the year that had a total of 409kg?
CREATE TABLE table_name_92 (snatch VARCHAR, total VARCHAR)
SELECT MAX(crowd) FROM table_16388506_1 WHERE home_team = "Essendon"
What is the largest crowd when essendon is the home team?
CREATE TABLE table_16388506_1 (crowd INTEGER, home_team VARCHAR)
SELECT sport FROM table_name_3 WHERE founded = 2010
What sport was played by the team founded in 2010?
CREATE TABLE table_name_3 (sport VARCHAR, founded VARCHAR)
SELECT high_assists FROM table_name_92 WHERE game = 3
Who had the highest assists in game 3?
CREATE TABLE table_name_92 (high_assists VARCHAR, game VARCHAR)
SELECT date FROM table_name_39 WHERE attendance = "45,122"
What was the date of the game attended by 45,122?
CREATE TABLE table_name_39 (date VARCHAR, attendance VARCHAR)
SELECT fastest_lap FROM table_name_18 WHERE date = "leeds, alabama" AND circuit = "april 19"
What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?
CREATE TABLE table_name_18 (fastest_lap VARCHAR, date VARCHAR, circuit VARCHAR)
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"
Find all the papers published by the institution "Google".
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
SELECT date FROM table_name_65 WHERE home_team = "geelong"
When did Geelong play as the home team?
CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT class FROM table_name_31 WHERE race_title = "xi coppa acerbo"
What class of car had the XI Coppa Acerbo title?
CREATE TABLE table_name_31 (class VARCHAR, race_title VARCHAR)
SELECT winner FROM table_name_93 WHERE tournament = "london"
Name the winner for london tournament
CREATE TABLE table_name_93 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_82 WHERE date = "september 26-30, 2012"
What is the Winner of the Event on September 26-30, 2012?
CREATE TABLE table_name_82 (winner VARCHAR, date VARCHAR)
SELECT COUNT(height) FROM table_15017024_2 WHERE player_name = "Chad Henne"
How many heights does chad henne have?
CREATE TABLE table_15017024_2 (height VARCHAR, player_name VARCHAR)
SELECT commissioned__decommissioned FROM table_name_62 WHERE home_port = "oakland" AND nvr_page = "aor-1"
Name the commissioned-decommissioned for oakland and NVR page of aor-1
CREATE TABLE table_name_62 (commissioned__decommissioned VARCHAR, home_port VARCHAR, nvr_page VARCHAR)
SELECT birth_state FROM table_name_43 WHERE election_year < 1848
What state was the president who was elected earlier than 1848 born in?
CREATE TABLE table_name_43 (birth_state VARCHAR, election_year INTEGER)
SELECT surpassed_by FROM table_name_57 WHERE year < 1925 AND period = "6 years"
I need the surpassed for years before 1925 and period of 6 years
CREATE TABLE table_name_57 (surpassed_by VARCHAR, year VARCHAR, period VARCHAR)
SELECT mens_doubles FROM table_28138035_6 WHERE year_location = "2006 Guangzhou"
Who won the mens doubles at the 2006 guangzhou event?
CREATE TABLE table_28138035_6 (mens_doubles VARCHAR, year_location VARCHAR)
SELECT founded FROM table_254776_1 WHERE institution = "Dickinson College"
When was Dickinson College founded?
CREATE TABLE table_254776_1 (founded VARCHAR, institution VARCHAR)
SELECT lead FROM table_name_21 WHERE third = "randy ferbey (skip)" AND second = "scott pfeifer" AND season = "2009–10"
Which Lead has a Third of randy ferbey (skip), a Second of scott pfeifer, and a Season of 2009–10?
CREATE TABLE table_name_21 (lead VARCHAR, season VARCHAR, third VARCHAR, second VARCHAR)
SELECT district FROM table_name_57 WHERE name = "wallasey"
what is the district of wallasey
CREATE TABLE table_name_57 (district VARCHAR, name VARCHAR)
SELECT score FROM table_name_95 WHERE place = "t2"
Which Score has a Place of t2?
CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR)
SELECT record FROM table_name_56 WHERE date = "may 17"
What was the team's record on May 17?
CREATE TABLE table_name_56 (record VARCHAR, date VARCHAR)
SELECT MAX(season) FROM table_20026849_1 WHERE contestants = 20
What was the latest season with 20 contestants?
CREATE TABLE table_20026849_1 (season INTEGER, contestants VARCHAR)
SELECT high_points FROM table_17058116_5 WHERE date = "November 2"
Who scored the high points on the date November 2?
CREATE TABLE table_17058116_5 (high_points VARCHAR, date VARCHAR)
SELECT competition FROM table_name_43 WHERE year = 2003
What was the competition in 2003?
CREATE TABLE table_name_43 (competition VARCHAR, year VARCHAR)
SELECT 2011 FROM table_name_93 WHERE 2002 = "—" AND model = "seat marbella"
Name the 2011 which has a 2002 of —, and a Model of seat marbella?
CREATE TABLE table_name_93 (model VARCHAR)
SELECT medal FROM table_name_43 WHERE name = "félix sánchez" AND games = "2012 london"
Which Medal had a Name of félix sánchez, and a Games of 2012 london?
CREATE TABLE table_name_43 (medal VARCHAR, name VARCHAR, games VARCHAR)
SELECT winning_driver FROM table_1137702_3 WHERE pole_position = "Ayrton Senna" AND fastest_lap = "Michael Schumacher"
Who was the winning driver when the pole position was held by Ayrton Senna and the Fastest lap was Michael Schumacher?
CREATE TABLE table_1137702_3 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT cover_model FROM table_name_8 WHERE date = "8-03"
Which Cover Model was featured on 8-03?
CREATE TABLE table_name_8 (cover_model VARCHAR, date VARCHAR)
SELECT MIN(round) FROM table_name_43 WHERE player = "dave yovanovits"
Which round was Dave Yovanovits picked?
CREATE TABLE table_name_43 (round INTEGER, player VARCHAR)
SELECT cargo__tonnes_ FROM table_name_90 WHERE international__non_cis_ = "297 421"
What are the cargo tonnes when the international (non-CIS) is 297 421?
CREATE TABLE table_name_90 (cargo__tonnes_ VARCHAR, international__non_cis_ VARCHAR)
SELECT website FROM table_name_25 WHERE last_release = "2009-08-09, 1.2.9"
What is Website, when Last Release is 2009-08-09, 1.2.9?
CREATE TABLE table_name_25 (website VARCHAR, last_release VARCHAR)
SELECT location FROM table_19210115_1 WHERE nickname = "Hawks"
Where is the University that is also called Hawks?
CREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)
SELECT nhl_team FROM table_name_57 WHERE player = "roman vopat"
On what NHL team does Roman Vopat play for?
CREATE TABLE table_name_57 (nhl_team VARCHAR, player VARCHAR)
SELECT hmos FROM table_name_96 WHERE conventional_plans = "3%" AND year = 2005
Which HMO has a conventional plan of 3% in 2005?
CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR)
SELECT MIN(wins) FROM table_name_62 WHERE events = 8 AND player = "billy casper" AND earnings___$__ < 71 OFFSET 979
How many wins for billy casper over 8 events and uner $71,979 in earnings?
CREATE TABLE table_name_62 (wins INTEGER, earnings___$__ VARCHAR, events VARCHAR, player VARCHAR)
SELECT AVG(b__max_) FROM table_name_22 WHERE c__max_ > 156 AND taper = "1:19.231" AND d__max_ < 34.9
What is the B (max) average when the C (max) is greater than 156, the taper is 1:19.231, and the D (max) is less than 34.9?
CREATE TABLE table_name_22 (b__max_ INTEGER, d__max_ VARCHAR, c__max_ VARCHAR, taper VARCHAR)
SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%"
What is the Rich Savage percentage in the poll with Jody Wagner at 30%?
CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR)
SELECT season_result FROM table_1139835_3 WHERE margin = 51
who is the season result where margin is 51
CREATE TABLE table_1139835_3 (season_result VARCHAR, margin VARCHAR)
SELECT winners_share___$__ FROM table_1940012_2 WHERE margin_of_victory = "2 strokes"
What was the amount of winners share (in $) in the game with a margin victory of 2 strokes?
CREATE TABLE table_1940012_2 (winners_share___$__ VARCHAR, margin_of_victory VARCHAR)
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon"
Find all the papers published by "Aaron Turon".
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
SELECT name FROM club ORDER BY Start_year
List all club names in ascending order of start year.
CREATE TABLE club (name VARCHAR, Start_year VARCHAR)
SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = "fu-ching"
Which Name (pinyin) is named fu-ching?
CREATE TABLE table_name_64 (name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR)
SELECT date FROM table_name_35 WHERE week = 17
What is the date of week 17?
CREATE TABLE table_name_35 (date VARCHAR, week VARCHAR)
SELECT COUNT(pumpers) FROM table_name_32 WHERE cars = "1" AND staffing = "volunteer" AND brigade = "grovedale" AND tankers < 1
How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?
CREATE TABLE table_name_32 (pumpers VARCHAR, tankers VARCHAR, brigade VARCHAR, cars VARCHAR, staffing VARCHAR)
SELECT serial_no FROM table_name_71 WHERE colour = "black" AND pilot_car_no > 2 AND engine_no = 1008
What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?
CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR)
SELECT country FROM table_name_38 WHERE time = "6:49.28"
What country has a time of 6:49.28?
CREATE TABLE table_name_38 (country VARCHAR, time VARCHAR)
SELECT result FROM table_1341472_34 WHERE district = "New York 11"
Name the result for New York 11
CREATE TABLE table_1341472_34 (result VARCHAR, district VARCHAR)
SELECT team FROM table_name_40 WHERE qual_2 = "1:01.936"
Which team has a second qualification time of 1:01.936?
CREATE TABLE table_name_40 (team VARCHAR, qual_2 VARCHAR)
SELECT high_points FROM table_13480122_5 WHERE score = "W 117–93"
who is the the high points with score being w 117–93
CREATE TABLE table_13480122_5 (high_points VARCHAR, score VARCHAR)
SELECT vos__ * _ FROM table_1977630_2 WHERE él___ella___usted = "muela"
What are the forms of the conjucated vos(*) where él / ella / usted is muela
CREATE TABLE table_1977630_2 (vos__ VARCHAR, _ VARCHAR, él___ella___usted VARCHAR)
SELECT year FROM table_name_41 WHERE nominee = "patricia mcgourty" AND award = "tony award"
What year was Patricia Mcgourty nominated for a Tony award?
CREATE TABLE table_name_41 (year VARCHAR, nominee VARCHAR, award VARCHAR)
SELECT sign_in_bicker FROM table_name_56 WHERE location = "wash50 on washington rd"
Which Sign-in/Bicker is at of wash50 on washington rd?
CREATE TABLE table_name_56 (sign_in_bicker VARCHAR, location VARCHAR)
SELECT year_s__won FROM table_name_53 WHERE finish = "t60" AND player = "steve jones"
What year did player steve jones, who had a t60 finish, win?
CREATE TABLE table_name_53 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)
SELECT winning_score FROM table_name_93 WHERE date = "oct 22, 2000"
What is the Winning score on oct 22, 2000?
CREATE TABLE table_name_93 (winning_score VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things
How many different status codes of things are there?
CREATE TABLE Timed_Status_of_Things (Status_of_Thing_Code VARCHAR)
SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground"
What is the final score at Melbourne Cricket Ground?
CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR)
SELECT quantity_made FROM table_name_31 WHERE wheel_arrangement = "2-6-0" AND class = "d-3"
What is Quantity made, when Wheel Arrangement is "2-6-0", and when Class is "D-3"?
CREATE TABLE table_name_31 (quantity_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)
SELECT original_air_date FROM table_15185133_1 WHERE production_code = 318
What is the original air date for the episode with a production code of 318?
CREATE TABLE table_15185133_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT location FROM table_name_68 WHERE tournament = "sea pines heritage classic"
What is the location of the Sea Pines Heritage Classic tournament?
CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR)
SELECT original_air_date FROM table_18427769_1 WHERE directed_by = "Di Drew"
If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?
CREATE TABLE table_18427769_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT MIN(total) FROM table_name_46 WHERE bronze = 1 AND nation = "czech republic (cze)"
What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation?
CREATE TABLE table_name_46 (total INTEGER, bronze VARCHAR, nation VARCHAR)
SELECT directed_by FROM table_name_1 WHERE production_code = "k2708"
Who directed the show with the production code k2708?
CREATE TABLE table_name_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT first_elected FROM table_1341453_40 WHERE incumbent = "Bud Shuster"
When was incumbent Bud Shuster first elected?
CREATE TABLE table_1341453_40 (first_elected VARCHAR, incumbent VARCHAR)
SELECT opponent FROM table_21256068_3 WHERE venue = "Halliwell Jones Stadium" AND competition = "Super League XIV"
state the opponent on halliwell jones stadium in super league xiv
CREATE TABLE table_21256068_3 (opponent VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT finalists FROM table_name_22 WHERE club = "győri"
Who Finalists has a Club of győri?
CREATE TABLE table_name_22 (finalists VARCHAR, club VARCHAR)
SELECT MIN(wins) FROM table_name_67 WHERE position = 4 AND loses < 4
What is the lowest wins the club with a position of 4 and less than 4 losses has?
CREATE TABLE table_name_67 (wins INTEGER, position VARCHAR, loses VARCHAR)
SELECT province FROM table_2251578_4 WHERE district = "Condoroma"
What province is in the district of Condoroma?
CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR)
SELECT 2 AS nd_leg FROM table_name_4 WHERE team_2 = "budoni (sardinia)"
What was the 2nd leg where the team 2 was budoni (sardinia)?
CREATE TABLE table_name_4 (team_2 VARCHAR)
SELECT date FROM table_name_66 WHERE tournament = "general foods pga seniors' championship"
When was the general foods pga seniors' championship tournament?
CREATE TABLE table_name_66 (date VARCHAR, tournament VARCHAR)
SELECT record FROM table_name_21 WHERE visitor = "pittsburgh" AND points < 27 AND home = "boston"
Can you tell me the Record that has the Visitor of pittsburgh, and the Points smaller than 27, and the Home of boston?
CREATE TABLE table_name_21 (record VARCHAR, home VARCHAR, visitor VARCHAR, points VARCHAR)
SELECT MAX(events) FROM table_name_39 WHERE top_10 > 7 AND wins < 2
Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?
CREATE TABLE table_name_39 (events INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "april 8, 2007"
How many people were in attendance on the game on April 8, 2007?
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR)
SELECT district FROM table_1342379_23 WHERE candidates = "John E. Rankin (D) Unopposed"
what's the district with candidates being john e. rankin (d) unopposed
CREATE TABLE table_1342379_23 (district VARCHAR, candidates VARCHAR)
SELECT MAX(water__sqmi_) FROM table_name_91 WHERE land___sqmi__ > 33.576 AND township = "glenila" AND latitude > 48.832189
What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189?
CREATE TABLE table_name_91 (water__sqmi_ INTEGER, latitude VARCHAR, land___sqmi__ VARCHAR, township VARCHAR)
SELECT SUM(year) FROM table_name_5 WHERE title = "floetic"
WHAT IS THE YEAR OF FLOETIC?
CREATE TABLE table_name_5 (year INTEGER, title VARCHAR)
SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = "1962" AND country_of_origin = "Denmark"
If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?
CREATE TABLE table_26389588_1 (primary_cartridge VARCHAR, year_of_introduction VARCHAR, country_of_origin VARCHAR)
SELECT name FROM table_name_11 WHERE avg_g = 195.8
Which quarterback had an Avg/G of 195.8?
CREATE TABLE table_name_11 (name VARCHAR, avg_g VARCHAR)
SELECT internet_explorer FROM table_name_53 WHERE firefox = "20.01%"
What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox?
CREATE TABLE table_name_53 (internet_explorer VARCHAR, firefox VARCHAR)
SELECT district FROM table_1341663_33 WHERE incumbent = "S. William Green"
What district did S. William Green belong to?
CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR)
SELECT record FROM table_name_42 WHERE date = "december 15"
Can you tell me the Record that has the Date of december 15?
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR)
SELECT 1991 FROM table_name_77 WHERE 1993 = "a"
Which 1991 has an A 1993 ?
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT MIN(population_at_2010_census) FROM table_1104312_5 WHERE english_name = "West Bogor"
What is the listed population from the 2010 census of West Bogor?
CREATE TABLE table_1104312_5 (population_at_2010_census INTEGER, english_name VARCHAR)
SELECT team FROM table_name_41 WHERE kit_manufacturer = "umbro" AND captain = "eric cantona"
What team has a kit manufacturer of Umbro and Eric Cantona as captain?
CREATE TABLE table_name_41 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT AVG(attendance) FROM table_name_40 WHERE home = "blues"
What is the average attendance of the game where the home team was the Blues?
CREATE TABLE table_name_40 (attendance INTEGER, home VARCHAR)
SELECT home_captain FROM table_name_14 WHERE venue = "adelaide oval"
Who is the home captain at the Adelaide Oval?
CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR)
SELECT date FROM table_14520977_1 WHERE result = "L 13–10 OT"
Name the date when result is l 13–10 ot
CREATE TABLE table_14520977_1 (date VARCHAR, result VARCHAR)
SELECT home FROM table_name_3 WHERE date = "january 7"
Which home game has a date of January 7?
CREATE TABLE table_name_3 (home VARCHAR, date VARCHAR)
SELECT collaboration FROM table_name_63 WHERE indication = "non-hodgkin lymphoma"
What company collaborated in non-hodgkin lymphoma?
CREATE TABLE table_name_63 (collaboration VARCHAR, indication VARCHAR)
SELECT tie_no FROM table_name_52 WHERE home_team = "scunthorpe united"
Scunthorpe United as the home team has what tie number?
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)
SELECT series FROM table_name_1 WHERE game = 1
What was the standing in the series after game 1?
CREATE TABLE table_name_1 (series VARCHAR, game VARCHAR)
SELECT archive FROM table_2102714_1 WHERE run_time = "24:05"
What is he archive for the episode with a run time of 24:05?
CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)
SELECT _percentage_of_votes FROM table_206359_1 WHERE _percentage_of_capital = "78.19"
What percentage of votes does the shareholder with 78.19% of capital have?
CREATE TABLE table_206359_1 (_percentage_of_votes VARCHAR, _percentage_of_capital VARCHAR)
SELECT station_type FROM table_12547903_2 WHERE location__transmitter_site_ = "Calbayog"
What is the station type of calbayog
CREATE TABLE table_12547903_2 (station_type VARCHAR, location__transmitter_site_ VARCHAR)