answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT tournament FROM table_name_31 WHERE extra = "400 m hurdles"
In what tournament was there an extra of 400 m hurdles?
CREATE TABLE table_name_31 (tournament VARCHAR, extra VARCHAR)
SELECT chinese_name__simplified___traditional_ FROM table_1976898_1 WHERE english_name = "Susong County"
What's the Chinese (simplified/traditional) name of Susong County?
CREATE TABLE table_1976898_1 (chinese_name__simplified___traditional_ VARCHAR, english_name VARCHAR)
SELECT clubs_remaining FROM table_29566686_1 WHERE winners_from_previous_round = 4
How many clubs remained when there were 4 winners from the previous round?
CREATE TABLE table_29566686_1 (clubs_remaining VARCHAR, winners_from_previous_round VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE home_team = "geelong"
What is the score of the Home team of geelong?
CREATE TABLE table_name_74 (home_team VARCHAR)
SELECT SUM(to_par) FROM table_name_38 WHERE country = "united states" AND year_s__won = "1967" AND total > 146
What is the sum of the to par for the United States in the winning year of 1967, and has a total of more than 146?
CREATE TABLE table_name_38 (to_par INTEGER, total VARCHAR, country VARCHAR, year_s__won VARCHAR)
SELECT margin_of_victory FROM table_name_21 WHERE winning_score = −5(69 - 69 - 73 = 211)
What was the margin of victory when the winning score was −5 (69-69-73=211)?
CREATE TABLE table_name_21 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT score FROM table_name_37 WHERE edition = 2011 AND surface = "hard (i)"
What is Score, when Edition is 2011, and when Surface is Hard (i)?
CREATE TABLE table_name_37 (score VARCHAR, edition VARCHAR, surface VARCHAR)
SELECT round FROM table_name_23 WHERE player = "anna chakvetadze"
Which Round has a Player of anna chakvetadze?
CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR)
SELECT result FROM table_17294353_1 WHERE attendance = 18304
In the game with an attendance of 18304, what was the final score?
CREATE TABLE table_17294353_1 (result VARCHAR, attendance VARCHAR)
SELECT runs FROM table_1670921_2 WHERE fielding_team = "Bangladesh"
How many runs when bangladesh was the fielding team?
CREATE TABLE table_1670921_2 (runs VARCHAR, fielding_team VARCHAR)
SELECT date_released FROM table_17798548_4 WHERE season = "The Complete 2nd Series: Volume One"
What day was the complete 2nd series: volume one released?
CREATE TABLE table_17798548_4 (date_released VARCHAR, season VARCHAR)
SELECT record FROM table_name_44 WHERE date = "january 6"
What was the record after the January 6 game?
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11
Tell me the average bronze for rank of 43 and total less than 11
CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT MAX(week) FROM table_name_40 WHERE date = "november 5, 1995"
What is the latest week with the date of november 5, 1995?
CREATE TABLE table_name_40 (week INTEGER, date VARCHAR)
SELECT gearbox FROM table_250230_2 WHERE "torque" = "torque"
What is the gearbox when the torque is torque?
CREATE TABLE table_250230_2 (gearbox VARCHAR)
SELECT T1.fault_short_name, T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id
For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.
CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR, skill_id VARCHAR); CREATE TABLE Part_Faults (fault_short_name VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
SELECT AVG(points) FROM table_name_38 WHERE drawn > 0 AND lost > 1
Which Points have a Drawn larger than 0, and a Lost larger than 1?
CREATE TABLE table_name_38 (points INTEGER, drawn VARCHAR, lost VARCHAR)
SELECT MIN(motogp_500cc) FROM table_2889810_1
What is the minimum MotoGP/500cc ranking?
CREATE TABLE table_2889810_1 (motogp_500cc INTEGER)
SELECT chicken_wing FROM table_name_76 WHERE steal_intercept_ball = "no"
Which Chicken wing has no steal/intercept ball?
CREATE TABLE table_name_76 (chicken_wing VARCHAR, steal_intercept_ball VARCHAR)
SELECT MIN(year) FROM table_name_18 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "alvin and the chipmunks meet the wolfman"
What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman?
CREATE TABLE table_name_18 (year INTEGER, role VARCHAR, title VARCHAR)
SELECT surface FROM table_name_67 WHERE opponent_in_the_final = "laura golarsa"
What was the surface that Laura Golarsa and her opponent played on in the final?
CREATE TABLE table_name_67 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT MAX(floors) FROM table_name_96 WHERE rank > 1 AND name = "conrad dubai"
What is the highest floors with rank greater than 1 in Conrad Dubai?
CREATE TABLE table_name_96 (floors INTEGER, rank VARCHAR, name VARCHAR)
SELECT 2007 FROM table_name_32 WHERE 2006 = "grand slam tournaments"
What is the 2007 that has a grand slam tournaments in 2006.
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT MIN(drop_goals) FROM table_20505342_1
Lowest number of drop goals?
CREATE TABLE table_20505342_1 (drop_goals INTEGER)
SELECT COUNT(province__ashkharh_) FROM table_23887174_1 WHERE center = "Baghaberd"
How many different provinces is Baghaberd the center of?
CREATE TABLE table_23887174_1 (province__ashkharh_ VARCHAR, center VARCHAR)
SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1
Which language is spoken by the largest number of countries?
CREATE TABLE countrylanguage (LANGUAGE VARCHAR)
SELECT team FROM table_name_75 WHERE laps = 159 AND time_retired = "6:30:02.3733"
What team had 159 laps and a Time/Retired of 6:30:02.3733?
CREATE TABLE table_name_75 (team VARCHAR, laps VARCHAR, time_retired 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 production_code FROM table_12159115_2 WHERE us_viewers__millions_ = "11.64"
What's the production code of the episode seen by 11.64 million US viewers?
CREATE TABLE table_12159115_2 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT location FROM table_name_3 WHERE runner_up = "tbd"
At what Location was the Runner-up TBD?
CREATE TABLE table_name_3 (location VARCHAR, runner_up VARCHAR)
SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 1
What is the highest rank of the medal total less than 15, more than 2 bronzes, 0 gold and 1 silver?
CREATE TABLE table_name_29 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(music) FROM table_28677723_10 WHERE tor_fløysvik = 3
How many music entries are there when tor floysvik is 3?
CREATE TABLE table_28677723_10 (music VARCHAR, tor_fløysvik VARCHAR)
SELECT MAX(points) FROM table_2817196_1
What is the largest number of points in a season?
CREATE TABLE table_2817196_1 (points INTEGER)
SELECT august_21_22 FROM table_25252080_3 WHERE november_3 = "november_3, 1994"
What is shown for august 21-22 when november 3 is november 3, 1994?
CREATE TABLE table_25252080_3 (august_21_22 VARCHAR, november_3 VARCHAR)
SELECT MIN(total) FROM table_name_43 WHERE nationality = "italy" AND latest_win = 1950
What was the lowest total for Italy when the latest win is 1950?
CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR)
SELECT location___state FROM table_name_59 WHERE circuit = "phillip island grand prix circuit"
What location and state has a circuit of Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_59 (location___state VARCHAR, circuit VARCHAR)
SELECT chosen_by FROM table_name_10 WHERE couple = "katee shean joshua allen" AND choreographer_s_ = "nakul dev mahajan"
What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan?
CREATE TABLE table_name_10 (chosen_by VARCHAR, couple VARCHAR, choreographer_s_ VARCHAR)
SELECT opponent FROM table_name_16 WHERE surface = "clay" AND date = "3 march 2012"
Who played on clay on 3 march 2012?
CREATE TABLE table_name_16 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_23 WHERE record = "33-33"
Tell me the average year with a record of 33-33
CREATE TABLE table_name_23 (year INTEGER, record VARCHAR)
SELECT broadcaster FROM table_name_12 WHERE territory = "malaysia"
Who broadcasts in malaysia?
CREATE TABLE table_name_12 (broadcaster VARCHAR, territory VARCHAR)
SELECT party FROM table_2668367_21 WHERE incumbent = "John Randolph Redistricted from the 15th district"
Name the party for john randolph redistricted from the 15th district
CREATE TABLE table_2668367_21 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(*) FROM store
How many stores are there?
CREATE TABLE store (Id VARCHAR)
SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes"
yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast?
CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT COUNT(ebit__us_) AS $m_ FROM table_name_35 WHERE revenue__us_$million_ > 434.8 AND net_profit__us_$m_ > 96.4
COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?
CREATE TABLE table_name_35 (ebit__us_ VARCHAR, revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT assets_2013__bil$_ FROM table_24307126_3 WHERE rank_2013 = 1435
Name the assets when the rank is 1435
CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR, rank_2013 VARCHAR)
SELECT enrollment FROM table_name_9 WHERE mascot = "fighting '59ers"
What is the enrollment for the school with the mascot of the Fighting '59ers?
CREATE TABLE table_name_9 (enrollment VARCHAR, mascot VARCHAR)
SELECT driver FROM table_18893428_1 WHERE constructor = "Mercedes-Benz"
Who is the driver of the entry constructed by Mercedes-Benz?
CREATE TABLE table_18893428_1 (driver VARCHAR, constructor VARCHAR)
SELECT nationality FROM table_2897457_2 WHERE position = "Centre" AND nhl_team = "Calgary Flames"
What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames?
CREATE TABLE table_2897457_2 (nationality VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT AVG(points) FROM table_name_36 WHERE lost = 21 AND position = 22
What's the Points average with a Lost of 21, and Position of 22?
CREATE TABLE table_name_36 (points INTEGER, lost VARCHAR, position VARCHAR)
SELECT name FROM table_name_33 WHERE eliminated = "banana night"
Who was eliminated on Banana Night?
CREATE TABLE table_name_33 (name VARCHAR, eliminated VARCHAR)
SELECT AVG(no_s_) FROM table_name_14 WHERE years_for_rockets = "2004-05"
What is the average number of years for the Houston Rockets 2004-05?
CREATE TABLE table_name_14 (no_s_ INTEGER, years_for_rockets VARCHAR)
SELECT ihsaa_class FROM table_name_34 WHERE location = "indianapolis"
What are the IHSAA classes of the Indianapolis schools?
CREATE TABLE table_name_34 (ihsaa_class VARCHAR, location VARCHAR)
SELECT overall FROM table_name_91 WHERE position = "running back"
What is the overall of the running back player?
CREATE TABLE table_name_91 (overall VARCHAR, position VARCHAR)
SELECT record FROM table_23308178_4 WHERE date = "October 17"
What was the record on October 17?
CREATE TABLE table_23308178_4 (record VARCHAR, date VARCHAR)
SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1
Which of the countries has the most car makers? List the country name.
CREATE TABLE CAR_MAKERS (Country VARCHAR); CREATE TABLE COUNTRIES (CountryName VARCHAR, CountryId VARCHAR)
SELECT score FROM table_name_20 WHERE high_points = "donyell marshall (26)"
What is the Score when Donyell Marshall (26) had the high points?
CREATE TABLE table_name_20 (score VARCHAR, high_points VARCHAR)
SELECT team FROM table_2503102_2 WHERE listed_owner_s_ = "Chip Ganassi"
What team owns the car owned by chip ganassi?
CREATE TABLE table_2503102_2 (team VARCHAR, listed_owner_s_ VARCHAR)
SELECT erp_w FROM table_name_56 WHERE city_of_license = "glens falls, new york"
Name the ERP W for glens falls, new york
CREATE TABLE table_name_56 (erp_w VARCHAR, city_of_license VARCHAR)
SELECT season FROM table_name_78 WHERE points < 26 AND games > 18 AND losses = 13
Which season has less than 26 points, more than 18 games, and exactly 13 losses?
CREATE TABLE table_name_78 (season VARCHAR, losses VARCHAR, points VARCHAR, games VARCHAR)
SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r"
Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r
CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT team FROM table_name_9 WHERE score = "108-105 (ot)"
Which Team has a Score of 108-105 (ot)?
CREATE TABLE table_name_9 (team VARCHAR, score VARCHAR)
SELECT COUNT(golden_tickets) FROM table_name_51 WHERE audition_city = "san francisco, california"
How many golden tickets were given out when the auditions were held in San Francisco, California?
CREATE TABLE table_name_51 (golden_tickets VARCHAR, audition_city VARCHAR)
SELECT start_date FROM table_24057191_2 WHERE series = 6
When did series 6 start?
CREATE TABLE table_24057191_2 (start_date VARCHAR, series VARCHAR)
SELECT Name FROM wrestler WHERE NOT Wrestler_ID IN (SELECT Wrestler_ID FROM elimination)
List the names of wrestlers that have not been eliminated.
CREATE TABLE elimination (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR)
SELECT time FROM table_22098274_1 WHERE site = "USF Softball Field • Tampa, FL" AND result = "W4-0"
At what time is the site usf softball field • tampa, fl and w4-0 is the result?
CREATE TABLE table_22098274_1 (time VARCHAR, site VARCHAR, result VARCHAR)
SELECT autonomous_community FROM table_13566548_1 WHERE wind_power = 1042
What is the community with a wind power of 1042?
CREATE TABLE table_13566548_1 (autonomous_community VARCHAR, wind_power VARCHAR)
SELECT AVG(goals) FROM table_name_32 WHERE competition = "bundesliga" AND apps < 7
How many goals did he have in the bundesliga with under 7 appearances?
CREATE TABLE table_name_32 (goals INTEGER, competition VARCHAR, apps VARCHAR)
SELECT COUNT(replaced_by) FROM table_18795125_6 WHERE outgoing_manager = "Alan Buckley"
How many categories for, replaced by, exist when the outgoing manager is Alan Buckley?
CREATE TABLE table_18795125_6 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = "Left halfback"
What is the smallest number of extra points for a left halfback?
CREATE TABLE table_25517718_3 (extra_points INTEGER, position VARCHAR)
SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
Find the last name of the staff whose email address contains "wrau".
CREATE TABLE staff (last_name VARCHAR, email_address VARCHAR)
SELECT year FROM table_1028356_3 WHERE championship = "Wimbledon (2)"
What year was the championship in Wimbledon (2)?
CREATE TABLE table_1028356_3 (year VARCHAR, championship VARCHAR)
SELECT competition FROM table_name_44 WHERE score = "1-1"
What is the competition type when the score is 1-1?
CREATE TABLE table_name_44 (competition VARCHAR, score VARCHAR)
SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland"
How many golds were there for Iceland with more than 15 silver?
CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(directed_by) FROM table_19925114_1 WHERE no_in_series = 38
How many episodes had the series number of 38?
CREATE TABLE table_19925114_1 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT winning_score FROM table_name_96 WHERE runner_s__up = "betsy rawls"
What was the Winning Score when Betsy Rawls was the Runner(s)-up?
CREATE TABLE table_name_96 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.4
Tell me the name for longitude more than 103.8 and latitude of -11.4
CREATE TABLE table_name_80 (name VARCHAR, longitude VARCHAR, latitude VARCHAR)
SELECT label FROM table_name_97 WHERE date = "january 24, 2005"
Name the label for january 24, 2005
CREATE TABLE table_name_97 (label VARCHAR, date VARCHAR)
SELECT cores FROM table_name_76 WHERE l3_cache = "8 mb" AND model_number = "core i7-860"
What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860?
CREATE TABLE table_name_76 (cores VARCHAR, l3_cache VARCHAR, model_number 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 2006 FROM table_name_89 WHERE 2013 = "1r" AND 2012 = "1r"
What is the 2006 when the 2013 is 1r, and the 2012 is 1r?
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT high_points FROM table_name_28 WHERE date = "december 13"
Who scored the most point on December 13?
CREATE TABLE table_name_28 (high_points VARCHAR, date VARCHAR)
SELECT SUM(overall) FROM table_name_22 WHERE college = "arkansas state" AND pick < 17
What is the sum of Overall, when College is "Arkansas State", and when Pick is less than 17?
CREATE TABLE table_name_22 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT builder FROM table_name_16 WHERE works_number = "2534"
Who is the builder with a works number of 2534?
CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)
SELECT record FROM table_name_96 WHERE res = "loss" AND time = "3:54"
Which Record has a Result of loss, and a Time of 3:54?
CREATE TABLE table_name_96 (record VARCHAR, res VARCHAR, time VARCHAR)
SELECT home FROM table_name_85 WHERE club = "maccabi tel-aviv"
What is the home record for the Maccabi Tel-Aviv club?
CREATE TABLE table_name_85 (home VARCHAR, club VARCHAR)
SELECT production FROM table_2477085_1 WHERE alpina_model = "B10 4,6"
Name the production for alpina model being b10 4,6
CREATE TABLE table_2477085_1 (production VARCHAR, alpina_model VARCHAR)
SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher"
In what district is the incumbent Charles Fisher?
CREATE TABLE table_2668336_17 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(attendance) FROM table_name_80 WHERE date = "november 12, 1989"
What was the highest attendance on November 12, 1989?
CREATE TABLE table_name_80 (attendance INTEGER, date 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 d_shulman FROM table_name_9 WHERE c_abate = "728 (43%)"
What is the number for D. Shulman if C. Abate has 728 (43%)
CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR)
SELECT SUM(pick) FROM table_name_15 WHERE round = 11
What is the number of the pick for round 11?
CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR)
SELECT district FROM table_1805191_14 WHERE first_elected = 1986
What is the district when the first elected was in 1986?
CREATE TABLE table_1805191_14 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(*) FROM Video_games
How many video games exist?
CREATE TABLE Video_games (Id VARCHAR)
SELECT natural_change__per_1000_ FROM table_name_61 WHERE crude_death_rate__per_1000_ = 10
what is the natural change (per 1000) when the crude death rate (per 1000) is 10?
CREATE TABLE table_name_61 (natural_change__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT opponent FROM table_name_98 WHERE record = "17-44"
What is Opponent, when Record is 17-44?
CREATE TABLE table_name_98 (opponent VARCHAR, record VARCHAR)
SELECT cover_model FROM table_1566852_8 WHERE pictorials = "PMOY - Sara Jean Underwood"
Who was the cover model when the issue's pictorials was pmoy - sara jean underwood?
CREATE TABLE table_1566852_8 (cover_model VARCHAR, pictorials VARCHAR)
SELECT school_club_team FROM table_name_60 WHERE player = "chris robinson"
Which school was Chris Robinson from?
CREATE TABLE table_name_60 (school_club_team VARCHAR, player VARCHAR)
SELECT name FROM table_name_86 WHERE date_from = "2008-02-21"
What was the name for the row with Date From of 2008-02-21?
CREATE TABLE table_name_86 (name VARCHAR, date_from VARCHAR)
SELECT COUNT(grid) FROM table_17271495_1 WHERE points = "30"
Name the total number of grid for 30
CREATE TABLE table_17271495_1 (grid VARCHAR, points VARCHAR)
SELECT distance FROM table_name_72 WHERE course = "civitavecchia to san vincenzo"
What is the distance for the course Civitavecchia to San Vincenzo?
CREATE TABLE table_name_72 (distance VARCHAR, course VARCHAR)