answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT polling_firm FROM table_name_89 WHERE green < 13 AND date_of_polling = "june 21–22, 2011"
What june 21–22, 2011 polling has green smaller than 13?
CREATE TABLE table_name_89 (polling_firm VARCHAR, green VARCHAR, date_of_polling VARCHAR)
SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1
How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?
CREATE TABLE table_name_46 (puchat_ligi INTEGER, total VARCHAR, ekstraklasa VARCHAR)
SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = "Mitch Evans"
How many race 3 winners were there when Mitch Evans won race 2?
CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR)
SELECT opponent FROM table_name_99 WHERE date = "august 26"
Name the opponent for august 26
CREATE TABLE table_name_99 (opponent VARCHAR, date VARCHAR)
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1
Find the last name of the latest contact individual of the organization "Labour Party".
CREATE TABLE organizations (organization_id VARCHAR, organization_name VARCHAR); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE game_site = "oakland-alameda county coliseum" AND attendance > 52 OFFSET 169
Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169?
CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, attendance VARCHAR)
SELECT COUNT(overall) FROM table_name_6 WHERE college = "wyoming"
What is the overall number for the College of Wyoming?
CREATE TABLE table_name_6 (overall VARCHAR, college VARCHAR)
SELECT player FROM table_11677691_7 WHERE school = "Joliet Catholic High school"
Which player is from Joliet Catholic HIgh School?
CREATE TABLE table_11677691_7 (player VARCHAR, school VARCHAR)
SELECT opponent FROM table_name_38 WHERE round = "3" AND time = "n/a" AND rules = "n/a"
Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?
CREATE TABLE table_name_38 (opponent VARCHAR, rules VARCHAR, round VARCHAR, time VARCHAR)
SELECT boarding_day FROM table_name_36 WHERE type = "old" AND house = "saunderites"
What is the Boarding/Day value for a type of old and house of Saunderites?
CREATE TABLE table_name_36 (boarding_day VARCHAR, type VARCHAR, house VARCHAR)
SELECT MIN(round) FROM table_name_95 WHERE record = "4-0"
What is the smallest round to have a record of 4-0?
CREATE TABLE table_name_95 (round INTEGER, record VARCHAR)
SELECT opponent FROM table_name_83 WHERE date = "16 february 2003"
Which opponent has a Date of 16 february 2003?
CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "collingwood"
How many people were in the crowd with the away team being collingwood?
CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR)
SELECT date FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (14)"
On what day did Dirk Nowitzki (14) have a high rebound?
CREATE TABLE table_17288869_7 (date VARCHAR, high_rebounds VARCHAR)
SELECT T2.Name, T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID
Show the names of roller coasters and names of country they are in.
CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Name VARCHAR, Country_ID VARCHAR)
SELECT party FROM table_26129220_2 WHERE residence = "Canton"
How many party classifications are there for the senator from Canton?
CREATE TABLE table_26129220_2 (party VARCHAR, residence VARCHAR)
SELECT player FROM table_name_67 WHERE place = "t8" AND score = 68 - 74 = 142
What is the T8 Place Player with a Score of 68-74=142?
CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT MIN(gold) FROM table_name_24 WHERE silver = 7 AND bronze < 7
Which Gold has a Silver of 7, and a Bronze smaller than 7?
CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT cfl_team FROM table_25085059_1 WHERE position = "OL" AND college = "North Dakota"
What CFL team obtained a draft pick from North Dakota who plays OL position?
CREATE TABLE table_25085059_1 (cfl_team VARCHAR, position VARCHAR, college VARCHAR)
SELECT SUM(route) FROM table_name_33 WHERE rank > 63 AND mountain_pass = "separation summit"
What is the route that has a rank higher than 63, and Separation Summit as its mountain pass?
CREATE TABLE table_name_33 (route INTEGER, rank VARCHAR, mountain_pass VARCHAR)
SELECT COUNT(sort_restore) FROM table_name_27 WHERE births = "389"
What is the number of sort values associated with 389 births?
CREATE TABLE table_name_27 (sort_restore VARCHAR, births VARCHAR)
SELECT nation FROM table_name_27 WHERE date = "8 june 1983" AND athlete = "marlies gohr"
Name the nation for 8 june 1983 for marlies gohr
CREATE TABLE table_name_27 (nation VARCHAR, date VARCHAR, athlete VARCHAR)
SELECT COUNT(london) FROM table_10402018_1 WHERE character = "Frank"
How many people play Frank in London?
CREATE TABLE table_10402018_1 (london VARCHAR, character VARCHAR)
SELECT awardee_s_ FROM table_24446718_7 WHERE name_of_award = "Best Editing"
Name the awardee for best editing
CREATE TABLE table_24446718_7 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT silver FROM table_name_24 WHERE gold < 12 AND rank < 5 AND bronze = 5
Which silver has a Gold smaller than 12, a Rank smaller than 5, and a Bronze of 5?
CREATE TABLE table_name_24 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT COUNT(constituency) FROM table_25818630_1 WHERE result___votes = 162
How many values for constituency for the vote result of 162?
CREATE TABLE table_25818630_1 (constituency VARCHAR, result___votes VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith"
List Aerosmith's albums.
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
SELECT english___manga_uk__ FROM table_2160215_1 WHERE original_japanese = "Kō Nishimura"
Who was the cast on the English (Manga UK) version if Kō Nishimura acted on the original Japanese?
CREATE TABLE table_2160215_1 (english___manga_uk__ VARCHAR, original_japanese VARCHAR)
SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id
Show the account name, id and the number of transactions for each account.
CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)
SELECT MAX(week) FROM table_name_8 WHERE result = "l 20–13" AND attendance > 49 OFFSET 598
Which Week has a Result of l 20–13, and an Attendance larger than 49,598?
CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT laps FROM table_2226343_1 WHERE average_speed__mph_ = "140.22"
How many laps have an average speed (mph) of 140.22?
CREATE TABLE table_2226343_1 (laps VARCHAR, average_speed__mph_ VARCHAR)
SELECT T1.name, T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id
What are the names and types of the companies that have ever operated a flight?
CREATE TABLE operate_company (name VARCHAR, type VARCHAR, id VARCHAR); CREATE TABLE flight (Id VARCHAR)
SELECT won FROM table_13758945_3 WHERE try_bonus = "8"
what's the won with try bonus being 8
CREATE TABLE table_13758945_3 (won VARCHAR, try_bonus VARCHAR)
SELECT away_team FROM table_name_50 WHERE home_team = "footscray"
What away team played against Footscray as the home team?
CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR)
SELECT place FROM table_name_30 WHERE score = 68
What is the place with the 68 score?
CREATE TABLE table_name_30 (place VARCHAR, score VARCHAR)
SELECT bristol_ & _n_som FROM table_12043148_2 WHERE somerset = "Ashcott and Shapwick"
what is the bristol & n. som where the somerset is ashcott and shapwick?
CREATE TABLE table_12043148_2 (bristol_ VARCHAR, _n_som VARCHAR, somerset VARCHAR)
SELECT jeremys_guest FROM table_17413485_1 WHERE episode = "1x01"
what is the name of the jeremy guest for the episode 1x01
CREATE TABLE table_17413485_1 (jeremys_guest VARCHAR, episode VARCHAR)
SELECT MAX(crowd) FROM table_name_92 WHERE home_team = "collingwood"
How big was the crowd of the Home team of Collingwood?
CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(overall) FROM table_name_90 WHERE name = "charley barnes" AND pick < 3
How many overalls have charley barnes as the name, with a pick less than 3?
CREATE TABLE table_name_90 (overall INTEGER, name VARCHAR, pick VARCHAR)
SELECT time FROM table_name_81 WHERE opponent = "white sox" AND record = "63-70"
At what time was the game when they played the White Sox and had a record of 63-70?
CREATE TABLE table_name_81 (time VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT nationality FROM table_name_66 WHERE time = "1:51.51"
What is the nationality of the event with a 1:51.51 time?
CREATE TABLE table_name_66 (nationality VARCHAR, time VARCHAR)
SELECT COUNT(year) FROM table_103084_4 WHERE bbc_one_rank = "20th"
How many years did BBC One rank 20th?
CREATE TABLE table_103084_4 (year VARCHAR, bbc_one_rank VARCHAR)
SELECT tie_no FROM table_name_2 WHERE away_team = "arsenal"
How many times did Arsenal tie when they were away?
CREATE TABLE table_name_2 (tie_no VARCHAR, away_team VARCHAR)
SELECT series FROM table_24585157_1 WHERE points = "68"
What series did the racer earn 68 points in?
CREATE TABLE table_24585157_1 (series VARCHAR, points VARCHAR)
SELECT visitor FROM table_name_63 WHERE home = "toronto maple leafs" AND score = "4–1"
What was the Visitor when the home was toronto maple leafs and the score was 4–1?
CREATE TABLE table_name_63 (visitor VARCHAR, home VARCHAR, score VARCHAR)
SELECT mark FROM table_name_19 WHERE name = "dmytro hlushchenko"
What is Mark, when Name is Dmytro Hlushchenko?
CREATE TABLE table_name_19 (mark VARCHAR, name VARCHAR)
SELECT date FROM table_name_11 WHERE attendance = "45,024"
What date has attendance listed as 45,024?
CREATE TABLE table_name_11 (date VARCHAR, attendance VARCHAR)
SELECT competition FROM table_name_87 WHERE date = "20 august 2008"
Tell me the competition of 20 august 2008
CREATE TABLE table_name_87 (competition VARCHAR, date VARCHAR)
SELECT points_difference FROM table_name_37 WHERE points_for = "554"
When there were 554 points, what was the point difference?
CREATE TABLE table_name_37 (points_difference VARCHAR, points_for VARCHAR)
SELECT primary_conference FROM table_name_39 WHERE team_nickname = "phoenix"
What primary conference does the team nicknamed Phoenix belongs to?
CREATE TABLE table_name_39 (primary_conference VARCHAR, team_nickname VARCHAR)
SELECT MAX(pinoresinol) FROM table_1831262_2 WHERE foodstuff = "Wheat bran"
what is the maximum number of pinorinol in wheat bran?
CREATE TABLE table_1831262_2 (pinoresinol INTEGER, foodstuff VARCHAR)
SELECT MAX(year) FROM table_name_67 WHERE event = "800 m" AND venue = "santiago de chile"
What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR)
SELECT original_artist FROM table_name_69 WHERE order__number = "11"
What is the original artist that has 11 as the order number?
CREATE TABLE table_name_69 (original_artist VARCHAR, order__number VARCHAR)
SELECT COUNT(episode) FROM table_15187735_8 WHERE segment_b = "s Hacksaw"
Name the number of episodes for s hacksaw
CREATE TABLE table_15187735_8 (episode VARCHAR, segment_b VARCHAR)
SELECT MAX(sales) FROM table_name_51 WHERE album_title = "all saints"
What is the highest sales All Saints had?
CREATE TABLE table_name_51 (sales INTEGER, album_title VARCHAR)
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?
CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)
SELECT score FROM table_name_8 WHERE home = "chicago black hawks" AND record = "3-3"
What is the Score when the Home team is Chicago Black Hawks and the Record is 3-3?
CREATE TABLE table_name_8 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT away FROM table_name_5 WHERE date = "2008-07-18"
Which away game was played on 2008-07-18?
CREATE TABLE table_name_5 (away VARCHAR, date VARCHAR)
SELECT SUM(population) FROM table_name_70 WHERE density = 50.09 AND rank > 30
WHat is the number of Population has a Density of 50.09 and a Rank larger than 30?
CREATE TABLE table_name_70 (population INTEGER, density VARCHAR, rank VARCHAR)
SELECT score FROM table_name_81 WHERE home = "vancouver" AND date = "february 16"
What score has vancouver as the home, and february 16 as the date?
CREATE TABLE table_name_81 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_28 WHERE player = "gene sauers"
What is Gene Sauers' to par?
CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT complaint_type_code) FROM complaints
How many distinct complaint type codes are there in the database?
CREATE TABLE complaints (complaint_type_code VARCHAR)
SELECT COUNT(against) FROM table_name_26 WHERE drawn < 5 AND lost < 6 AND points > 36
Which Against has a Drawn smaller than 5, and a Lost smaller than 6, and a Points larger than 36?
CREATE TABLE table_name_26 (against VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT candidates FROM table_1341604_10 WHERE incumbent = "Don Fuqua"
who is the the candidates with incumbent being don fuqua
CREATE TABLE table_1341604_10 (candidates VARCHAR, incumbent VARCHAR)
SELECT lbs_lost_reunion FROM table_28654454_5 WHERE finale_weight = "151.4"
How many lbs were lost at the reunion by the contestant whose finale weight was 151.4?
CREATE TABLE table_28654454_5 (lbs_lost_reunion VARCHAR, finale_weight VARCHAR)
SELECT MAX(game) FROM table_name_26 WHERE opponent = "oakland seals" AND record = "27-30-6" AND date > 7
What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?
CREATE TABLE table_name_26 (game INTEGER, date VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT COUNT(DISTINCT major), COUNT(DISTINCT city_code) FROM student
Find the numbers of different majors and cities.
CREATE TABLE student (major VARCHAR, city_code VARCHAR)
SELECT party FROM table_1342198_38 WHERE first_elected = 1948 AND incumbent = "William T. Granahan"
What is the party for first elected 1948 for william t. granahan
CREATE TABLE table_1342198_38 (party VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_32 WHERE competition = "friendly match" AND venue = "auckland"
On what date was a friendly match held at Auckland?
CREATE TABLE table_name_32 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT chassis FROM table_name_18 WHERE rank = "18th"
What Chassis ranked 18th?
CREATE TABLE table_name_18 (chassis VARCHAR, rank VARCHAR)
SELECT surface FROM table_name_84 WHERE track = "riverhead raceway"
What is the surface for the riverhead raceway?
CREATE TABLE table_name_84 (surface VARCHAR, track VARCHAR)
SELECT prize FROM table_name_58 WHERE name = "valdemar kwaysser"
What is Prize, when Name is "Valdemar Kwaysser"?
CREATE TABLE table_name_58 (prize VARCHAR, name VARCHAR)
SELECT power__kw_ FROM table_name_12 WHERE coverage__transmitter_site_ = "lucena"
What is Power (kW), when Coverage (Transmitter Site) is "Lucena"?
CREATE TABLE table_name_12 (power__kw_ VARCHAR, coverage__transmitter_site_ VARCHAR)
SELECT COUNT(capacity) FROM table_25346763_1 WHERE year_opened = "1956"
What is the capacity for a facility opened in 1956?
CREATE TABLE table_25346763_1 (capacity VARCHAR, year_opened VARCHAR)
SELECT COUNT(member_association) FROM table_1059743_2 WHERE points = "177.2"
How many countries earned 177.2 points?
CREATE TABLE table_1059743_2 (member_association VARCHAR, points VARCHAR)
SELECT opponent FROM table_23466021_4 WHERE attendance = 32194
Which opponent has 32194 as the attendance?
CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR)
SELECT format FROM table_27303975_2 WHERE title = "Super Callanetics"
Name the format for super callanetics
CREATE TABLE table_27303975_2 (format VARCHAR, title VARCHAR)
SELECT score FROM table_name_42 WHERE away_team = "arsenal"
What is the score for the game in which Arsenal was the away team?
CREATE TABLE table_name_42 (score VARCHAR, away_team VARCHAR)
SELECT AVG(attendance) FROM table_name_28 WHERE date = "1 october 1998"
What is the average Attendance, when Date is 1 October 1998?
CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR)
SELECT race_2 FROM table_name_40 WHERE race_4 = "28"
What is Race 2, when Race 4 is 28?
CREATE TABLE table_name_40 (race_2 VARCHAR, race_4 VARCHAR)
SELECT COUNT(50 AS s) FROM table_16570286_2 WHERE matches = 2
How many numbers were recorde under 50s when there was 2 matches?
CREATE TABLE table_16570286_2 (matches VARCHAR)
SELECT candidates FROM table_1342370_12 WHERE first_elected = 1922
Who were the candidates in the 1922 entry?
CREATE TABLE table_1342370_12 (candidates VARCHAR, first_elected VARCHAR)
SELECT branding FROM table_2610582_3 WHERE callsign = "DWBA-TV"
What is the branding of the callsign DWBA-TV?
CREATE TABLE table_2610582_3 (branding VARCHAR, callsign VARCHAR)
SELECT chambering FROM table_26967904_1 WHERE f_bolt = "N (lbf)" AND p_max___bar__ = 3900
With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?
CREATE TABLE table_26967904_1 (chambering VARCHAR, f_bolt VARCHAR, p_max___bar__ VARCHAR)
SELECT manager FROM table_name_90 WHERE shirt_sponsor = "arke"
Which manager sponsor arke shirt?
CREATE TABLE table_name_90 (manager VARCHAR, shirt_sponsor VARCHAR)
SELECT route_number FROM table_25692955_1 WHERE north_east_terminal = "Santa Rosa Avenue"
Name the route number for santa rosa avenue
CREATE TABLE table_25692955_1 (route_number VARCHAR, north_east_terminal VARCHAR)
SELECT event FROM table_name_72 WHERE score > 673
Which event had a score of over 673 points?
CREATE TABLE table_name_72 (event VARCHAR, score INTEGER)
SELECT losing_bonus FROM table_name_62 WHERE points_against = "588"
What Losing bonus has a Points against of 588?
CREATE TABLE table_name_62 (losing_bonus VARCHAR, points_against VARCHAR)
SELECT record FROM table_name_17 WHERE location_attendance = "td banknorth garden 18,624"
What is Record, when Location Attendance is "TD Banknorth Garden 18,624"?
CREATE TABLE table_name_17 (record VARCHAR, location_attendance VARCHAR)
SELECT partner FROM table_name_52 WHERE surface = "grass"
Who was the partner that played a match on a grass court?
CREATE TABLE table_name_52 (partner VARCHAR, surface VARCHAR)
SELECT away_team AS score FROM table_name_26 WHERE home_team = "south melbourne"
What did the away team score when they visited south melbourne?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT club_team FROM table_name_70 WHERE overall = 216
What club team has 216 overall?
CREATE TABLE table_name_70 (club_team VARCHAR, overall VARCHAR)
SELECT 2006 FROM table_name_40 WHERE 2003 = "not held" AND 2012 = "a"
What was the value in 2006 when 2003 was not held and 2012 was A?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT competition FROM table_name_84 WHERE score = "2-1" AND date = "october 22, 2008"
What is Competition, when Score is "2-1", and when Date is "October 22, 2008"?
CREATE TABLE table_name_84 (competition VARCHAR, score VARCHAR, date VARCHAR)
SELECT 2007 FROM table_name_87 WHERE 2011 = "nms"
What is the 2007 value with NMS in 2011?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"
Name the sec wins for .357 percentage and 4-3 home record
CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)
SELECT previous_conference FROM table_name_46 WHERE year_joined = "1932" AND mascot = "tigers"
what is the previous conference when the year joined is 1932 and the mascot is tigers?
CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT elected FROM table_name_81 WHERE party = "republican" AND district = "7th"
Party of republican, and a District of 7th is what elected?
CREATE TABLE table_name_81 (elected VARCHAR, party VARCHAR, district VARCHAR)
SELECT icao FROM table_name_63 WHERE callsign = "air busan"
What is the ICAO for Air Busan?
CREATE TABLE table_name_63 (icao VARCHAR, callsign VARCHAR)
SELECT opponent FROM table_name_86 WHERE week > 3 AND result = "l 10–6"
What is the Opponent of the game after Week 3 with a Result of L 10–6?
CREATE TABLE table_name_86 (opponent VARCHAR, week VARCHAR, result VARCHAR)