question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What Constructor did Michael Schumacher have with a Grid smaller than 5?
CREATE TABLE table_name_62 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_62 WHERE grid < 5 AND driver = "michael schumacher"
What is the highest attendance for the game after week 1 against the New York Jets?
CREATE TABLE table_name_87 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets"
What is the result F-A of the game on 6 march 1993?
CREATE TABLE table_name_95 (result_f___a VARCHAR, date VARCHAR)
SELECT result_f___a FROM table_name_95 WHERE date = "6 march 1993"
What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?
CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_43 WHERE country = "united states" AND to_par = "+2" AND score = 73 - 74 - 71 - 72 = 290
Record of 3-3-1 had what lowest game?
CREATE TABLE table_name_81 (game INTEGER, record VARCHAR)
SELECT MIN(game) FROM table_name_81 WHERE record = "3-3-1"
What are all weights for the number 27?
CREATE TABLE table_14624447_24 (weight VARCHAR, number VARCHAR)
SELECT weight FROM table_14624447_24 WHERE number = 27
What is the newest season?
CREATE TABLE table_2140071_7 (season INTEGER)
SELECT MAX(season) FROM table_2140071_7
Which team played on April 1?
CREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR)
SELECT team FROM table_13619053_9 WHERE date = "April 1"
Which constellation has hd 75732 as a destignation HD?
CREATE TABLE table_name_38 (constellation VARCHAR, designation_hd VARCHAR)
SELECT constellation FROM table_name_38 WHERE designation_hd = "hd 75732"
What percentage of browsers were using Opera in November 2009?
CREATE TABLE table_name_69 (opera VARCHAR, date VARCHAR)
SELECT opera FROM table_name_69 WHERE date = "november 2009"
Which Goals For has a Lost of 12, and a Played larger than 34?
CREATE TABLE table_name_28 (goals_for INTEGER, lost VARCHAR, played VARCHAR)
SELECT MAX(goals_for) FROM table_name_28 WHERE lost = 12 AND played > 34
Tell me the position for pick of 47
CREATE TABLE table_name_68 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_68 WHERE pick = "47"
When was the game against the Indianapolis Colts?
CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_40 WHERE opponent = "indianapolis colts"
What is Italy's UNWTO region?
CREATE TABLE table_name_24 (unwto_region VARCHAR, country VARCHAR)
SELECT unwto_region FROM table_name_24 WHERE country = "italy"
What is the name of the suburb with a roll of 741?
CREATE TABLE table_name_60 (suburb VARCHAR, roll VARCHAR)
SELECT suburb FROM table_name_60 WHERE roll = 741
With more than 1 Gold and Silver and Total Sport, what is the Total?
CREATE TABLE table_name_86 (total INTEGER, gold VARCHAR, silver VARCHAR, sport VARCHAR)
SELECT AVG(total) FROM table_name_86 WHERE silver > 1 AND sport = "total" AND gold > 1
Which documents have more than 1 draft copies? List document id and number of draft copies.
CREATE TABLE Draft_Copies (document_id VARCHAR)
SELECT document_id, COUNT(*) FROM Draft_Copies GROUP BY document_id HAVING COUNT(*) > 1
What were the notes in Toronto, Canada?
CREATE TABLE table_name_32 (notes VARCHAR, venue VARCHAR)
SELECT notes FROM table_name_32 WHERE venue = "toronto, canada"
What number is on the car that Geoffrey Bodine drives?
CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR)
SELECT MIN(_number) FROM table_2182170_1 WHERE driver_s_ = "Geoffrey Bodine"
How many picks were from Lamar College?
CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR)
SELECT COUNT(pick__number) FROM table_name_34 WHERE college = "lamar"
What was the venue of the match where the score was 1:3 and team 2 was binh duong?
CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR, team_2 VARCHAR)
SELECT venue FROM table_name_61 WHERE score = "1:3" AND team_2 = "binh duong"
What is the medal named fatuma roba category:articles with hcards for?
CREATE TABLE table_name_73 (medal VARCHAR, name VARCHAR)
SELECT medal FROM table_name_73 WHERE name = "fatuma roba category:articles with hcards"
What's the total of Rank that has an Area (KM 2) of 1050.14?
CREATE TABLE table_name_6 (rank INTEGER, area__km_2__ VARCHAR)
SELECT SUM(rank) FROM table_name_6 WHERE area__km_2__ = 1050.14
For each product type, return the maximum and minimum price.
CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER)
SELECT product_type_code, MAX(product_price), MIN(product_price) FROM products GROUP BY product_type_code
Which Callsign has an IATA of tr?
CREATE TABLE table_name_4 (callsign VARCHAR, iata VARCHAR)
SELECT callsign FROM table_name_4 WHERE iata = "tr"
If the water square milage is 1.701, what is the land square milage?
CREATE TABLE table_18600760_7 (land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)
SELECT land___sqmi__ FROM table_18600760_7 WHERE water__sqmi_ = "1.701"
What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1?
CREATE TABLE table_name_80 (l2_cache VARCHAR, multi_1 VARCHAR, release_date VARCHAR, fpu_width VARCHAR)
SELECT l2_cache FROM table_name_80 WHERE release_date = "september 10, 2009" AND fpu_width = "128-bit" AND multi_1 = "12x"
What is the total number of Bronze when rank is 11, and the total is less than 1?
CREATE TABLE table_name_8 (bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(bronze) FROM table_name_8 WHERE rank = "11" AND total < 1
What is the location with Honduras is Home team?
CREATE TABLE table_name_57 (location VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_57 WHERE home_team = "honduras"
How many judges points did the couple ranked at number 5 have?
CREATE TABLE table_19744915_22 (judges INTEGER, rank VARCHAR)
SELECT MAX(judges) FROM table_19744915_22 WHERE rank = 5
What is the Score of the Fifa World Cup 1986 Play-off Competition?
CREATE TABLE table_name_7 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_7 WHERE competition = "fifa world cup 1986 play-off"
what is the encoding when the tracks/side is 80 and sectors/track is 11?
CREATE TABLE table_name_44 (encoding VARCHAR, tracks__side VARCHAR, sectors__track VARCHAR)
SELECT encoding FROM table_name_44 WHERE tracks__side = "80" AND sectors__track = "11"
What is the record of the 73-82 score?
CREATE TABLE table_name_32 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_32 WHERE score = "73-82"
Name the vacator for wisconsin 1st
CREATE TABLE table_1958768_3 (vacator VARCHAR, district VARCHAR)
SELECT vacator FROM table_1958768_3 WHERE district = "Wisconsin 1st"
What is the position of the team player from Aik?
CREATE TABLE table_name_69 (position VARCHAR, team_from VARCHAR)
SELECT position FROM table_name_69 WHERE team_from = "aik"
What chassis did the porsche flat-4 use before 1958?
CREATE TABLE table_name_44 (chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < 1958
What Winning constructor has a Name of grand prix de la marne?
CREATE TABLE table_name_97 (winning_constructor VARCHAR, name VARCHAR)
SELECT winning_constructor FROM table_name_97 WHERE name = "grand prix de la marne"
Who is the percussionist for The Coral?
CREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, original_artist VARCHAR)
SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = "The Coral"
What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?
CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_55 WHERE engine = "maserati straight-6" AND entrant = "officine alfieri maserati" AND points < 6
Name the game site for december 12, 1965
CREATE TABLE table_14977592_1 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_14977592_1 WHERE date = "December 12, 1965"
What musical performances aired on 5 April 2010?
CREATE TABLE table_26733129_1 (musical_performance VARCHAR, air_date VARCHAR)
SELECT musical_performance FROM table_26733129_1 WHERE air_date = "5 April 2010"
What is the deleted for tolland?
CREATE TABLE table_name_71 (deleted VARCHAR, county VARCHAR)
SELECT deleted FROM table_name_71 WHERE county = "tolland"
How few games are there for a rank more than 1 and more than 212 rebounds?
CREATE TABLE table_name_4 (games INTEGER, rank VARCHAR, rebounds VARCHAR)
SELECT MIN(games) FROM table_name_4 WHERE rank > 1 AND rebounds > 212
What is the green house made of?
CREATE TABLE table_11464746_1 (composition VARCHAR, colours VARCHAR)
SELECT composition FROM table_11464746_1 WHERE colours = "Green"
What is the coin that weighs 3 g made of?
CREATE TABLE table_name_33 (composition VARCHAR, weight VARCHAR)
SELECT composition FROM table_name_33 WHERE weight = "3 g"
What shows for nationality when there is a rank larger than 6, and a Time of 2:14.95?
CREATE TABLE table_name_52 (nationality VARCHAR, rank VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_52 WHERE rank > 6 AND time = "2:14.95"
What chassis does the shadow built car use?
CREATE TABLE table_name_36 (chassis VARCHAR, constructor VARCHAR)
SELECT chassis FROM table_name_36 WHERE constructor = "shadow"
Which network has model nForce Professional 3400 MCP?
CREATE TABLE table_name_29 (network VARCHAR, model VARCHAR)
SELECT network FROM table_name_29 WHERE model = "nforce professional 3400 mcp"
A ferrari flat-12 engine with more than 1 point has what kind of chassis?
CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1
What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia?
CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR)
SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia"
Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?
CREATE TABLE table_name_76 (tournament VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT tournament FROM table_name_76 WHERE surface = "clay" AND score_in_the_final = "6–1, 3–6, 6–2"
How many tickets are sold for the Carver-Hawkeye Arena?
CREATE TABLE table_18277458_2 (ticket_sold___available VARCHAR, venue VARCHAR)
SELECT ticket_sold___available FROM table_18277458_2 WHERE venue = "Carver-Hawkeye Arena"
Show the document id with paragraph text 'Brazil' and 'Ireland'.
CREATE TABLE Paragraphs (document_id VARCHAR, paragraph_text VARCHAR)
SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'
In what venue was the 1978 FIFA world cup qualification played in?
CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_48 WHERE competition = "1978 fifa world cup qualification"
Which country does Adam Scott play for?
CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_39 WHERE player = "adam scott"
Incumbent John Sullivan has what as biggest first elected?
CREATE TABLE table_name_71 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = "john sullivan"
Which tournament had Lubomira Bacheva as the opponent in the final?
CREATE TABLE table_name_53 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_53 WHERE opponent_in_the_final = "lubomira bacheva"
What's the length of the model with 500 E body style?
CREATE TABLE table_1773707_2 (length VARCHAR, body_style VARCHAR)
SELECT length FROM table_1773707_2 WHERE body_style = "500 E"
What residence has representative Quincy Murphy?
CREATE TABLE table_name_49 (residence VARCHAR, representative VARCHAR)
SELECT residence FROM table_name_49 WHERE representative = "quincy murphy"
What Monument was built after 1887 in Warren County?
CREATE TABLE table_name_95 (monument_name VARCHAR, year_built VARCHAR, county VARCHAR)
SELECT monument_name FROM table_name_95 WHERE year_built > 1887 AND county = "warren"
Where did Jim Furyk place?
CREATE TABLE table_name_16 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_16 WHERE player = "jim furyk"
What are the names and scores of wines that are made of white color grapes?
CREATE TABLE GRAPES (Grape VARCHAR, Color VARCHAR); CREATE TABLE WINE (Name VARCHAR, Score VARCHAR, Grape VARCHAR)
SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White"
Which Director has an Episode of 13?
CREATE TABLE table_name_17 (director VARCHAR, episode VARCHAR)
SELECT director FROM table_name_17 WHERE episode = 13
In how many districts was the democratic incumbent elected in 1974?
CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR)
SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974
Which Water (sqmi) has a County of benson, and an ANSI code smaller than 1759243?
CREATE TABLE table_name_13 (water__sqmi_ INTEGER, county VARCHAR, ansi_code VARCHAR)
SELECT MIN(water__sqmi_) FROM table_name_13 WHERE county = "benson" AND ansi_code < 1759243
What was the result of the film made before 2005, winner of the robert award, in the category of best actress?
CREATE TABLE table_name_89 (result VARCHAR, award VARCHAR, category VARCHAR, year VARCHAR)
SELECT result FROM table_name_89 WHERE category = "best actress" AND year < 2005 AND award = "robert award"
Which record's march was 26?
CREATE TABLE table_name_77 (record VARCHAR, march VARCHAR)
SELECT record FROM table_name_77 WHERE march = 26
Which Area km 2 has an Official Name of stanley, and a Population larger than 1,817?
CREATE TABLE table_name_46 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
SELECT MAX(area_km_2) FROM table_name_46 WHERE official_name = "stanley" AND population > 1 OFFSET 817
What is the zip code of the address in the city Port Chelsea?
CREATE TABLE Addresses (zip_postcode VARCHAR, city VARCHAR)
SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'
Find the first name of students who are living in the dorm that has most number of amenities.
CREATE TABLE dorm_amenity (amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR)
SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY COUNT(*) DESC LIMIT 1)
What is the hebrew word listed for strongs # 5418?
CREATE TABLE table_1242447_2 (hebrew_word VARCHAR, strongs__number VARCHAR)
SELECT hebrew_word FROM table_1242447_2 WHERE strongs__number = "5418"
Name the circuit for united arab emirates
CREATE TABLE table_2446333_2 (circuit VARCHAR, country VARCHAR)
SELECT circuit FROM table_2446333_2 WHERE country = "United Arab Emirates"
What region has 0.3% solar panel?
CREATE TABLE table_25042332_26 (region VARCHAR, solar_panel VARCHAR)
SELECT region FROM table_25042332_26 WHERE solar_panel = "0.3%"
What is the average Attendance, when Venue is "Candlestick Park", and when Date is "December 27"?
CREATE TABLE table_name_71 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE venue = "candlestick park" AND date = "december 27"
What is the Latin term for the Greek symbol μ?
CREATE TABLE table_name_80 (latin VARCHAR, greek VARCHAR)
SELECT latin FROM table_name_80 WHERE greek = "μ"
Show the album names and ids for albums that contain tracks with unit price bigger than 1.
CREATE TABLE ALBUM (Title VARCHAR, AlbumId VARCHAR); CREATE TABLE TRACK (AlbumID VARCHAR, AlbumId VARCHAR, UnitPrice INTEGER)
SELECT T1.Title, T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID
How many bands are there?
CREATE TABLE Band (Id VARCHAR)
SELECT COUNT(*) FROM Band
What is the grid when the driver was Michael Schumacher?
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_20 WHERE driver = "michael schumacher"
What is the average number of laps associated with a Time/Retired of +1:14.801?
CREATE TABLE table_name_78 (laps INTEGER, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_78 WHERE time_retired = "+1:14.801"
What are the high points that have 42 as the game?
CREATE TABLE table_name_65 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_name_65 WHERE game = 42
What's the patent number of Fukuda?
CREATE TABLE table_name_21 (plant_patent_number VARCHAR)
SELECT plant_patent_number FROM table_name_21 WHERE "inventor" = "fukuda"
Name the competition of 2010 of dnp
CREATE TABLE table_name_6 (competition VARCHAR)
SELECT competition FROM table_name_6 WHERE 2010 = "dnp"
What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, san_javier_municipality___percentage_ VARCHAR)
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE san_javier_municipality___percentage_ = 31
What is the venue for week 1?
CREATE TABLE table_name_58 (venue VARCHAR, week VARCHAR)
SELECT venue FROM table_name_58 WHERE week = "1"
What circuit was after round 2 in Victoria?
CREATE TABLE table_name_64 (circuit VARCHAR, round VARCHAR, state_territory VARCHAR)
SELECT circuit FROM table_name_64 WHERE round > 2 AND state_territory = "victoria"
How many rounds have an Overall larger than 17, and a Position of quarterback?
CREATE TABLE table_name_66 (round VARCHAR, overall VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = "quarterback"
When the Runners-Up is larger than 0, what's the sum of winners?
CREATE TABLE table_name_38 (winners INTEGER, runners_up INTEGER)
SELECT SUM(winners) FROM table_name_38 WHERE runners_up > 0
Show writers who have published a book with price more than 4000000.
CREATE TABLE publication (Book_ID VARCHAR, Price INTEGER); CREATE TABLE book (Writer VARCHAR, Book_ID VARCHAR)
SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000
What is the result for Melbourne when Adelaide is no, and Auckland is yes?
CREATE TABLE table_name_56 (melbourne VARCHAR, adelaide VARCHAR, auckland VARCHAR)
SELECT melbourne FROM table_name_56 WHERE adelaide = "no" AND auckland = "yes"
When was the game in which Deron Williams (13) did the high assists played?
CREATE TABLE table_23286223_5 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_23286223_5 WHERE high_assists = "Deron Williams (13)"
Name the D 45 which has D 44 of d 53
CREATE TABLE table_name_40 (d_45 VARCHAR, d_44 VARCHAR)
SELECT d_45 FROM table_name_40 WHERE d_44 = "d 53"
What circuit was on June 1 with a class of both?
CREATE TABLE table_name_16 (circuit VARCHAR, class VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_16 WHERE class = "both" AND date = "june 1"
What is the Tie no when Swansea City is the Away team with a Score of 2–2?
CREATE TABLE table_name_75 (tie_no VARCHAR, score VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_75 WHERE score = "2–2" AND away_team = "swansea city"
What is Current Branch Opened, when Branch is Midland Library?
CREATE TABLE table_name_22 (current_branch_opened VARCHAR, branch VARCHAR)
SELECT current_branch_opened FROM table_name_22 WHERE branch = "midland library"
What was the method of resolution when LaVerne Clark's record was 23-16-1?
CREATE TABLE table_name_84 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_84 WHERE record = "23-16-1"
Who are all runner-ups for No. 2?
CREATE TABLE table_1507431_1 (runner_up VARCHAR, no VARCHAR)
SELECT runner_up FROM table_1507431_1 WHERE no = 2
In the games at corio oval, what was the highest crowd?
CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval"
Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?
CREATE TABLE table_name_15 (outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_15 WHERE score_in_the_final = "4–6, 4–6" AND date = "october 21, 1990"
what is the number of the premiere for the 34 peak
CREATE TABLE table_29633639_1 (premiere VARCHAR, peak VARCHAR)
SELECT premiere FROM table_29633639_1 WHERE peak = 34
What is the Country of the Player with a Score of 73-71-76-70=290?
CREATE TABLE table_name_58 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_58 WHERE score = 73 - 71 - 76 - 70 = 290