answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT position FROM table_name_72 WHERE nationality = "england" AND goals = "62"
What is the position of the player from England with 62 goals?
CREATE TABLE table_name_72 (position VARCHAR, nationality VARCHAR, goals VARCHAR)
SELECT year FROM table_name_35 WHERE total = "2" AND la_matches = "0"
What year had a total of 2 and LA matches of 0?
CREATE TABLE table_name_35 (year VARCHAR, total VARCHAR, la_matches VARCHAR)
SELECT song FROM table_name_13 WHERE music_director_s_ = "shankar jaikishan"
What song was directed by Shankar Jaikishan?
CREATE TABLE table_name_13 (song VARCHAR, music_director_s_ VARCHAR)
SELECT electorate FROM table_name_31 WHERE state = "qld" AND party = "national" AND member = "hon evan adermann"
Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann?
CREATE TABLE table_name_31 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)
SELECT group_position FROM table_name_9 WHERE date = "7 november 2007"
What is the Group position for the date of 7 November 2007?
CREATE TABLE table_name_9 (group_position VARCHAR, date VARCHAR)
SELECT championship FROM table_name_16 WHERE score_in_the_final = "2–6, 6–2, 7–5"
What Championship has a Score in the final of 2–6, 6–2, 7–5?
CREATE TABLE table_name_16 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT record FROM table_name_82 WHERE date = "december 25"
On December 25, what was the record?
CREATE TABLE table_name_82 (record VARCHAR, date VARCHAR)
SELECT MAX(average) FROM table_24856090_1 WHERE hk_viewers = "1.97 million"
What is the largest average for the episode with 1.97 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (average INTEGER, hk_viewers VARCHAR)
SELECT name FROM table_name_26 WHERE laid_down = "25 april 1887"
What boat was laid down on 25 april 1887?
CREATE TABLE table_name_26 (name VARCHAR, laid_down VARCHAR)
SELECT date FROM table_27882867_9 WHERE score = "W 104-98"
What date was the game score w 104-98?
CREATE TABLE table_27882867_9 (date VARCHAR, score VARCHAR)
SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Leopold Bauer Alfred Kohlhauser"
who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT MIN(year) FROM table_name_79 WHERE winner = "tcu"
What was the lowest year for TCU?
CREATE TABLE table_name_79 (year INTEGER, winner VARCHAR)
SELECT AVG(points) FROM table_name_25 WHERE grid = 4
What are grid 4's average points?
CREATE TABLE table_name_25 (points INTEGER, grid VARCHAR)
SELECT tournament FROM table_name_94 WHERE opponent = "andreas haider-maurer"
Which tournament was andreas haider-maurer the opponent in?
CREATE TABLE table_name_94 (tournament VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Tennis Club"
How many members does the club "Tennis Club" has?
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
SELECT outgoing_manager FROM table_26976615_3 WHERE team = "Târgu Mureş"
Who was the outgoing manager for the team of târgu mureş?
CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT MIN(events) FROM table_name_10 WHERE tournament = "pga championship" AND wins > 0
During the PGA Championship, what's the lowest amount of events with wins greater than 0?
CREATE TABLE table_name_10 (events INTEGER, tournament VARCHAR, wins VARCHAR)
SELECT AVG(year) FROM table_name_34 WHERE pts > 0 AND entrant = "ecurie bleue"
What year did Ecurie Bleue score more than 0 points?
CREATE TABLE table_name_34 (year INTEGER, pts VARCHAR, entrant VARCHAR)
SELECT COUNT(geo_id) FROM table_18600760_19 WHERE latitude = "48.578664"
how many geo id with 48.578664 are
CREATE TABLE table_18600760_19 (geo_id VARCHAR, latitude VARCHAR)
SELECT week_1 FROM table_name_67 WHERE week_3 = "36"
Name the week 3 of 36
CREATE TABLE table_name_67 (week_1 VARCHAR, week_3 VARCHAR)
SELECT tries_for FROM table_14070062_3 WHERE club = "Pontardawe RFC"
How many tries for does Pontardawe RFC have?
CREATE TABLE table_14070062_3 (tries_for VARCHAR, club VARCHAR)
SELECT COUNT(against) FROM table_15319684_1 WHERE team = "Portuguesa Santista"
Name the number of against for portuguesa santista
CREATE TABLE table_15319684_1 (against VARCHAR, team VARCHAR)
SELECT MIN(total) FROM table_name_55 WHERE nation = "japan" AND silver > 2
Which Total has a Nation of japan, and a Silver larger than 2?
CREATE TABLE table_name_55 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT average FROM table_name_3 WHERE rank = "2"
What is the average that has 2 for the rank?
CREATE TABLE table_name_3 (average VARCHAR, rank VARCHAR)
SELECT production_cost FROM table_name_34 WHERE date = "february 2000"
What is the Production Cost with a Date that is february 2000?
CREATE TABLE table_name_34 (production_cost VARCHAR, date VARCHAR)
SELECT COUNT(high_rebounds) FROM table_17103729_8 WHERE score = "64-74"
Name the high rebounds for score of 64-74
CREATE TABLE table_17103729_8 (high_rebounds VARCHAR, score VARCHAR)
SELECT MAX(pick__number) FROM table_name_33 WHERE round > 11
What is the highest pick # after round 11?
CREATE TABLE table_name_33 (pick__number INTEGER, round INTEGER)
SELECT week_10_nov_2 FROM table_name_4 WHERE week_14_nov_30 = "penn state (11-1)"
Which Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)?
CREATE TABLE table_name_4 (week_10_nov_2 VARCHAR, week_14_nov_30 VARCHAR)
SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers
What are the phone numbers of all customers and suppliers.
CREATE TABLE suppliers (customer_phone VARCHAR, supplier_phone VARCHAR); CREATE TABLE customers (customer_phone VARCHAR, supplier_phone VARCHAR)
SELECT constructor FROM table_name_1 WHERE fastest_lap = "nigel mansell"
What is the constructor for the race with Nigel Mansell as the fastest lap?
CREATE TABLE table_name_1 (constructor VARCHAR, fastest_lap VARCHAR)
SELECT MIN(rr3_pts) FROM table_21489362_2 WHERE rr4_pts = "20"
When 20 is the rr4 points what is the lowest rr3 points?
CREATE TABLE table_21489362_2 (rr3_pts INTEGER, rr4_pts VARCHAR)
SELECT MAX(number_of_electorates__2009_) FROM table_name_41 WHERE constituency_number = "total:"
What is the largest Number of electorates (2009) with a Constituency number of total:?
CREATE TABLE table_name_41 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR)
SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE common_of = "Chieri"
The common of Chieri has what population density?
CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, common_of VARCHAR)
SELECT us_viewers__millions_ FROM table_19266557_1 WHERE _number = 6
How many millions of viewers were there for number 6?
CREATE TABLE table_19266557_1 (us_viewers__millions_ VARCHAR, _number VARCHAR)
SELECT villains FROM table_10470082_4 WHERE _number = 7
Who is the villain in episode #7?
CREATE TABLE table_10470082_4 (villains VARCHAR, _number VARCHAR)
SELECT MAX(monthly_rental), MIN(monthly_rental) FROM Student_Addresses
Find the maximum and minimum monthly rental for all student addresses.
CREATE TABLE Student_Addresses (monthly_rental INTEGER)
SELECT MIN(starts) FROM table_24747844_2 WHERE best_finish = "T18"
What is the minimum number of starts for the players having a best finish of T18?
CREATE TABLE table_24747844_2 (starts INTEGER, best_finish VARCHAR)
SELECT SUM(rank) FROM table_name_2 WHERE gold < 0
What's the total Rank that has a Gold that's smaller than 0?
CREATE TABLE table_name_2 (rank INTEGER, gold INTEGER)
SELECT date FROM table_name_31 WHERE race = "northern spur breeders' cup stakes"
What Date is Northern Spur Breeders' Cup Stakes Race?
CREATE TABLE table_name_31 (date VARCHAR, race VARCHAR)
SELECT vessel FROM table_name_72 WHERE type = "logistic support"
Which vessel has a type of logistic support?
CREATE TABLE table_name_72 (vessel VARCHAR, type VARCHAR)
SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffalo Sabres"
Where are the Buffalo Sabres from?
CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT score FROM table_name_42 WHERE city = "leicester"
What is the score in Leicester?
CREATE TABLE table_name_42 (score VARCHAR, city VARCHAR)
SELECT COUNT(game) FROM table_name_53 WHERE date = "december 21"
What is the game number on December 21?
CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR)
SELECT date FROM table_name_72 WHERE winning_score = –12(69 - 66 - 72 - 65 = 272)
When was the winning score –12 (69-66-72-65=272)?
CREATE TABLE table_name_72 (date VARCHAR, winning_score VARCHAR)
SELECT player FROM table_name_11 WHERE opposition = "clare"
Which Player has an Opposition of clare?
CREATE TABLE table_name_11 (player VARCHAR, opposition VARCHAR)
SELECT cancelable FROM table_name_25 WHERE attribute = "onmouseover"
Name the cancelable for onmouseover
CREATE TABLE table_name_25 (cancelable VARCHAR, attribute VARCHAR)
SELECT region FROM table_name_74 WHERE catalog = "885 973-4"
What is the Region of Catalog 885 973-4?
CREATE TABLE table_name_74 (region VARCHAR, catalog VARCHAR)
SELECT result FROM table_name_73 WHERE competition = "friendly" AND date = "8 october 2009"
what is the result when the competition is friendly on 8 october 2009?
CREATE TABLE table_name_73 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT tries_against FROM table_13564637_3 WHERE lost = "4"
what are the tries where the game was lost by 4?
CREATE TABLE table_13564637_3 (tries_against VARCHAR, lost VARCHAR)
SELECT home FROM table_name_81 WHERE record = "16-8"
What is the home of the team with a 16-8 record?
CREATE TABLE table_name_81 (home VARCHAR, record VARCHAR)
SELECT MAX(year) FROM table_name_76 WHERE actor = "cicely tyson"
What is the latest year that Cicely Tyson is the Golden Globe Award actor?
CREATE TABLE table_name_76 (year INTEGER, actor VARCHAR)
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2
List all document ids with at least two paragraphs.
CREATE TABLE Paragraphs (document_id VARCHAR)
SELECT SUM(longitude) FROM table_name_65 WHERE diameter__km_ = 22.6 AND latitude < -12.4
Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4
CREATE TABLE table_name_65 (longitude INTEGER, diameter__km_ VARCHAR, latitude VARCHAR)
SELECT incumbent FROM table_1341604_19 WHERE district = "Louisiana 1"
Who's the incumbent of the Louisiana 1 district?
CREATE TABLE table_1341604_19 (incumbent VARCHAR, district VARCHAR)
SELECT owner FROM table_name_10 WHERE trainer = "nick zito" AND year = "1996"
Who was the owner in 1996 of trainer Nick Zito?
CREATE TABLE table_name_10 (owner VARCHAR, trainer VARCHAR, year VARCHAR)
SELECT team FROM table_name_31 WHERE time = "1:14.51.73"
Which Team has a Time of 1:14.51.73?
CREATE TABLE table_name_31 (team VARCHAR, time VARCHAR)
SELECT title FROM table_name_87 WHERE podcast_date = "november 21, 2004"
What is the name of the podcast on November 21, 2004?
CREATE TABLE table_name_87 (title VARCHAR, podcast_date VARCHAR)
SELECT laps FROM table_name_62 WHERE grid = "5"
How many laps has a grid of 5?
CREATE TABLE table_name_62 (laps VARCHAR, grid VARCHAR)
SELECT left_office FROM table_name_25 WHERE took_office = "1998"
What is Left Office, when Took Office is 1998?
CREATE TABLE table_name_25 (left_office VARCHAR, took_office VARCHAR)
SELECT form_factor FROM table_name_99 WHERE model = "precision m50"
What is the form factor with a model name of precision m50?
CREATE TABLE table_name_99 (form_factor VARCHAR, model VARCHAR)
SELECT h_s_asst_principal FROM table_name_47 WHERE glendale_principal = "joyce brace" AND year = "2002-2003"
What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?
CREATE TABLE table_name_47 (h_s_asst_principal VARCHAR, glendale_principal VARCHAR, year VARCHAR)
SELECT score FROM table_name_2 WHERE date = "april 2, 2008"
What was the game score on april 2, 2008?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT name FROM table_name_88 WHERE champion = "henrik sundström"
What's the name when Henrik Sundström was champion?
CREATE TABLE table_name_88 (name VARCHAR, champion VARCHAR)
SELECT affiliation FROM table_name_18 WHERE district = "cuddalore district"
What is the affiliation for the Cuddalore District?
CREATE TABLE table_name_18 (affiliation VARCHAR, district VARCHAR)
SELECT date FROM table_name_83 WHERE circuit = "indianapolis"
What was the date of the Circuit of Indianapolis?
CREATE TABLE table_name_83 (date VARCHAR, circuit VARCHAR)
SELECT doctor_who_episode FROM table_name_91 WHERE original_airdate__uk_ = "14 may 2005"
Which Doctor Who episode has an Original airdate (UK) of 14 may 2005?
CREATE TABLE table_name_91 (doctor_who_episode VARCHAR, original_airdate__uk_ VARCHAR)
SELECT lner_class FROM table_name_37 WHERE passed_to_lner > 3 AND date_introduced = "1895–98"
Which LNER class has been Passed to LNER larger than 3 and a introduced in 1895–98?
CREATE TABLE table_name_37 (lner_class VARCHAR, passed_to_lner VARCHAR, date_introduced VARCHAR)
SELECT channels___analog___digital__ FROM table_name_91 WHERE first_air_date = "31 december 1990" AND region_served = "southern downs"
What channels first aired on 31 December 1990 in the Southern Downs region?
CREATE TABLE table_name_91 (channels___analog___digital__ VARCHAR, first_air_date VARCHAR, region_served VARCHAR)
SELECT name FROM table_name_16 WHERE case_length = "73.99 (2.913)"
Which Name has a Case Length of 73.99 (2.913)?
CREATE TABLE table_name_16 (name VARCHAR, case_length VARCHAR)
SELECT location_attendance FROM table_27537870_6 WHERE opponent = "@ Boston Bruins"
If the opponent was @ Boston Bruins, what was the Location/Attendance?
CREATE TABLE table_27537870_6 (location_attendance VARCHAR, opponent VARCHAR)
SELECT high_rebounds FROM table_13762472_4 WHERE high_assists = "Dwyane Wade (9)"
who had all the high rebounds when high assists is by dwyane wade (9)
CREATE TABLE table_13762472_4 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT SUM(number) FROM table_name_4 WHERE location = "bois de warville" AND time < 810
What number is in Bois de Warville with a time less than 810?
CREATE TABLE table_name_4 (number INTEGER, location VARCHAR, time VARCHAR)
SELECT MAX(against) FROM table_name_90 WHERE central_murray = "tooleybuc manangatang" AND wins < 13
What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins?
CREATE TABLE table_name_90 (against INTEGER, central_murray VARCHAR, wins VARCHAR)
SELECT us_viewers__million_ FROM table_27403436_1 WHERE written_by = "Shana Goldberg-Meehan & Greg Malins"
How many viewers watched the episode written by shana goldberg-meehan & greg malins?
CREATE TABLE table_27403436_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT COUNT(rank) FROM table_name_65 WHERE country = "ukraine"
What is the Rank of the Athletes from Ukraine?
CREATE TABLE table_name_65 (rank VARCHAR, country VARCHAR)
SELECT player FROM table_name_74 WHERE country = "united states" AND total < 293 AND year_s__won = "1984"
Who is the player from the United States with a total less than 293 and won in 1984?
CREATE TABLE table_name_74 (player VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE date = "september 8"
What was the attendance on september 8?
CREATE TABLE table_name_71 (attendance INTEGER, date VARCHAR)
SELECT MAX(draws) FROM table_name_45 WHERE losses < 18 AND team = "north melbourne" AND season > 1926
What is the highest Draws with less than 18 losses for north melbourne later than 1926?
CREATE TABLE table_name_45 (draws INTEGER, season VARCHAR, losses VARCHAR, team VARCHAR)
SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = "Football"
Show all male student ids who don't play football.
CREATE TABLE Sportsinfo (StuID VARCHAR, sex VARCHAR, sportname VARCHAR); CREATE TABLE Student (StuID VARCHAR, sex VARCHAR, sportname VARCHAR)
SELECT date FROM table_name_13 WHERE away_team = "geelong"
When was the away team geelong?
CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR)
SELECT owned_since FROM table_22329326_1 WHERE station = "WLS-TV"
When was the station WLS-TV owned since?
CREATE TABLE table_22329326_1 (owned_since VARCHAR, station VARCHAR)
SELECT owner FROM table_name_38 WHERE branding = "rock 97.7"
What is the name of the owner of rock 97.7?
CREATE TABLE table_name_38 (owner VARCHAR, branding VARCHAR)
SELECT bronze FROM table_name_21 WHERE total = 5
Total of 5 had what bronze?
CREATE TABLE table_name_21 (bronze VARCHAR, total VARCHAR)
SELECT MIN(poles) FROM table_name_84 WHERE position = "nc" AND team = "comtec racing"
What is the lowest poles of team comtec racing, which has a nc position?
CREATE TABLE table_name_84 (poles INTEGER, position VARCHAR, team VARCHAR)
SELECT us_viewers__million_ FROM table_22261877_1 WHERE production_code = "6ACX16"
How many viewers in millions watched the episode with the production code 6acx16?
CREATE TABLE table_22261877_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT AVG(population) FROM table_name_54 WHERE median_household_income = "$40,340" AND number_of_households < 64 OFFSET 767
Median household income of $40,340, and a Number of households smaller than 64,767 is what average population?
CREATE TABLE table_name_54 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
SELECT launched FROM table_name_57 WHERE builder = "john brown, clydebank"
what is the launched date when the builder is john brown, clydebank?
CREATE TABLE table_name_57 (launched VARCHAR, builder VARCHAR)
SELECT abbr FROM table_20354_5 WHERE transcription = "kumphaphan"
What's the abbreviation for the month whose transcription is Kumphaphan?
CREATE TABLE table_20354_5 (abbr VARCHAR, transcription VARCHAR)
SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = "ホタルノヒカリ"
What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?
CREATE TABLE table_name_38 (average_ratings VARCHAR, episodes VARCHAR, japanese_title VARCHAR)
SELECT land___sqmi__ FROM table_18600760_4 WHERE geo_id = 3807717980
Name the land where geo id is 3807717980
CREATE TABLE table_18600760_4 (land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT bowling FROM table_name_23 WHERE season = "1907"
What is the bowling score of season 1907?
CREATE TABLE table_name_23 (bowling VARCHAR, season VARCHAR)
SELECT winner FROM table_11622924_1 WHERE tournament = "Suntree Seniors Classic"
Who won the Suntree Seniors Classic?
CREATE TABLE table_11622924_1 (winner VARCHAR, tournament VARCHAR)
SELECT MAX(wins) FROM table_name_90 WHERE avg_finish = 35 AND year = 1990 AND starts < 1
in 1990, how many wins had an avg finish of 35 and a start less than 1?
CREATE TABLE table_name_90 (wins INTEGER, starts VARCHAR, avg_finish VARCHAR, year VARCHAR)
SELECT DISTINCT home_city FROM driver
Show all different home cities.
CREATE TABLE driver (home_city VARCHAR)
SELECT athlete FROM table_name_65 WHERE finals = "did not advance" AND event = "56kg"
Who was the athlete in the 56kg event having a did not advance in the finals?
CREATE TABLE table_name_65 (athlete VARCHAR, finals VARCHAR, event VARCHAR)
SELECT height FROM table_name_36 WHERE hometown = "elizabeth, nj"
What is the height of the player from Elizabeth, NJ?
CREATE TABLE table_name_36 (height VARCHAR, hometown VARCHAR)
SELECT date FROM table_name_93 WHERE home_team = "crystal palace"
What date was the game when home team crystal palace played?
CREATE TABLE table_name_93 (date VARCHAR, home_team VARCHAR)
SELECT MIN(all_time) FROM table_name_95 WHERE first_title < 1974 AND last_title = 1933 AND amateur_era > 2
What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?
CREATE TABLE table_name_95 (all_time INTEGER, amateur_era VARCHAR, first_title VARCHAR, last_title VARCHAR)
SELECT location FROM table_name_31 WHERE type = "semi" AND entered_service = "1988" AND name = "transocean richardson"
Where is Transocean Richardson, a semi entered into service in 1988?
CREATE TABLE table_name_31 (location VARCHAR, name VARCHAR, type VARCHAR, entered_service VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE away_team = "melbourne"
What score did the opposing home team have against Melbourne
CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR)