question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the district where the vacator is vacant?
CREATE TABLE table_2192067_4 (district VARCHAR, vacator VARCHAR)
SELECT district FROM table_2192067_4 WHERE vacator = "Vacant"
WHAT GAME HAD A SCORE OF 99-112?
CREATE TABLE table_name_30 (game VARCHAR, result VARCHAR)
SELECT game FROM table_name_30 WHERE result = "99-112"
Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged
CREATE TABLE table_name_52 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR)
SELECT condition FROM table_name_52 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND prothrombin_time = "prolonged" AND partial_thromboplastin_time = "prolonged"
Name the fastest lap for piquet sports and silverstone
CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = "Piquet Sports" AND circuit = "Silverstone"
how many titles have the name "quick callanetics"?
CREATE TABLE table_11222744_3 (catalog_number VARCHAR, title VARCHAR)
SELECT COUNT(catalog_number) FROM table_11222744_3 WHERE title = "Quick Callanetics"
What is the score when Li Na was the opponent?
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_44 WHERE opponent = "li na"
Name who directed the episode that was viewed by 4.22 million
CREATE TABLE table_18569389_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT directed_by FROM table_18569389_1 WHERE us_viewers__million_ = "4.22"
On what air date were there 2.15 million u.s. viewers?
CREATE TABLE table_22380270_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT original_air_date FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
Which game number did they play the Chicago team?
CREATE TABLE table_name_15 (game VARCHAR, team VARCHAR)
SELECT game FROM table_name_15 WHERE team = "chicago"
Which MLS Cup has another larger than 9, and a Total smaller than 72?
CREATE TABLE table_name_43 (mls_cup INTEGER, other VARCHAR, total VARCHAR)
SELECT AVG(mls_cup) FROM table_name_43 WHERE other > 9 AND total < 72
what is the capacity when the code is d4f bi-fuel 732?
CREATE TABLE table_name_36 (capacity VARCHAR, code VARCHAR)
SELECT capacity FROM table_name_36 WHERE code = "d4f bi-fuel 732"
What's the score for $22,500?
CREATE TABLE table_name_62 (score VARCHAR, money___$__ VARCHAR)
SELECT score FROM table_name_62 WHERE money___$__ = "22,500"
Which malaysian team classification had mohd nur rizuan zainal as points classification?
CREATE TABLE table_22464308_2 (malaysian_team_classification VARCHAR, points_classification VARCHAR)
SELECT malaysian_team_classification FROM table_22464308_2 WHERE points_classification = "Mohd Nur Rizuan Zainal"
Who directed the episode written by Lamont Ferrell?
CREATE TABLE table_11630008_5 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_11630008_5 WHERE written_by = "Lamont Ferrell"
What is the name of the bo-bodh train with a number less than 5?
CREATE TABLE table_name_31 (name VARCHAR, number VARCHAR, type VARCHAR)
SELECT name FROM table_name_31 WHERE number < 5 AND type = "bo-bodh"
Tell me the total number of picks for position of m of williams college
CREATE TABLE table_name_9 (pick__number VARCHAR, position VARCHAR, affiliation VARCHAR)
SELECT COUNT(pick__number) FROM table_name_9 WHERE position = "m" AND affiliation = "williams college"
What is the PBA team with a Pick that is 4?
CREATE TABLE table_name_35 (pba_team VARCHAR, pick VARCHAR)
SELECT pba_team FROM table_name_35 WHERE pick = 4
What's the city of license having a D ERP of 100kw?
CREATE TABLE table_name_21 (city_of_license VARCHAR, d_erp VARCHAR)
SELECT city_of_license FROM table_name_21 WHERE d_erp = "100kw"
Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?
CREATE TABLE table_name_6 (builder VARCHAR, date_ordered VARCHAR, tc VARCHAR, stl_no__1883_84_ VARCHAR)
SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = "november 1881"
What is the Result of Goal number 3?
CREATE TABLE table_name_21 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_21 WHERE goal = 3
Which Losing Bonus has a Try Bonus of 8?
CREATE TABLE table_name_29 (losing_bonus VARCHAR, try_bonus VARCHAR)
SELECT losing_bonus FROM table_name_29 WHERE try_bonus = "8"
What was the attendance on may 21?
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_75 WHERE date = "may 21"
How many clubs are there?
CREATE TABLE club (Id VARCHAR)
SELECT COUNT(*) FROM club
How old is Daniel Morton
CREATE TABLE table_13498403_1 (barrier INTEGER, trainer VARCHAR)
SELECT MAX(barrier) FROM table_13498403_1 WHERE trainer = "Daniel Morton"
What is the height in ft and m of the regions bank building?
CREATE TABLE table_name_90 (height_ft__m_ VARCHAR, name VARCHAR)
SELECT height_ft__m_ FROM table_name_90 WHERE name = "regions bank building"
What is the date of the away game in week 8?
CREATE TABLE table_name_2 (date VARCHAR, home_away_game VARCHAR, week VARCHAR)
SELECT date FROM table_name_2 WHERE home_away_game = "away" AND week = 8
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR)
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' ORDER BY department_id
In the Champions league is the forward position smaller than 6.0
CREATE TABLE table_17505751_5 (Champions VARCHAR, position VARCHAR, league VARCHAR)
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE position = "Forward" AND league < 6.0
What is the date of the game where Collingwood was the home team?
CREATE TABLE table_name_31 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_31 WHERE home_team = "collingwood"
what is the average bronze when gold is 1, the nation is hungary and the rank is less than 3?
CREATE TABLE table_name_96 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT AVG(bronze) FROM table_name_96 WHERE gold = 1 AND nation = "hungary" AND rank < 3
Which Date has an Away team of south melbourne?
CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_42 WHERE away_team = "south melbourne"
Who is the driver of the car manufactured by ktm, who started in grid 1.
CREATE TABLE table_name_5 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_5 WHERE manufacturer = "ktm" AND grid = "1"
What is Prize, when Name is "Valdemar Kwaysser"?
CREATE TABLE table_name_58 (prize VARCHAR, name VARCHAR)
SELECT prize FROM table_name_58 WHERE name = "valdemar kwaysser"
What was the home team's score at the game that had a crowd larger than 24,000?
CREATE TABLE table_name_79 (home_team VARCHAR, crowd INTEGER)
SELECT home_team AS score FROM table_name_79 WHERE crowd > 24 OFFSET 000
Which season last aired on May 6, 1987?
CREATE TABLE table_name_77 (season VARCHAR, last_airdate VARCHAR)
SELECT season FROM table_name_77 WHERE last_airdate = "may 6, 1987"
What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish?
CREATE TABLE table_name_43 (grid INTEGER, laps VARCHAR, manufacturer VARCHAR, time VARCHAR)
SELECT MAX(grid) FROM table_name_43 WHERE manufacturer = "aprilia" AND time = "retirement" AND laps > 5
Name the fifth district for william womer
CREATE TABLE table_15442974_1 (fifth_district VARCHAR, third_district VARCHAR)
SELECT fifth_district FROM table_15442974_1 WHERE third_district = "William Womer"
How many seasons did Peter Deluise direct Stargate SG-1?
CREATE TABLE table_15431959_1 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MAX(no_in_season) FROM table_15431959_1 WHERE directed_by = "Peter DeLuise"
What is the most top-10 of the team with 8 cuts made and less than 11 events?
CREATE TABLE table_name_40 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT MAX(top_10) FROM table_name_40 WHERE cuts_made = 8 AND events < 11
What was the competition earlier than 1987?
CREATE TABLE table_name_42 (competition VARCHAR, year INTEGER)
SELECT competition FROM table_name_42 WHERE year < 1987
Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back?
CREATE TABLE table_name_52 (round INTEGER, pick__number VARCHAR, position VARCHAR)
SELECT AVG(round) FROM table_name_52 WHERE pick__number > 26 AND position = "defensive back"
What is the lowest Game, when Location is Philips Arena, and when Attendance is less than 15,619?
CREATE TABLE table_name_68 (game INTEGER, location VARCHAR, attendance VARCHAR)
SELECT MIN(game) FROM table_name_68 WHERE location = "philips arena" AND attendance < 15 OFFSET 619
Who is the name with a works number of 809?
CREATE TABLE table_name_49 (name VARCHAR, works_number VARCHAR)
SELECT name FROM table_name_49 WHERE works_number = "809"
What was Hawthorn's score as the home team?
CREATE TABLE table_name_94 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_94 WHERE home_team = "hawthorn"
What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT MAX(2003) FROM table_name_19 WHERE 2011 < 107 AND 1995 < 17
What is the lowest to par of a player from australia with a score of 76-70-75-72=293?
CREATE TABLE table_name_96 (to_par INTEGER, country VARCHAR, score VARCHAR)
SELECT MIN(to_par) FROM table_name_96 WHERE country = "australia" AND score = 76 - 70 - 75 - 72 = 293
Find the prices of products which has never received a single complaint.
CREATE TABLE products (product_price VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_price VARCHAR, product_id VARCHAR)
SELECT product_price FROM products WHERE NOT product_id IN (SELECT product_id FROM complaints)
Which television service has italian for its language?
CREATE TABLE table_name_46 (television_service VARCHAR, language VARCHAR)
SELECT television_service FROM table_name_46 WHERE language = "italian"
Which player has a 1 February 1982 birthday and more than 16 caps?
CREATE TABLE table_name_61 (player VARCHAR, caps VARCHAR, date_of_birth__age_ VARCHAR)
SELECT player FROM table_name_61 WHERE caps > 16 AND date_of_birth__age_ = "1 february 1982"
Show all document ids and the number of paragraphs in each document. Order by document id.
CREATE TABLE Paragraphs (document_id VARCHAR)
SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id
how much money was requested on the show which aired on 4 september 2011?
CREATE TABLE table_name_87 (money_requested__ INTEGER, first_aired VARCHAR)
SELECT SUM(money_requested__) AS £_ FROM table_name_87 WHERE first_aired = "4 september 2011"
Name the most attendance for 19 february 2005
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_62 WHERE date = "19 february 2005"
What is the first game played against the Chicago Black Hawks?
CREATE TABLE table_name_92 (game INTEGER, opponent VARCHAR)
SELECT MIN(game) FROM table_name_92 WHERE opponent = "chicago black hawks"
how many records had result/games: 10 games (29,606 avg.)
CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR)
SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)"
How many call signs does the location masinloc, zambales have?
CREATE TABLE table_27588823_2 (callsign VARCHAR, location VARCHAR)
SELECT COUNT(callsign) FROM table_27588823_2 WHERE location = "Masinloc, Zambales"
What is the smallest number of assists for Ben Duggan with less than 7 points?
CREATE TABLE table_name_17 (assists INTEGER, name VARCHAR, points VARCHAR)
SELECT MIN(assists) FROM table_name_17 WHERE name = "ben duggan" AND points < 7
What was the result in the election in which Ralph R. Eltse was the incumbent?
CREATE TABLE table_1342331_6 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342331_6 WHERE incumbent = "Ralph R. Eltse"
How many Passengers that have an Airport in indonesia, denpasar?
CREATE TABLE table_name_31 (passengers INTEGER, airport VARCHAR)
SELECT AVG(passengers) FROM table_name_31 WHERE airport = "indonesia, denpasar"
Name the innings for 5088 runs scored
CREATE TABLE table_21486890_1 (innings VARCHAR, runs_scored VARCHAR)
SELECT COUNT(innings) FROM table_21486890_1 WHERE runs_scored = 5088
When did the first staff for the projects started working?
CREATE TABLE Project_Staff (date_from VARCHAR)
SELECT date_from FROM Project_Staff ORDER BY date_from LIMIT 1
How many people came to the game at Victoria Park?
CREATE TABLE table_name_17 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_17 WHERE venue = "victoria park"
What is the area of the community with a population of 1209?
CREATE TABLE table_171361_1 (area_km_2 VARCHAR, population VARCHAR)
SELECT area_km_2 FROM table_171361_1 WHERE population = 1209
Which Incumbent has a Republican of dan mansell?
CREATE TABLE table_name_73 (incumbent VARCHAR, republican VARCHAR)
SELECT incumbent FROM table_name_73 WHERE republican = "dan mansell"
What is the film type for the movie Sanctuary?
CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR)
SELECT type FROM table_name_35 WHERE name = "sanctuary"
What is the country of origin of the artist who is female and produced a song in Bangla?
CREATE TABLE artist (country VARCHAR, artist_name VARCHAR, gender VARCHAR); CREATE TABLE song (artist_name VARCHAR, languages VARCHAR)
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla"
How many caps for mike macdonald?
CREATE TABLE table_name_30 (caps INTEGER, player VARCHAR)
SELECT SUM(caps) FROM table_name_30 WHERE player = "mike macdonald"
Who was the finalist of the hard surface tournament in Miami?
CREATE TABLE table_name_66 (finalist VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT finalist FROM table_name_66 WHERE surface = "hard" AND tournament = "miami"
What is the name and date of the most recent race?
CREATE TABLE races (name VARCHAR, date VARCHAR)
SELECT name, date FROM races ORDER BY date DESC LIMIT 1
Which round was the circuit Assen
CREATE TABLE table_15187794_1 (round VARCHAR, circuit VARCHAR)
SELECT round FROM table_15187794_1 WHERE circuit = "Assen"
What is the earliest year that includes a Seattle Storm guard?
CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR)
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm"
what is the maximum lead margin on august 5, 2008?
CREATE TABLE table_16751596_5 (lead_margin INTEGER, dates_administered VARCHAR)
SELECT MAX(lead_margin) FROM table_16751596_5 WHERE dates_administered = "August 5, 2008"
what is the sponsor of motorola
CREATE TABLE table_name_12 (team VARCHAR, sponsor VARCHAR)
SELECT team FROM table_name_12 WHERE sponsor = "motorola"
What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?
CREATE TABLE table_name_43 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT democratic_ticket FROM table_name_43 WHERE liberal_ticket = "erastus corning 2nd"
What are all the approved treatments for the target CD30?
CREATE TABLE table_1661124_1 (approved_treatment_s_ VARCHAR, target VARCHAR)
SELECT approved_treatment_s_ FROM table_1661124_1 WHERE target = "CD30"
Who is the home team when the crowd is over 32,485?
CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)
SELECT home_team FROM table_name_32 WHERE crowd > 32 OFFSET 485
What is the score of the game on February 27 with New Jersey as the visitor team?
CREATE TABLE table_name_25 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE visitor = "new jersey" AND date = "february 27"
What is the current map designation of the feature which was named for discovery rupes?
CREATE TABLE table_name_63 (current_map VARCHAR, namesake VARCHAR)
SELECT current_map FROM table_name_63 WHERE namesake = "discovery rupes"
Which Pick has a Nationality of canada, and a Player of dennis maxwell?
CREATE TABLE table_name_27 (pick VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_27 WHERE nationality = "canada" AND player = "dennis maxwell"
What is the highest React that has a 7.61 Mark and a heat bigger than 1?
CREATE TABLE table_name_84 (react INTEGER, mark VARCHAR, heat VARCHAR)
SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 1
What average silver has belarus as the nation, with a total less than 1?
CREATE TABLE table_name_23 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT AVG(silver) FROM table_name_23 WHERE nation = "belarus" AND total < 1
What is the number of the city district of stadtteil where foreigners are 5.162?
CREATE TABLE table_10992_3 (city_district__stadtteil_ VARCHAR, foreign_nationals VARCHAR)
SELECT COUNT(city_district__stadtteil_) FROM table_10992_3 WHERE foreign_nationals = "5.162"
Which Winner has a Trofeo Fast Team of metauro mobili-pinarello, and a General classification of giuseppe saronni?
CREATE TABLE table_name_78 (winner VARCHAR, trofeo_fast_team VARCHAR, general_classification VARCHAR)
SELECT winner FROM table_name_78 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND general_classification = "giuseppe saronni"
What is the highest position of the Bangor City team?
CREATE TABLE table_17366952_1 (position INTEGER, team VARCHAR)
SELECT MAX(position) FROM table_17366952_1 WHERE team = "Bangor City"
What rank has a Time of 4:00.191?
CREATE TABLE table_name_94 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_94 WHERE time = "4:00.191"
Who had an Iflop of 2.5%?
CREATE TABLE table_name_55 (party VARCHAR, ifop_5_30_09 VARCHAR)
SELECT party FROM table_name_55 WHERE ifop_5_30_09 = "2.5%"
What was the result for the match with entry Match Reports?
CREATE TABLE table_name_69 (result VARCHAR, match VARCHAR)
SELECT result FROM table_name_69 WHERE match = "match reports"
What is the rank for the episode that premiered on September 12, 1979?
CREATE TABLE table_name_41 (rank VARCHAR, premiere VARCHAR)
SELECT rank FROM table_name_41 WHERE premiere = "september 12, 1979"
What is the smallest number of goals for andy williams?
CREATE TABLE table_name_92 (goals INTEGER, player VARCHAR)
SELECT MIN(goals) FROM table_name_92 WHERE player = "andy williams"
Name the sum of votes % more than 19.5
CREATE TABLE table_name_26 (votes INTEGER, vote__percentage INTEGER)
SELECT SUM(votes) FROM table_name_26 WHERE vote__percentage > 19.5
who is the actor of the character ariadne oliver?
CREATE TABLE table_name_62 (actor VARCHAR, character VARCHAR)
SELECT actor FROM table_name_62 WHERE character = "ariadne oliver"
Where did the away team have round 2?
CREATE TABLE table_name_71 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_71 WHERE away_team = "round 2"
In which category is Frank Scarabino a pilot?
CREATE TABLE table_name_33 (category VARCHAR, pilot VARCHAR)
SELECT category FROM table_name_33 WHERE pilot = "frank scarabino"
Which round lasted 2:32?
CREATE TABLE table_name_84 (round VARCHAR, time VARCHAR)
SELECT round FROM table_name_84 WHERE time = "2:32"
What is the id and market share of the browser Safari?
CREATE TABLE browser (id VARCHAR, market_share VARCHAR, name VARCHAR)
SELECT id, market_share FROM browser WHERE name = 'Safari'
What was the score of the away team at the MCG?
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE venue = "mcg"
What is Years Exp, when Height is "7-2"?
CREATE TABLE table_name_94 (years_exp VARCHAR, height VARCHAR)
SELECT years_exp FROM table_name_94 WHERE height = "7-2"
Name the steals for season 2007/2008
CREATE TABLE table_17309500_1 (steals VARCHAR, season VARCHAR)
SELECT steals FROM table_17309500_1 WHERE season = "2007/2008"
What date did the episode that had 8.84 million u.s. viewers originally air?
CREATE TABLE table_28768925_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_28768925_1 WHERE us_viewers__million_ = "8.84"
What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?
CREATE TABLE table_name_49 (volume VARCHAR, isbn VARCHAR)
SELECT volume FROM table_name_49 WHERE isbn = "978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)"
How many players received high points where location/attendance was UIC Pavilion 6,304 respectively?
CREATE TABLE table_17118657_7 (high_points VARCHAR, location_attendance VARCHAR)
SELECT COUNT(high_points) FROM table_17118657_7 WHERE location_attendance = "UIC Pavilion 6,304"