answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(wickets_taken) FROM table_2482547_5 WHERE name = "Bill Lockwood"
What's the maximum wickets taken by players named Bill Lockwood?
CREATE TABLE table_2482547_5 (wickets_taken INTEGER, name VARCHAR)
SELECT COUNT(laps) FROM table_name_87 WHERE grid > 9 AND time_retired = "+32.354"
How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?
CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT engine FROM table_name_99 WHERE entrant = "marlboro team alfa romeo" AND chassis = "alfa romeo 179"
Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179?
CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT score FROM table_name_17 WHERE loss = "lyon (5-4)"
Loss of lyon (5-4) had what score?
CREATE TABLE table_name_17 (score VARCHAR, loss VARCHAR)
SELECT venue FROM table_name_56 WHERE home_team = "richmond"
What venue did Richmond play at as the home team?
CREATE TABLE table_name_56 (venue VARCHAR, home_team VARCHAR)
SELECT representative FROM table_name_42 WHERE presentation_of_credentials = "april 10, 1855"
What Representative has a Presentation of Credentails of April 10, 1855?
CREATE TABLE table_name_42 (representative VARCHAR, presentation_of_credentials VARCHAR)
SELECT COUNT(allied_unrelated) FROM table_11944282_1 WHERE component = "Human Capital"
What is the total amount of allied-unrelated where the component is human capital?
CREATE TABLE table_11944282_1 (allied_unrelated VARCHAR, component VARCHAR)
SELECT 1988 FROM table_name_46 WHERE 1982 = "104"
Which 1988 has a 1982 of 104?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"
What is the document type name for the document with name "How to read a book"?
CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR)
SELECT status FROM table_2589963_1 WHERE institution = "Informatics International College"
What status of school is informatics international college?
CREATE TABLE table_2589963_1 (status VARCHAR, institution VARCHAR)
SELECT player FROM table_name_22 WHERE jersey_number_s_ > 30
Who is the player with a Jersey Number(s) greater than 30?
CREATE TABLE table_name_22 (player VARCHAR, jersey_number_s_ INTEGER)
SELECT COUNT(rank) FROM table_name_32 WHERE silver = 1 AND bronze = 3 AND total < 8
What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals?
CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT league FROM table_name_64 WHERE year = "1990/91"
What is the League with a Year that is 1990/91?
CREATE TABLE table_name_64 (league VARCHAR, year VARCHAR)
SELECT race_name FROM table_name_10 WHERE round = 6
Which race was in round 6?
CREATE TABLE table_name_10 (race_name VARCHAR, round VARCHAR)
SELECT old_english_day_name FROM table_2624098_1 WHERE modern_english_day_name = "Saturday"
what is the old English name of Saturday?
CREATE TABLE table_2624098_1 (old_english_day_name VARCHAR, modern_english_day_name VARCHAR)
SELECT grid FROM table_name_22 WHERE team = "vision racing" AND driver = "tomas scheckter"
What is the grid of driver tomas scheckter from vision racing team?
CREATE TABLE table_name_22 (grid VARCHAR, team VARCHAR, driver VARCHAR)
SELECT record FROM table_name_23 WHERE home = "detroit red wings" AND score = "1–2" AND date = "december 29"
What is the Record that has a Home of detroit red wings, and a Score of 1–2 on december 29?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, home VARCHAR, score VARCHAR)
SELECT name FROM table_name_24 WHERE ties = 5
Who has ties of 5?
CREATE TABLE table_name_24 (name VARCHAR, ties VARCHAR)
SELECT color_commentator_s_ FROM table_name_82 WHERE year = 2004
Who was the 2004 color commentator?
CREATE TABLE table_name_82 (color_commentator_s_ VARCHAR, year VARCHAR)
SELECT class FROM table_name_10 WHERE type = "a1 bm"
What is the class of the a1 bm type?
CREATE TABLE table_name_10 (class VARCHAR, type VARCHAR)
SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title
For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.
CREATE TABLE Movie (title VARCHAR, director VARCHAR); CREATE TABLE Movie (director VARCHAR, title VARCHAR)
SELECT record FROM table_name_59 WHERE home = "colorado" AND visitor = "winnipeg"
What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg?
CREATE TABLE table_name_59 (record VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT opponent FROM table_name_14 WHERE date = "august 25"
what team played on august 25
CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980
how many cars were produced in 1980?
CREATE TABLE CARS_DATA (YEAR VARCHAR)
SELECT competition_, _federation_, _or_league FROM table_name_7 WHERE team = "tennessee titans"
What competition, federation, or league are the Tennessee Titans a member of?
CREATE TABLE table_name_7 (competition_ VARCHAR, _federation_ VARCHAR, _or_league VARCHAR, team VARCHAR)
SELECT MIN(attendance) FROM table_name_63 WHERE week = 12
What is the attendance of week 12?
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)
SELECT classification FROM table_name_4 WHERE current_conference = "nec" AND location = "new britain, connecticut"
What is the classification for the school in the NEC Conference located in New Britain, Connecticut?
CREATE TABLE table_name_4 (classification VARCHAR, current_conference VARCHAR, location VARCHAR)
SELECT MIN(population__january_1), _2008_ FROM table_16278602_1 WHERE largest_city = "Roskilde"
What is the minimum population of the region in which Roskilde is the largest city?
CREATE TABLE table_16278602_1 (_2008_ VARCHAR, population__january_1 INTEGER, largest_city VARCHAR)
SELECT loss FROM table_name_20 WHERE date = "may 29"
Name the loss on may 29
CREATE TABLE table_name_20 (loss VARCHAR, date VARCHAR)
SELECT location FROM table_name_54 WHERE opponent = "aleksandr pitchkounov"
what is the location when the opponent is aleksandr pitchkounov?
CREATE TABLE table_name_54 (location VARCHAR, opponent VARCHAR)
SELECT launched FROM table_name_91 WHERE time_elapsed = "158 days (5 months, 8 days)"
What launched has 158 days (5 months, 8 days) as the time elapsed?
CREATE TABLE table_name_91 (launched VARCHAR, time_elapsed VARCHAR)
SELECT number_ & _name FROM table_name_61 WHERE date = 1967
What's Number & Name listed for the Date 1967?
CREATE TABLE table_name_61 (number_ VARCHAR, _name VARCHAR, date VARCHAR)
SELECT res FROM table_name_60 WHERE record = "9-1"
What was the resolution of the fight where andre roberts record was 9-1?
CREATE TABLE table_name_60 (res VARCHAR, record VARCHAR)
SELECT record FROM table_27723228_8 WHERE score = "L 84–96 (OT)"
What is the record when the score was l 84–96 (ot)?
CREATE TABLE table_27723228_8 (record VARCHAR, score VARCHAR)
SELECT team_1 FROM table_name_34 WHERE team_2 = "toulouse fc (d1)"
What was team one name for the Team 2 of Toulouse Fc (d1)>?
CREATE TABLE table_name_34 (team_1 VARCHAR, team_2 VARCHAR)
SELECT deed_number FROM table_name_24 WHERE population > 869 AND name_of_community = "woorabinda"
What was the deed number with a population of more than 869 in the woorabinda community?
CREATE TABLE table_name_24 (deed_number VARCHAR, population VARCHAR, name_of_community VARCHAR)
SELECT player FROM table_name_10 WHERE round < 11 AND pick < 152 AND position = "guard"
Which Player has a Round smaller than 11, and a Pick smaller than 152, and a Position of guard?
CREATE TABLE table_name_10 (player VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR)
SELECT release_date FROM table_16400024_1 WHERE part_number_s_ = "80525PY500512BX80525U500512BX80525U500512E"
What is the release date of part 80525py500512bx80525u500512bx80525u500512e?
CREATE TABLE table_16400024_1 (release_date VARCHAR, part_number_s_ VARCHAR)
SELECT MIN(_number_of_ep) FROM table_1067134_1
What is the least amount of season epidsodes?
CREATE TABLE table_1067134_1 (_number_of_ep INTEGER)
SELECT years_as_tallest FROM table_name_3 WHERE street_address = "200 sw harrison"
What were the years that the building at 200 sw harrison was considered to be the tallest building?
CREATE TABLE table_name_3 (years_as_tallest VARCHAR, street_address VARCHAR)
SELECT opponent FROM table_27537870_5 WHERE record = "10-13-3"
Name the opponent for record 10-13-3
CREATE TABLE table_27537870_5 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(pick__number) FROM table_name_84 WHERE position = "running back"
If the Position is Running Back what is the Total number of Pick #?
CREATE TABLE table_name_84 (pick__number VARCHAR, position VARCHAR)
SELECT week FROM table_name_33 WHERE date = "december 19, 2004"
What week has December 19, 2004 as the date?
CREATE TABLE table_name_33 (week VARCHAR, date VARCHAR)
SELECT structure_height_[m] FROM table_name_93 WHERE year < 1968 AND type = "te" AND country = "united states" AND name = "fort peck dam"
What is the height of the fort peck dam which was built before 1968, is located in the united states and has a dam type of TE ?
CREATE TABLE table_name_93 (structure_height_ VARCHAR, m VARCHAR, name VARCHAR, country VARCHAR, year VARCHAR, type VARCHAR)
SELECT name FROM table_name_9 WHERE locomotive = "n474"
What is the name for the locomotive n474?
CREATE TABLE table_name_9 (name VARCHAR, locomotive VARCHAR)
SELECT week FROM table_name_67 WHERE result = "bye"
What week's game had a result of bye?
CREATE TABLE table_name_67 (week VARCHAR, result VARCHAR)
SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"
Name the production code for viewers for 1.69
CREATE TABLE table_19229713_4 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT score FROM table_name_71 WHERE date = "26 september 2004"
Which Score has a Date of 26 september 2004?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT COUNT(first_elected) FROM table_1342218_17 WHERE incumbent = "Noble Jones Gregory"
How many times was incumbent Noble Jones Gregory first elected?
CREATE TABLE table_1342218_17 (first_elected VARCHAR, incumbent VARCHAR)
SELECT SUM(grid) FROM table_name_12 WHERE time_retired = "+58.182" AND laps < 67
What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?
CREATE TABLE table_name_12 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT nationality FROM table_name_79 WHERE nba_years_[a_] = "1" AND previous_team = "seattle supersonics"
What is Nationality, when NBA years [a ] is "1", and when Previous Team is "Seattle Supersonics"?
CREATE TABLE table_name_79 (nationality VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT MAX(no_in_season) FROM table_13336122_7 WHERE us_viewers__million_ = "0.57"
What's the season number of the episode watched by 0.57 million US viewers?
CREATE TABLE table_13336122_7 (no_in_season INTEGER, us_viewers__million_ VARCHAR)
SELECT grid FROM table_name_91 WHERE driver = "buddy rice"
What was the grid of Buddy Rice?
CREATE TABLE table_name_91 (grid VARCHAR, driver VARCHAR)
SELECT college FROM table_10812403_4 WHERE player = "Calvin McCarty"
What college did Calvin McCarty play at?
CREATE TABLE table_10812403_4 (college VARCHAR, player VARCHAR)
SELECT home_team FROM table_name_88 WHERE away_team = "manchester city"
What team was the home team when Manchester City was the away team?
CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR)
SELECT status FROM table_name_23 WHERE index = "f7"
For the event with index f7, what is the status?
CREATE TABLE table_name_23 (status VARCHAR, index VARCHAR)
SELECT city_of_license FROM table_2857352_3 WHERE virtual_channel = "8.2"
What city licensed the broadcast on virtual channel 8.2?
CREATE TABLE table_2857352_3 (city_of_license VARCHAR, virtual_channel VARCHAR)
SELECT player FROM table_name_62 WHERE score < 72 AND to_par = "+1"
Who is the player with a score less than 72 and a to par of +1?
CREATE TABLE table_name_62 (player VARCHAR, score VARCHAR, to_par VARCHAR)
SELECT neville FROM table_name_62 WHERE novick = "23%"
Which Neville has a Novick of 23%?
CREATE TABLE table_name_62 (neville VARCHAR, novick VARCHAR)
SELECT date FROM table_name_88 WHERE venue = "state sports centre"
Which date had a venue of the State Sports Centre?
CREATE TABLE table_name_88 (date VARCHAR, venue VARCHAR)
SELECT season FROM table_name_77 WHERE league = "bezirksliga"
Which Season has a League of bezirksliga?
CREATE TABLE table_name_77 (season VARCHAR, league VARCHAR)
SELECT score FROM table_name_88 WHERE high_assists = "joel przybilla (4)"
For the game where Joel Przybilla (4) received high assists, what was the final score?
CREATE TABLE table_name_88 (score VARCHAR, high_assists VARCHAR)
SELECT SUM(rank) FROM table_name_70 WHERE time = "6:52.74"
What rank did rower have with the time of 6:52.74?
CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR)
SELECT 2008 FROM table_name_84 WHERE tournament = "us open"
What is the value for 2008 for the US Open Tournament?
CREATE TABLE table_name_84 (tournament VARCHAR)
SELECT COUNT(caps) FROM table_name_6 WHERE position = "prop" AND player = "rui cordeiro"
How many caps have a Position of prop, and a Player of rui cordeiro?
CREATE TABLE table_name_6 (caps VARCHAR, position VARCHAR, player VARCHAR)
SELECT driver FROM table_name_38 WHERE grid = 7
Who drove the car with a grid of 7?
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR)
SELECT AVG(total_g) FROM table_name_98 WHERE l_apps = 29 AND player = "bartolo" AND c_apps > 5
What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?
CREATE TABLE table_name_98 (total_g INTEGER, c_apps VARCHAR, l_apps VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT dormid) FROM has_amenity
Find the number of dorms that have some amenity.
CREATE TABLE has_amenity (dormid VARCHAR)
SELECT MAX(production_code) FROM table_11951237_1 WHERE original_air_date = "October 27, 1994"
What is the production code for the show that aired on October 27, 1994?
CREATE TABLE table_11951237_1 (production_code INTEGER, original_air_date VARCHAR)
SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 9
In what district is the city listed in Serial number 9?
CREATE TABLE table_18425346_2 (district VARCHAR, serial_no VARCHAR)
SELECT gymnast FROM table_18662026_10 WHERE parallel_bars = "16.150"
If the parallel bars is 16.150, who is the gymnast?
CREATE TABLE table_18662026_10 (gymnast VARCHAR, parallel_bars VARCHAR)
SELECT original_air_date FROM table_28215780_4 WHERE written_by = "Aron Eli Coleite"
What are the original air date(s) for episodes written by aron eli coleite?
CREATE TABLE table_28215780_4 (original_air_date VARCHAR, written_by VARCHAR)
SELECT party FROM table_1341930_33 WHERE incumbent = "Herbert Covington Bonner"
what's the party with incumbent being herbert covington bonner
CREATE TABLE table_1341930_33 (party VARCHAR, incumbent VARCHAR)
SELECT d_45 FROM table_name_58 WHERE d_42 = "r 22"
I want the D 45 and D 42 of r 22
CREATE TABLE table_name_58 (d_45 VARCHAR, d_42 VARCHAR)
SELECT results FROM table_27758427_2 WHERE lmpc_winning_team = "#89 Intersport Racing"
What was the result for the cirtcuit where the LMPC winning team was #89 Intersport Racing?
CREATE TABLE table_27758427_2 (results VARCHAR, lmpc_winning_team VARCHAR)
SELECT elevator FROM table_name_14 WHERE cardinalatial_title = "deacon of ss. sergio e bacco"
Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco?
CREATE TABLE table_name_14 (elevator VARCHAR, cardinalatial_title VARCHAR)
SELECT Votes FROM election ORDER BY Votes DESC
List the votes of elections in descending order.
CREATE TABLE election (Votes VARCHAR)
SELECT location FROM table_name_94 WHERE time = "1:37"
Where was the fight that took a time of 1:37?
CREATE TABLE table_name_94 (location VARCHAR, time VARCHAR)
SELECT score FROM table_name_43 WHERE player = "ernie els"
What is Ernie Els' Score?
CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR)
SELECT COUNT(condition) FROM table_1099080_1 WHERE prothrombin_time = "Unaffected" AND bleeding_time = "Prolonged"
How many conditions have an unaffected prothrombin time and a prolonged bleeding time
CREATE TABLE table_1099080_1 (condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "9"
What is the name when the local board is albert–eden, and a Decile of 9?
CREATE TABLE table_name_36 (name VARCHAR, local_board VARCHAR, decile VARCHAR)
SELECT COUNT(number) FROM table_1997759_1 WHERE last_flew = "19 April 1985"
on 19 april 1985 how many of number last flew
CREATE TABLE table_1997759_1 (number VARCHAR, last_flew VARCHAR)
SELECT incumbent FROM table_1341604_22 WHERE district = "Massachusetts 2"
what's the incumbent with district being massachusetts 2
CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR)
SELECT report FROM table_name_95 WHERE location = "monaco"
Which Report includes Monaco?
CREATE TABLE table_name_95 (report VARCHAR, location VARCHAR)
SELECT COUNT(pick) FROM table_name_31 WHERE school_club_team = "bentley"
How many picks were there for the Bentley team?
CREATE TABLE table_name_31 (pick VARCHAR, school_club_team VARCHAR)
SELECT color_description FROM ref_colors
List the description of all the colors.
CREATE TABLE ref_colors (color_description VARCHAR)
SELECT AVG(snow__days_year_) FROM table_name_23 WHERE sunshine__hrs_year_ = "1 633" AND storms__days_year_ < 29
What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?
CREATE TABLE table_name_23 (snow__days_year_ INTEGER, sunshine__hrs_year_ VARCHAR, storms__days_year_ VARCHAR)
SELECT directed_by FROM table_15861776_1 WHERE tv_broadcast = "S03E19"
Who directed the TV broadcast s03e19?
CREATE TABLE table_15861776_1 (directed_by VARCHAR, tv_broadcast VARCHAR)
SELECT AVG(silver) FROM table_name_74 WHERE total > 1 AND gold = 1 AND bronze > 2
With 1 Gold, more than 2 Bronze and Total greater than 1, what is the Silver?
CREATE TABLE table_name_74 (silver INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT project_name FROM table_name_90 WHERE country = "kazakhstan" AND peak = "150"
What is the Project Name with a Country that is kazakhstan and a Peak that is 150?
CREATE TABLE table_name_90 (project_name VARCHAR, country VARCHAR, peak VARCHAR)
SELECT score FROM table_name_25 WHERE opponent = "braves" AND record = "41–27"
What was the score of the game against the Braves with a record of 41–27?
CREATE TABLE table_name_25 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT report FROM table_1140080_2 WHERE location = "Österreichring"
what's the report with location  österreichring
CREATE TABLE table_1140080_2 (report VARCHAR, location VARCHAR)
SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%"
What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?
CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR)
SELECT MIN(goals_for) FROM table_name_35 WHERE goals_against = 75 AND drawn < 11
What is the fewest goals for when goals against is 75 and drawn is smaller than 11?
CREATE TABLE table_name_35 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)
SELECT presentation_of_credentials FROM table_name_91 WHERE termination_of_mission = "august 15, 2000"
What is the Presentation of Credentials has a Termination of Mission listed as August 15, 2000?
CREATE TABLE table_name_91 (presentation_of_credentials VARCHAR, termination_of_mission VARCHAR)
SELECT director FROM table_15026994_3 WHERE _number = 13
Who is the director of the episode at entry number 13?
CREATE TABLE table_15026994_3 (director VARCHAR, _number VARCHAR)
SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey"
What is the chassis of rahel frey's volkswagen engine?
CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT COUNT(rank) FROM table_name_12 WHERE nationality = "canada" AND time = "dns"
How many ranks have a ationality of canada, and a Time of dns?
CREATE TABLE table_name_12 (rank VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT MAX(number_of_dances) FROM table_25557556_5 WHERE competition_finish = 3
What was the number of dances for the competition finish of 3?
CREATE TABLE table_25557556_5 (number_of_dances INTEGER, competition_finish VARCHAR)
SELECT MAX(seats_2006) FROM table_name_64 WHERE _percentage_2001 = 39 AND seats_2001 < 12
what is the seats 2006 total with %2001 of 39 and seats 2001 less than 12?
CREATE TABLE table_name_64 (seats_2006 INTEGER, _percentage_2001 VARCHAR, seats_2001 VARCHAR)