answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT venue FROM table_name_12 WHERE tournament = "olympic games" AND year = 2012
What Venue held the Olympic games in 2012?
CREATE TABLE table_name_12 (venue VARCHAR, tournament VARCHAR, year VARCHAR)
SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13
What is the goal difference sum that has goals against smaller than 33, draws larger than 13?
CREATE TABLE table_name_27 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR)
SELECT date FROM table_name_29 WHERE region = "united kingdom" AND format = "stereo lp"
When did the United Kingdom format a stereo LP?
CREATE TABLE table_name_29 (date VARCHAR, region VARCHAR, format VARCHAR)
SELECT appointment FROM table_name_31 WHERE name = "william a. costello"
When was William A. Costello appointed?
CREATE TABLE table_name_31 (appointment VARCHAR, name VARCHAR)
SELECT location FROM table_name_14 WHERE stop = "l" AND station = "tamagaki"
What is the location of Tamagaki station with an l stop?
CREATE TABLE table_name_14 (location VARCHAR, stop VARCHAR, station VARCHAR)
SELECT years_in_competition FROM table_name_2 WHERE premiership_years = "1982, 1984, 1999, 2002-03, 2008-09-10"
What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?
CREATE TABLE table_name_2 (years_in_competition VARCHAR, premiership_years VARCHAR)
SELECT artist_s_ FROM table_name_80 WHERE book_title = "cyberella"
what artist has a book called cyberella
CREATE TABLE table_name_80 (artist_s_ VARCHAR, book_title VARCHAR)
SELECT wicket FROM table_name_85 WHERE runs = "580"
Which wicket had 580 runs?
CREATE TABLE table_name_85 (wicket VARCHAR, runs VARCHAR)
SELECT AVG(silver) FROM table_name_75 WHERE gold < 0
What is the average of the silver that has less than 0 gold
CREATE TABLE table_name_75 (silver INTEGER, gold INTEGER)
SELECT COUNT(geo_id) FROM table_18600760_13 WHERE township = "Malcolm"
What is the geo id for malcolm township?
CREATE TABLE table_18600760_13 (geo_id VARCHAR, township VARCHAR)
SELECT date FROM table_name_13 WHERE venue = "kardinia park"
What is the date of the game when the venue is Kardinia Park?
CREATE TABLE table_name_13 (date VARCHAR, venue VARCHAR)
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20
What is the Total with the Event 2004 Athens and Gold less than 20?
CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR)
SELECT opponent FROM table_name_34 WHERE week = 3
Who was the opponent in week 3?
CREATE TABLE table_name_34 (opponent VARCHAR, week VARCHAR)
SELECT color_code__with_fusible_link_ FROM table_name_67 WHERE temperature_classification = "ordinary"
What is the color code with a temperature classification of ordinary?
CREATE TABLE table_name_67 (color_code__with_fusible_link_ VARCHAR, temperature_classification VARCHAR)
SELECT label FROM table_name_10 WHERE catalog = "nebt058"
What label has the catalog nebt058?
CREATE TABLE table_name_10 (label VARCHAR, catalog VARCHAR)
SELECT june_10_11 FROM table_25355501_2 WHERE january_15_16 = "January 15, 1991"
june 10-11 when january 15-16 is january 15, 1991?
CREATE TABLE table_25355501_2 (june_10_11 VARCHAR, january_15_16 VARCHAR)
SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc"
Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?
CREATE TABLE table_name_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR)
SELECT MAX(area__km_2__) FROM table_name_72 WHERE place = "bochum part 2" AND population < 15 OFFSET 911
What's the most area of Bochum Part 2 with a population less than 15,911?
CREATE TABLE table_name_72 (area__km_2__ INTEGER, place VARCHAR, population VARCHAR)
SELECT club FROM table_name_8 WHERE nation = "mexico" AND year = 2010 AND competition = "preseason" AND result = "w 0–1"
What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1?
CREATE TABLE table_name_8 (club VARCHAR, result VARCHAR, competition VARCHAR, nation VARCHAR, year VARCHAR)
SELECT round FROM table_name_43 WHERE opponents = "southampton"
Name the round for southampton opponents
CREATE TABLE table_name_43 (round VARCHAR, opponents VARCHAR)
SELECT ring_name FROM table_1557974_1 WHERE current_rank = "f0 Jūryō 3 West"
Which ring names are currently ranked f0 jūryō 3 west?
CREATE TABLE table_1557974_1 (ring_name VARCHAR, current_rank VARCHAR)
SELECT MAX(stage) FROM table_29332810_14 WHERE aggressive_rider = "Thomas De Gendt"
Thomas de Gendt performed on what stage as aggressive rider?
CREATE TABLE table_29332810_14 (stage INTEGER, aggressive_rider VARCHAR)
SELECT party FROM table_1342292_2 WHERE incumbent = "John Sparkman"
what's the party with incumbent being john sparkman
CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)
SELECT MIN(wins) FROM table_name_41 WHERE top_10 > 8
What is the least number of wins when the top 10 is more than 8?
CREATE TABLE table_name_41 (wins INTEGER, top_10 INTEGER)
SELECT score FROM table_name_97 WHERE partner = "hayley ericksen"
What was hayley ericksen's score?
CREATE TABLE table_name_97 (score VARCHAR, partner VARCHAR)
SELECT director FROM table_11642945_1 WHERE celebrity = "Margot Kidder"
Margot Kidder had what director?
CREATE TABLE table_11642945_1 (director VARCHAR, celebrity VARCHAR)
SELECT mult FROM table_name_85 WHERE sspec_number = "slj6d(b1)slj6f(b1)"
Spec number of slj6d(b1)slj6f(b1) has what mult.?
CREATE TABLE table_name_85 (mult VARCHAR, sspec_number VARCHAR)
SELECT 2002 FROM table_name_85 WHERE 2001 = "1–0" AND 2000 = "3–0"
What is in 2002 has a 2001 score 1–0, and a 2000 of 3–0?
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT date FROM table_name_67 WHERE race = "italian grand prix"
Name the date for the italian grand prix
CREATE TABLE table_name_67 (date VARCHAR, race VARCHAR)
SELECT SUM(runs) FROM table_name_65 WHERE ovrs < 2 AND wkts > 0
What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?
CREATE TABLE table_name_65 (runs INTEGER, ovrs VARCHAR, wkts VARCHAR)
SELECT year FROM table_name_73 WHERE actor = "richard farnsworth"
What year did actor Richard Farnsworth get nominated for an award?
CREATE TABLE table_name_73 (year VARCHAR, actor VARCHAR)
SELECT MIN(no_in_season) FROM table_26565936_2 WHERE directed_by = "Nelson McCormick"
What was the first episode in the season directed by nelson mccormick?
CREATE TABLE table_26565936_2 (no_in_season INTEGER, directed_by VARCHAR)
SELECT high_points FROM table_23248967_10 WHERE game = 78
Who scored the high points in game 78?
CREATE TABLE table_23248967_10 (high_points VARCHAR, game VARCHAR)
SELECT kinka_developer FROM table_name_70 WHERE kinka_12 = "341s0297 thru 300"
What is the developer when the 1.2 is 341s0297 thru 300?
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_12 VARCHAR)
SELECT parentheses FROM table_name_91 WHERE dots = "0.\dot{6}"
What is the value for parentheses with a dots value of 0.\dot{6}?
CREATE TABLE table_name_91 (parentheses VARCHAR, dots VARCHAR)
SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1
What are the first and last name of the faculty who has the most students?
CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR)
SELECT icao FROM table_name_2 WHERE iata = "mfm"
What is the ICAO when the IATA shows mfm?
CREATE TABLE table_name_2 (icao VARCHAR, iata VARCHAR)
SELECT class FROM table_name_13 WHERE year > 1986
What is the Class after 1986?
CREATE TABLE table_name_13 (class VARCHAR, year INTEGER)
SELECT MAX(goal) FROM table_name_14 WHERE score = "3-0"
What is the largest goal with a Score of 3-0?
CREATE TABLE table_name_14 (goal INTEGER, score VARCHAR)
SELECT AVG(2005) FROM table_name_38 WHERE 2008 > 0 AND 2007 > 310 AND average_annual = 767 AND total > 4 OFFSET 597
What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?
CREATE TABLE table_name_38 (total VARCHAR, average_annual VARCHAR)
SELECT MIN(rank) FROM table_name_38 WHERE nation = "switzerland" AND bronze < 0
Which Rank is the lowest one that has a Nation of switzerland, and a Bronze smaller than 0?
CREATE TABLE table_name_38 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT wickets FROM table_16570286_4 WHERE average = "22.66"
How many wickets were there when average was 22.66?
CREATE TABLE table_16570286_4 (wickets VARCHAR, average VARCHAR)
SELECT venue FROM table_name_76 WHERE home_team = "fitzroy"
What was the venue when the home team was Fitzroy?
CREATE TABLE table_name_76 (venue VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_66 WHERE team = "rockies"
I want the date for rockies
CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR)
SELECT venue FROM table_name_4 WHERE opponents = "v kent"
Where did v kent play?
CREATE TABLE table_name_4 (venue VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_22 WHERE visitor = "chicago"
What is the date of the game that had a visitor of Chicago?
CREATE TABLE table_name_22 (date VARCHAR, visitor VARCHAR)
SELECT original_air_date FROM table_28089666_1 WHERE production_code = "5.05"
What original air date was the episode with production code of 5.05?
CREATE TABLE table_28089666_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT result FROM table_1342426_3 WHERE incumbent = "John R. Tyson"
What was the result when incumbent John R. Tyson was elected?
CREATE TABLE table_1342426_3 (result VARCHAR, incumbent VARCHAR)
SELECT MIN(super_bowl_championships) FROM table_1952057_5 WHERE team = "New England Patriots"
If the team in the New England Patriots, what is the super bowl championship minimum number?
CREATE TABLE table_1952057_5 (super_bowl_championships INTEGER, team VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE rider = "garry mccoy"
What's the highest amount of laps Garry Mccoy drove?
CREATE TABLE table_name_73 (laps INTEGER, rider VARCHAR)
SELECT name FROM table_name_32 WHERE location = "ljubljana"
Which Name has a Location of ljubljana?
CREATE TABLE table_name_32 (name VARCHAR, location VARCHAR)
SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11"
Who was the home team that played against the Boston Bruins on January 11?
CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT class AS pos FROM table_name_98 WHERE pos = "9th"
Which team is in 9th place?
CREATE TABLE table_name_98 (class VARCHAR, pos VARCHAR)
SELECT player FROM table_27268238_4 WHERE average = "50.16"
If the average is 50.16, who is the player?
CREATE TABLE table_27268238_4 (player VARCHAR, average VARCHAR)
SELECT MAX(round2) FROM table_16815824_1
What was the highest score for round 2?
CREATE TABLE table_16815824_1 (round2 INTEGER)
SELECT title FROM table_24648983_1 WHERE us_viewers__million_ = "9.89"
What is the name of the episode that had 9.89 million U.S. viewers?
CREATE TABLE table_24648983_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE "%w%"
What is the document name and template id for document with description with the letter 'w' in it?
CREATE TABLE Documents (document_name VARCHAR, template_id VARCHAR, Document_Description VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_48 WHERE player = "dale mitchell"
What college or club team did Dale Mitchell play for?
CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT run_4 FROM table_name_37 WHERE athletes = "alexandru frimu & costel rădulescu"
Which Run 4 has Athletes of alexandru frimu & costel rădulescu?
CREATE TABLE table_name_37 (run_4 VARCHAR, athletes VARCHAR)
SELECT females FROM table_name_60 WHERE males = "1 548"
Name the females when males are 1 548
CREATE TABLE table_name_60 (females VARCHAR, males VARCHAR)
SELECT laps FROM table_name_25 WHERE grid = "8"
Which laps has a grid of 8?
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR)
SELECT player FROM table_name_49 WHERE hometown = "houston, tx"
Who is the player from Houston, TX?
CREATE TABLE table_name_49 (player VARCHAR, hometown VARCHAR)
SELECT date FROM table_name_75 WHERE country = "japan" AND label = "sony"
What Date was the Country of japan, and a Label of sony?
CREATE TABLE table_name_75 (date VARCHAR, country VARCHAR, label VARCHAR)
SELECT muzzle_energy FROM table_name_40 WHERE max_pressure = "40,000 psi"
What is the muzzle energy with 40,000 psi max pressure?
CREATE TABLE table_name_40 (muzzle_energy VARCHAR, max_pressure VARCHAR)
SELECT name FROM table_name_51 WHERE winning_constructor = "bugatti" AND circuit = "monza"
What is the name for the Monza circuit race were Bugatti was the winning constructor?
CREATE TABLE table_name_51 (name VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita"
what is the sweet for voice actor saki fujita?
CREATE TABLE table_26615633_3 (sweet VARCHAR, voice_actor VARCHAR)
SELECT country FROM table_name_23 WHERE rank = 5
Which Country has a Rank of 5?
CREATE TABLE table_name_23 (country VARCHAR, rank VARCHAR)
SELECT COUNT(year) FROM table_13114949_3 WHERE qualifying_score = "61.400"
how many times is the qualifying score 61.400?
CREATE TABLE table_13114949_3 (year VARCHAR, qualifying_score VARCHAR)
SELECT ratings__kanto_ FROM table_26591434_1 WHERE episode = 11
What was the ratings for episode 11?
CREATE TABLE table_26591434_1 (ratings__kanto_ VARCHAR, episode VARCHAR)
SELECT money___$__ FROM table_name_24 WHERE score = 76 - 70 - 65 - 68 = 279
How much money does the player with a score of 76-70-65-68=279 have?
CREATE TABLE table_name_24 (money___$__ VARCHAR, score VARCHAR)
SELECT COUNT(directed_by) FROM table_1854728_2 WHERE production_code = "1008/1009"
When 1008/1009 is the production code how many directors are there?
CREATE TABLE table_1854728_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT home_team AS score FROM table_name_30 WHERE venue = "mcg"
What did the home team score at MCG?
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT score_in_the_final FROM table_name_24 WHERE date = "march 22, 1993"
What was the final score on March 22, 1993?
CREATE TABLE table_name_24 (score_in_the_final VARCHAR, date VARCHAR)
SELECT MIN(highest) FROM table_11206916_1 WHERE team = "Dumbarton"
What was the lowest highest attendance for the dumbarton team?
CREATE TABLE table_11206916_1 (highest INTEGER, team VARCHAR)
SELECT weight FROM table_name_33 WHERE internal_storage = "16-64 gb" AND wireless_network = "wi-fi, 3g"
What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?
CREATE TABLE table_name_33 (weight VARCHAR, internal_storage VARCHAR, wireless_network VARCHAR)
SELECT ep_winning_team FROM table_29225103_2 WHERE cp_winning_team = "Dave Clark" AND gm_winning_team = "Stuart Northrup"
Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup?
CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, cp_winning_team VARCHAR, gm_winning_team VARCHAR)
SELECT incumbent FROM table_1341973_3 WHERE district = "Alabama 6"
Who is the incumbent in the Alabama 6 voting district?
CREATE TABLE table_1341973_3 (incumbent VARCHAR, district VARCHAR)
SELECT AVG(gold) FROM table_name_84 WHERE bronze > 2 AND rank = 4 AND total > 7
Bronze larger than 2, and a Rank of 4, and a Total larger than 7 has how many numbers of gold?
CREATE TABLE table_name_84 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT winning_driver FROM table_name_24 WHERE round = 7
Name the winning driver for round 7
CREATE TABLE table_name_24 (winning_driver VARCHAR, round VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE venue = "mcg"
What was the away team score for the game played at MCG?
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT fastest_lap FROM table_2454550_1 WHERE location = "Phoenix, Arizona"
who held the fastes lap in Phoenix, Arizona?
CREATE TABLE table_2454550_1 (fastest_lap VARCHAR, location VARCHAR)
SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton"
Show the times of elimination by "Punk" or "Orton".
CREATE TABLE elimination (TIME VARCHAR, Eliminated_By VARCHAR)
SELECT name FROM table_name_37 WHERE games = "2008 beijing" AND medal = "gold"
Which Name had a Games of 2008 beijing, and a Medal of gold?
CREATE TABLE table_name_37 (name VARCHAR, games VARCHAR, medal VARCHAR)
SELECT driver FROM table_name_99 WHERE entrant = "tourtel larrousse f1"
Which driver drove the Tourtel Larrousse F1?
CREATE TABLE table_name_99 (driver VARCHAR, entrant VARCHAR)
SELECT pilot FROM table_name_8 WHERE place = "goose green" AND date = "27 may 1982"
What is Pilot, when Place is "Goose Green", and when Date is "27 May 1982"?
CREATE TABLE table_name_8 (pilot VARCHAR, place VARCHAR, date VARCHAR)
SELECT english FROM table_name_31 WHERE cardinal_direction = "northwest"
What is the cardinal direction northwest in English?
CREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR)
SELECT winner_2nd FROM table_1360997_3 WHERE time = "1:36.30"
When the time is 1:36.30 what shows as winner?
CREATE TABLE table_1360997_3 (winner_2nd VARCHAR, time VARCHAR)
SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky"
What was pinky's bmi at the reunion?
CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)
SELECT score FROM table_name_3 WHERE record = "31–37–9"
What is the Score of the game with a Record of 31–37–9?
CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR)
SELECT record FROM table_name_81 WHERE round > 1
What was his record when he went over 1 round?
CREATE TABLE table_name_81 (record VARCHAR, round INTEGER)
SELECT MIN(l) FROM table_24224991_2
What is the lowest amount of L in any season?
CREATE TABLE table_24224991_2 (l INTEGER)
SELECT score FROM table_name_46 WHERE record = "22–20"
Record of 22–20 involved what score?
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_95 WHERE record = "2-0"
What is Score, when Record is "2-0"?
CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR)
SELECT MIN(year) FROM table_name_18 WHERE theme = "25th anniversary loonie" AND mintage < 35 OFFSET 000
What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?
CREATE TABLE table_name_18 (year INTEGER, theme VARCHAR, mintage VARCHAR)
SELECT MIN(bronze) FROM table_name_91 WHERE rank > 13
What is the lowest number of bronze medals for teams ranked below 13?
CREATE TABLE table_name_91 (bronze INTEGER, rank INTEGER)
SELECT semifinalists FROM table_name_82 WHERE finalist = "andrei chesnokov"
Which Semifinalists have a Finalist of andrei chesnokov?
CREATE TABLE table_name_82 (semifinalists VARCHAR, finalist VARCHAR)
SELECT home_team FROM table_name_98 WHERE venue = "junction oval"
Who was the home team for the game played at Junction Oval?
CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR)
SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)"
What is the share of votes in the 2000 (2nd) election?
CREATE TABLE table_name_20 (share_of_votes VARCHAR, election VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE result = "½–½" AND black = "kramnik" AND opening = "e05 catalan opening" AND moves > 38
What year had a black of Kramnik, opening of E05 Catalan Opening, moves greater than 38, and a result of ½–½?
CREATE TABLE table_name_19 (year INTEGER, moves VARCHAR, opening VARCHAR, result VARCHAR, black VARCHAR)
SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry"
Which Size has a County of 62 perry?
CREATE TABLE table_name_69 (size INTEGER, county VARCHAR)