answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT 2005 AS _film FROM table_26436_2 WHERE role = "Mark Cohen"
Who was in the 2005 film with the role mark cohen?
CREATE TABLE table_26436_2 (role VARCHAR)
SELECT power_plant FROM table_name_97 WHERE year_of_commission = 2008
What power plant was commissioned in 2008?
CREATE TABLE table_name_97 (power_plant VARCHAR, year_of_commission VARCHAR)
SELECT total_tenure_rank FROM table_name_6 WHERE uninterrupted_time = "49 years, 349 days"
What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days?
CREATE TABLE table_name_6 (total_tenure_rank VARCHAR, uninterrupted_time VARCHAR)
SELECT MAX(no_in_season) FROM table_21165255_1 WHERE production_code = 4300062
Name the number in season for 4300062
CREATE TABLE table_21165255_1 (no_in_season INTEGER, production_code VARCHAR)
SELECT MIN(crowd) FROM table_name_97 WHERE home_team = "essendon"
What was the smallest crowd at a home game for essendon?
CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(runners_up) FROM table_name_44 WHERE team = "pachuca" AND winners > 1
When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?
CREATE TABLE table_name_44 (runners_up INTEGER, team VARCHAR, winners VARCHAR)
SELECT kinka_12 FROM table_name_35 WHERE kinka_pre_release = "no" AND kinka_developer = "yes"
What is the KINKA 1.2 when the pre-release is no and the developer is yes?
CREATE TABLE table_name_35 (kinka_12 VARCHAR, kinka_pre_release VARCHAR, kinka_developer VARCHAR)
SELECT money___$__ FROM table_name_22 WHERE player = "ernie els"
What was the Money for Player Ernie Els?
CREATE TABLE table_name_22 (money___$__ VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_21 WHERE time = "1:19"
Who is the opponent with a time of 1:19?
CREATE TABLE table_name_21 (opponent VARCHAR, time VARCHAR)
SELECT band FROM table_name_52 WHERE callsign = "4cca"
What band does 4cca use?
CREATE TABLE table_name_52 (band VARCHAR, callsign VARCHAR)
SELECT date FROM table_name_56 WHERE name = "orangeville"
What is the date for Orangeville?
CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR)
SELECT original_air_date FROM table_24425976_2 WHERE production_code = "108"
What original air date was for the episode with production code of 108?
CREATE TABLE table_24425976_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT MAX(lost) FROM table_name_79 WHERE points = 25
What is the highest number of losses with 25 points?
CREATE TABLE table_name_79 (lost INTEGER, points VARCHAR)
SELECT MIN(_number_s_reservoir_and_gnis_query_link) FROM table_18760137_2 WHERE _number_s_lake_and_gnis_query_link = 60
Name the minimum number of reservoir for gnis query link where numbers lake gnis query link being 60
CREATE TABLE table_18760137_2 (_number_s_reservoir_and_gnis_query_link INTEGER, _number_s_lake_and_gnis_query_link VARCHAR)
SELECT COUNT(no_in_season) FROM table_19995378_1 WHERE us_viewers__millions_ = "8.69"
How many episodes with different series numbers were seen by 8.69 people in the US?
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT pinyin FROM table_name_4 WHERE wade_giles = "hsin-yüan-i-ma"
What is the Pinyin translation of the Wade-Giles of hsin-yüan-i-ma?
CREATE TABLE table_name_4 (pinyin VARCHAR, wade_giles VARCHAR)
SELECT english_title FROM table_27423508_1 WHERE result = "Nominee"
What was the English title fo the film that was a nominee?
CREATE TABLE table_27423508_1 (english_title VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_81 WHERE week < 4 AND record = "2–1"
How many were in attendance in a week less than 4 with a record of 2–1?
CREATE TABLE table_name_81 (attendance VARCHAR, week VARCHAR, record VARCHAR)
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals"
Name the least season number for two marriage proposals
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)
SELECT AVG(round) FROM table_name_56 WHERE position = "tight end" AND player = "randy bethel"
What is the average round at which is the position of Tight End and Randy Bethel?
CREATE TABLE table_name_56 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT directed_by FROM table_16090262_1 WHERE tv_broadcast = "S07E04"
Who directed the show that had a TV broadcast of S07E04?
CREATE TABLE table_16090262_1 (directed_by VARCHAR, tv_broadcast VARCHAR)
SELECT DISTINCT product_size FROM Products
Show all product sizes.
CREATE TABLE Products (product_size VARCHAR)
SELECT COUNT(production_code) FROM table_17623902_1 WHERE written_by = "Julie Martin"
How many episodes did Julie Martin wrote for the show If every episode has its own production code?
CREATE TABLE table_17623902_1 (production_code VARCHAR, written_by VARCHAR)
SELECT to_par FROM table_name_1 WHERE place = "t8" AND score = 73 - 68 = 141 AND country = "zimbabwe"
What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141?
CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = "TPA TPA2 RTPA Internacional"
What is the autonomous community with television channels tpa tpa2 rtpa internacional?
CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR)
SELECT year FROM table_name_14 WHERE developer = "avatar reality"
What year did Avatar Reality release a game?
CREATE TABLE table_name_14 (year VARCHAR, developer VARCHAR)
SELECT round FROM table_21256068_3 WHERE attendance = 9359
state the round that had a game attended attended by 9359 people
CREATE TABLE table_21256068_3 (round VARCHAR, attendance VARCHAR)
SELECT political_affiliation FROM table_name_39 WHERE deputy = "john dallat"
What is the Political affiliation of deputy john dallat?
CREATE TABLE table_name_39 (political_affiliation VARCHAR, deputy VARCHAR)
SELECT tv_season FROM table_2170969_2 WHERE viewers_in_millions = "2.52"
What season had 2.52 million viewers?
CREATE TABLE table_2170969_2 (tv_season VARCHAR, viewers_in_millions VARCHAR)
SELECT COUNT(foundation) FROM table_23143607_1 WHERE television_channels = "Canal Nou Canal Nou Dos Canal Nou 24 TVVi"
How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?
CREATE TABLE table_23143607_1 (foundation VARCHAR, television_channels VARCHAR)
SELECT home_captain FROM table_name_70 WHERE result = "[[|]] by 151 runs"
Who is the home captain of the match that resulted [[|]] by 151 runs?
CREATE TABLE table_name_70 (home_captain VARCHAR, result VARCHAR)
SELECT home_team FROM table_name_6 WHERE away_team = "canvey island"
Who was the home team for the away game that Canvey Island played?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT report FROM table_name_72 WHERE winning_driver = "mario razzauti"
What Report has a Winning driver of mario razzauti?
CREATE TABLE table_name_72 (report VARCHAR, winning_driver VARCHAR)
SELECT COUNT(league) FROM table_14962287_2 WHERE name = "Billy Meredith Category:Articles with hCards"
How many different Leagues are associated with Billy Meredith Category:Articles with hCards?
CREATE TABLE table_14962287_2 (league VARCHAR, name VARCHAR)
SELECT gs FROM table_17309500_1 WHERE points = "12.1"
Name the gs for points being 12.1
CREATE TABLE table_17309500_1 (gs VARCHAR, points VARCHAR)
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Luke Ellery" AND winning_driver = "Wayne Boyd"
Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?
CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT speed FROM table_name_28 WHERE rank < 3 AND time = "1:06.19.90"
What is the Speed when the rank is smaller than 3, and time is 1:06.19.90?
CREATE TABLE table_name_28 (speed VARCHAR, rank VARCHAR, time VARCHAR)
SELECT member FROM table_name_74 WHERE state = "sa" AND electorate = "grey"
Which member is from the state of SA and the grey electorate?
CREATE TABLE table_name_74 (member VARCHAR, state VARCHAR, electorate VARCHAR)
SELECT catalog FROM table_name_20 WHERE format = "lp" AND date = "april 12, 1968"
Released on April 12, 1968 in LP format, what was the catalog?
CREATE TABLE table_name_20 (catalog VARCHAR, format VARCHAR, date VARCHAR)
SELECT MAX(_number) FROM table_1266602_1 WHERE owner_s_ = "Jeff Gordon"
What is the biggest number of the team who's owned by Jeff Gordon?
CREATE TABLE table_1266602_1 (_number INTEGER, owner_s_ VARCHAR)
SELECT written_by FROM table_12226390_2 WHERE no_in_series = 14
Who wrote the episode 14 in series?
CREATE TABLE table_12226390_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT time FROM table_name_28 WHERE away_team = "mutual team b"
What was the time for the match with away team Mutual Team B?
CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR)
SELECT away_team FROM table_name_93 WHERE tie_no = "2"
What was the name of the away team that had a tie of 2?
CREATE TABLE table_name_93 (away_team VARCHAR, tie_no VARCHAR)
SELECT SUM(attendance) FROM table_name_47 WHERE tie_no = "1"
How many attended tie number 1?
CREATE TABLE table_name_47 (attendance INTEGER, tie_no VARCHAR)
SELECT surface FROM table_name_61 WHERE opponent = "ivo klec" AND score = "6–3, 6–3"
What is the Surface of the court against Ivo Klec with a Score of 6–3, 6–3?
CREATE TABLE table_name_61 (surface VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT MIN(long) FROM table_name_56 WHERE yards = 293 AND returns < 16
Can you tell me the lowest Long that has the Yards 293, and the Returns smaller than 16?
CREATE TABLE table_name_56 (long INTEGER, yards VARCHAR, returns VARCHAR)
SELECT longitude FROM table_name_27 WHERE latitude = "77°28′n"
If the latitude is 77°28′n, what is the longitude?
CREATE TABLE table_name_27 (longitude VARCHAR, latitude VARCHAR)
SELECT podiums FROM table_name_89 WHERE wins = "4"
What is the number of podiums associated with 4 wins?
CREATE TABLE table_name_89 (podiums VARCHAR, wins VARCHAR)
SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = "bdi-21"
Which class from 1928 had a class to 1928 of BDi-21?
CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR)
SELECT COUNT(name) FROM table_15827397_1 WHERE livery = "Highland Railway green"
How many locomotives have a livery that is highland railway green
CREATE TABLE table_15827397_1 (name VARCHAR, livery VARCHAR)
SELECT record FROM table_name_24 WHERE game < 19 AND points < 19 AND score = "4–6"
Which Record has a Game smaller than 19, and Points smaller than 19, and a Score of 4–6?
CREATE TABLE table_name_24 (record VARCHAR, score VARCHAR, game VARCHAR, points VARCHAR)
SELECT COUNT(high_points) FROM table_29556461_9 WHERE team = "UMass"
How many high points occur with the team Umass?
CREATE TABLE table_29556461_9 (high_points VARCHAR, team VARCHAR)
SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california"
What position has a pick less than 25 for the university of california?
CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR)
SELECT player FROM table_name_94 WHERE country = "united states" AND score = 75 - 70 - 68 = 211
Who is the player from the United States with a 75-70-68=211 score?
CREATE TABLE table_name_94 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT COUNT(pf) FROM table_25176088_2 WHERE stolen_ends = 3
What are the number of points for associated with exactly 3 stolen ends?
CREATE TABLE table_25176088_2 (pf VARCHAR, stolen_ends VARCHAR)
SELECT COUNT(no) FROM table_28358487_3 WHERE production_code = 101
what is the number of the episode in the season whose production code is 101?
CREATE TABLE table_28358487_3 (no VARCHAR, production_code VARCHAR)
SELECT winner FROM table_name_31 WHERE location = "philadelphia municipal stadium" AND year = 1939
Who was the winner in philadelphia municipal stadium in 1939?
CREATE TABLE table_name_31 (winner VARCHAR, location VARCHAR, year VARCHAR)
SELECT narrator FROM table_1681535_1 WHERE notes = "Bonus interview with Frazer Hines"
Which narrator has the bonus interview with Frazer Hines?
CREATE TABLE table_1681535_1 (narrator VARCHAR, notes VARCHAR)
SELECT MIN(rank) FROM table_name_81 WHERE time = "7:09.06"
What is the lowest rank has 7:09.06 as the time?
CREATE TABLE table_name_81 (rank INTEGER, time VARCHAR)
SELECT MAX(production_code) FROM table_26448179_4
What is the highest production code?
CREATE TABLE table_26448179_4 (production_code INTEGER)
SELECT score FROM table_name_85 WHERE surface = "hard" AND opponent_in_the_final = "peter gojowczyk"
What was the score of the match that was a played on a hard surface against Peter Gojowczyk?
CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT last_match FROM table_23819979_3 WHERE final_place = "Argentina - Estadio José María Minella"
Name the last match for argentina - estadio josé maría minella
CREATE TABLE table_23819979_3 (last_match VARCHAR, final_place VARCHAR)
SELECT song_choice FROM table_name_26 WHERE order__number = "4"
What is the Song choice when there is an Order # of 4?
CREATE TABLE table_name_26 (song_choice VARCHAR, order__number VARCHAR)
SELECT COUNT(place__posición_) FROM table_name_53 WHERE draw__pe_ > 2 AND team__equipo_ = "paraíso" AND won__pg_ > 6
How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?
CREATE TABLE table_name_53 (place__posición_ VARCHAR, won__pg_ VARCHAR, draw__pe_ VARCHAR, team__equipo_ VARCHAR)
SELECT position FROM table_1473672_9 WHERE player = "Ray Boutin"
what's the position with player being ray boutin
CREATE TABLE table_1473672_9 (position VARCHAR, player VARCHAR)
SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = "92.68"
In what year was the average speed 92.68?
CREATE TABLE table_2268216_1 (year VARCHAR, average_speed__mph_ VARCHAR)
SELECT MAX(pick__number) FROM table_name_57 WHERE college = "penn state"
What was the highest pick for Penn State?
CREATE TABLE table_name_57 (pick__number INTEGER, college VARCHAR)
SELECT chassis FROM table_name_55 WHERE points = 52
Which chassis scored 52 points?
CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR)
SELECT set_3 FROM table_name_22 WHERE time = "10:00" AND set_2 = "25–19"
Which Set 3 has a Time of 10:00, and a Set 2 of 25–19?
CREATE TABLE table_name_22 (set_3 VARCHAR, time VARCHAR, set_2 VARCHAR)
SELECT type FROM table_name_42 WHERE artist = "hiroyuki takami"
What Type has the Artist of Hiroyuki Takami?
CREATE TABLE table_name_42 (type VARCHAR, artist VARCHAR)
SELECT start FROM table_name_18 WHERE laps = 55
What is the start of lap 55?
CREATE TABLE table_name_18 (start VARCHAR, laps VARCHAR)
SELECT quantity_preserved FROM table_name_17 WHERE class = "e-1"
What is the quantity preserved of the e-1 class?
CREATE TABLE table_name_17 (quantity_preserved VARCHAR, class VARCHAR)
SELECT set_1 FROM table_name_10 WHERE set_3 = "22–25"
What is the score for set 1 when the score for set 3 is 22–25?
CREATE TABLE table_name_10 (set_1 VARCHAR, set_3 VARCHAR)
SELECT date FROM table_28803803_1 WHERE name = "Falling Angel"
What are the dates that Falling Angel aired?
CREATE TABLE table_28803803_1 (date VARCHAR, name VARCHAR)
SELECT MAX(lane) FROM table_name_31 WHERE name = "christine mailliet" AND rank < 39
What is the highest lane for Christine Mailliet ranked less than 39?
CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR)
SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = "12" AND time_retired = "Accident"
Name the total number of fin pos for 12 points of accident
CREATE TABLE table_17304308_1 (fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR)
SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1"
What is the name of the tourist attraction that is associated with the photo "game1"?
CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE PHOTOS (Tourist_Attraction_ID VARCHAR, Name VARCHAR)
SELECT score FROM table_name_85 WHERE points = 96
What was the score of the game with 96 points?
CREATE TABLE table_name_85 (score VARCHAR, points VARCHAR)
SELECT 1 AS st_member FROM table_name_23 WHERE election = "1895"
Which 1st Member has an Election of 1895?
CREATE TABLE table_name_23 (election VARCHAR)
SELECT result FROM table_18207285_2 WHERE attendance = 31095
What was the result of the game seen by 31095 people?
CREATE TABLE table_18207285_2 (result VARCHAR, attendance VARCHAR)
SELECT score_in_the_final FROM table_name_29 WHERE date = "august 25, 1996"
What was the final score for the August 25, 1996 match?
CREATE TABLE table_name_29 (score_in_the_final VARCHAR, date VARCHAR)
SELECT date FROM table_name_27 WHERE home_team = "hartlepool united"
What was the date of the game for the HartlePool United team?
CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR)
SELECT school_club_team FROM table_name_70 WHERE nationality = "united states" AND position = "guard" AND years_for_grizzlies = "2012"
What team is from the United States and plays a guard position for the Grizzlies in 2012?
CREATE TABLE table_name_70 (school_club_team VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT episode FROM table_2101431_1 WHERE viewers__in_millions_ = "7.2"
Which episode was watched by 7.2 million viewers?
CREATE TABLE table_2101431_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271)
What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)?
CREATE TABLE table_name_55 (date VARCHAR, winning_score VARCHAR)
SELECT paperback FROM table_16907214_1 WHERE title = "Dead as a Doornail"
What is the ISBN of "Dead as a Doornail?
CREATE TABLE table_16907214_1 (paperback VARCHAR, title VARCHAR)
SELECT name FROM table_name_70 WHERE aafc_team = "los angeles dons" AND position = "fb" AND college = "oklahoma a&m"
Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?
CREATE TABLE table_name_70 (name VARCHAR, college VARCHAR, aafc_team VARCHAR, position VARCHAR)
SELECT opponent FROM table_name_73 WHERE game > 61 AND february < 28 AND points < 69
Which opponent has a game larger than 61, february smaller than 28, and fewer points than 69?
CREATE TABLE table_name_73 (opponent VARCHAR, points VARCHAR, game VARCHAR, february VARCHAR)
SELECT name FROM table_name_95 WHERE pos = "d" AND club = "circolo nautico posillipo"
What is the name of the player from club Circolo Nautico Posillipo and a position of D?
CREATE TABLE table_name_95 (name VARCHAR, pos VARCHAR, club VARCHAR)
SELECT tries_against FROM table_12828723_4 WHERE won = "14"
What is the tries against when the won is 14?
CREATE TABLE table_12828723_4 (tries_against VARCHAR, won VARCHAR)
SELECT election FROM table_name_11 WHERE first_party = "conservative" AND first_member = "rowland smith" AND second_member = "sir henry wilmot, bt"
Which election has a conservative first party, Rowland Smith as first member, and Sir Henry Wilmot, Bt as second member?
CREATE TABLE table_name_11 (election VARCHAR, second_member VARCHAR, first_party VARCHAR, first_member VARCHAR)
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)"
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
CREATE TABLE table_name_66 (screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR)
SELECT MIN(crowd) FROM table_name_10 WHERE venue = "punt road oval"
What is the smallest crowd at punt road oval?
CREATE TABLE table_name_10 (crowd INTEGER, venue VARCHAR)
SELECT record FROM table_name_37 WHERE high_rebounds = "antonio davis (14)"
What is the Record when antonio davis (14) had the high rebounds?
CREATE TABLE table_name_37 (record VARCHAR, high_rebounds VARCHAR)
SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "North Coast"
Find the names of all distinct wines that have appellations in North Coast area.
CREATE TABLE APPELLATIONs (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR)
SELECT AVG(tie_no) FROM table_name_11 WHERE home_team = "stamford a.f.c."
what is the average tie no when the home team is stamford a.f.c.?
CREATE TABLE table_name_11 (tie_no INTEGER, home_team VARCHAR)
SELECT title FROM table_15824796_3 WHERE original_air_date = "February 27, 1954"
What is the title of the first episode of the season that begin on february 27, 1954?
CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR)
SELECT 2 AS nd_round FROM table_name_91 WHERE team_2 = "red star (d1)"
Who is the 2nd round opponent when Team 2 is Red Star (D1)?
CREATE TABLE table_name_91 (team_2 VARCHAR)
SELECT date FROM table_name_45 WHERE margin_of_victory = "3 and 2"
Which date's margin of victory was 3 and 2?
CREATE TABLE table_name_45 (date VARCHAR, margin_of_victory VARCHAR)
SELECT AVG(scored) FROM table_name_24 WHERE competition = "friendly" AND venue = "kryoia soveto, moscow"
What is the average number scored in a friendly at kryoia soveto, moscow?
CREATE TABLE table_name_24 (scored INTEGER, competition VARCHAR, venue VARCHAR)