answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT character FROM table_name_47 WHERE duration = "11 years"
what is the character with the duration of 11 years?
CREATE TABLE table_name_47 (character VARCHAR, duration VARCHAR)
SELECT wheels FROM table_name_99 WHERE builder = "baldwin locomotive works"
What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?
CREATE TABLE table_name_99 (wheels VARCHAR, builder VARCHAR)
SELECT venue FROM table_name_43 WHERE date = "2004-06-23"
Where was the game played on 2004-06-23?
CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR)
SELECT COUNT(wins) FROM table_name_60 WHERE percentage_wins = "52.11%" AND flags < 8
What's the number of wins when the flags were less than 8 and 52.11% of wins?
CREATE TABLE table_name_60 (wins VARCHAR, percentage_wins VARCHAR, flags VARCHAR)
SELECT opponent FROM table_name_70 WHERE result = "l 6–3"
Which opponent has a Result of l 6–3?
CREATE TABLE table_name_70 (opponent VARCHAR, result VARCHAR)
SELECT res FROM table_name_49 WHERE competition = "friendly match"
What was the result for the friendly match competition?
CREATE TABLE table_name_49 (res VARCHAR, competition VARCHAR)
SELECT COUNT(periselene__km_) FROM table_206217_2 WHERE epoch__utc_ = "November 15, 2004, 17:47:12.1"
How many values of periselene when epoch is November 15, 2004, 17:47:12.1?
CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, epoch__utc_ VARCHAR)
SELECT MIN(grid) FROM table_name_89 WHERE time_retired = "1:56:18.22"
What is the smallest grid for a time/retired of 1:56:18.22?
CREATE TABLE table_name_89 (grid INTEGER, time_retired VARCHAR)
SELECT MAX(draws) FROM table_name_22 WHERE losses > 6 AND geelong_fl = "st josephs" AND against < 1250
What is the largest number of draws of St Josephs with losses greater than 6 and less than 1250 against?
CREATE TABLE table_name_22 (draws INTEGER, against VARCHAR, losses VARCHAR, geelong_fl VARCHAR)
SELECT date FROM table_name_29 WHERE home = "hamilton wildcats"
What is the Date with a Home that is hamilton wildcats?
CREATE TABLE table_name_29 (date VARCHAR, home VARCHAR)
SELECT SUM(total) FROM table_name_71 WHERE years = "2000–2012" AND silver > 2 AND bronze = 0 AND rank < 70
What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70?
CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, bronze VARCHAR, years VARCHAR, silver VARCHAR)
SELECT result FROM table_name_95 WHERE date = "9 september 2009"
What is the result of the match on 9 September 2009?
CREATE TABLE table_name_95 (result VARCHAR, date VARCHAR)
SELECT SUM(draws) FROM table_name_53 WHERE losses > 16 AND season > 1966
Which Draws have Losses larger than 16, and a Season larger than 1966?
CREATE TABLE table_name_53 (draws INTEGER, losses VARCHAR, season VARCHAR)
SELECT AVG(silver) FROM table_name_5 WHERE total < 1
Name the average silver with total less than 1
CREATE TABLE table_name_5 (silver INTEGER, total INTEGER)
SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl"
What was the score of the Insight Bowl?
CREATE TABLE table_name_53 (score VARCHAR, bowl_game VARCHAR)
SELECT opponent FROM table_name_32 WHERE attendance = "40,560"
Which opponent has an attendance of 40,560?
CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(rank) FROM table_14752049_5 WHERE international_tourist_arrivals__2011_ = "6.2 million"
Name the number of ranks for international tourist arrivals being 6.2 million
CREATE TABLE table_14752049_5 (rank VARCHAR, international_tourist_arrivals__2011_ VARCHAR)
SELECT SUM(round) FROM table_name_32 WHERE name = "marcus howard"
What is the round for marcus howard?
CREATE TABLE table_name_32 (round INTEGER, name VARCHAR)
SELECT season FROM table_name_96 WHERE opponent = "necaxa"
In what Season is Necaxa an Opponent?
CREATE TABLE table_name_96 (season VARCHAR, opponent VARCHAR)
SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%"
Find all the catalog publishers whose name contains "Murray"
CREATE TABLE catalogs (catalog_publisher VARCHAR)
SELECT voltage FROM table_name_8 WHERE socket = "socket 370" AND model_number = "pentiumiii866"
What is the voltage of the Pentiumiii866 microprocessor with a socket 370?
CREATE TABLE table_name_8 (voltage VARCHAR, socket VARCHAR, model_number VARCHAR)
SELECT COUNT(date) FROM table_11964047_7 WHERE leading_scorer = "Gordon : 32"
what is the total number of dates where the scorer is gordon : 32
CREATE TABLE table_11964047_7 (date VARCHAR, leading_scorer VARCHAR)
SELECT label FROM table_name_83 WHERE date = "december 19, 2001"
What label released a record on December 19, 2001?
CREATE TABLE table_name_83 (label VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_33 WHERE pts = "16"
What is the earliest year with 16 points?
CREATE TABLE table_name_33 (year INTEGER, pts VARCHAR)
SELECT score FROM table_name_68 WHERE year > 1978 AND champion = "stefan edberg"
What was the score when stefan edberg won after 1978?
CREATE TABLE table_name_68 (score VARCHAR, year VARCHAR, champion VARCHAR)
SELECT first_name, last_name, salary FROM employees WHERE commission_pct = "null"
What are the full name (first and last name) and salary for all employees who does not have any value for commission?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR)
SELECT opponent FROM table_name_34 WHERE attendance = "62,657"
Who was the opponent at the game attended by 62,657?
CREATE TABLE table_name_34 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(top_division_titles) FROM table_1908877_2 WHERE position_in_2012_13 = "5th"
How many clubs achieved the 5th position in 2012-13?
CREATE TABLE table_1908877_2 (top_division_titles VARCHAR, position_in_2012_13 VARCHAR)
SELECT model FROM table_name_15 WHERE total_produced > 5 AND prime_mover = "12-251c"
What model has a total produced more than 5 and a prime move of 12-251c?
CREATE TABLE table_name_15 (model VARCHAR, total_produced VARCHAR, prime_mover VARCHAR)
SELECT MIN(heat) FROM table_name_88 WHERE nationality = "germany" AND lane > 8
What was the least number of heats with more than 8 lanes for the Nationality of Germany?
CREATE TABLE table_name_88 (heat INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210"
Name the record for attendance location of palace of auburn hills 15,210
CREATE TABLE table_17103729_8 (record VARCHAR, location_attendance VARCHAR)
SELECT record FROM table_name_75 WHERE date = "april 10"
What was the record on April 10?
CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR)
SELECT results¹ FROM table_name_49 WHERE date = "december 19"
what results are dated december 19?
CREATE TABLE table_name_49 (results¹ VARCHAR, date VARCHAR)
SELECT duration FROM table_name_47 WHERE actor = "mike walling"
What is the duration for mike walling as the actor?
CREATE TABLE table_name_47 (duration VARCHAR, actor VARCHAR)
SELECT signal_quality FROM table_name_96 WHERE station_call_letters = "kcal-dt"
What signal quality does the KCAL-DT channel have?
CREATE TABLE table_name_96 (signal_quality VARCHAR, station_call_letters VARCHAR)
SELECT nationality FROM table_name_7 WHERE position = "f" AND college_high_school_club = "kentucky state"
What is the nationality of the person drafted to Position F from Kentucky State?
CREATE TABLE table_name_7 (nationality VARCHAR, position VARCHAR, college_high_school_club VARCHAR)
SELECT nba_draft FROM table_name_61 WHERE player = "labradford smith"
Which NBA Draft had Labradford Smith?
CREATE TABLE table_name_61 (nba_draft VARCHAR, player VARCHAR)
SELECT MAX(silver) FROM table_name_9 WHERE total < 8 AND gold = 0 AND nation = "qatar" AND bronze > 2
What is the highest number of silvers for qatar with under 8 total, 0 golds, and over 2 bronzes?
CREATE TABLE table_name_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR)
SELECT COUNT(womens_singles) FROM table_28138035_4 WHERE year_location = "1999 Rio de Janeiro"
Name the number of womens singles for 1999 rio de janeiro
CREATE TABLE table_28138035_4 (womens_singles VARCHAR, year_location VARCHAR)
SELECT MIN(draws) FROM table_name_18 WHERE losses < 2 AND position < 4 AND wins > 4
What is the fewest draws for teams having under 2 losses, more than 4 wins, and a position under 4?
CREATE TABLE table_name_18 (draws INTEGER, wins VARCHAR, losses VARCHAR, position VARCHAR)
SELECT country FROM table_name_99 WHERE to_par < 7 AND place = "1"
Which Country has a To par smaller than 7, and a Place of 1?
CREATE TABLE table_name_99 (country VARCHAR, to_par VARCHAR, place VARCHAR)
SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = "Yannick Talabardon"
Who is every young rider classification if combativity award is Yannick Talabardon?
CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, combativity_award VARCHAR)
SELECT MAX(attendance) FROM table_20540006_6 WHERE challenge_leader = "Big East (4-2)"
What was the attendance for the game when the challenge leader was at Big East (4-2)?
CREATE TABLE table_20540006_6 (attendance INTEGER, challenge_leader VARCHAR)
SELECT 2 AS fm__mhz_ FROM table_name_91 WHERE service_area = "sw ireland"
What is the 2FM for SW Ireland?
CREATE TABLE table_name_91 (service_area VARCHAR)
SELECT attendance FROM table_name_67 WHERE title = "44th"
What is the Attendance number for the title of 44th?
CREATE TABLE table_name_67 (attendance VARCHAR, title VARCHAR)
SELECT market_income_per_capita FROM table_22815568_13 WHERE county = "Hancock"
what is the market income per capita where the county is hancock?
CREATE TABLE table_22815568_13 (market_income_per_capita VARCHAR, county VARCHAR)
SELECT us_viewers__millions_ FROM table_19266557_1 WHERE _number = 6
How many millions of viewers were there for number 6?
CREATE TABLE table_19266557_1 (us_viewers__millions_ VARCHAR, _number VARCHAR)
SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24
What is the grid when the laps were 24?
CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR)
SELECT icao FROM table_name_73 WHERE country = "hong kong"
What is the ICAO for Hong Kong?
CREATE TABLE table_name_73 (icao VARCHAR, country VARCHAR)
SELECT COUNT(*) FROM train
Show the number of trains
CREATE TABLE train (Id VARCHAR)
SELECT 1958 AS _cié FROM table_name_69 WHERE class = "s"
What 1958 CIE is class s?
CREATE TABLE table_name_69 (class VARCHAR)
SELECT COUNT(DISTINCT gender) FROM dorm
Find the number of distinct gender for dorms.
CREATE TABLE dorm (gender VARCHAR)
SELECT winner FROM table_name_97 WHERE fifth = "joss stone"
WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE?
CREATE TABLE table_name_97 (winner VARCHAR, fifth VARCHAR)
SELECT home_team AS score FROM table_name_41 WHERE venue = "western oval"
What did the home team score when playing at Western Oval?
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR)
SELECT player FROM table_name_48 WHERE school_club_team_country = "st. mary's"
Who is the player for St. Mary's team?
CREATE TABLE table_name_48 (player VARCHAR, school_club_team_country VARCHAR)
SELECT AVG(draws) FROM table_name_1 WHERE al_ahly_wins > 59
What is the average number of draws for Al Ahly wins over 59?
CREATE TABLE table_name_1 (draws INTEGER, al_ahly_wins INTEGER)
SELECT AVG(poles) FROM table_name_71 WHERE points = "n/a"
WHAT IS THE AVERAGE POLES WITH POINTS N/A?
CREATE TABLE table_name_71 (poles INTEGER, points VARCHAR)
SELECT AVG(partial_failures) FROM table_name_53 WHERE country = "russia" AND failures > 0 AND family = "angara" AND launches > 1
What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1?
CREATE TABLE table_name_53 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR)
SELECT MAX(holborn_division) FROM table_16677738_1 WHERE tower_division = 272966
When 272966 is the tower division what is the highest holborn division?
CREATE TABLE table_16677738_1 (holborn_division INTEGER, tower_division VARCHAR)
SELECT date FROM table_name_69 WHERE name = "international gold cup"
What date did the International Gold Cup take place?
CREATE TABLE table_name_69 (date VARCHAR, name VARCHAR)
SELECT campus FROM campuses WHERE LOCATION = "Northridge" AND county = "Los Angeles" UNION SELECT campus FROM campuses WHERE LOCATION = "San Francisco" AND county = "San Francisco"
Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.
CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR)
SELECT MIN(events) FROM table_name_34 WHERE cuts_made = 24 AND top_25 < 11
What is the smallest number of events with 24 cuts and less than 11 in the top-25?
CREATE TABLE table_name_34 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT award FROM table_name_27 WHERE work = "scream" AND year = 1997
Which award did Scream receive a nomination and/or win for in 1997?
CREATE TABLE table_name_27 (award VARCHAR, work VARCHAR, year 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 format FROM table_name_33 WHERE label = "eagle eye media" AND catalogue_number_s_ = "—" AND country = "united states"
Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?
CREATE TABLE table_name_33 (format VARCHAR, country VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)
SELECT MIN(population_rank) FROM table_1425958_1 WHERE _percentage_change = "8.4"
When the % change is 8.4, what is the population rank?
CREATE TABLE table_1425958_1 (population_rank INTEGER, _percentage_change VARCHAR)
SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002
What is the party for the representative who was first elected before 2002 and the results were re-elected?
CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT player FROM table_name_44 WHERE college = "oral roberts"
Who was the draft pick that went to college at Oral Roberts?
CREATE TABLE table_name_44 (player VARCHAR, college VARCHAR)
SELECT class AS pos FROM table_name_98 WHERE pos = "9th"
Which team is in 9th place?
CREATE TABLE table_name_98 (class VARCHAR, pos VARCHAR)
SELECT COUNT(venue) FROM table_24850630_3 WHERE race = "Mackinnon Stakes"
The MacKinnon Stakes races took place on how many venues?
CREATE TABLE table_24850630_3 (venue VARCHAR, race VARCHAR)
SELECT location_attendance FROM table_22883210_10 WHERE team = "Minnesota"
Name the location attendance for minnesota
CREATE TABLE table_22883210_10 (location_attendance VARCHAR, team VARCHAR)
SELECT COUNT(touchdowns) FROM table_name_73 WHERE field_goals > 0
How many Touchdowns have Field goals larger than 0?
CREATE TABLE table_name_73 (touchdowns VARCHAR, field_goals INTEGER)
SELECT surface FROM table_name_58 WHERE score = "7–5, 3–6, 7–6"
What was the surface of the score of 7–5, 3–6, 7–6?
CREATE TABLE table_name_58 (surface VARCHAR, score VARCHAR)
SELECT COUNT(production_code) FROM table_17623902_1 WHERE written_by = "Julie Martin"
How many episodes did Julie Martin wrote for the show If every episode has its own production code?
CREATE TABLE table_17623902_1 (production_code VARCHAR, written_by VARCHAR)
SELECT remixed_by FROM table_name_74 WHERE length = "3:58"
Who remixed the version with a length of 3:58?
CREATE TABLE table_name_74 (remixed_by VARCHAR, length VARCHAR)
SELECT 2000 FROM table_name_4 WHERE 2012 = "4r"
what is 2000 when 2012 is 4r?
CREATE TABLE table_name_4 (Id VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE venue = "punt road oval"
When the venue was punt road oval, what was the Home teams score?
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR)
SELECT result FROM table_28298589_4 WHERE home_team = "Washington"
What was the final score of Washington's home game?
CREATE TABLE table_28298589_4 (result VARCHAR, home_team VARCHAR)
SELECT elector FROM table_name_13 WHERE title = "titulus s. cecilia"
What Elector has the Title of Titulus S. Cecilia?
CREATE TABLE table_name_13 (elector VARCHAR, title VARCHAR)
SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000
What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
SELECT place FROM table_name_3 WHERE country = "england" AND score > 66
Name the Place of england with a Score larger than 66?
CREATE TABLE table_name_3 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT song_choice FROM table_name_1 WHERE theme = "1960s"
What is the Song choice with a Theme that is 1960s?
CREATE TABLE table_name_1 (song_choice VARCHAR, theme VARCHAR)
SELECT light_vehicle FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = "R87.00"
What is the toll for light vehicles at the plaza where the toll for heavy vehicles with 2 axles is r87.00?
CREATE TABLE table_1211545_2 (light_vehicle VARCHAR, heavy_vehicle__2_axles_ VARCHAR)
SELECT opponents FROM table_2009095_2 WHERE score = "6–4, 3–6, 6–2"
Name the opponets for 6–4, 3–6, 6–2
CREATE TABLE table_2009095_2 (opponents VARCHAR, score VARCHAR)
SELECT party FROM table_name_59 WHERE name = "richard simpson"
What is the party of Richard Simpson?
CREATE TABLE table_name_59 (party VARCHAR, name VARCHAR)
SELECT date FROM table_27700375_11 WHERE location_attendance = "The Palace of Auburn Hills 14,554"
Name the date for the palace of auburn hills 14,554
CREATE TABLE table_27700375_11 (date VARCHAR, location_attendance VARCHAR)
SELECT gender FROM table_name_24 WHERE roll < 141 AND name = "makarora primary school"
Makarora primary school has a roll less than 141 and what gender?
CREATE TABLE table_name_24 (gender VARCHAR, roll VARCHAR, name VARCHAR)
SELECT MAX(year) FROM table_name_48 WHERE venue = "blackwolf run, composite course" AND score = "281"
Which Year is the highest one that has a Venue of blackwolf run, composite course, and a Score of 281?
CREATE TABLE table_name_48 (year INTEGER, venue VARCHAR, score VARCHAR)
SELECT score FROM table_name_58 WHERE opponent = "nina bratchikova"
What Score has an Opponent of nina bratchikova?
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)
SELECT SUM(earnings___) AS $__ FROM table_name_97 WHERE wins > 2 AND events < 25
What is the number of earning for more than 2 wins and less than 25 events?
CREATE TABLE table_name_97 (earnings___ INTEGER, wins VARCHAR, events VARCHAR)
SELECT sprint FROM table_name_28 WHERE mass_start = "2nd"
Name the sprint with mass start of 2nd
CREATE TABLE table_name_28 (sprint VARCHAR, mass_start VARCHAR)
SELECT goals_l_c_e_ FROM table_name_50 WHERE app_l_c_e_ = "55 (47/5/3)"
What are the gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)?
CREATE TABLE table_name_50 (goals_l_c_e_ VARCHAR, app_l_c_e_ VARCHAR)
SELECT title FROM table_name_99 WHERE year = "1997" AND distributor_s_ = "hbo pictures"
What is the name of the movie from 1997 distributed from HBO Pictures?
CREATE TABLE table_name_99 (title VARCHAR, year VARCHAR, distributor_s_ VARCHAR)
SELECT goals FROM table_name_84 WHERE assists = "33" AND games = "85"
How many goals did the player score who had 33 assists in 85 games?
CREATE TABLE table_name_84 (goals VARCHAR, assists VARCHAR, games VARCHAR)
SELECT SUM(rank) FROM table_name_21 WHERE heat = 9 AND nation = "great britain"
what is the rank when heat is 9 and the nation is great britain?
CREATE TABLE table_name_21 (rank INTEGER, heat VARCHAR, nation VARCHAR)
SELECT hometown FROM table_name_62 WHERE height = "6-3" AND name = "devon bookert"
What is the hometown of Devon Bookert who is 6-3 tall?
CREATE TABLE table_name_62 (hometown VARCHAR, height VARCHAR, name VARCHAR)
SELECT height_ft__m_ FROM table_name_69 WHERE name = "tenth presbyterian church"
What is the height of the Tenth Presbyterian Church?
CREATE TABLE table_name_69 (height_ft__m_ VARCHAR, name VARCHAR)
SELECT AVG(top_10) FROM table_name_37 WHERE wins < 0
What is the average Top-10, when Wins is less than 0?
CREATE TABLE table_name_37 (top_10 INTEGER, wins INTEGER)
SELECT COUNT(valid_votes) FROM table_27274222_2 WHERE province = "Denizli"
When Denizli was the province, what was the total number of valid votes?
CREATE TABLE table_27274222_2 (valid_votes VARCHAR, province VARCHAR)
SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = "analog" AND available_interface = "agp" AND retail_name = "all-in-wonder 9800"
What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800?
CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR)