answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT place FROM table_name_43 WHERE player = "pat perez"
Nam ethe place for pat perez
CREATE TABLE table_name_43 (place VARCHAR, player VARCHAR)
SELECT years FROM table_name_40 WHERE state = "new hampshire" AND representative = "james hutchins johnson"
James Hutchins Johnson, from New Hampshire, served during what years?
CREATE TABLE table_name_40 (years VARCHAR, state VARCHAR, representative 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 AVG(long) FROM station WHERE NOT id IN (SELECT station_id FROM status GROUP BY station_id HAVING MAX(bikes_available) > 10)
What is the average longitude of stations that never had bike availability more than 10?
CREATE TABLE station (long INTEGER, id VARCHAR, station_id VARCHAR, bikes_available INTEGER); CREATE TABLE status (long INTEGER, id VARCHAR, station_id VARCHAR, bikes_available INTEGER)
SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq
Find the id of the courses that do not have any prerequisite?
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (course_id VARCHAR)
SELECT television_service FROM table_15887683_15 WHERE country = "Italy" AND language = "English"
What television service is in italy and is in english?
CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, language VARCHAR)
SELECT status FROM table_name_63 WHERE venue = "stadio flaminio , rome"
What is the Statue, when Venue is "Stadio Flaminio , Rome"?
CREATE TABLE table_name_63 (status VARCHAR, venue VARCHAR)
SELECT COUNT(loss) FROM table_name_12 WHERE name = "leon patton" AND long > 45
How many losses did leon patton have with the longest gain higher than 45?
CREATE TABLE table_name_12 (loss VARCHAR, name VARCHAR, long VARCHAR)
SELECT league_cup_goals FROM table_name_29 WHERE total > 15 AND fa_cup_goals = 3 AND club = "chesterfield"
How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?
CREATE TABLE table_name_29 (league_cup_goals VARCHAR, club VARCHAR, total VARCHAR, fa_cup_goals VARCHAR)
SELECT visiting_team FROM table_name_34 WHERE stadium = "lincoln financial field" AND final_score = "24-14"
Who was the visiting team at Lincoln Financial Field when the final score was 24-14?
CREATE TABLE table_name_34 (visiting_team VARCHAR, stadium VARCHAR, final_score VARCHAR)
SELECT votes FROM table_name_41 WHERE candidate = "riikka manner"
Candidate of riikka manner has how many votes?
CREATE TABLE table_name_41 (votes VARCHAR, candidate VARCHAR)
SELECT born___died FROM table_name_93 WHERE connection_with_australia = "family moved to australia at age 6"
What is the Born–Died for the person whose family moved to Australia at age 6?
CREATE TABLE table_name_93 (born___died VARCHAR, connection_with_australia VARCHAR)
SELECT constructor FROM table_name_39 WHERE driver = "heikki kovalainen"
Who was the constructor of the car driven by Heikki Kovalainen?
CREATE TABLE table_name_39 (constructor VARCHAR, driver VARCHAR)
SELECT home_team AS score FROM table_name_60 WHERE home_team = "st kilda"
What was the score for the home team St Kilda?
CREATE TABLE table_name_60 (home_team VARCHAR)
SELECT height FROM table_name_25 WHERE city = "des moines" AND name = "emc insurance building"
What is the height of the EMC Insurance Building in Des Moines?
CREATE TABLE table_name_25 (height VARCHAR, city VARCHAR, name VARCHAR)
SELECT date FROM table_name_4 WHERE round = "4th" AND home_team = "itabuna"
On what date was the 4th round, with home team Itabuna, played?
CREATE TABLE table_name_4 (date VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT pick__number FROM table_2508633_5 WHERE player = "Bruce Baldwin"
What was bruce baldwin's pick #?
CREATE TABLE table_2508633_5 (pick__number VARCHAR, player VARCHAR)
SELECT height__f_ FROM table_23670057_4 WHERE position = "Center"
For all players playing at the center, list the height in feet.
CREATE TABLE table_23670057_4 (height__f_ VARCHAR, position VARCHAR)
SELECT MAX(enrollment) FROM table_16432543_3 WHERE nickname = "Cavaliers"
what is the enrollment for the Cavaliers?
CREATE TABLE table_16432543_3 (enrollment INTEGER, nickname VARCHAR)
SELECT year__ceremony_ FROM table_name_24 WHERE result = "not nominated" AND film_title_used_in_nomination = "in the navel of the sea"
What is the year when not nominated was the result, and In the Navel of the Sea was the film title used in nomination?
CREATE TABLE table_name_24 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT report FROM table_name_48 WHERE winning_driver = "per-viktor widengren" AND winning_constructor = "alfa romeo"
Name the report for per-viktor widengren and alfa romeo
CREATE TABLE table_name_48 (report VARCHAR, winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT founded FROM table_1974545_2 WHERE location = "Salem, Massachusetts"
When was the school in Salem, Massachusetts located?
CREATE TABLE table_1974545_2 (founded VARCHAR, location VARCHAR)
SELECT AVG(total) FROM table_name_15 WHERE silver > 1 AND bronze < 8
Can you tell me the average Total that has the Silver larger than 1, and the Bronze smaller than 8?
CREATE TABLE table_name_15 (total INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT team FROM table_name_8 WHERE owner_s_ = "mark smith" AND crew_chief = "paul clapprood"
What team is owned by Mark Smith and has Paul Clapprood as a crew chief?
CREATE TABLE table_name_8 (team VARCHAR, owner_s_ VARCHAR, crew_chief VARCHAR)
SELECT POSITION FROM player GROUP BY name HAVING AVG(Points) >= 20
List the position of players with average number of points scored by players of that position bigger than 20.
CREATE TABLE player (POSITION VARCHAR, name VARCHAR, Points INTEGER)
SELECT MIN(ansi_code) FROM table_18600760_13
What is the smallest ansi code?
CREATE TABLE table_18600760_13 (ansi_code INTEGER)
SELECT 2007 FROM table_name_48 WHERE 2003 = "desert prince"
What is the 2007 for the 2003 desert prince?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT opponent FROM table_name_45 WHERE round > 1 AND event = "pfp: ring of fire"
Which opponent had a round of more than 1 and an even of PFP: ring of fire?
CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT venue FROM table_name_77 WHERE result = "draw"
What venue had a draw?
CREATE TABLE table_name_77 (venue VARCHAR, result VARCHAR)
SELECT AVG(wins) FROM table_name_79 WHERE draws < 3 AND points = 26
Which Wins has a Draws smaller than 3, and Points of 26?
CREATE TABLE table_name_79 (wins INTEGER, draws VARCHAR, points VARCHAR)
SELECT tuesday FROM table_18173916_6 WHERE thursday = "196 Buried"
What was the Tuesday episode if theThursday episode was 196 Buried?
CREATE TABLE table_18173916_6 (tuesday VARCHAR, thursday VARCHAR)
SELECT place FROM table_name_19 WHERE score = 68 - 70 - 71 = 209
What is the Place, when the Score is 68-70-71=209?
CREATE TABLE table_name_19 (place VARCHAR, score VARCHAR)
SELECT topinka__r_ FROM table_name_11 WHERE date = "january 22, 2006"
Which Topinka happened on january 22, 2006?
CREATE TABLE table_name_11 (topinka__r_ VARCHAR, date VARCHAR)
SELECT player FROM table_name_93 WHERE score = 67 - 73 - 70 = 210
Who scored 67-73-70=210?
CREATE TABLE table_name_93 (player VARCHAR, score VARCHAR)
SELECT year FROM table_13012165_1 WHERE maryland = "Railroaders LL Brunswick"
Which year did Maryland hold the title with Railroaders LL Brunswick?
CREATE TABLE table_13012165_1 (year VARCHAR, maryland VARCHAR)
SELECT mountain_peak FROM table_name_2 WHERE rank = 62
Name the Mountain Peak which has a Rank of 62?
CREATE TABLE table_name_2 (mountain_peak VARCHAR, rank VARCHAR)
SELECT grid FROM table_name_53 WHERE laps = 6
What grid features 6 laps?
CREATE TABLE table_name_53 (grid VARCHAR, laps VARCHAR)
SELECT opponents_in_the_final FROM table_name_44 WHERE tournament = "puebla"
What is the Opponents from the final with a Tournament that is puebla?
CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, tournament VARCHAR)
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
How many series had viewers totaling 23.93 million?
CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = "David Hoselton"
How many # were written by david hoselton?
CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27755603_7 WHERE date = "December 19"
For how many games on December 19 is there information on who scored the most rebounds?
CREATE TABLE table_27755603_7 (high_rebounds VARCHAR, date VARCHAR)
SELECT portuguese FROM table_26614365_5 WHERE english = "Welcome"
What is the Portuguese word for the English word 'welcome'?
CREATE TABLE table_26614365_5 (portuguese VARCHAR, english VARCHAR)
SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = "Terry Bowden" AND tv_rating = "17.2"
Name the color analyst for terry bowden and 17.2
CREATE TABLE table_2724704_5 (color_analyst_s_ VARCHAR, studio_analyst_s_ VARCHAR, tv_rating VARCHAR)
SELECT MAX(pts_agst) FROM table_21991074_1
What is the maximum number of points scored against?
CREATE TABLE table_21991074_1 (pts_agst INTEGER)
SELECT MIN(crowd) FROM table_name_83 WHERE venue = "vfl park"
What was the smallest crowd of vfl park?
CREATE TABLE table_name_83 (crowd INTEGER, venue VARCHAR)
SELECT first_elected FROM table_1341930_10 WHERE incumbent = "Paul Rogers"
When was Paul Rogers first elected?
CREATE TABLE table_1341930_10 (first_elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_6 WHERE competition = "friendly match" AND date = "october 8, 2012"
WHat was the result of the friendly match that was played on october 8, 2012?
CREATE TABLE table_name_6 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT film FROM table_name_21 WHERE year < 2002 AND category = "outstanding actress"
what is the film when the year is earlier than 2002 and the category is outstanding actress?
CREATE TABLE table_name_21 (film VARCHAR, year VARCHAR, category VARCHAR)
SELECT MIN(wins) FROM table_name_21 WHERE team = "olimpia" AND draws < 4
What is the lowest Wins that has the Team of Olimpia and Draws that's smaller than 4?
CREATE TABLE table_name_21 (wins INTEGER, team VARCHAR, draws VARCHAR)
SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171
With an Overall less than 171, what is the Round pick of Lance Moon?
CREATE TABLE table_name_36 (round INTEGER, name VARCHAR, overall VARCHAR)
SELECT round FROM table_name_12 WHERE club = "spartak moscow"
What round did the spartak moscow club play?
CREATE TABLE table_name_12 (round VARCHAR, club VARCHAR)
SELECT MIN(year) FROM table_name_49 WHERE points < 45 AND team = "yamaha" AND rank = "21st"
What is the earliest year with less than 45 points for Yamaha team in 21st rank?
CREATE TABLE table_name_49 (year INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)
SELECT u15_4th_quad FROM table_name_68 WHERE u15_3rd_quad = "bbc" AND u15_6th_quad = "gt"
Which U15 4th Quad had a U15 3rd Quad of BBC and U15 6th Quad of GT?
CREATE TABLE table_name_68 (u15_4th_quad VARCHAR, u15_3rd_quad VARCHAR, u15_6th_quad VARCHAR)
SELECT rev FROM table_1310499_1 WHERE application = "Aston Martin"
What is the rev for all of the Aston Martin applications?
CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR)
SELECT address, num_of_staff FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM happy_hour)
Find the address and staff number of the shops that do not have any happy hour.
CREATE TABLE shop (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR); CREATE TABLE happy_hour (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR)
SELECT name FROM table_name_70 WHERE constituency_number = "150"
what is the name when the constituency number is 150?
CREATE TABLE table_name_70 (name VARCHAR, constituency_number VARCHAR)
SELECT MIN(genes) FROM table_name_66 WHERE species = "rubrobacter xylanophilus"
What is the lowest number of genes in Rubrobacter Xylanophilus?
CREATE TABLE table_name_66 (genes INTEGER, species VARCHAR)
SELECT name FROM table_name_52 WHERE area = "balclutha" AND roll < 55
Which school in Balclutha has a roll smaller than 55?
CREATE TABLE table_name_52 (name VARCHAR, area VARCHAR, roll VARCHAR)
SELECT weekly_rank FROM table_25391981_20 WHERE share = "14" AND original_airdate = "April 20, 2010"
What is the weekly rank of the episode with a 14 share whose original airdate was April 20, 2010?
CREATE TABLE table_25391981_20 (weekly_rank VARCHAR, share VARCHAR, original_airdate VARCHAR)
SELECT venue FROM table_name_19 WHERE home_team = "south melbourne"
What is the home field of the South Melbourne team?
CREATE TABLE table_name_19 (venue VARCHAR, home_team VARCHAR)
SELECT campus FROM table_name_59 WHERE location = "brgy. alangilan, batangas city"
What campus is in Brgy. Alangilan, Batangas City?
CREATE TABLE table_name_59 (campus VARCHAR, location VARCHAR)
SELECT venue FROM table_name_69 WHERE competition = "fa cup rd 1"
Competition of fa cup rd 1 had what venue?
CREATE TABLE table_name_69 (venue VARCHAR, competition VARCHAR)
SELECT COUNT(drawn) FROM table_name_53 WHERE points = 6 AND lost < 4
How many drawn have points of 6 and lost by fewer than 4?
CREATE TABLE table_name_53 (drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood"
Who were the candidates in the district where Charlie Norwood is the incumbent?
CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR)
SELECT position FROM table_14342210_12 WHERE extra_points = 4
What position did the player who scored 4 extra points play?
CREATE TABLE table_14342210_12 (position VARCHAR, extra_points VARCHAR)
SELECT COUNT(*), city FROM employee GROUP BY city
What is the number of employees from each city?
CREATE TABLE employee (city VARCHAR)
SELECT COUNT(round) FROM table_name_7 WHERE record = "1-5"
How many rounds in the event when record is 1-5?
CREATE TABLE table_name_7 (round VARCHAR, record VARCHAR)
SELECT competition FROM table_name_59 WHERE score = "3–0" AND goal > 4
What is the Competition where the Score was 3–0, and the was Goal larger than 4?
CREATE TABLE table_name_59 (competition VARCHAR, score VARCHAR, goal VARCHAR)
SELECT COUNT(total_drivers) FROM table_19487922_2 WHERE country = "India"
How many drivers does India have/
CREATE TABLE table_19487922_2 (total_drivers VARCHAR, country VARCHAR)
SELECT name FROM table_21536557_2 WHERE time__cet_ = "09:03"
Who is every name for time(cet) of 09:03?
CREATE TABLE table_21536557_2 (name VARCHAR, time__cet_ VARCHAR)
SELECT launched FROM table_291768_1 WHERE commissioned = "August 6, 1969"
when was the first start date that actually began on august 6, 1969
CREATE TABLE table_291768_1 (launched VARCHAR, commissioned VARCHAR)
SELECT date FROM table_name_71 WHERE game = 37
What date was game 37?
CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR)
SELECT school_club_team FROM table_name_94 WHERE wnba_team = "sacramento monarchs"
What school or club team did the player chosen for the Sacramento Monarchs play for?
CREATE TABLE table_name_94 (school_club_team VARCHAR, wnba_team VARCHAR)
SELECT SUM(year) FROM table_name_98 WHERE engine = "bmw str-4 t/c" AND entrant = "barclay nordica arrows bmw" AND points < 1
How many years did barclay nordica arrows bmw enter with a bmw str-4 t/c engine with less than 1 point?
CREATE TABLE table_name_98 (year INTEGER, points VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine"
Who was the winner of the tre valli varesine race?
CREATE TABLE table_name_60 (winner VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND tournament = "colonial national invitation"
What day was the margin of victory 1 stroke when the tournament was colonial national invitation?
CREATE TABLE table_name_5 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT fastest_lap FROM table_name_4 WHERE winning_driver = "ayrton senna" AND date = "23 april"
Who had the fastest lap of the race that Ayrton Senna won on 23 April?
CREATE TABLE table_name_4 (fastest_lap VARCHAR, winning_driver VARCHAR, date VARCHAR)
SELECT home FROM table_name_70 WHERE competition = "european cup" AND round = "qf"
Which Home has a Competition of european cup, and a Round of qf?
CREATE TABLE table_name_70 (home VARCHAR, competition VARCHAR, round VARCHAR)
SELECT team FROM table_name_7 WHERE rider = "john williams"
Which team is John Williams a rider for?
CREATE TABLE table_name_7 (team VARCHAR, rider VARCHAR)
SELECT original_air_date FROM table_10718984_2 WHERE no_in_season = 23
When did the no. 23 show originally air?
CREATE TABLE table_10718984_2 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT MIN(against) FROM table_name_16 WHERE draws > 0
What was the lowest against when the draw was at least 0?
CREATE TABLE table_name_16 (against INTEGER, draws INTEGER)
SELECT goals FROM table_name_86 WHERE date = "3/10/97"
What were the goals on 3/10/97?
CREATE TABLE table_name_86 (goals VARCHAR, date VARCHAR)
SELECT frame_size FROM table_name_44 WHERE audio_coding = "pcm 4 ch/16 bit/48khz" AND format_name = "dvcam" AND color_sampling = "4:1:1"
What frame size has pcm 4 ch/16 bit/48khz as audio coding and dvcam as the format name and 4:1:1 as the color sampling?
CREATE TABLE table_name_44 (frame_size VARCHAR, color_sampling VARCHAR, audio_coding VARCHAR, format_name VARCHAR)
SELECT week_sent_to_third_island FROM table_11764007_2 WHERE week_arrived_on_main_island = "6"
What week was the member who arrived on the main island in week 6 sent to the third island?
CREATE TABLE table_11764007_2 (week_sent_to_third_island VARCHAR, week_arrived_on_main_island VARCHAR)
SELECT final_score FROM table_name_25 WHERE stadium = "heinz field"
What was the final score at Heinz Field?
CREATE TABLE table_name_25 (final_score VARCHAR, stadium VARCHAR)
SELECT broadcast_date FROM table_1785117_1 WHERE run_time = "25:12"
What is the broadcast date of the episode with run time 25:12?
CREATE TABLE table_1785117_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT club FROM table_name_61 WHERE city = "vila do conde"
What is the club from Vila Do Conde?
CREATE TABLE table_name_61 (club VARCHAR, city VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_30 WHERE settlement = "Rabe"
What is the cyrillic and other name of rabe?
CREATE TABLE table_2562572_30 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
SELECT country FROM table_name_29 WHERE hdtv = "yes" AND content = "cinema"
What is Country, when HDTV is yes, and when Content is cinema?
CREATE TABLE table_name_29 (country VARCHAR, hdtv VARCHAR, content VARCHAR)
SELECT MIN(no) FROM table_19630743_2 WHERE tournament = "BMW Championship"
What is the minimum number of the bmw championship tournament.
CREATE TABLE table_19630743_2 (no INTEGER, tournament VARCHAR)
SELECT tries_for FROM table_15467476_3 WHERE club = "Cambrian Welfare RFC"
How many tries for, for club cambrian welfare rfc?
CREATE TABLE table_15467476_3 (tries_for VARCHAR, club VARCHAR)
SELECT 1997 FROM table_name_63 WHERE 1996 = "1r" AND 1990 = "2r" AND 1991 = "f"
What is 1997, when 1996 is "1R", when 1990 is "2R", and when 1991 is "F"?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress"
What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?
CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)
SELECT score FROM table_name_99 WHERE home = "new york islanders"
What was the score of the game when they played at new york islanders?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
SELECT MAX(bronze) FROM table_name_58 WHERE nation = "canada"
How many total bronze medals did Canada receive?
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR)
SELECT Team, COUNT(*) FROM technician GROUP BY Team
Show different teams of technicians and the number of technicians in each team.
CREATE TABLE technician (Team VARCHAR)
SELECT location_[l_] FROM table_name_8 WHERE river_mile > 938.9 AND locks_ & _dam = "olmsted locks and dam"
What is the location of the river mile that is larger than 938.9, and Olmsted Locks and Dam?
CREATE TABLE table_name_8 (location_ VARCHAR, l_ VARCHAR, river_mile VARCHAR, locks_ VARCHAR, _dam VARCHAR)
SELECT chipset FROM table_name_17 WHERE memory = "rambus" AND fsb__mhz_ = "400 or 533" AND model = "precision 340"
What is the chipset in the Precision 340 model that has the rambus memory and 400 or 533 FSB (MHz)?
CREATE TABLE table_name_17 (chipset VARCHAR, model VARCHAR, memory VARCHAR, fsb__mhz_ VARCHAR)
SELECT COUNT(mens_doubles) FROM table_12171145_1 WHERE womens_doubles = "Catrine Bengtsson Margit Borg"
How many mens doubles when womens doubles is catrine bengtsson margit borg?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_doubles VARCHAR)
SELECT college_junior_club_team FROM table_1965650_7 WHERE player = "Dan Follet"
Who did Dan Follet play for before the draft?
CREATE TABLE table_1965650_7 (college_junior_club_team VARCHAR, player VARCHAR)