answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz"
List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.
CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR)
SELECT pos FROM table_name_41 WHERE laps = 296
What position did lap 296 come in?
CREATE TABLE table_name_41 (pos VARCHAR, laps VARCHAR)
SELECT date FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND tournament = "colonial national invitation"
What day was the margin of victory 1 stroke when the tournament was colonial national invitation?
CREATE TABLE table_name_5 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT MAX(lost) FROM table_name_51 WHERE played < 9
What is the greatest lost where played is less than 9?
CREATE TABLE table_name_51 (lost INTEGER, played INTEGER)
SELECT home FROM table_name_30 WHERE date = "may 2"
Who was the home team on the May 2 game?
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR)
SELECT paper_type FROM table_11900773_4 WHERE theme = "Duck Decoys, Barrow's Golden Eye"
What kind of paper were the stamps with the theme duck decoys, barrow's golden eye printed on?
CREATE TABLE table_11900773_4 (paper_type VARCHAR, theme VARCHAR)
SELECT series FROM table_name_12 WHERE game = "game 5"
Name the series for game 5
CREATE TABLE table_name_12 (series VARCHAR, game VARCHAR)
SELECT document_status_code FROM Ref_Document_Status
What document status codes do we have?
CREATE TABLE Ref_Document_Status (document_status_code VARCHAR)
SELECT time_retired FROM table_name_76 WHERE grid = "18"
What was the retired time for someone who was on grid 18?
CREATE TABLE table_name_76 (time_retired VARCHAR, grid VARCHAR)
SELECT res FROM table_name_27 WHERE time = "11:58"
Which Res has a Time of 11:58?
CREATE TABLE table_name_27 (res VARCHAR, time VARCHAR)
SELECT category FROM table_name_6 WHERE nominee = "brian d'arcy james" AND result = "nominated"
What category was Brian D'arcy James nominated for?
CREATE TABLE table_name_6 (category VARCHAR, nominee VARCHAR, result VARCHAR)
SELECT builder FROM table_name_80 WHERE location = "govan , scotland"
What is Builder, when Location is "Govan , Scotland"?
CREATE TABLE table_name_80 (builder VARCHAR, location VARCHAR)
SELECT worcs_f_c_matches FROM table_1156428_2 WHERE name_of_ground = "Chester Road North Ground"
There were 68 worcs f-c matches played on Chester Road North Ground.
CREATE TABLE table_1156428_2 (worcs_f_c_matches VARCHAR, name_of_ground VARCHAR)
SELECT current_west_end_cast FROM table_19529639_3 WHERE original_west_end_cast = "Jodie Jacobs"
What member of the current West End cast plays the character played by Jodie Jacobs in the original West End cast?
CREATE TABLE table_19529639_3 (current_west_end_cast VARCHAR, original_west_end_cast VARCHAR)
SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten"
What was the result of the election with jamie l. whitten?
CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(property_crime) FROM table_1818254_1 WHERE burglary = "224.8"
How many cities were there in 2012 where the rate of burglary was 224.8?
CREATE TABLE table_1818254_1 (property_crime VARCHAR, burglary VARCHAR)
SELECT tries_against FROM table_13564702_4 WHERE tries_for = "62"
How many tries against got the club with 62 tries for?
CREATE TABLE table_13564702_4 (tries_against VARCHAR, tries_for VARCHAR)
SELECT MAX(loss) FROM table_name_1 WHERE long > 61
What is the highest loss with a long more than 61?
CREATE TABLE table_name_1 (loss INTEGER, long INTEGER)
SELECT SUM(played) FROM table_name_2 WHERE club = "barcelona b" AND wins < 11
What is the number played for the Barcelona B club, with wins under 11?
CREATE TABLE table_name_2 (played INTEGER, club VARCHAR, wins VARCHAR)
SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-10"
Name the least rank when games are more than 34 and the season is 2009-10
CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR)
SELECT quarterback FROM table_14389782_2 WHERE winning_pct = ".792"
Who is the quarter back for a winning pct of .792
CREATE TABLE table_14389782_2 (quarterback VARCHAR, winning_pct VARCHAR)
SELECT date_valid_from, date_valid_to FROM Customers_cards WHERE card_number = "4560596484842"
Show the date valid from and the date valid to for the card with card number '4560596484842'.
CREATE TABLE Customers_cards (date_valid_from VARCHAR, date_valid_to VARCHAR, card_number VARCHAR)
SELECT engine FROM table_name_49 WHERE chassis = "jbw" AND year = 1960
What engine had a JBW chassis in 1960?
CREATE TABLE table_name_49 (engine VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_68 WHERE year < 1955
What is the average Points for a year before 1955?
CREATE TABLE table_name_68 (points INTEGER, year INTEGER)
SELECT fatalities FROM table_name_18 WHERE aircraft = "ju-52"
How many fatalities occurred for the Ju-52 aircraft?
CREATE TABLE table_name_18 (fatalities VARCHAR, aircraft 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 loss FROM table_name_48 WHERE date = "september 1"
What was the losing score on September 1?
CREATE TABLE table_name_48 (loss VARCHAR, date VARCHAR)
SELECT result FROM table_name_38 WHERE opponent = "sunderland"
Which result has sunderland as opponent?
CREATE TABLE table_name_38 (result VARCHAR, opponent VARCHAR)
SELECT MIN(constituency_no) FROM table_29785324_5 WHERE vidhan_sabha_constituency = "Kargahar (Vidhan Sabha constituency)"
How many were in the Kargahar (vidhan sabha constituency)?
CREATE TABLE table_29785324_5 (constituency_no INTEGER, vidhan_sabha_constituency VARCHAR)
SELECT iata FROM table_name_58 WHERE airport = "galeão airport"
What is the IATA of galeão airport?
CREATE TABLE table_name_58 (iata VARCHAR, airport VARCHAR)
SELECT status FROM table_name_26 WHERE membership_application = "2008-12-15"
What is the status of the membership application on 2008-12-15?
CREATE TABLE table_name_26 (status VARCHAR, membership_application VARCHAR)
SELECT COUNT(*) FROM Ref_document_types
Show the number of document types.
CREATE TABLE Ref_document_types (Id VARCHAR)
SELECT director FROM table_name_81 WHERE title = "teenage mutant ninja turtles"
Who directed Teenage Mutant Ninja Turtles?
CREATE TABLE table_name_81 (director VARCHAR, title VARCHAR)
SELECT opponent_in_the_final FROM table_name_8 WHERE tournament = "senegal f2"
Who was the opponent in the final of the Senegal f2 tournament>
CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith"
List Aerosmith's albums.
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
SELECT MIN(rank) FROM review
Find the highest rank of all reviews.
CREATE TABLE review (rank INTEGER)
SELECT SUM(bronze) FROM table_name_68 WHERE total = 9
How many bronzes have a Total of 9?
CREATE TABLE table_name_68 (bronze INTEGER, total VARCHAR)
SELECT MIN(points) FROM table_name_84 WHERE team = "san martín de tucumán" AND played < 38
What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?
CREATE TABLE table_name_84 (points INTEGER, team VARCHAR, played VARCHAR)
SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year"
what is the award for the 2009 songwriter of the year?
CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR)
SELECT COUNT(december) FROM table_name_90 WHERE opponent = "calgary flames"
How many Decembers have calgary flames as the opponent?
CREATE TABLE table_name_90 (december VARCHAR, opponent VARCHAR)
SELECT district FROM table_1341640_43 WHERE incumbent = "Al Gore"
Where was Al Gore elected
CREATE TABLE table_1341640_43 (district VARCHAR, incumbent VARCHAR)
SELECT opponents FROM table_name_80 WHERE partner = "rushmi chakravarthi"
Who were the Opponents in the Match with Partner Rushmi Chakravarthi?
CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR)
SELECT homeport__as_of_july_2013_ FROM table_name_73 WHERE laid_down = "14 december 1985"
What is the Homeport that has a Laid down on 14 december 1985?
CREATE TABLE table_name_73 (homeport__as_of_july_2013_ VARCHAR, laid_down VARCHAR)
SELECT incumbent FROM table_1341604_19 WHERE first_elected = 1976
Who's the incumbent in the district first elected in 1976?
CREATE TABLE table_1341604_19 (incumbent VARCHAR, first_elected VARCHAR)
SELECT rank FROM table_name_90 WHERE lane = 6 AND heat = 2
Can you tell me the Rank that has the Lane of 6, and the Heat of 2?
CREATE TABLE table_name_90 (rank VARCHAR, lane VARCHAR, heat VARCHAR)
SELECT COUNT(district) FROM table_2668352_16 WHERE incumbent = "John C. Calhoun"
How many districts have John C. Calhoun as the incumbent?
CREATE TABLE table_2668352_16 (district VARCHAR, incumbent VARCHAR)
SELECT played FROM table_name_65 WHERE lost = "5"
Name the played with lost of 5
CREATE TABLE table_name_65 (played VARCHAR, lost VARCHAR)
SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = "33.4"
For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?
CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
SELECT rank FROM table_name_44 WHERE silver = "2"
What rank is the nation with 2 silver medals?
CREATE TABLE table_name_44 (rank VARCHAR, silver VARCHAR)
SELECT COUNT(_number) FROM table_12032893_1 WHERE name = "Ron Baxter"
What number (#) is associated with the Name Ron Baxter?
CREATE TABLE table_12032893_1 (_number VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_54 WHERE venue = "glenferrie oval"
Which away team is based at glenferrie oval?
CREATE TABLE table_name_54 (away_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_87 WHERE killed = 100.9 AND year > 1939.9
What is Country, when Killed is "100.9", and when Year is greater than 1939.9?
CREATE TABLE table_name_87 (country VARCHAR, killed VARCHAR, year VARCHAR)
SELECT last_64 FROM table_name_65 WHERE total = "£34,600"
Which Last 64 has a Total of £34,600?
CREATE TABLE table_name_65 (last_64 VARCHAR, total VARCHAR)
SELECT administrative_division FROM table_171666_1 WHERE area__km²_ = 30
What is the administrative division that has an area of 30 km^2?
CREATE TABLE table_171666_1 (administrative_division VARCHAR, area__km²_ VARCHAR)
SELECT SUM(erp_w) FROM table_name_49 WHERE call_sign = "k216ga"
What is the Sum of ERP W, when Call Sign is K216GA?
CREATE TABLE table_name_49 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109
In which round did Paul McDonald have an overall greater than 109?
CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)
SELECT MIN(attendance) FROM table_name_19 WHERE date = "october 13, 1968" AND week > 5
What's the lowest attendance for October 13, 1968, and is larger than week 5?
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT manufacturer FROM table_name_97 WHERE finish > 29 AND start < 23 AND year = 1973
What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?
CREATE TABLE table_name_97 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR, start VARCHAR)
SELECT venue FROM table_name_43 WHERE year = "21 june 1987"
what is the venue on 21 june 1987?
CREATE TABLE table_name_43 (venue VARCHAR, year VARCHAR)
SELECT 125 AS cc_winner FROM table_12186237_1 WHERE circuit = "Phillip Island"
Who is the 125cc winnder for the Phillip Island circuit?
CREATE TABLE table_12186237_1 (circuit VARCHAR)
SELECT MAX(date) FROM table_name_49 WHERE game > 69 AND opponent = "st. louis blues"
What is the latest date for a game over 69 with a St. Louis Blues opponent?
CREATE TABLE table_name_49 (date INTEGER, game VARCHAR, opponent VARCHAR)
SELECT population_2012_ FROM table_28741_1 WHERE country = "Indonesia"
What is the 2012 population of Indonesia?
CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR)
SELECT 2011 FROM table_name_59 WHERE 2007 = "f" AND tournament = "us open"
What was the result of the 2011 US Open when the 2007 was F?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT power_rpm FROM table_name_37 WHERE torque__nm__rpm = "n·m (lb·ft)/*n·m (lb·ft) @1750"
Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750
CREATE TABLE table_name_37 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)
SELECT second_member FROM table_name_54 WHERE second_party = "whig" AND election = "1834"
Who is the second member that is a second party Whig in the 1834 election?
CREATE TABLE table_name_54 (second_member VARCHAR, second_party VARCHAR, election VARCHAR)
SELECT SUM(spectators) FROM table_name_66 WHERE time___cest__ > 20.05 AND team__number2 = "estonia"
Name the sum of spectators for time more than 20.05 and team #2 of estonia
CREATE TABLE table_name_66 (spectators INTEGER, time___cest__ VARCHAR, team__number2 VARCHAR)
SELECT SUM(goals) FROM table_name_46 WHERE tries = 24 AND points > 96
What is the total number of goals from 24 tries and 96 or greater points?
CREATE TABLE table_name_46 (goals INTEGER, tries VARCHAR, points VARCHAR)
SELECT away_team FROM table_name_90 WHERE venue = "glenferrie oval"
Who is the away side at glenferrie oval?
CREATE TABLE table_name_90 (away_team VARCHAR, venue VARCHAR)
SELECT city FROM table_name_39 WHERE results¹ = "1:2"
What City had Results¹ of 1:2?
CREATE TABLE table_name_39 (city VARCHAR, results¹ VARCHAR)
SELECT location FROM table_1974545_2 WHERE nickname = "Falcons"
Where is the school whose students are nicknamed falcons located?
CREATE TABLE table_1974545_2 (location VARCHAR, nickname VARCHAR)
SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -1
What are the fewest seats with fewer than 5.4% seats and more than -1 change?
CREATE TABLE table_name_12 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR)
SELECT destination FROM table_12095519_1 WHERE train_name = "BG Express"
Where does the bg express train end?
CREATE TABLE table_12095519_1 (destination VARCHAR, train_name VARCHAR)
SELECT opponent FROM table_name_34 WHERE record = "90-70"
What opponents have a record of 90-70?
CREATE TABLE table_name_34 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(platform) FROM table_1569516_1 WHERE operator = "Southern" AND service_pattern = "All stations via Clapham Junction"
How many platforms have a southern opertator and the pattern is all stations via clapham junction?
CREATE TABLE table_1569516_1 (platform VARCHAR, operator VARCHAR, service_pattern VARCHAR)
SELECT MAX(date) FROM table_name_97 WHERE u_boats_destroyed__pola_ = "1"
What's the highest Date listed that has U-boats destroyed (Pola) of 1?
CREATE TABLE table_name_97 (date INTEGER, u_boats_destroyed__pola_ VARCHAR)
SELECT COUNT(leading_scorer) FROM table_11964047_8 WHERE attendance = "KeyArena 16,640"
What is the number of the leading scorer for keyarena 16,640?
CREATE TABLE table_11964047_8 (leading_scorer VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_29 WHERE opponent = "tampa bay buccaneers"
What was the latest week that the Tampa Bay Buccaneers were an opponent?
CREATE TABLE table_name_29 (week INTEGER, opponent VARCHAR)
SELECT record FROM table_name_53 WHERE arena = "arrowhead pond of anaheim" AND loss = "bryzgalov (10–11–1)"
What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)?
CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR)
SELECT entrant FROM table_name_98 WHERE year < 1990 AND chassis = "eurobrun er189"
Name the entrant for year less than 1990 and chassis of eurobrun er189
CREATE TABLE table_name_98 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT length_duration FROM table_name_85 WHERE date = "april 19"
What is the length and duration of the race on April 19?
CREATE TABLE table_name_85 (length_duration VARCHAR, date VARCHAR)
SELECT date FROM table_name_60 WHERE score = "3 – 1"
What was the date of the game that had a score of 3 – 1?
CREATE TABLE table_name_60 (date VARCHAR, score VARCHAR)
SELECT method FROM table_name_71 WHERE time = "2:32"
What win method has a time of 2:32?
CREATE TABLE table_name_71 (method VARCHAR, time VARCHAR)
SELECT senior_british_open FROM table_name_57 WHERE senior_pga_championship = "hale irwin (3/7)"
Who won the Senior British Open when Hale Irwin (3/7) won the Senior PGA Championship?
CREATE TABLE table_name_57 (senior_british_open VARCHAR, senior_pga_championship VARCHAR)
SELECT english_example FROM table_name_96 WHERE variant__with_niqqud__ = "וֹ"
Give me an english example of a variant with niqqud of וֹ?
CREATE TABLE table_name_96 (english_example VARCHAR, variant__with_niqqud__ VARCHAR)
SELECT constructor FROM table_name_46 WHERE grid > 8 AND time_retired = "+1:17.124"
Which Constructor has a Grid larger than 8, and a Time/Retired of +1:17.124?
CREATE TABLE table_name_46 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT document_type_code FROM Ref_Document_Types
What document type codes do we have?
CREATE TABLE Ref_Document_Types (document_type_code VARCHAR)
SELECT bronze FROM table_name_27 WHERE gold < 39 AND silver = 3 AND rank < 35 AND nation = "spain"
What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35?
CREATE TABLE table_name_27 (bronze VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code
What is the document type name and the document type description and creation date for all the documents?
CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (Document_date VARCHAR, document_type_code VARCHAR)
SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT MIN(YEAR) FROM PersonFriend WHERE friend = 'Alice')
Find the name of persons who are friends with Alice for the shortest years.
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, YEAR INTEGER)
SELECT COUNT(stories) FROM table_name_99 WHERE building = "torre reforma"
How many stories is the torre reforma building?
CREATE TABLE table_name_99 (stories VARCHAR, building VARCHAR)
SELECT voltage FROM table_name_49 WHERE model_number = "pentium dual-core e2140"
What's the voltage for the pentium dual-core e2140?
CREATE TABLE table_name_49 (voltage VARCHAR, model_number VARCHAR)
SELECT incumbent FROM table_2668254_17 WHERE first_elected = "1818"
Who was the ran as an incumbent leader first in 1818?
CREATE TABLE table_2668254_17 (incumbent VARCHAR, first_elected VARCHAR)
SELECT team FROM table_name_70 WHERE date = "february 1"
Who was the opposing team for the February 1 game?
CREATE TABLE table_name_70 (team VARCHAR, date VARCHAR)
SELECT ties FROM table_name_8 WHERE division = "bafl division two south"
What are the ties for division of bafl division two south?
CREATE TABLE table_name_8 (ties VARCHAR, division VARCHAR)
SELECT result FROM table_name_92 WHERE goal__number > 4
Name the result for goal # more than 4
CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER)
SELECT COUNT(year) FROM table_15001753_1 WHERE mens_doubles = "Aivaras Kvedarauskas Juozas Spelveris"
How many years did aivaras kvedarauskas juozas spelveris participate in the men's doubles?
CREATE TABLE table_15001753_1 (year VARCHAR, mens_doubles VARCHAR)
SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street oval"
How large of a crowd can the Brunswick Street Oval hold?
CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_37 WHERE away_team = "essendon"
What did Essendon score when they were the away team?
CREATE TABLE table_name_37 (away_team VARCHAR)
SELECT game FROM table_name_60 WHERE score = "82-79"
What game was the final score 82-79?
CREATE TABLE table_name_60 (game VARCHAR, score VARCHAR)
SELECT home FROM table_name_29 WHERE visitor = "edmonton oilers" AND date = "may 22"
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?
CREATE TABLE table_name_29 (home VARCHAR, visitor VARCHAR, date VARCHAR)