answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT opponent FROM table_1341522_24 WHERE district = "Massachusetts5"
Who are the opponents in Massachusetts5 district?
CREATE TABLE table_1341522_24 (opponent VARCHAR, district VARCHAR)
SELECT host_country FROM table_26669939_1 WHERE host_city = "Bar"
Who was the host country when Bar was the host city?
CREATE TABLE table_26669939_1 (host_country VARCHAR, host_city VARCHAR)
SELECT AVG(february) FROM table_name_96 WHERE game = 53
What day in february was game 53?
CREATE TABLE table_name_96 (february INTEGER, game VARCHAR)
SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14
How much Position has a Lost of 8, and a Played larger than 14?
CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)
SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
How many crops were damaged when the public property damage was 1,03,049.60?
CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)
SELECT competition FROM table_name_64 WHERE assist_pass = "stephanie cox" AND date = "2011-07-02"
Name the competition for stephanie cox on 2011-07-02
CREATE TABLE table_name_64 (competition VARCHAR, assist_pass VARCHAR, date VARCHAR)
SELECT first_name FROM people ORDER BY first_name
List the first names of people in alphabetical order?
CREATE TABLE people (first_name VARCHAR)
SELECT MIN(no_in_season) FROM table_19897294_10 WHERE no_in_series = "US6"
What's the season number of the episode with series number US6?
CREATE TABLE table_19897294_10 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT length FROM table_28132970_5 WHERE propulsion = "Controllable pitch propeller"
What is the length when the propulsion is controllable pitch propeller?
CREATE TABLE table_28132970_5 (length VARCHAR, propulsion VARCHAR)
SELECT 1 AS st_edition FROM table_name_77 WHERE episode = "4"
What is the 1st Edition for the Episode 4?
CREATE TABLE table_name_77 (episode VARCHAR)
SELECT COUNT(time) FROM table_name_32 WHERE name = "lisbeth trickett"
What is Lisbeth Trickett's time?
CREATE TABLE table_name_32 (time VARCHAR, name VARCHAR)
SELECT para FROM table_16886076_1 WHERE commewijne = "1.5%"
Name the para for 1.5% commewijne
CREATE TABLE table_16886076_1 (para VARCHAR, commewijne VARCHAR)
SELECT MIN(laps) FROM table_name_54 WHERE driver = "luca badoer"
What is the least amount of laps for Luca Badoer?
CREATE TABLE table_name_54 (laps INTEGER, driver VARCHAR)
SELECT 1978 FROM table_name_99 WHERE 1976 = "62%"
What 1978 has a 1976 of 62%?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT race FROM table_name_60 WHERE finish = "1st" AND track = "saratoga race course"
Which race had a finish of 1st at Saratoga Race Course?
CREATE TABLE table_name_60 (race VARCHAR, finish VARCHAR, track VARCHAR)
SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii"
What is the smallest End term with a Start term of 1913, and a Name of ludwig iii?
CREATE TABLE table_name_39 (end_term INTEGER, start_term VARCHAR, name VARCHAR)
SELECT attendance FROM table_name_65 WHERE date = "september 10, 1989"
On September 10, 1989 how many people attended the game?
CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR)
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_57 WHERE name__english_ = "alliance '90/the greens"
WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?
CREATE TABLE table_name_57 (seats_in_hamburgische_bürgerschaft VARCHAR, name__english_ VARCHAR)
SELECT centerfold_model FROM table_name_68 WHERE interview_subject = "paul simon"
Who was the Centerfold model in the issue in which the Interview subject was Paul Simon?
CREATE TABLE table_name_68 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT MIN(fumbles) FROM table_name_35 WHERE avg < 5.7 AND yards = 236
What was the lowest fumble with an average of less than 5.7 and 236 yards?
CREATE TABLE table_name_35 (fumbles INTEGER, avg VARCHAR, yards VARCHAR)
SELECT COUNT(position) FROM table_name_66 WHERE drawn > 7 AND played < 40
What is the total number of positions for teams with more than 7 draws and under 40 played?
CREATE TABLE table_name_66 (position VARCHAR, drawn VARCHAR, played VARCHAR)
SELECT winning_boat FROM table_24673710_1 WHERE entries = 64
When 64 is the entries what is the winning boat?
CREATE TABLE table_24673710_1 (winning_boat VARCHAR, entries VARCHAR)
SELECT title FROM table_20967430_2 WHERE original_air_date = "November 08, 1985"
Name the title that aired for november 08, 1985
CREATE TABLE table_20967430_2 (title VARCHAR, original_air_date VARCHAR)
SELECT date FROM table_name_76 WHERE catalog = "573 194-2"
What is the Date of Catalog 573 194-2?
CREATE TABLE table_name_76 (date VARCHAR, catalog VARCHAR)
SELECT home_team AS score FROM table_name_78 WHERE home_team = "north melbourne"
When the home team north melbourne was playing what did they score?
CREATE TABLE table_name_78 (home_team VARCHAR)
SELECT construction_completed FROM table_name_70 WHERE county = "jo daviess"
What is the date construction is completed in Jo Daviess county?
CREATE TABLE table_name_70 (construction_completed VARCHAR, county VARCHAR)
SELECT MIN(series_number) FROM table_name_69 WHERE original_air_date < 2009 AND dvd_region_2_release_date = "26 july 2004" AND number_of_episodes > 7
What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?
CREATE TABLE table_name_69 (series_number INTEGER, number_of_episodes VARCHAR, original_air_date VARCHAR, dvd_region_2_release_date VARCHAR)
SELECT MIN(position) FROM table_name_37 WHERE points = "32-6" AND goals_against < 59 AND played > 38
What is the lowest position with 32-6 points and less then 59 goals when there are more than 38 played?
CREATE TABLE table_name_37 (position INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR)
SELECT AVG(foundation) FROM table_name_73 WHERE official_name_in_malay = "politeknik pagoh"
what was the foundation of Politeknik Pagoh?
CREATE TABLE table_name_73 (foundation INTEGER, official_name_in_malay VARCHAR)
SELECT home_team FROM table_name_80 WHERE away_team = "blackpool"
What home team has blackpool as the away team?
CREATE TABLE table_name_80 (home_team VARCHAR, away_team VARCHAR)
SELECT to_par FROM table_name_6 WHERE place = "t1" AND player = "joey rassett"
What is To Par, when Place is "T1", and when Player is "Joey Rassett"?
CREATE TABLE table_name_6 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_94 WHERE place = "t4" AND player = "lee janzen"
What's the score of Lee Janzen in T4 place?
CREATE TABLE table_name_94 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT competition FROM table_name_5 WHERE year > 1990 AND venue = "seville , spain"
Which Competition has a Year larger than 1990 in seville , spain?
CREATE TABLE table_name_5 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT SUM(crude_birth_rate__per_1000_) FROM table_name_72 WHERE live_births_1 = "356 013"
what is the crude birth rate (per 1000) when the live births 1 is 356 013?
CREATE TABLE table_name_72 (crude_birth_rate__per_1000_ INTEGER, live_births_1 VARCHAR)
SELECT winnings FROM table_2182562_2 WHERE starts = 15
How high was the amount of winnings (in $) in the year with 15 starts?
CREATE TABLE table_2182562_2 (winnings VARCHAR, starts VARCHAR)
SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'
What is the average sales of the journals that have an editor whose work type is 'Photo'?
CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18
What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?
CREATE TABLE table_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)
SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm"
Where will the game at (ET) of 7:00 pm be at?
CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR)
SELECT date FROM table_name_56 WHERE road_team = "boston" AND game = "game 3"
What is the date of game 3 with Boston as the road team?
CREATE TABLE table_name_56 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT engine FROM table_name_66 WHERE chassis = "brabham bt58" AND points > 2
What engine with more than 2 points has Brabham bt58 as Chassis?
CREATE TABLE table_name_66 (engine VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett"
What party does joel r. poinsett represent?
CREATE TABLE table_2668264_22 (party VARCHAR, incumbent VARCHAR)
SELECT MAX(attendance) FROM table_name_87 WHERE game_site = "arrowhead stadium"
What's the highest attendance for a game the Texan's played at Arrowhead Stadium?
CREATE TABLE table_name_87 (attendance INTEGER, game_site 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 score FROM table_name_7 WHERE opponent = "washington capitals" AND record = "24-34-17"
Which Score has an Opponent of washington capitals, and a Record of 24-34-17?
CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT to_par FROM table_name_88 WHERE winning_score = 64 - 69 - 67 - 66 = 266
What is the To par score corresponding to the winning score of 64-69-67-66=266?
CREATE TABLE table_name_88 (to_par VARCHAR, winning_score VARCHAR)
SELECT result FROM table_16710742_3 WHERE record = "3-7"
Did the Falcons have a win or loss in the game when their record was 3-7?
CREATE TABLE table_16710742_3 (result VARCHAR, record VARCHAR)
SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill"
How many michelob ultra mountains classification for darren lill
CREATE TABLE table_13223187_1 (michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR)
SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND date = "3 january 2009"
Where was the game played on 3 january 2009 against east fife?
CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR)
SELECT MIN(last_aired) FROM table_name_1 WHERE returning = "september 13"
What was the earliest aired show that's returning on September 13?
CREATE TABLE table_name_1 (last_aired INTEGER, returning VARCHAR)
SELECT record FROM table_27537518_9 WHERE opponent = "Carolina Hurricanes"
What was the record for the game where the opponent was the Carolina Hurricanes?
CREATE TABLE table_27537518_9 (record VARCHAR, opponent VARCHAR)
SELECT losses FROM table_name_73 WHERE year = "2012"
What is the losses for the year 2012?
CREATE TABLE table_name_73 (losses VARCHAR, year VARCHAR)
SELECT director FROM table_name_50 WHERE title = "tequila"
Who directed Tequila?
CREATE TABLE table_name_50 (director VARCHAR, title VARCHAR)
SELECT origin FROM table_3005999_1 WHERE destination = "Manchester"
What is every origin for the destination of Manchester?
CREATE TABLE table_3005999_1 (origin VARCHAR, destination VARCHAR)
SELECT time__cet_ FROM table_21536557_2 WHERE name = "Lillehammer 2"
What is every time(cet) for the name of Lillehammer 2?
CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, name VARCHAR)
SELECT country FROM table_name_60 WHERE finish = "t2" AND player = "gary player"
From what Country is T2 Finish Player Gary Player?
CREATE TABLE table_name_60 (country VARCHAR, finish VARCHAR, player VARCHAR)
SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7
What is the lowest population for the area that has a density of 36.7?
CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR)
SELECT telugu_తెలుగు FROM table_1408397_3 WHERE mongolian = "Хонгорцог"
What is the Telugu word for хонгорцог in Mongolian?
CREATE TABLE table_1408397_3 (telugu_తెలుగు VARCHAR, mongolian VARCHAR)
SELECT COUNT(DISTINCT scientist) FROM assignedto
How many different scientists are assigned to any project?
CREATE TABLE assignedto (scientist VARCHAR)
SELECT MIN(since) FROM table_name_88 WHERE notes = "to anagennisi karditsa" AND app_l_c_e_ = "0 (0/0/0)"
What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?
CREATE TABLE table_name_88 (since INTEGER, notes VARCHAR, app_l_c_e_ VARCHAR)
SELECT score FROM table_name_5 WHERE record = "37–26–9"
What was the score of the game with a record of 37–26–9?
CREATE TABLE table_name_5 (score VARCHAR, record VARCHAR)
SELECT smith FROM table_name_62 WHERE ashmolean = 16
What is the smith with a 16 ashmolean?
CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR)
SELECT COUNT(race_name) FROM table_22673956_1 WHERE date = "October 1"
How many races took place on October 1?
CREATE TABLE table_22673956_1 (race_name VARCHAR, date VARCHAR)
SELECT MAX(chimoré_municipality) FROM table_name_76 WHERE pojo_municipality = 9 AND totora_municipality < 7
What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?
CREATE TABLE table_name_76 (chimoré_municipality INTEGER, pojo_municipality VARCHAR, totora_municipality VARCHAR)
SELECT COUNT(states___first_place) FROM table_20246201_9 WHERE office = "Governor"
How many states-first place are there for the office of Governor?
CREATE TABLE table_20246201_9 (states___first_place VARCHAR, office VARCHAR)
SELECT MAX(field_goals) FROM table_25724294_2 WHERE player = "Walter Rheinschild"
How many field goals did Walter Rheinschild have?
CREATE TABLE table_25724294_2 (field_goals INTEGER, player VARCHAR)
SELECT metal FROM table_name_56 WHERE size = "26mm (across scallops)"
Which metal has a size that is 26mm (across scallops)?
CREATE TABLE table_name_56 (metal VARCHAR, size VARCHAR)
SELECT away_team AS score FROM table_name_56 WHERE away_team = "hawthorn"
What was the score for Hawthorn when they were the away team?
CREATE TABLE table_name_56 (away_team VARCHAR)
SELECT COUNT(height) FROM table_name_49 WHERE year_born < 1977
What is the Height that has a year born before 1977
CREATE TABLE table_name_49 (height VARCHAR, year_born INTEGER)
SELECT customer_id, SUM(amount_paid) FROM Payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1
What is the maximum total amount paid by a customer? List the customer id and amount.
CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)
SELECT COUNT(artist_s_) FROM table_2560677_1 WHERE start_date = "1966-12-12"
How many artist(s) have a start date is 1966-12-12?
CREATE TABLE table_2560677_1 (artist_s_ VARCHAR, start_date VARCHAR)
SELECT chinese_title FROM table_11926114_1 WHERE english_title = "Forensic Heroes II"
what is the Chinese name for Forensic heroes ii?
CREATE TABLE table_11926114_1 (chinese_title VARCHAR, english_title VARCHAR)
SELECT score FROM table_name_64 WHERE game = 26
What was the final score of game 26?
CREATE TABLE table_name_64 (score VARCHAR, game VARCHAR)
SELECT T3.Name, T2.Date, T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name
Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Date VARCHAR, Venue VARCHAR, Debate_ID VARCHAR); CREATE TABLE debate_people (Debate_ID VARCHAR, Negative VARCHAR)
SELECT team_nickname FROM table_26476336_2 WHERE institution = "University of Nebraska at Omaha"
What is the nickname at the University of Nebraska at Omaha?
CREATE TABLE table_26476336_2 (team_nickname VARCHAR, institution VARCHAR)
SELECT apogee FROM table_name_48 WHERE inclination = "65°" AND launch_date_time___gmt__ = "15 february 1973, 01:11"
What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?
CREATE TABLE table_name_48 (apogee VARCHAR, inclination VARCHAR, launch_date_time___gmt__ VARCHAR)
SELECT player FROM table_name_83 WHERE total > 285 AND finish = "t30"
Total larger than 285, and a Finish of t30 belongs to what player?
CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR)
SELECT country FROM table_name_75 WHERE result = "nominated" AND award = "17th bangkok critics assembly awards" AND category = "best screenplay"
Which Country has a Result of nominated, an Award of 17th bangkok critics assembly awards, and a Category of best screenplay?
CREATE TABLE table_name_75 (country VARCHAR, category VARCHAR, result VARCHAR, award VARCHAR)
SELECT result FROM table_name_48 WHERE year = 2013
What was the Result in 2013?
CREATE TABLE table_name_48 (result VARCHAR, year VARCHAR)
SELECT time FROM table_26842217_8 WHERE visiting_team = "Clemson"
If the visiting team is Clemson, when was the time?
CREATE TABLE table_26842217_8 (time VARCHAR, visiting_team VARCHAR)
SELECT score FROM table_name_33 WHERE game = 40
Can you tell me the Score that has the Game of 40?
CREATE TABLE table_name_33 (score VARCHAR, game VARCHAR)
SELECT australian FROM table_name_95 WHERE examples = "amœba, anemone, ascesis"
What is Australian, when Examples is "amœba, anemone, ascesis"?
CREATE TABLE table_name_95 (australian VARCHAR, examples VARCHAR)
SELECT incumbent FROM table_13833770_3 WHERE opponent = "Peter King (R) 56.0% David Mejias (D) 44.0%"
who is the the incumbent with opponent being peter king (r) 56.0% david mejias (d) 44.0%
CREATE TABLE table_13833770_3 (incumbent VARCHAR, opponent VARCHAR)
SELECT AVG(heat) FROM table_name_54 WHERE rank = 30
What is the average heat ranked at 30?
CREATE TABLE table_name_54 (heat INTEGER, rank VARCHAR)
SELECT COUNT(2013 AS _parliamentary_election) FROM table_203802_2 WHERE english_party_name = "Center Alliance"
How many parties are named the Center Alliance
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
SELECT strain FROM table_name_35 WHERE genes = "5,566"
Which species of bacteria has 5,566 genes?
CREATE TABLE table_name_35 (strain VARCHAR, genes VARCHAR)
SELECT year_left FROM table_name_89 WHERE school = "north dearborn"
What year did a team from North Dearborn leave?
CREATE TABLE table_name_89 (year_left VARCHAR, school VARCHAR)
SELECT title FROM table_27776266_1 WHERE production_code = "3X6404"
What was the title of the episode with a production code of 3x6404?
CREATE TABLE table_27776266_1 (title VARCHAR, production_code VARCHAR)
SELECT constellation FROM table_name_61 WHERE right_ascension___j2000__ = "09h51m54.0s"
what is the constellation when the right ascension (j2000) is 09h51m54.0s?
CREATE TABLE table_name_61 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT chassis FROM table_name_96 WHERE rank = "24th"
Which chassis is ranked 24th?
CREATE TABLE table_name_96 (chassis VARCHAR, rank VARCHAR)
SELECT COUNT(DISTINCT Name) FROM PHOTOS
How many distinct names are associated with all the photos?
CREATE TABLE PHOTOS (Name VARCHAR)
SELECT opponents_in_the_final FROM table_name_84 WHERE score = "4-1 5-4 (7) 4-2"
What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?
CREATE TABLE table_name_84 (opponents_in_the_final VARCHAR, score VARCHAR)
SELECT writer FROM table_name_86 WHERE title = "infiltration"
Who wrote Infiltration?
CREATE TABLE table_name_86 (writer VARCHAR, title VARCHAR)
SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)"
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?
CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR)
SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = "skyteam (2012)"
What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?
CREATE TABLE table_name_23 (remarks VARCHAR, rank VARCHAR, alliance VARCHAR)
SELECT to_par FROM table_name_75 WHERE country = "united states" AND place = "t4" AND score = 71 - 68 = 139
What is To Par, when Country is "United States", when Place is "T4", and when Score is "71-68=139"?
CREATE TABLE table_name_75 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 1"
Name the candidates for texas 1
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
SELECT class_aAAAA FROM table_name_56 WHERE school_year = "1990-91"
what AAAAA class has the school year of 1990-91?
CREATE TABLE table_name_56 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT event FROM table_name_52 WHERE method = "tko (punches)"
Which event has a method of TKO (punches)?
CREATE TABLE table_name_52 (event VARCHAR, method VARCHAR)
SELECT track FROM table_name_28 WHERE artist = "lcd soundsystem"
What is the track that from lcd soundsystem?
CREATE TABLE table_name_28 (track VARCHAR, artist VARCHAR)
SELECT MIN(erp_w) FROM table_name_21 WHERE call_sign = "wpib"
When the call sign is wpib, what is lowest ERP W?
CREATE TABLE table_name_21 (erp_w INTEGER, call_sign VARCHAR)