answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT T1.part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name
How many assets can each parts be used in? List the part name and the number.
CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Asset_Parts (part_id VARCHAR)
SELECT cast FROM table_2570269_2 WHERE episode__number = "2-03"
For episode number 2-03, what are the names of the cast?
CREATE TABLE table_2570269_2 (cast VARCHAR, episode__number VARCHAR)
SELECT text FROM table_name_47 WHERE traditional_characters = "心如猨猴"
Which text has traditional characters of 心如猨猴?
CREATE TABLE table_name_47 (text VARCHAR, traditional_characters VARCHAR)
SELECT week_4 FROM table_name_26 WHERE week_3 = "laura nicole"
What is the week 3, prior to the when the week 4 was Laura Nicole?
CREATE TABLE table_name_26 (week_4 VARCHAR, week_3 VARCHAR)
SELECT COUNT(attendance) FROM table_name_98 WHERE home = "penguins" AND record = "14–19–6" AND points < 34
How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?
CREATE TABLE table_name_98 (attendance VARCHAR, points VARCHAR, home VARCHAR, record VARCHAR)
SELECT section_name, section_description FROM Sections
What are the names and descriptions of all the sections?
CREATE TABLE Sections (section_name VARCHAR, section_description VARCHAR)
SELECT MAX(founded) FROM table_1969577_3 WHERE nickname = "Rams"
When was the school whose students are nicknamed Rams founded?
CREATE TABLE table_1969577_3 (founded INTEGER, nickname VARCHAR)
SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway"
What race did Glenn Seton win on the Sandown International Raceway circuit?
CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT AVG(car__number) FROM table_name_21 WHERE winnings = "$111,683"
What is the average car number of all the drivers who have won $111,683?
CREATE TABLE table_name_21 (car__number INTEGER, winnings VARCHAR)
SELECT avg_speed FROM table_name_23 WHERE distance = "18.00km" AND winning_driver = "jean-claude andruet"
What was the average speed over 18.00km for winning driver Jean-Claude Andruet?
CREATE TABLE table_name_23 (avg_speed VARCHAR, distance VARCHAR, winning_driver VARCHAR)
SELECT builder FROM table_name_22 WHERE year_built = "1929"
what was the builder in 1929
CREATE TABLE table_name_22 (builder VARCHAR, year_built VARCHAR)
SELECT sesamin FROM table_1831262_2 WHERE foodstuff = "Sesame seed"
how much sesamin is in sesame seed?
CREATE TABLE table_1831262_2 (sesamin VARCHAR, foodstuff VARCHAR)
SELECT freq_currently FROM table_name_86 WHERE frequency = "0 657"
Which freq currently has 0 657?
CREATE TABLE table_name_86 (freq_currently VARCHAR, frequency VARCHAR)
SELECT year_made FROM table_name_52 WHERE class = "hercules"
Name the year for hercules
CREATE TABLE table_name_52 (year_made VARCHAR, class VARCHAR)
SELECT 2012 FROM table_name_36 WHERE tournament = "us open"
Name the 2012 for us open
CREATE TABLE table_name_36 (tournament VARCHAR)
SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184
What is the average number of years associated with 51 games tied and over 1184 total games?
CREATE TABLE table_name_60 (years INTEGER, tied VARCHAR, total_games VARCHAR)
SELECT COUNT(week) FROM table_name_83 WHERE date = "december 5, 2005"
Tell me the number of weeks for december 5, 2005
CREATE TABLE table_name_83 (week VARCHAR, date VARCHAR)
SELECT MAX(finishes) FROM table_name_48 WHERE points < 337 AND stage_wins = 2 AND wins > 0
what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?
CREATE TABLE table_name_48 (finishes INTEGER, wins VARCHAR, points VARCHAR, stage_wins VARCHAR)
SELECT hebrew_word FROM table_1242447_2 WHERE strongs_words_compounded = "'adown [# 113] & Yahu"
List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu
CREATE TABLE table_1242447_2 (hebrew_word VARCHAR, strongs_words_compounded VARCHAR)
SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity LIMIT 1
Find the name of the product that has the smallest capacity.
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, capacity VARCHAR)
SELECT COUNT(writer) FROM table_15026994_3 WHERE director = "David Tucker"
Who wrote the episode that David Tucker directed?
CREATE TABLE table_15026994_3 (writer VARCHAR, director VARCHAR)
SELECT away_team AS score FROM table_name_98 WHERE home_team = "essendon"
What is the score of the away team that played Essendon?
CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(year) FROM table_name_99 WHERE entrant = "austria-marlboro brm" AND points > 0
What year did Austria-Marlboro BRM get more than 0 points?
CREATE TABLE table_name_99 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT set_1 FROM table_name_25 WHERE set_3 = "16–25"
Which Set 1 has a Set 3 of 16–25?
CREATE TABLE table_name_25 (set_1 VARCHAR, set_3 VARCHAR)
SELECT trance__n_himalaya_zone FROM table_10638523_1 WHERE particulars_and_characteristics = "Climatic conditions"
What are the climatic conditions for the trance- n himalaya zone?
CREATE TABLE table_10638523_1 (trance__n_himalaya_zone VARCHAR, particulars_and_characteristics VARCHAR)
SELECT framed_size FROM table_name_22 WHERE date_completed = "08/87"
What was the frame size in 08/87?
CREATE TABLE table_name_22 (framed_size VARCHAR, date_completed VARCHAR)
SELECT manner_of_departure FROM table_24162080_3 WHERE replaced_by = "Steve McClaren"
When steve mcclaren is the replacer what is the manner of departure?
CREATE TABLE table_24162080_3 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT couple FROM table_19744915_14 WHERE average = "15.9"
What is the couples name where the average is 15.9?
CREATE TABLE table_19744915_14 (couple VARCHAR, average VARCHAR)
SELECT number_of_networks FROM table_name_93 WHERE size_of_rest_bit_field = "8"
What is the number of networks when the size of rest bit field is 8?
CREATE TABLE table_name_93 (number_of_networks VARCHAR, size_of_rest_bit_field VARCHAR)
SELECT money___$__ FROM table_name_87 WHERE place = "t3" AND score = 74 - 74 - 71 - 69 = 288
What's the money ($) for the t3 place and the score of 74-74-71-69=288?
CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT circuit FROM table_name_3 WHERE winner = "stan jones" AND race = "phillip island trophy race"
what is the circuit when the winner is stan jones and the race is phillip island trophy race?
CREATE TABLE table_name_3 (circuit VARCHAR, winner VARCHAR, race VARCHAR)
SELECT record FROM table_name_82 WHERE home = "ottawa senators" AND date = "december 21"
which Record has a Home of ottawa senators on Date of december 21?
CREATE TABLE table_name_82 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT depth FROM table_24192190_1 WHERE time__utc_ = "11:40:26"
When 11:40:26 is the time (utc) what is the depth?
CREATE TABLE table_24192190_1 (depth VARCHAR, time__utc_ VARCHAR)
SELECT years_in_assembly FROM table_name_27 WHERE name = "toni atkins"
Which Years in Assembly has a Name of toni atkins?
CREATE TABLE table_name_27 (years_in_assembly VARCHAR, name VARCHAR)
SELECT date FROM table_name_20 WHERE field = "hofstra stadium"
What days were games played at Hofstra Stadium?
CREATE TABLE table_name_20 (date VARCHAR, field VARCHAR)
SELECT date FROM table_name_85 WHERE tie_no = "replay" AND away_team = "crystal palace"
What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"?
CREATE TABLE table_name_85 (date VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT DISTINCT forename FROM drivers ORDER BY forename
List the forenames of all distinct drivers in alphabetical order?
CREATE TABLE drivers (forename VARCHAR)
SELECT AVG(week) FROM table_name_49 WHERE date = "september 4, 1994"
What Week falls on September 4, 1994?
CREATE TABLE table_name_49 (week INTEGER, date VARCHAR)
SELECT league_cup_apps FROM table_name_54 WHERE total_goals < 2 AND total_apps = "12"
what is the league cup apps when the total goals is less than 2 and the total apps is 12?
CREATE TABLE table_name_54 (league_cup_apps VARCHAR, total_goals VARCHAR, total_apps VARCHAR)
SELECT MAX(sd) FROM table_26218783_7 WHERE status = "Second round lost to Iveta Benešová"
What is the highest sd when the status is second round lost to iveta benešová?
CREATE TABLE table_26218783_7 (sd INTEGER, status VARCHAR)
SELECT title FROM table_2409041_6 WHERE no_in_season = 2
What is the title of season 2?
CREATE TABLE table_2409041_6 (title VARCHAR, no_in_season VARCHAR)
SELECT candidates FROM table_1341640_39 WHERE party = "Republican"
What candidate is a member of the Republican party?
CREATE TABLE table_1341640_39 (candidates VARCHAR, party VARCHAR)
SELECT visitor FROM table_name_33 WHERE date = "january 24"
What is the Visitor of the game on January 24?
CREATE TABLE table_name_33 (visitor VARCHAR, date VARCHAR)
SELECT COUNT(oricon_peak) FROM table_name_72 WHERE label = "atlantic" AND title = "subhuman race" AND date_of_release > 1995
WHAT IS THE ORICON PEAK NUMBER WITH AN ATLANTIC LABEL, SUBHUMAN RACE, LATER THAN 1995?
CREATE TABLE table_name_72 (oricon_peak VARCHAR, date_of_release VARCHAR, label VARCHAR, title VARCHAR)
SELECT SUM(goals_for) FROM table_name_45 WHERE drawn > 12 AND team = "goole town" AND goals_against > 60
How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against?
CREATE TABLE table_name_45 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT horse FROM table_25429986_1 WHERE position = "6th"
what horse is in the 6th position?
CREATE TABLE table_25429986_1 (horse VARCHAR, position VARCHAR)
SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 11
What is the low silver medal total for nations with over 1 bronze ranked above 11?
CREATE TABLE table_name_80 (silver INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT MIN(wins) FROM table_name_32 WHERE scored < 24 AND conceded = 27 AND played > 18
What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?
CREATE TABLE table_name_32 (wins INTEGER, played VARCHAR, scored VARCHAR, conceded VARCHAR)
SELECT player FROM table_name_73 WHERE school_club_team = "georgia"
Who is the player for the School/Club team in Georgia?
CREATE TABLE table_name_73 (player VARCHAR, school_club_team VARCHAR)
SELECT MIN(grid) FROM table_name_90 WHERE driver = "thierry boutsen" AND laps < 44
Which grid is lower for thierry boutsen which laps less than 44?
CREATE TABLE table_name_90 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT location FROM table_name_93 WHERE time = "2:22.32"
What is the Location of the Event with a Time of 2:22.32?
CREATE TABLE table_name_93 (location VARCHAR, time VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_74 WHERE top_10 > 1 AND wins > 0 AND top_5 > 2 AND events > 18
How many cuts made when the Top-10 is larger than 1, and the wins greater than 0, and a Top-5 greater than 2, when the events is greater than 18?
CREATE TABLE table_name_74 (cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR, wins VARCHAR)
SELECT MIN(number_1971) FROM table_name_15 WHERE 2002 > 133 AND 1991 < 171
What is the lowest 1971 number of the Macedonian population with a 2002 value greater than 133 and a 1991 value less than 171?
CREATE TABLE table_name_15 (number_1971 INTEGER)
SELECT SUM(rank) FROM table_name_70 WHERE time = "3:12.40"
what is the rank when the time is 3:12.40?
CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR)
SELECT serbs FROM table_2374338_2 WHERE hungarians = "9.26%"
What is every value for Serbs if value for Hungarians is 9.26%?
CREATE TABLE table_2374338_2 (serbs VARCHAR, hungarians VARCHAR)
SELECT apt_number FROM Apartments WHERE apt_type_code = "Flat"
Return the apartment numbers of the apartments with type code "Flat".
CREATE TABLE Apartments (apt_number VARCHAR, apt_type_code VARCHAR)
SELECT COUNT(status) FROM table_27514362_7 WHERE entrant = "James Finch"
How many status figures does James Finch have?
CREATE TABLE table_27514362_7 (status VARCHAR, entrant VARCHAR)
SELECT course FROM table_name_15 WHERE type = "km (mi)"
Which course has km (mi) as a type?
CREATE TABLE table_name_15 (course VARCHAR, type VARCHAR)
SELECT player FROM table_name_94 WHERE score > 67
What player has a score larger than 67?
CREATE TABLE table_name_94 (player VARCHAR, score INTEGER)
SELECT COUNT(attendance) FROM table_name_13 WHERE result = "w 31-21" AND week < 9
What was the total attendance with a result of W 31-21 before week 9?
CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR, week VARCHAR)
SELECT avoirdupois_value FROM table_name_76 WHERE translation = "grain"
Which Avoirdupois value is translated to grain?
CREATE TABLE table_name_76 (avoirdupois_value VARCHAR, translation VARCHAR)
SELECT school FROM table_name_81 WHERE team_name = "panthers" AND year_left = "1968"
Which school left in 1968 and has the team name of Panthers?
CREATE TABLE table_name_81 (school VARCHAR, team_name VARCHAR, year_left VARCHAR)
SELECT COUNT(number_of_issues) FROM table_name_60 WHERE end_month = "oct-80"
What is the total number of Issues has a End month of oct-80?
CREATE TABLE table_name_60 (number_of_issues VARCHAR, end_month VARCHAR)
SELECT height__cm_ FROM table_18626383_2 WHERE country = "Bahamas"
When bahamas is the country what is the height in centimeters?
CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, country VARCHAR)
SELECT date_opened FROM table_22665117_1 WHERE dist_id = 11901
What is the date opened if thedistrict ID is 11901?
CREATE TABLE table_22665117_1 (date_opened VARCHAR, dist_id VARCHAR)
SELECT AVG(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = "AIB"
What is the average points of players from club with name "AIB".
CREATE TABLE player (Points INTEGER, Club_ID VARCHAR); CREATE TABLE club (Club_ID VARCHAR, name VARCHAR)
SELECT bachelorette FROM table_name_20 WHERE winner = "ian mckee"
Who was the bachelorette of the season where ian mckee was the winner?
CREATE TABLE table_name_20 (bachelorette VARCHAR, winner VARCHAR)
SELECT MAX(first_elected) FROM table_1341973_3 WHERE district = "Alabama 4"
What is the latest year listed with the Alabama 4 voting district?
CREATE TABLE table_1341973_3 (first_elected INTEGER, district VARCHAR)
SELECT party FROM table_name_55 WHERE ifop_5_30_09 = "2.5%"
Who had an Iflop of 2.5%?
CREATE TABLE table_name_55 (party VARCHAR, ifop_5_30_09 VARCHAR)
SELECT COUNT(game) FROM table_22654073_13 WHERE date = "May 1"
How many games were there on May 1?
CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR)
SELECT COUNT(stories) FROM table_name_12 WHERE rank = 10
What is the total stories that rank number 10?
CREATE TABLE table_name_12 (stories VARCHAR, rank VARCHAR)
SELECT SUM(losses) FROM table_name_6 WHERE conceded = 25 AND wins > 6
How many loses does the team have that conceded 25 and won more than 6 games?
CREATE TABLE table_name_6 (losses INTEGER, conceded VARCHAR, wins VARCHAR)
SELECT exit_date FROM table_name_19 WHERE transfer_fee = "free" AND to_club = "reggina"
What is the exit date of the player transferred to Reggina for free?
CREATE TABLE table_name_19 (exit_date VARCHAR, transfer_fee VARCHAR, to_club VARCHAR)
SELECT population FROM table_name_61 WHERE urban_sub_area = "east kilbride"
What is the population of the East Kilbride urban sub-area?
CREATE TABLE table_name_61 (population VARCHAR, urban_sub_area VARCHAR)
SELECT difference FROM table_name_8 WHERE position < 2
What was the Difference of the Team that had a Position less than 2?
CREATE TABLE table_name_8 (difference VARCHAR, position INTEGER)
SELECT district FROM table_name_85 WHERE name = "milburn"
What district is the parish Milburn in?
CREATE TABLE table_name_85 (district VARCHAR, name VARCHAR)
SELECT constructor FROM table_name_7 WHERE laps > 9 AND grid < 2
Which Constructor has Laps larger than 9, and a Grid smaller than 2?
CREATE TABLE table_name_7 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT first_year_aired FROM table_name_79 WHERE name = "zone rouge"
What year did Zone Rouge first air?
CREATE TABLE table_name_79 (first_year_aired VARCHAR, name VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_37 WHERE population__2011_ = 518
Name the cyrillic name for 518
CREATE TABLE table_2562572_37 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR)
SELECT venue FROM table_name_60 WHERE home_team = "collingwood"
What is the venue where Collingwood played as the home team?
CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR)
SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964"
Which incumbent was first elected in 1964?
CREATE TABLE table_1341707_15 (incumbent VARCHAR, first_elected VARCHAR)
SELECT name FROM table_name_50 WHERE term_start < 1984 AND date_of_birth = "december 17, 1874"
Which leader born on December 17, 1874 started their term before 1984?
CREATE TABLE table_name_50 (name VARCHAR, term_start VARCHAR, date_of_birth VARCHAR)
SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971
Who was the loser on December 12, 1971?
CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR)
SELECT centerfold_model FROM table_name_80 WHERE date = "3-04"
When Centerfold model is on 3-04?
CREATE TABLE table_name_80 (centerfold_model VARCHAR, date VARCHAR)
SELECT bowl_game FROM table_23718905_6 WHERE matchup_results = "Oklahoma 31, Stanford 27"
In what bowl game was the result Oklahoma 31, Stanford 27?
CREATE TABLE table_23718905_6 (bowl_game VARCHAR, matchup_results VARCHAR)
SELECT COUNT(ranking) FROM table_1348989_2 WHERE season = "5th"
How many rankings did the 5th season have?
CREATE TABLE table_1348989_2 (ranking VARCHAR, season VARCHAR)
SELECT result FROM table_name_61 WHERE date = "november 6, 1988"
What was the result of the game on November 6, 1988?
CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR)
SELECT ihsaa_class FROM table_name_39 WHERE school = "seymour"
What's the IHSAA Class when the school is Seymour?
CREATE TABLE table_name_39 (ihsaa_class VARCHAR, school VARCHAR)
SELECT season FROM table_name_89 WHERE acquisition_via = "free agency" AND number > 9
What season had an acquisition of free agency, and was higher than 9?
CREATE TABLE table_name_89 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR)
SELECT score FROM table_name_14 WHERE december > 8 AND record = "25-8-3"
What's the Score that's got a listing of December that larger than 8 and Record of 25-8-3?
CREATE TABLE table_name_14 (score VARCHAR, december VARCHAR, record VARCHAR)
SELECT status FROM table_26218783_7 WHERE sd = 15
What is the status when sd is 15?
CREATE TABLE table_26218783_7 (status VARCHAR, sd VARCHAR)
SELECT score FROM table_name_32 WHERE third_place = "michael stich"
What was the score in the tournament in which Michael Stich took third place?
CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR)
SELECT COUNT(built) FROM table_1886270_1 WHERE hr_name = "(River Garry)"
When (river garry) is the hr name how many builts are there?
CREATE TABLE table_1886270_1 (built VARCHAR, hr_name VARCHAR)
SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28"
What is the nature of the incident in Kabul on 2004-01-28?
CREATE TABLE table_name_62 (nature_of_incident VARCHAR, location VARCHAR, date VARCHAR)
SELECT MAX(total_goals) FROM table_name_10 WHERE total_apps = "42 (3)" AND league_goals < 1
Which Total Goals have Total Apps of 42 (3), and League Goals smaller than 1?
CREATE TABLE table_name_10 (total_goals INTEGER, total_apps VARCHAR, league_goals VARCHAR)
SELECT time FROM table_name_35 WHERE round < 3
What was the time for a round less than 3?
CREATE TABLE table_name_35 (time VARCHAR, round INTEGER)
SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE womens_singles = "Sun Jin"
How many times has Sun Jin won the women's doubles?
CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT crowd FROM table_name_29 WHERE home_team = "carlton"
When the home team was carlton how many people were in the crowd?
CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR)
SELECT launched FROM table_24496403_1 WHERE ship = "Carysfort"
When was the Carysfort launched?
CREATE TABLE table_24496403_1 (launched VARCHAR, ship VARCHAR)
SELECT election_date FROM table_1193568_1 WHERE electorate = "Omata"
what's the election date where electorate is omata
CREATE TABLE table_1193568_1 (election_date VARCHAR, electorate VARCHAR)