answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT location FROM table_1301373_1 WHERE stadium = "Westpac stadium"
Where is Westpac Stadium located?
CREATE TABLE table_1301373_1 (location VARCHAR, stadium VARCHAR)
SELECT MAX(laps) FROM table_name_31 WHERE driver = "chris amon" AND grid < 4
What was CHris Amon's highest lap when his grid was 4?
CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT round FROM table_name_18 WHERE song = "陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你"
What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?
CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR)
SELECT opponent FROM table_name_37 WHERE date = "december 12, 1993"
Who played on december 12, 1993?
CREATE TABLE table_name_37 (opponent VARCHAR, date VARCHAR)
SELECT name FROM table_23963781_2 WHERE goals = 1 AND position = "FW"
who has the 1 goal and the position is fw?
CREATE TABLE table_23963781_2 (name VARCHAR, goals VARCHAR, position VARCHAR)
SELECT COUNT(byes) FROM table_name_12 WHERE wins < 11 AND wimmera_fl = "minyip murtoa" AND losses < 6
How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?
CREATE TABLE table_name_12 (byes VARCHAR, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR)
SELECT first FROM table_name_86 WHERE bats = "r" AND throws = "l" AND dob = "12 october 1977"
Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?
CREATE TABLE table_name_86 (first VARCHAR, dob VARCHAR, bats VARCHAR, throws VARCHAR)
SELECT COUNT(episode) FROM table_2102898_1 WHERE run_time = "24:33"
How many episodes ran 24:33?
CREATE TABLE table_2102898_1 (episode VARCHAR, run_time VARCHAR)
SELECT role FROM table_name_82 WHERE tournament = "1st division honduras"
What is the Role in the 1st Division Honduras Tournament?
CREATE TABLE table_name_82 (role VARCHAR, tournament 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 score FROM table_name_18 WHERE goal < 2
What is the score when there are less than 2 goals?
CREATE TABLE table_name_18 (score VARCHAR, goal INTEGER)
SELECT record FROM table_name_16 WHERE date = "july 26"
What was the record for July 26?
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR)
SELECT location FROM table_name_30 WHERE competition = "gold medal match"
What is the location of the gold medal match?
CREATE TABLE table_name_30 (location VARCHAR, competition VARCHAR)
SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21
What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21?
CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR)
SELECT opponent FROM table_name_82 WHERE result = "w 35-21"
Name the opponent with result of w 35-21
CREATE TABLE table_name_82 (opponent VARCHAR, result VARCHAR)
SELECT record FROM table_name_89 WHERE date = "march 1"
What is Record, when Date is "March 1"?
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_60 WHERE venue = "waca ground"
Who was the away captain at Waca Ground?
CREATE TABLE table_name_60 (away_captain VARCHAR, venue VARCHAR)
SELECT AVG(year_commissioned) FROM table_name_58 WHERE gross_head__metres_ < 18
What is the Year Commissioned of the power stationo with a Gross head of less than 18?
CREATE TABLE table_name_58 (year_commissioned INTEGER, gross_head__metres_ INTEGER)
SELECT MIN(episode__number) FROM table_17481974_1 WHERE original_airdate = "July 14, 2003"
Which is the number of the episode "rook gave" "rūku dīo" (デ デ ィ オ ー ル) which aired on July 14, 2003
CREATE TABLE table_17481974_1 (episode__number INTEGER, original_airdate VARCHAR)
SELECT group FROM table_24850630_4 WHERE race = "British Champion Stakes"
What was the group in the British Champion Stakes?
CREATE TABLE table_24850630_4 (group VARCHAR, race VARCHAR)
SELECT 2009 FROM table_name_43 WHERE 2008 = "grand slam tournaments"
What 2009 has grand slam tournaments of 2008?
CREATE TABLE table_name_43 (Id VARCHAR)
SELECT ends FROM table_name_92 WHERE type = "transferred"
What ends has transferred as the type?
CREATE TABLE table_name_92 (ends VARCHAR, type VARCHAR)
SELECT SUM(drawn) FROM table_name_59 WHERE lost < 4 AND points = 8
How many total drawn has less than 4 lost and 8 points?
CREATE TABLE table_name_59 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT home_team FROM table_name_16 WHERE venue = "kardinia park"
Who is the home team at kardinia park?
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT pick FROM table_name_26 WHERE school_club_team = "kentucky"
Which pick has a school/club team that is kentucky?
CREATE TABLE table_name_26 (pick VARCHAR, school_club_team VARCHAR)
SELECT network FROM table_22514845_4 WHERE s_analyst = "Eddie Arcaro"
Which network has s analyst of eddie arcaro?
CREATE TABLE table_22514845_4 (network VARCHAR, s_analyst VARCHAR)
SELECT away_team FROM table_name_79 WHERE home_team = "carlton"
Who was Carlton's away team opponent?
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
SELECT week_4 FROM table_name_65 WHERE week_2 = "tiffany logan"
What kind of Week 4 has a Week 2 of tiffany logan?
CREATE TABLE table_name_65 (week_4 VARCHAR, week_2 VARCHAR)
SELECT nationality FROM table_name_70 WHERE lane > 4 AND time = "2:00.37"
What nationality has a lane larger than 4 and a Time of 2:00.37?
CREATE TABLE table_name_70 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT ethnic_group FROM table_name_58 WHERE muslims = "93%"
Which ehtinc group consists of 93% muslims?
CREATE TABLE table_name_58 (ethnic_group VARCHAR, muslims VARCHAR)
SELECT athlete FROM table_name_92 WHERE date = "10 july 2009"
Date of 10 july 2009 includes what athlete?
CREATE TABLE table_name_92 (athlete VARCHAR, date VARCHAR)
SELECT frequency FROM table_name_64 WHERE voltage = "1.6v" AND part_number_s_ = "kp80524kx300256kc80524kx300256pmg30002002aa"
Which frequency has voltage of 1.6v and part number kp80524kx300256kc80524kx300256pmg30002002aa?
CREATE TABLE table_name_64 (frequency VARCHAR, voltage VARCHAR, part_number_s_ VARCHAR)
SELECT location FROM table_name_95 WHERE rank = 147
Which location has a rank of 147?
CREATE TABLE table_name_95 (location VARCHAR, rank VARCHAR)
SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = "alemannia aachen"
Tell me the 2nd leg for alemannia aachen
CREATE TABLE table_name_61 (team__number1 VARCHAR)
SELECT SUM(fall_09) FROM table_name_56 WHERE maryland_counties = "allegany" AND fall_07 < 751
What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751?
CREATE TABLE table_name_56 (fall_09 INTEGER, maryland_counties VARCHAR, fall_07 VARCHAR)
SELECT COUNT(organization) FROM table_28436909_4 WHERE founding_date = "1873-12-25"
When 1873-12-25 is the founding date how many organizations are there?
CREATE TABLE table_28436909_4 (organization VARCHAR, founding_date VARCHAR)
SELECT MIN(total) FROM table_name_12 WHERE nation = "croatia"
What was the lowest total of medals won by Croatia?
CREATE TABLE table_name_12 (total INTEGER, nation VARCHAR)
SELECT verb_meaning FROM table_name_26 WHERE part_1 = "*haldaną *fanhaną"
What is the verb meaning of *haldaną *fanhaną in part 1?
CREATE TABLE table_name_26 (verb_meaning VARCHAR, part_1 VARCHAR)
SELECT manufacturer FROM table_name_39 WHERE laps = "24" AND grid = "27"
WHAT IS THE MANUFACTURER WITH 24 LAPS AND GRID 27?
CREATE TABLE table_name_39 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT score FROM table_name_21 WHERE venue = "royal liverpool golf club" AND champion = "willie hunter"
What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club?
CREATE TABLE table_name_21 (score VARCHAR, venue VARCHAR, champion VARCHAR)
SELECT tie_no FROM table_name_83 WHERE score = "2–2"
How many ties occurred with a score of 2–2?
CREATE TABLE table_name_83 (tie_no VARCHAR, score VARCHAR)
SELECT winner FROM table_name_97 WHERE tournament = "comfort classic"
Tell me the winner of the comfort classic
CREATE TABLE table_name_97 (winner VARCHAR, tournament VARCHAR)
SELECT studio_host FROM table_22485543_1 WHERE year = "2010"
Who is the studio host for the year 2010?
CREATE TABLE table_22485543_1 (studio_host VARCHAR, year VARCHAR)
SELECT incumbent FROM table_1341577_36 WHERE first_elected = 1958
Which incumbent was first elected in 1958?
CREATE TABLE table_1341577_36 (incumbent VARCHAR, first_elected VARCHAR)
SELECT COUNT(uninterrupted_rank) FROM table_name_87 WHERE name = "john dingell"
How many uninterrupted ranks does john dingell have?
CREATE TABLE table_name_87 (uninterrupted_rank VARCHAR, name VARCHAR)
SELECT MIN(total) FROM table_name_80 WHERE location = "boston, massachusetts"
What is the earliest episode of the series that is set in Boston, Massachusetts?
CREATE TABLE table_name_80 (total INTEGER, location VARCHAR)
SELECT MAX(q1_pos) FROM table_1924975_1 WHERE q1_time = "1:16.218"
When the q1 time is 1:16.218 what is the highest q1 pos?
CREATE TABLE table_1924975_1 (q1_pos INTEGER, q1_time VARCHAR)
SELECT year_s__of_manufacture FROM table_name_26 WHERE type = "1b n2" AND quantity = 10
Which Year(s) of manufacture has a Type of 1b n2, and a Quantity of 10?
CREATE TABLE table_name_26 (year_s__of_manufacture VARCHAR, type VARCHAR, quantity VARCHAR)
SELECT SUM(cap_hour) FROM table_name_8 WHERE type = "double chair" AND vertical < 479
Tell me the sum of cap/hor for double chair and vertical less than 479
CREATE TABLE table_name_8 (cap_hour INTEGER, type VARCHAR, vertical VARCHAR)
SELECT MAX(annual_co2_emissions__in_thousands_of_metric_tons_) FROM table_2508175_1 WHERE gdp_per_emissions__in_us_dollars_per_ton_ = 3903
when the gdp per emissions (in us dollars per ton) is 3903, what is the maximum annual co2 emissions (in thousands of metric tons)?
CREATE TABLE table_2508175_1 (annual_co2_emissions__in_thousands_of_metric_tons_ INTEGER, gdp_per_emissions__in_us_dollars_per_ton_ VARCHAR)
SELECT country FROM table_name_10 WHERE player = "jimmy demaret"
What is Country, when Player is "Jimmy Demaret"?
CREATE TABLE table_name_10 (country VARCHAR, player VARCHAR)
SELECT COUNT(attendance) FROM table_name_52 WHERE date = "october 8"
Name the total number of attendance for october 8
CREATE TABLE table_name_52 (attendance VARCHAR, date VARCHAR)
SELECT MAX(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
List the maximum scores of the team Boston Red Stockings when the team won in postseason?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (wins INTEGER, team_id_winner VARCHAR)
SELECT play FROM table_name_18 WHERE country = "belgium"
What play is from the country Belgium?
CREATE TABLE table_name_18 (play VARCHAR, country VARCHAR)
SELECT date FROM table_name_61 WHERE tournament = "ameritech senior open"
What is the Date of the Ameritech Senior Open?
CREATE TABLE table_name_61 (date VARCHAR, tournament VARCHAR)
SELECT losing_bonus FROM table_name_71 WHERE points_against = "546"
The club that had 546 points against, what was the losing bonus?
CREATE TABLE table_name_71 (losing_bonus VARCHAR, points_against VARCHAR)
SELECT fcc_info FROM table_name_68 WHERE frequency_mhz = "104.5 fm"
What is the FCC information of 104.5 fm frequency?
CREATE TABLE table_name_68 (fcc_info VARCHAR, frequency_mhz VARCHAR)
SELECT contestant_name FROM table_18513028_3 WHERE date_premiered__2009_ = "July 25"
What contestant was premiered on July 25?
CREATE TABLE table_18513028_3 (contestant_name VARCHAR, date_premiered__2009_ VARCHAR)
SELECT pets_allowed_yn, AVG(price_range) FROM HOTELS GROUP BY pets_allowed_yn
Show the average price of hotels for different pet policy.
CREATE TABLE HOTELS (pets_allowed_yn VARCHAR, price_range INTEGER)
SELECT nhl_team FROM table_1473672_2 WHERE player = "Stan Weir"
What nhl team does stan weir play for?
CREATE TABLE table_1473672_2 (nhl_team VARCHAR, player VARCHAR)
SELECT organization_name FROM organizations ORDER BY date_formed
List all the name of organizations in order of the date formed.
CREATE TABLE organizations (organization_name VARCHAR, date_formed VARCHAR)
SELECT status FROM table_19061741_1 WHERE name = "Nel Rapiz"
When nel rapiz is the name what is the status?
CREATE TABLE table_19061741_1 (status VARCHAR, name VARCHAR)
SELECT team FROM table_17802778_1 WHERE average_speed__mph_ = "138.14"
What team(s) enjoyed an average spped (mph) of 138.14?
CREATE TABLE table_17802778_1 (team VARCHAR, average_speed__mph_ VARCHAR)
SELECT type FROM table_2076533_1 WHERE main_location = "McMinnville"
Name the type for mcminnville
CREATE TABLE table_2076533_1 (type VARCHAR, main_location VARCHAR)
SELECT COUNT(match) FROM table_name_63 WHERE city_country = "karachi, pakistan" AND year > 1996
How many matches have a City/Country of karachi, pakistan, and a Year larger than 1996?
CREATE TABLE table_name_63 (match VARCHAR, city_country VARCHAR, year VARCHAR)
SELECT gloss FROM table_name_79 WHERE latin = "castitas"
What's the gloss with Castitas(Latin)?
CREATE TABLE table_name_79 (gloss VARCHAR, latin VARCHAR)
SELECT position FROM table_name_41 WHERE time = "1:45:53:00"
Which position has a time of 1:45:53:00?
CREATE TABLE table_name_41 (position VARCHAR, time VARCHAR)
SELECT points_against FROM table_13399573_3 WHERE won = "10"
What was the number of points against when the amount won is 10?
CREATE TABLE table_13399573_3 (points_against VARCHAR, won VARCHAR)
SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary"
Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?
CREATE TABLE table_name_49 (communist_ticket VARCHAR, american_labor_ticket VARCHAR)
SELECT country FROM table_name_61 WHERE place = "t1" AND player = "stuart appleby"
What is the country of player stuart appleby, who has a t1 place?
CREATE TABLE table_name_61 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = "Oklahoma"
Name the total number of opponets venue for oklahoma
CREATE TABLE table_16201038_3 (at_opponents_venue VARCHAR, missouri_vs VARCHAR)
SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND year = "1802"
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802
CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR)
SELECT hometown FROM table_11677691_12 WHERE school = "De La Salle High school"
What is the hometown of the players for de la salle high school
CREATE TABLE table_11677691_12 (hometown VARCHAR, school VARCHAR)
SELECT week FROM table_name_48 WHERE attendance = "33,057"
Which week's game was attended by 33,057 people?
CREATE TABLE table_name_48 (week VARCHAR, attendance VARCHAR)
SELECT MAX(no_in_series) FROM table_228973_9 WHERE directed_by = "Harvey S. Laidman"
What is the maximum number in the series for the episode directed by Harvey S. Laidman?
CREATE TABLE table_228973_9 (no_in_series INTEGER, directed_by VARCHAR)
SELECT gamerankings FROM table_name_40 WHERE metacritic = "83/100" AND year_released = 2011
What is the GameRankings Released of 2011 with a Metacritic of 83/100?
CREATE TABLE table_name_40 (gamerankings VARCHAR, metacritic VARCHAR, year_released VARCHAR)
SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy"
What is the point total for the Formula Renault 2.0 Italy series?
CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR)
SELECT 2011 FROM table_name_62 WHERE 2008 = "2r" AND 2012 = "4r"
What is the 2011 value that has a 2r in 2008 and a 4r in 2012?
CREATE TABLE table_name_62 (Id VARCHAR)
SELECT result FROM table_name_8 WHERE date = "november 22"
What was the score of the game on November 22?
CREATE TABLE table_name_8 (result VARCHAR, date VARCHAR)
SELECT place FROM table_name_46 WHERE player = "justin leonard"
What is Place, when Player is "Justin Leonard"?
CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_98 WHERE position = "ot" AND overall > 91 AND round > 21 AND college = "mississippi"
What is the total number of Pick, when Position is OT, when Overall is greater than 91, when Round is greater than 21, and when College is Mississippi?
CREATE TABLE table_name_98 (pick VARCHAR, college VARCHAR, round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT guest_3 FROM table_20466963_13 WHERE guest_2 = "Iyare Igiehon"
Name the guest 3 for iyare igiehon
CREATE TABLE table_20466963_13 (guest_3 VARCHAR, guest_2 VARCHAR)
SELECT purse__$__ FROM table_11622896_1 WHERE location = "New York"
What is the purse value for the New York location?
CREATE TABLE table_11622896_1 (purse__$__ VARCHAR, location VARCHAR)
SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id
How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n
CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_88 WHERE erp_w = "62"
Average frequency with ERP W of 62?
CREATE TABLE table_name_88 (frequency_mhz INTEGER, erp_w VARCHAR)
SELECT date FROM table_name_5 WHERE away = "broadview hawks"
What is the Date with an Away that is broadview hawks?
CREATE TABLE table_name_5 (date VARCHAR, away VARCHAR)
SELECT no_in_season FROM table_19401346_1 WHERE original_air_date = "October 14, 2008"
What's the season number of the episode originally aired on October 14, 2008?
CREATE TABLE table_19401346_1 (no_in_season VARCHAR, original_air_date VARCHAR)
SELECT MAX(free) FROM table_name_87 WHERE total = 81.167 AND rank > 23
what is the most free when the total is 81.167 and the rank is higher than 23?
CREATE TABLE table_name_87 (free INTEGER, total VARCHAR, rank VARCHAR)
SELECT english_name FROM table_name_43 WHERE stat = "7th cut"
What was the name in English that had a Stat of 7th cut?
CREATE TABLE table_name_43 (english_name VARCHAR, stat VARCHAR)
SELECT home FROM table_name_28 WHERE decision = "ramo" AND visitor = "florida"
Who was the Home team when the Visitor was Florida, with a Decision of Ramo?
CREATE TABLE table_name_28 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT company FROM table_250309_1 WHERE plant = "Burnaston"
what is the name ofhte company where the plant is in burnaston?
CREATE TABLE table_250309_1 (company VARCHAR, plant VARCHAR)
SELECT SUM(lane) FROM table_name_89 WHERE rank = 2
What is the lane total when rank is 2?
CREATE TABLE table_name_89 (lane INTEGER, rank VARCHAR)
SELECT programme FROM table_29566606_11 WHERE original_channel_s_ = "CITV"
Which programs were originally broadcast on CITV?
CREATE TABLE table_29566606_11 (programme VARCHAR, original_channel_s_ VARCHAR)
SELECT SUM(b_score) FROM table_name_70 WHERE total > 16.125 AND position = "3rd"
What is the B Score when the total is more than 16.125, and position is 3rd?
CREATE TABLE table_name_70 (b_score INTEGER, total VARCHAR, position VARCHAR)
SELECT local_networked FROM table_name_99 WHERE show_name = "nightline"
What Local/Networked has a Show Name of nightline?
CREATE TABLE table_name_99 (local_networked VARCHAR, show_name VARCHAR)
SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = "Olga Koseli"
How many mixed doubles were there in the year that Olga Koseli won the women's singles?
CREATE TABLE table_15002177_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT school FROM table_name_43 WHERE _number___county = "85 wabash" AND ihsaa_football_class = "a" AND mascot = "norsemen"
Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?
CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR)
SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2
Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980
What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?
CREATE TABLE cars_data (mpg INTEGER, cylinders VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_82 WHERE week = "7"
Who was the opponent on week 7?
CREATE TABLE table_name_82 (opponent VARCHAR, week VARCHAR)