answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT event FROM table_22050544_4 WHERE event__number = "8M"
What is the event name with the number 8M?
CREATE TABLE table_22050544_4 (event VARCHAR, event__number VARCHAR)
SELECT year FROM table_name_24 WHERE film = "7th heaven"
What year was 7th heaven made?
CREATE TABLE table_name_24 (year VARCHAR, film VARCHAR)
SELECT MIN(year) FROM table_name_71 WHERE venue = "santiago, chile" AND event = "400 m hurdles"
What was the earliest year for the 400 M Hurdles in Santiago, Chile?
CREATE TABLE table_name_71 (year INTEGER, venue VARCHAR, event VARCHAR)
SELECT COUNT(cover_model) FROM table_1566852_10 WHERE centerfold_model = "Jennifer Pershing"
How many cover models were on the edition that featured Jennifer Pershing as the centerfold?
CREATE TABLE table_1566852_10 (cover_model VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_name_57 WHERE record = "15-27"
What is the Date of the game where the Cavaliers have a Record of 15-27?
CREATE TABLE table_name_57 (date VARCHAR, record VARCHAR)
SELECT march FROM table_name_3 WHERE november = "cara wakelin"
Who is the March playmate with a November playmate Cara Wakelin?
CREATE TABLE table_name_3 (march VARCHAR, november VARCHAR)
SELECT eliminated AS by FROM table_name_42 WHERE entered < 2
Which Eliminated has an Entered smaller than 2?
CREATE TABLE table_name_42 (eliminated VARCHAR, entered INTEGER)
SELECT MAX(week) FROM table_24278858_2 WHERE opponent = "Amsterdam Admirals"
What week did they play the amsterdam admirals?
CREATE TABLE table_24278858_2 (week INTEGER, opponent VARCHAR)
SELECT opponents_in_final FROM table_name_22 WHERE surface = "hard" AND score_in_final = "6–1, 1–6, 7–6(4)"
Who were the opponents in the final when the game was played on hard surface and the score of the final was 6–1, 1–6, 7–6(4)?
CREATE TABLE table_name_22 (opponents_in_final VARCHAR, surface VARCHAR, score_in_final VARCHAR)
SELECT MAX(round4) FROM table_24784769_1
What is the most amount of points any team had in round 4?
CREATE TABLE table_24784769_1 (round4 INTEGER)
SELECT outcome FROM table_name_51 WHERE opponent = "nguyen tien minh" AND tournament = "bulgaria open"
What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open?
CREATE TABLE table_name_51 (outcome VARCHAR, opponent VARCHAR, tournament VARCHAR)
SELECT team FROM table_13619053_9 WHERE record = "15-63"
Which team was in a game with a record of 15-63?
CREATE TABLE table_13619053_9 (team VARCHAR, record VARCHAR)
SELECT COUNT(total) FROM table_name_89 WHERE silver = 1 AND gold < 0
What is the Total medals for the Nation with 1 Silver and 0 Golds?
CREATE TABLE table_name_89 (total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(pick) FROM table_name_98 WHERE school = "southern mississippi"
What is the Pick # of the Player from Southern MIssissippi?
CREATE TABLE table_name_98 (pick VARCHAR, school VARCHAR)
SELECT AVG(change___percentage_) FROM table_name_51 WHERE land_area__km²_ = 546.74 AND population_density__per_km²_ > 0.5
What is the average change to have a land area of 546.74 and a population density greater than 0.5?
CREATE TABLE table_name_51 (change___percentage_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
SELECT power FROM table_name_50 WHERE city_of_license = "beaver creek"
What is the power when the city of license is Beaver Creek?
CREATE TABLE table_name_50 (power VARCHAR, city_of_license VARCHAR)
SELECT MAX(first_issued) FROM table_name_26 WHERE color = "green"
When was Color of green last issued?
CREATE TABLE table_name_26 (first_issued INTEGER, color VARCHAR)
SELECT type FROM table_name_11 WHERE e_coli = "muty"
What is the type of glycosylase that has an E. coli of Muty?
CREATE TABLE table_name_11 (type VARCHAR, e_coli VARCHAR)
SELECT SUM(round) FROM table_name_91 WHERE nationality = "united states" AND pick = 125
What is the sum of Round, when Nationality is "United States", and when Pick is "125"?
CREATE TABLE table_name_91 (round INTEGER, nationality VARCHAR, pick VARCHAR)
SELECT MIN(lane) FROM table_name_32 WHERE mark = "7.35"
When the mark is 7.35, what's the lowest Lane found?
CREATE TABLE table_name_32 (lane INTEGER, mark VARCHAR)
SELECT team FROM table_name_45 WHERE founded < 1883 AND type = "public"
What public team was founded prior to 1883?
CREATE TABLE table_name_45 (team VARCHAR, founded VARCHAR, type VARCHAR)
SELECT COUNT(2001 AS _census) FROM table_10138926_1 WHERE _number = 13
How many 2001 censuses are there on number 13?
CREATE TABLE table_10138926_1 (_number VARCHAR)
SELECT away_captain FROM table_name_34 WHERE venue = "brisbane cricket ground"
Who was the away captain at Brisbane Cricket Ground?
CREATE TABLE table_name_34 (away_captain VARCHAR, venue VARCHAR)
SELECT date_of_vacancy FROM table_11190568_7 WHERE replaced_by = "Davy FitzGerald"
When is the date of vacancy of Davy Fitzgerald being a replacement?
CREATE TABLE table_11190568_7 (date_of_vacancy VARCHAR, replaced_by VARCHAR)
SELECT country FROM table_name_57 WHERE label = "control"
What country has the label Control?
CREATE TABLE table_name_57 (country VARCHAR, label VARCHAR)
SELECT power FROM table_name_43 WHERE displacement = "182cid (2,988cc)" AND notes = "eu spec"
What is the power when the displacement is 182cid (2,988cc) and the notes are eu spec?
CREATE TABLE table_name_43 (power VARCHAR, displacement VARCHAR, notes VARCHAR)
SELECT object_type FROM table_name_61 WHERE ngc_number > 2090 AND right_ascension___j2000__ = "05h52m19s"
What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s?
CREATE TABLE table_name_61 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT nationality FROM table_name_36 WHERE elector = "bertrand de saint-martin"
What is the Nationality with an Elector with bertrand de saint-martin?
CREATE TABLE table_name_36 (nationality VARCHAR, elector VARCHAR)
SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144
Which player scored 76-68=144?
CREATE TABLE table_name_28 (player VARCHAR, score VARCHAR)
SELECT lms_spr FROM table_name_60 WHERE car_no = "15"
Which is the LMS SPR when the car number was 15?
CREATE TABLE table_name_60 (lms_spr VARCHAR, car_no VARCHAR)
SELECT COUNT(sales) FROM table_name_49 WHERE rank < 6 AND certification = "2x platinum" AND peak_position = "2"
how many times is the rank less than 6, certification 2x platinum and the peak position 2?
CREATE TABLE table_name_49 (sales VARCHAR, peak_position VARCHAR, rank VARCHAR, certification VARCHAR)
SELECT loci FROM table_name_77 WHERE software = "cinderella"
Is there Loci in the Cinderella software?
CREATE TABLE table_name_77 (loci VARCHAR, software VARCHAR)
SELECT SUM(municipal_code) FROM table_name_35 WHERE party = "frp" AND area = 100
What's the Municipal code of the FRP Party with an area of 100?
CREATE TABLE table_name_35 (municipal_code INTEGER, party VARCHAR, area VARCHAR)
SELECT score FROM table_name_37 WHERE date = "22 august 2012"
Tell me the score on 22 august 2012
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT titles FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew"
What was the title for the Undercard of Stevenson/Bellew?
CREATE TABLE table_25840200_1 (titles VARCHAR, notes VARCHAR)
SELECT score FROM table_name_34 WHERE team = "toronto"
What was the score when the jazz played against toronto?
CREATE TABLE table_name_34 (score VARCHAR, team VARCHAR)
SELECT COUNT(grid) FROM table_name_87 WHERE time_retired = "+1.837"
How many grids are associated with a Time/Retired of +1.837?
CREATE TABLE table_name_87 (grid VARCHAR, time_retired VARCHAR)
SELECT finish FROM table_name_85 WHERE laps < 200 AND year = "1953"
What was the finish with less than 200 laps in 1953?
CREATE TABLE table_name_85 (finish VARCHAR, laps VARCHAR, year VARCHAR)
SELECT circuit FROM table_name_79 WHERE date = "10 may" AND name = "targa florio"
Tell me the circuit for 10 may for targa florio
CREATE TABLE table_name_79 (circuit VARCHAR, date VARCHAR, name VARCHAR)
SELECT headquarters FROM table_21514460_1 WHERE school_district = "Annapolis Valley Regional School Board"
Where is the headquarter located for the Annapolis Valley Regional School Board?
CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR)
SELECT MIN(crowd) FROM table_name_86 WHERE home_team = "west coast"
What is the lowest crowd of the west coast home team?
CREATE TABLE table_name_86 (crowd INTEGER, home_team VARCHAR)
SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120
What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?
CREATE TABLE table_name_49 (population__2011_ VARCHAR, population__2006_ VARCHAR)
SELECT date FROM table_name_3 WHERE runner_s__up = "bernhard langer" AND tournament = "at&t championship"
Which Date has a Runner(s)-up of bernhard langer, and a Tournament of at&t championship?
CREATE TABLE table_name_3 (date VARCHAR, runner_s__up VARCHAR, tournament VARCHAR)
SELECT writer FROM table_name_21 WHERE issue = 224
What is the name of the writer for issue 224?
CREATE TABLE table_name_21 (writer VARCHAR, issue VARCHAR)
SELECT MAX(col__m_) FROM table_name_91 WHERE rank < 7 AND peak = "puncak jaya (carstensz pyramid)" AND prominence__m_ < 4 OFFSET 884
What is the highest col in m of the puncak jaya (carstensz pyramid) peak, which is ranked lower than 7 and has a prominence less than 4,884 m?
CREATE TABLE table_name_91 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR)
SELECT record FROM table_name_52 WHERE date = "december 2, 2001"
What is the Record for the game held on December 2, 2001?
CREATE TABLE table_name_52 (record VARCHAR, date VARCHAR)
SELECT MIN(silver) FROM table_name_97 WHERE bronze = 40 AND gold > 42
What is the fewest number of silver medals received by a nation who received 40 bronze medals and more than 42 gold medals?
CREATE TABLE table_name_97 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT bore_ & _stroke FROM table_name_9 WHERE engine = "351-2v cleveland v8"
Tell me the bore and stroke for Engine of 351-2v cleveland v8
CREATE TABLE table_name_9 (bore_ VARCHAR, _stroke VARCHAR, engine VARCHAR)
SELECT total FROM table_name_63 WHERE to_par = "+4"
What is the total with a +4 to par?
CREATE TABLE table_name_63 (total VARCHAR, to_par VARCHAR)
SELECT hanyu_pinyin FROM table_name_98 WHERE gdp_2011__billion_yuan_ > 688.02 AND regional_population_2010_ = "8,700,400"
Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?
CREATE TABLE table_name_98 (hanyu_pinyin VARCHAR, gdp_2011__billion_yuan_ VARCHAR, regional_population_2010_ VARCHAR)
SELECT MAX(3 AS _car_sets) FROM table_19255192_2
Name the most 3 car sets
CREATE TABLE table_19255192_2 (Id VARCHAR)
SELECT date FROM table_name_28 WHERE serial = "11c"
Which date has serial of 11c?
CREATE TABLE table_name_28 (date VARCHAR, serial VARCHAR)
SELECT qaxmuğal FROM table_name_81 WHERE fıstıqlı = "keşqutan"
What is the Qaxmuğal village with a Fistiqli village keşqutan?
CREATE TABLE table_name_81 (qaxmuğal VARCHAR, fıstıqlı VARCHAR)
SELECT pregame_analysts FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez" AND network = "TSN2"
What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2?
CREATE TABLE table_17516922_1 (pregame_analysts VARCHAR, sideline_reporters VARCHAR, network VARCHAR)
SELECT original_air_date FROM table_29063233_1 WHERE uk_viewers__million_ = "6.02"
What was the airdate of the episode with a UK viewership of 6.02 million?
CREATE TABLE table_29063233_1 (original_air_date VARCHAR, uk_viewers__million_ VARCHAR)
SELECT date FROM table_name_22 WHERE visitor = "san antonio spurs" AND score = "97-113"
When did the Visiting San Antonio Spurs score 97-113?
CREATE TABLE table_name_22 (date VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT SUM(attendance) FROM table_name_9 WHERE result = "w 24–21" AND week < 6
Result of w 24–21, and a Week smaller than 6 had what sum of attendance?
CREATE TABLE table_name_9 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT fastest_lap FROM table_name_68 WHERE round = "5" AND winning_driver = "james winslow"
What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?
CREATE TABLE table_name_68 (fastest_lap VARCHAR, round VARCHAR, winning_driver VARCHAR)
SELECT COUNT(points) FROM table_name_95 WHERE year < 1955
How many points were there before 1955?
CREATE TABLE table_name_95 (points VARCHAR, year INTEGER)
SELECT home_team FROM table_name_12 WHERE tie_no = "44"
Which home team has 44 ties?
CREATE TABLE table_name_12 (home_team VARCHAR, tie_no VARCHAR)
SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = "Solveig"
Find all the stage positions of the musicians with first name "Solveig"
CREATE TABLE Band (id VARCHAR); CREATE TABLE Performance (stageposition VARCHAR, bandmate VARCHAR)
SELECT entrant FROM table_name_50 WHERE year > 1990 AND engine = "ford v8" AND points = 8 AND chassis = "jordan 191"
Who used Ford v8 and Jordan 191 after 1990 and got 8 points?
CREATE TABLE table_name_50 (entrant VARCHAR, chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT COUNT(number) FROM table_name_62 WHERE builder = "hunslet" AND works_number > 822
What is the number with the builder hunslet and a works number greater than 822?
CREATE TABLE table_name_62 (number VARCHAR, builder VARCHAR, works_number VARCHAR)
SELECT other_hotel_details, star_rating_code FROM HOTELS ORDER BY price_range LIMIT 3
Show the details and star ratings of the 3 least expensive hotels.
CREATE TABLE HOTELS (other_hotel_details VARCHAR, star_rating_code VARCHAR, price_range VARCHAR)
SELECT venue FROM table_name_11 WHERE goal__number = 2
What was the venue where goal #2 occured?
CREATE TABLE table_name_11 (venue VARCHAR, goal__number VARCHAR)
SELECT attendance FROM table_name_8 WHERE result = "l 35–14"
What was the attendance of the game that had a score of l 35–14?
CREATE TABLE table_name_8 (attendance VARCHAR, result VARCHAR)
SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican"
What Republican incumbent was elected in 1974?
CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR)
SELECT score FROM table_name_83 WHERE december = 11
What is the score for the Dec 11 game?
CREATE TABLE table_name_83 (score VARCHAR, december VARCHAR)
SELECT MIN(points) FROM table_name_52 WHERE grid > 5 AND time_retired = "fire"
What is the smallest point total when the grid is larger than 5 and the time/retired is fire?
CREATE TABLE table_name_52 (points INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT written_by FROM table_20538157_2 WHERE no_in_season = 20
Who were the writers of episode 20?
CREATE TABLE table_20538157_2 (written_by VARCHAR, no_in_season VARCHAR)
SELECT AVG(rd__number) FROM table_name_2 WHERE player = "dane jackson" AND pick__number > 44
What's the average Rd number for dane jackson with a pick number over 44?
CREATE TABLE table_name_2 (rd__number INTEGER, player VARCHAR, pick__number VARCHAR)
SELECT mission_name FROM table_1558077_8 WHERE lunar_landing_site = "Ocean of Storms"
Name the mission name for ocean of storms
CREATE TABLE table_1558077_8 (mission_name VARCHAR, lunar_landing_site VARCHAR)
SELECT away FROM table_name_69 WHERE ground = "humber college north" AND time = "12:00"
With the Ground of Humber College North at 12:00, what was the Away?
CREATE TABLE table_name_69 (away VARCHAR, ground VARCHAR, time VARCHAR)
SELECT place FROM table_name_62 WHERE artist = "roger pontare"
What place for roger pontare?
CREATE TABLE table_name_62 (place VARCHAR, artist VARCHAR)
SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'
What is the phone number of the man with the first name Timmothy and the last name Ward?
CREATE TABLE Students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT round FROM table_name_24 WHERE method = "tko (cut)"
What round did the match go to when tko (cut) was the method?
CREATE TABLE table_name_24 (round VARCHAR, method VARCHAR)
SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1
Show the people that have been governor the most times.
CREATE TABLE party (Governor VARCHAR)
SELECT round FROM table_name_55 WHERE name = "john goodyear"
Which Round has a Name of john goodyear?
CREATE TABLE table_name_55 (round VARCHAR, name VARCHAR)
SELECT scores FROM table_23292220_4 WHERE seans_team = "John Barrowman and Vic Reeves"
What was the score in the episode with john barrowman and vic reeves on sean's team?
CREATE TABLE table_23292220_4 (scores VARCHAR, seans_team VARCHAR)
SELECT air_date FROM table_11244302_1 WHERE share = 11
Which air date had an 11 share
CREATE TABLE table_11244302_1 (air_date VARCHAR, share VARCHAR)
SELECT honor FROM table_name_97 WHERE singular = "ẽr (his/her/its)"
What is Honor, when Singular is ẽr (his/her/its)?
CREATE TABLE table_name_97 (honor VARCHAR, singular VARCHAR)
SELECT college_junior_club_team FROM table_2781227_7 WHERE nhl_team = "Pittsburgh Penguins"
What college team did the pick for Pittsburgh Penguins come from?
CREATE TABLE table_2781227_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT high_points FROM table_17190012_7 WHERE record = "27–5"
who scored highest points on the game with record 27–5
CREATE TABLE table_17190012_7 (high_points VARCHAR, record VARCHAR)
SELECT category FROM table_name_37 WHERE nominated = "maite perroni" AND year < 2009
Which category was Maite Perroni nominated for earlier than 2009?
CREATE TABLE table_name_37 (category VARCHAR, nominated VARCHAR, year VARCHAR)
SELECT english FROM table_26919_7 WHERE aramaic = "šlām-āʼ"
if the aramaic is šlām-āʼ, what is the english?
CREATE TABLE table_26919_7 (english VARCHAR, aramaic VARCHAR)
SELECT rr4_pts FROM table_21489362_2 WHERE total_pts = 70
When 70 is the total points what is the rr4 points?
CREATE TABLE table_21489362_2 (rr4_pts VARCHAR, total_pts VARCHAR)
SELECT date FROM table_24989925_2 WHERE game_site = "Olympic Stadium"
What is the date of the game at Olympic Stadium?
CREATE TABLE table_24989925_2 (date VARCHAR, game_site VARCHAR)
SELECT Date, LOCATION FROM performance
What are the dates and locations of performances?
CREATE TABLE performance (Date VARCHAR, LOCATION VARCHAR)
SELECT COUNT(pick) FROM table_name_82 WHERE player = "brandon rush"
WHAT WAS THE PICK NUMBER FOR BRANDON RUSH?
CREATE TABLE table_name_82 (pick VARCHAR, player VARCHAR)
SELECT MIN(round2) FROM table_name_88 WHERE round5 = 71 AND round4 > 64
what is the lowest round2 when round5 is 71 and round4 is more than 64?
CREATE TABLE table_name_88 (round2 INTEGER, round5 VARCHAR, round4 VARCHAR)
SELECT MAX(killed) FROM table_name_34 WHERE perpetrator = "basobas, florentino"
How many kills did basobas, florentino have?
CREATE TABLE table_name_34 (killed INTEGER, perpetrator VARCHAR)
SELECT date FROM table_30073089_2 WHERE location = "S. Valentino Alla Muta , Italia"
Name the date for s. valentino alla muta , italia
CREATE TABLE table_30073089_2 (date VARCHAR, location VARCHAR)
SELECT AVG(pole) FROM table_name_26 WHERE race < 16 AND flap > 8 AND podium > 11
What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?
CREATE TABLE table_name_26 (pole INTEGER, podium VARCHAR, race VARCHAR, flap VARCHAR)
SELECT coach FROM table_name_75 WHERE most_improved = "rory thompson"
Which Coach has a Most Improved of rory thompson?
CREATE TABLE table_name_75 (coach VARCHAR, most_improved VARCHAR)
SELECT writer FROM table_14778650_1 WHERE length = "4:29"
Who was the writer for the song 4:29 in length?
CREATE TABLE table_14778650_1 (writer VARCHAR, length VARCHAR)
SELECT institution FROM table_29612224_1 WHERE school_website = "http://www.mfschools.org/high/"
What's the name of the city or town of the school that operates the http://www.mfschools.org/high/ website?
CREATE TABLE table_29612224_1 (institution VARCHAR, school_website VARCHAR)
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
Find all the songs that do not have a back vocal.
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)
SELECT game FROM table_name_63 WHERE location = "chicago stadium"
Which game number was played at Chicago Stadium?
CREATE TABLE table_name_63 (game VARCHAR, location VARCHAR)
SELECT SUM(episode) FROM table_name_25 WHERE performer_1 = "jim sweeney" AND performer_4 = "mike mcshane"
What is the episode number where Jim Sweeney was performer 1 and Mike Mcshane was performer 4?
CREATE TABLE table_name_25 (episode INTEGER, performer_1 VARCHAR, performer_4 VARCHAR)
SELECT record FROM table_name_56 WHERE game = 61
Which Record has a Game of 61?
CREATE TABLE table_name_56 (record VARCHAR, game VARCHAR)