answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT title FROM table_1876825_8 WHERE no_in_season = 2
what is the title no in season 2?
CREATE TABLE table_1876825_8 (title VARCHAR, no_in_season VARCHAR)
SELECT mall_name FROM table_name_3 WHERE stores = "140"
Which Mall has 140 stores?
CREATE TABLE table_name_3 (mall_name VARCHAR, stores VARCHAR)
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'
Find the names of customers who are not living in the state of California.
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
SELECT season FROM table_name_1 WHERE winner = "rangers"
What season did the Rangers win?
CREATE TABLE table_name_1 (season VARCHAR, winner VARCHAR)
SELECT MAX(opened) FROM table_name_80 WHERE system = "c-train" AND daily_ridership < 269 OFFSET 600
Which Opened has a System of c-train, and a Daily ridership smaller than 269,600?
CREATE TABLE table_name_80 (opened INTEGER, system VARCHAR, daily_ridership VARCHAR)
SELECT MIN(game) FROM table_15984957_2 WHERE opponent = "Los Angeles Rams"
How many games were against the los angeles rams?
CREATE TABLE table_15984957_2 (game INTEGER, opponent VARCHAR)
SELECT engine FROM table_name_72 WHERE series = "usac championship car"
Which engine is responsible for the USAC Championship Car?
CREATE TABLE table_name_72 (engine VARCHAR, series VARCHAR)
SELECT SUM(attendance) FROM table_name_94 WHERE game = 24
What is the Attendance of Game 24?
CREATE TABLE table_name_94 (attendance INTEGER, game VARCHAR)
SELECT venue FROM table_14877831_2 WHERE opponents = 51
What is the name of the venue where the opponent scored 51?
CREATE TABLE table_14877831_2 (venue VARCHAR, opponents VARCHAR)
SELECT type_of_game FROM table_name_5 WHERE results¹ = "1:6"
What was the type of game with a 1:6 result?
CREATE TABLE table_name_5 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT date FROM table_name_32 WHERE team = "phoenix"
What day did Phoenix play?
CREATE TABLE table_name_32 (date VARCHAR, team VARCHAR)
SELECT MIN(r) FROM table WHERE player = Marcelo
If the player is Marcelo, what is the minimum R?
CREATE TABLE table (r INTEGER, player VARCHAR, Marcelo VARCHAR)
SELECT time_retired FROM table_name_72 WHERE laps < 70 AND grid > 15 AND driver = "timo glock"
What is the time or retired time for timo glock with under 70 laps and a grid number greater than 15?
CREATE TABLE table_name_72 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(turbine_manufacturer) FROM table_24837750_1 WHERE installed_capacity__mw_ = "189"
How many turbine manufacturers installed a capacity of 189 MW?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, installed_capacity__mw_ VARCHAR)
SELECT overs FROM table_name_66 WHERE mdns = "4"
Tell me the overs for mdns of 4
CREATE TABLE table_name_66 (overs VARCHAR, mdns VARCHAR)
SELECT home_team FROM table_name_3 WHERE away_team = "frickley athletic"
What was the home team when the away team was Frickley Athletic?
CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR)
SELECT method FROM table_name_30 WHERE race = "native american" AND date_of_execution = "july 1836"
How was the native american executed in July 1836?
CREATE TABLE table_name_30 (method VARCHAR, race VARCHAR, date_of_execution VARCHAR)
SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó"
What Genre did Sándor Simó direct?
CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR)
SELECT american_labor_ticket FROM table_name_91 WHERE republican_ticket = "thomas e. dewey"
Which American Labor candidate ran against Republican Thomas E. Dewey?
CREATE TABLE table_name_91 (american_labor_ticket VARCHAR, republican_ticket VARCHAR)
SELECT high_assists FROM table_17288825_10 WHERE date = "April 7"
What was the high assists on April 7?
CREATE TABLE table_17288825_10 (high_assists VARCHAR, date VARCHAR)
SELECT reporters FROM table_22514845_4 WHERE year = 1984
Who are the reporters for the year of 1984?
CREATE TABLE table_22514845_4 (reporters VARCHAR, year VARCHAR)
SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = "Puma" AND location = "Turku"
How many managers for club in Turku where kitmaker is Puma?
CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR)
SELECT points_difference FROM table_name_66 WHERE points > 3 AND lost > 0
What is the points difference associated with more than 3 points and more than 0 losses?
CREATE TABLE table_name_66 (points_difference VARCHAR, points VARCHAR, lost VARCHAR)
SELECT part_number_s_ FROM table_name_32 WHERE frequency = "933mhz"
What is the part number of the model that has a frequency of 933mhz?
CREATE TABLE table_name_32 (part_number_s_ VARCHAR, frequency VARCHAR)
SELECT before FROM table_24108789_4 WHERE player = "Geoff Ogilvy"
List all before numbers when Geoff Ogilvy was playing.
CREATE TABLE table_24108789_4 (before VARCHAR, player VARCHAR)
SELECT writer FROM table_12148018_2 WHERE viewers = "5.16m"
who is the writer where viewers is 5.16m
CREATE TABLE table_12148018_2 (writer VARCHAR, viewers VARCHAR)
SELECT SUM(year) FROM table_name_97 WHERE start = "33"
What year was the start 33?
CREATE TABLE table_name_97 (year INTEGER, start VARCHAR)
SELECT MIN(effic) FROM table_name_20 WHERE name = "total"
What was the total effic for the quarterbacks?
CREATE TABLE table_name_20 (effic INTEGER, name VARCHAR)
SELECT original_toronto_cast FROM table_19529639_3 WHERE first_national_tour_cast = "Constantine Maroulis"
What member of the original Toronto cast played the character played by Constantine Maroulis in the first national tour cast?
CREATE TABLE table_19529639_3 (original_toronto_cast VARCHAR, first_national_tour_cast VARCHAR)
SELECT venue FROM table_name_63 WHERE date = "05/09/1973"
Where was the 05/09/1973 venue?
CREATE TABLE table_name_63 (venue VARCHAR, date VARCHAR)
SELECT date FROM table_name_21 WHERE away_team = "richmond"
Which date has an Away team of richmond?
CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR)
SELECT gender FROM table_name_76 WHERE authority = "state" AND years = "1–8" AND decile < 10 AND roll = 36
Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?
CREATE TABLE table_name_76 (gender VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR, years VARCHAR)
SELECT MIN(attendance) FROM table_name_98 WHERE week < 4 AND result = "w 13-7"
What is the lowest attendance that has a week less than 4, and w 13-7 as the result?
CREATE TABLE table_name_98 (attendance INTEGER, week VARCHAR, result VARCHAR)
SELECT home_team AS score FROM table_name_54 WHERE home_team = "collingwood"
What was Collingwood's score as the home team?
CREATE TABLE table_name_54 (home_team VARCHAR)
SELECT COUNT(*) FROM Aircraft
How many aircrafts do we have?
CREATE TABLE Aircraft (Id VARCHAR)
SELECT name FROM table_name_71 WHERE construction_completed = "09/19/2008"
What name completed construction on 09/19/2008?
CREATE TABLE table_name_71 (name VARCHAR, construction_completed VARCHAR)
SELECT position FROM table_27132791_3 WHERE pro_team = "Jacksonville Bulls"
If the proteam is Jacksonville bulls, what is the position?
CREATE TABLE table_27132791_3 (position VARCHAR, pro_team VARCHAR)
SELECT date FROM table_name_92 WHERE home_team = "footscray"
What date did Footscray play at home?
CREATE TABLE table_name_92 (date VARCHAR, home_team VARCHAR)
SELECT tag_team FROM table_name_94 WHERE entered = 6
Name the Tag Team with Entered of 6?
CREATE TABLE table_name_94 (tag_team VARCHAR, entered VARCHAR)
SELECT date FROM table_name_22 WHERE record = "77-62"
what date has the record of 77-62?
CREATE TABLE table_name_22 (date VARCHAR, record VARCHAR)
SELECT COUNT(points) FROM table_name_90 WHERE difference = "2" AND position < 4
How many points occurred with a difference of 2 for position less than 4?
CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR)
SELECT income_poverty_f FROM table_13618358_1 WHERE district = "San Juan"
How low was the San Juan income?
CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, district VARCHAR)
SELECT rank FROM table_name_89 WHERE bronze = 1 AND nation = "lithuania"
Which Rank has a Bronze of 1, and a Nation of lithuania?
CREATE TABLE table_name_89 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT location FROM table_name_40 WHERE year = 1998
Where was the match played in 1998?
CREATE TABLE table_name_40 (location VARCHAR, year VARCHAR)
SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = "elitserien (sweden)"
What is the lowest pick from Elitserien (Sweden)?
CREATE TABLE table_name_15 (pick__number INTEGER, league_from VARCHAR)
SELECT developer FROM table_name_12 WHERE release_date = "2010-12-16" AND title = "facebook"
What Developer has a Release date of 2010-12-16, and a Title of facebook?
CREATE TABLE table_name_12 (developer VARCHAR, release_date VARCHAR, title VARCHAR)
SELECT preliminary_average FROM table_16323766_3 WHERE semifinal_average = "8.966 (3)"
What was the preliminary average for the one who had a semifinal average of 8.966 (3)?
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, semifinal_average VARCHAR)
SELECT result FROM table_1342149_43 WHERE district = "Texas 4"
What was the result of the election in the Texas 4 district?
CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR)
SELECT country FROM table_name_23 WHERE place = "t5" AND score = 69 - 71 = 140
What is the home country of the player who placed t5 and had a score of 69-71=140?
CREATE TABLE table_name_23 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT sport FROM table_name_25 WHERE venue = "bosse field"
What sport was played at the bosse field?
CREATE TABLE table_name_25 (sport VARCHAR, venue VARCHAR)
SELECT drawn FROM table_name_85 WHERE points_for = "402"
What is the drawn when there are 402 points?
CREATE TABLE table_name_85 (drawn VARCHAR, points_for VARCHAR)
SELECT position FROM table_12165999_1 WHERE college = "Syracuse"
What position does Syracuse's player have?
CREATE TABLE table_12165999_1 (position VARCHAR, college VARCHAR)
SELECT opponents FROM table_name_84 WHERE surface = "clay" AND partner = "margaret court" AND year = 1975
Who was Margaret Court's opponent on clay in 1975?
CREATE TABLE table_name_84 (opponents VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT opponent FROM table_name_28 WHERE week < 3 AND date = "september 23, 1960"
Who was the opponent in a week below 3 on September 23, 1960?
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT date FROM table_name_25 WHERE age_group = "90-94" AND pool = "lc" AND time = "1:25.91"
What date did the 90-94 year old have a tie of 1:25.91 at the LC pool?
CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR, age_group VARCHAR, pool VARCHAR)
SELECT home_team FROM table_name_71 WHERE away_team = "manly"
What is the Home team when the away team was Manly?
CREATE TABLE table_name_71 (home_team VARCHAR, away_team VARCHAR)
SELECT area_km²__1998_ FROM table_11656578_2 WHERE abbreviation = "kn"
How big (in km2) is the voivodenship also known by the abbreviation KN?
CREATE TABLE table_11656578_2 (area_km²__1998_ VARCHAR, abbreviation VARCHAR)
SELECT 2009 FROM table_name_64 WHERE 2008 = "wta premier mandatory tournaments"
Which 2009 has a 2008 of wta premier mandatory tournaments?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE total_number_of_ways = "12 ways"
When was the delevery date when there were 12 ways of delivery?
CREATE TABLE table_11552751_2 (total_number_of_ways VARCHAR)
SELECT MAX(shirt_number) FROM table_name_22 WHERE cap_number = 5
What's the largest shirt number when the cap number is 5?
CREATE TABLE table_name_22 (shirt_number INTEGER, cap_number VARCHAR)
SELECT score FROM table_name_33 WHERE date = "17 april 2013"
What is the score for 17 April 2013?
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)
SELECT lunar_landing_site FROM table_name_52 WHERE duration_on_lunar_surface = "21:31"
Where was the landing site when the duration on the lunar surface was 21:31?
CREATE TABLE table_name_52 (lunar_landing_site VARCHAR, duration_on_lunar_surface VARCHAR)
SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1
What is id of the city that hosted events in the most recent year?
CREATE TABLE hosting_city (host_city VARCHAR, YEAR VARCHAR)
SELECT score FROM table_name_53 WHERE game > 34 AND record = "31-11"
What is the score for a game after 34 with a record of 31-11?
CREATE TABLE table_name_53 (score VARCHAR, game VARCHAR, record VARCHAR)
SELECT MAX(events) FROM table_name_39 WHERE top_10 > 7 AND wins < 2
Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?
CREATE TABLE table_name_39 (events INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT SUM(against) FROM table_name_57 WHERE difference = "6" AND played > 19
How many against have a difference of 6, with a played greater than 19?
CREATE TABLE table_name_57 (against INTEGER, difference VARCHAR, played VARCHAR)
SELECT MIN(year) FROM table_name_43 WHERE location = "milan" AND champion = "guillermo vilas"
When is the earliest year in milan that guillermo vilas was champion?
CREATE TABLE table_name_43 (year INTEGER, location VARCHAR, champion VARCHAR)
SELECT scorers FROM table_name_4 WHERE score = "9-2"
Who are the scorers when the score is 9-2?
CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR)
SELECT MAX(year) FROM table_name_10 WHERE competition = "new york city marathon"
What is the highest Year with a Competition that is new york city marathon?
CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR)
SELECT MIN(ovrs) FROM table_name_89 WHERE wkts = 0
Name the least ovrs for wkts of 0
CREATE TABLE table_name_89 (ovrs INTEGER, wkts VARCHAR)
SELECT MIN(goals) FROM table_name_37 WHERE games = "9 (0)" AND assists < 0
What is the lowest number of goals of the player with 9 (0) games and less than 0 assists?
CREATE TABLE table_name_37 (goals INTEGER, games VARCHAR, assists VARCHAR)
SELECT AVG(week) FROM table_name_27 WHERE result = "l 13-16" AND opponent = "at buffalo bills"
Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?
CREATE TABLE table_name_27 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT place FROM table_name_38 WHERE player = "david frost"
Where is David Frost from?
CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR)
SELECT bore__mm_ FROM table_23722304_2 WHERE vehicle_code = "T214"
what is the bore where the vehicle code is t214?
CREATE TABLE table_23722304_2 (bore__mm_ VARCHAR, vehicle_code VARCHAR)
SELECT appointed FROM table_24490665_1 WHERE name = "Jack Watson"
When was jack watson appointed?
CREATE TABLE table_24490665_1 (appointed VARCHAR, name VARCHAR)
SELECT nba_draft FROM table_name_7 WHERE school = "northeast high school"
What was the NBA draft status for Northeast High School?
CREATE TABLE table_name_7 (nba_draft VARCHAR, school VARCHAR)
SELECT rank FROM table_name_64 WHERE games = "426"
What is the rank that shows 426 games?
CREATE TABLE table_name_64 (rank VARCHAR, games VARCHAR)
SELECT wins FROM table_26178824_1 WHERE series = "Formula Renault 2.0 NEC" AND position = "18th"
how many wins had series formula renault 2.0 nec and the position is 18th?
CREATE TABLE table_26178824_1 (wins VARCHAR, series VARCHAR, position VARCHAR)
SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
What is the famous release date of the artist with the oldest age?
CREATE TABLE artist (Famous_Release_date VARCHAR, Age VARCHAR)
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
what is the sum of totaltk when yards is less than 0?
CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)
SELECT COUNT(against) FROM table_name_20 WHERE status = "first test"
How many against have a status of first test?
CREATE TABLE table_name_20 (against VARCHAR, status VARCHAR)
SELECT COUNT(silver) FROM table_name_84 WHERE bronze < 1
What is the total number of Silver medals for the Nation with less than 1 Bronze?
CREATE TABLE table_name_84 (silver VARCHAR, bronze INTEGER)
SELECT directed_by FROM table_18424435_4 WHERE production_code = 301
Who directed the episode with a production code of 301?
CREATE TABLE table_18424435_4 (directed_by VARCHAR, production_code VARCHAR)
SELECT SUM(challenge_cup) FROM table_name_90 WHERE league = 1 AND player = "simon storey" AND total > 1
What is the Challenge Cup total with a League of 1, Player Simon Storey, and a Total greater than 1?
CREATE TABLE table_name_90 (challenge_cup INTEGER, total VARCHAR, league VARCHAR, player VARCHAR)
SELECT score FROM table_name_36 WHERE place = "t10" AND player = "thomas levet"
What was the score that thomas levet got when he placed t10?
CREATE TABLE table_name_36 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_99 WHERE to_par = "+1" AND score = 72 - 71 = 143
What is the Country of the Player with a To par of +1 and a Score of 72-71=143?
CREATE TABLE table_name_99 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_58 WHERE pick > 33 AND round > 2
What Player was picked after Round 2 with a Pick number larger than 33?
CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT COUNT(season) AS Finale FROM table_1348989_2 WHERE season = "2nd"
How many times did the 2nd season have a finale?
CREATE TABLE table_1348989_2 (season VARCHAR)
SELECT AVG(draw) FROM table_name_61 WHERE played > 18
What is the average for Draw games where Played games is more than 18?
CREATE TABLE table_name_61 (draw INTEGER, played INTEGER)
SELECT MIN(year) FROM table_name_35 WHERE winner = "new york jets" AND location = "harvard stadium"
What is the earliest year the new york jets won at harvard stadium?
CREATE TABLE table_name_35 (year INTEGER, winner VARCHAR, location VARCHAR)
SELECT SUM(overall) FROM table_name_69 WHERE pick > 5 AND round < 11 AND name = "tom barrington"
What is the sum of Overall, when Pick is greater than 5, when Round is less than 11, and when Name is "Tom Barrington"?
CREATE TABLE table_name_69 (overall INTEGER, name VARCHAR, pick VARCHAR, round VARCHAR)
SELECT SUM(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin"
How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?
CREATE TABLE Lessons (lesson_time INTEGER, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = "a" AND tournament = "us open"
Which 2008-12 has a 2007 of A, and a Tournament of us open?
CREATE TABLE table_name_80 (tournament VARCHAR)
SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)
Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?
CREATE TABLE table_name_17 (championship VARCHAR, year VARCHAR, winning_score VARCHAR)
SELECT MIN(first_game) FROM table_name_78 WHERE lost = 7 AND drawn < 0
What is the earliest first game for a rugby team that has 7 lost games and 0 draws?
CREATE TABLE table_name_78 (first_game INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT time FROM table_name_4 WHERE away_team = "shatin"
What was the time for the match with away team Shatin?
CREATE TABLE table_name_4 (time VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_29 WHERE score = "100-86"
Which home team had a score of 100-86?
CREATE TABLE table_name_29 (home_team VARCHAR, score VARCHAR)
SELECT COUNT(attendance) FROM table_name_82 WHERE visitor = "toronto"
What is the total attendance of the game with Toronto as the visitor team?
CREATE TABLE table_name_82 (attendance VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_8 WHERE opponent = "indiana"
When did indiana play?
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
SELECT away_team AS score FROM table_name_92 WHERE venue = "brunswick street oval"
What was the away score when they played at Brunswick Street Oval?
CREATE TABLE table_name_92 (away_team VARCHAR, venue VARCHAR)