answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT hdtv FROM table_name_84 WHERE content = "documentaries"
What is the HDTV when documentaries are the content?
CREATE TABLE table_name_84 (hdtv VARCHAR, content VARCHAR)
SELECT MAX(stars), MIN(stars) FROM Rating
What is the lowest and highest rating star?
CREATE TABLE Rating (stars INTEGER)
SELECT score FROM table_name_6 WHERE date = "september 20"
What is the score on september 20?
CREATE TABLE table_name_6 (score VARCHAR, date VARCHAR)
SELECT AVG(cuts_made) FROM table_name_38 WHERE top_10 = 11
How many average cuts made when 11 is the Top-10?
CREATE TABLE table_name_38 (cuts_made INTEGER, top_10 VARCHAR)
SELECT result FROM table_name_21 WHERE week = "vegas verdicts"
For Vegas Verdicts week, what was the result?
CREATE TABLE table_name_21 (result VARCHAR, week VARCHAR)
SELECT COUNT(rain) FROM table_12837_1 WHERE sunlight_hours = 1966
How many rain figures are provided for sunlight hours in 1966?
CREATE TABLE table_12837_1 (rain VARCHAR, sunlight_hours VARCHAR)
SELECT name FROM table_name_81 WHERE assumed_office = 2013 AND district = "o"
What is the name of the Senator in the O District who assumed office in 2013?
CREATE TABLE table_name_81 (name VARCHAR, assumed_office VARCHAR, district VARCHAR)
SELECT SUM(top_10) FROM table_name_61 WHERE top_5 < 1
How many top 10s when he had under 1 top 5s?
CREATE TABLE table_name_61 (top_10 INTEGER, top_5 INTEGER)
SELECT COUNT(year) FROM table_name_1 WHERE uk_peak_position = "10"
How many years had a film that peaked at #10 in the UK?
CREATE TABLE table_name_1 (year VARCHAR, uk_peak_position VARCHAR)
SELECT COUNT(party) FROM table_26336739_1 WHERE incumbent = "Mac Collins"
how many party classifications are there for the incumbent Mac Collins?
CREATE TABLE table_26336739_1 (party VARCHAR, incumbent VARCHAR)
SELECT position FROM table_name_77 WHERE current_club = "alba berlin" AND height > 1.96 AND year_born__age_ = "july 23, 1985 (age28)"
What is the position for the player from the Alba Berlin club who is taller than 1.96 and whose ear born (Age) is july 23, 1985 (age28)?
CREATE TABLE table_name_77 (position VARCHAR, year_born__age_ VARCHAR, current_club VARCHAR, height VARCHAR)
SELECT length FROM table_name_23 WHERE date = "august 15"
What is the length of the race on August 15?
CREATE TABLE table_name_23 (length VARCHAR, date VARCHAR)
SELECT SUM(overall) FROM table_name_60 WHERE round < 4 AND college = "tennessee" AND pick__number > 9
What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?
CREATE TABLE table_name_60 (overall INTEGER, pick__number VARCHAR, round VARCHAR, college VARCHAR)
SELECT tuesday FROM table_name_94 WHERE saturday = "土曜日 doyōbi"
Which Tuesday has a Saturday of 土曜日 doyōbi?
CREATE TABLE table_name_94 (tuesday VARCHAR, saturday VARCHAR)
SELECT result FROM table_name_14 WHERE opponent = "buffalo bills"
Which result was there when the opponents were the Buffalo Bills?
CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR)
SELECT games_w_l FROM table_23133482_1 WHERE player = "Arthur Ashe"
What are Arthur Ashe's games w-l?
CREATE TABLE table_23133482_1 (games_w_l VARCHAR, player VARCHAR)
SELECT MAX(draft_year) FROM table_13758243_1 WHERE player = "Jerry Marion"
What year was jerry marion drafted?
CREATE TABLE table_13758243_1 (draft_year INTEGER, player VARCHAR)
SELECT party FROM table_2668401_12 WHERE district = "Pennsylvania 8"
What are the parties listed for Pennsylvania 8?
CREATE TABLE table_2668401_12 (party VARCHAR, district VARCHAR)
SELECT attendance FROM table_name_27 WHERE result = "w29-7"
How many spectators attended the game that ended in a result of w29-7?
CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR)
SELECT height__f_ FROM table_23670057_6 WHERE player = "Demond Greene"
Name the height of demond greene
CREATE TABLE table_23670057_6 (height__f_ VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes)
How many contestants did not get voted?
CREATE TABLE contestants (contestant_number VARCHAR); CREATE TABLE votes (contestant_number VARCHAR)
SELECT round FROM table_name_92 WHERE opponent = "manny gamburyan"
What round was the opponent Manny Gamburyan?
CREATE TABLE table_name_92 (round VARCHAR, opponent VARCHAR)
SELECT fastest_lap FROM table_19850806_3 WHERE race = "Texas" AND winning_driver = "Dario Franchitti"
Who held the fastest lap in the race in texas and dario franchitti is the winning driver?
CREATE TABLE table_19850806_3 (fastest_lap VARCHAR, race VARCHAR, winning_driver VARCHAR)
SELECT AVG(draw) FROM table_name_64 WHERE artist = "desi dobreva" AND place < 6
What is the average draw for Desi Dobreva, was it less than 6?
CREATE TABLE table_name_64 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro"
What is the main color(s) for marlboro?
CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR)
SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb"
What is the date of the British Rail class 111 tslrb description?
CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR)
SELECT AVG(fa_cup) FROM table_name_79 WHERE name = "steve whitworth" AND total < 400
What is the average number of FA cups Steve Whitworth, who has less than 400 total, has?
CREATE TABLE table_name_79 (fa_cup INTEGER, name VARCHAR, total VARCHAR)
SELECT player FROM table_2886617_2 WHERE nhl_team = "New York Rangers"
What player was picked by the New York Rangers?
CREATE TABLE table_2886617_2 (player VARCHAR, nhl_team VARCHAR)
SELECT COUNT(points) FROM table_name_92 WHERE chassis = "simtek s951"
How many points for the simtek s951 chassis?
CREATE TABLE table_name_92 (points VARCHAR, chassis VARCHAR)
SELECT score FROM table_name_88 WHERE player = "bernhard langer"
What was the score of Bernhard Langer after 3 rounds?
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
SELECT date FROM table_name_22 WHERE week = 13
On which date was the game played on Week 13?
CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_15 WHERE week = 9
What was the Opponent in Week 9?
CREATE TABLE table_name_15 (opponent VARCHAR, week VARCHAR)
SELECT to_par FROM table_name_56 WHERE place = "t6" AND player = "nick faldo"
Which To par has a Place of t6, and a Player of nick faldo?
CREATE TABLE table_name_56 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT AVG(points) FROM table_name_69 WHERE name = "denis kornilov"
Which Points have a Name of denis kornilov?
CREATE TABLE table_name_69 (points INTEGER, name VARCHAR)
SELECT team__league_ FROM table_name_85 WHERE reg_gp = 0 AND pick__number < 136 AND player = "regan darby"
Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby?
CREATE TABLE table_name_85 (team__league_ VARCHAR, player VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)
SELECT school_club_team FROM table_name_87 WHERE player = "mike miller"
Mike Miller played for what school/club team?
CREATE TABLE table_name_87 (school_club_team VARCHAR, player VARCHAR)
SELECT date FROM table_2167226_3 WHERE tournament = "McDonald's WPGA Championship"
What is the date for the tournament McDonald's wpga championship?
CREATE TABLE table_2167226_3 (date VARCHAR, tournament VARCHAR)
SELECT nationality FROM table_name_44 WHERE round = 6
What nationality was the round 6 draft pick?
CREATE TABLE table_name_44 (nationality VARCHAR, round VARCHAR)
SELECT driver FROM table_name_72 WHERE points = 26
Which river had 26 points?
CREATE TABLE table_name_72 (driver VARCHAR, points VARCHAR)
SELECT semifinalists FROM table_name_58 WHERE tournament = "cincinnati"
Who are the semifinalists when the tournament is in Cincinnati?
CREATE TABLE table_name_58 (semifinalists VARCHAR, tournament VARCHAR)
SELECT MAX(total) FROM table_name_70 WHERE silver > 19
Name the Total which has a Silver larger than 19?
CREATE TABLE table_name_70 (total INTEGER, silver INTEGER)
SELECT COUNT(record) FROM table_13557843_8 WHERE date = "April 12"
How many pairs of numbers are under record on April 12?
CREATE TABLE table_13557843_8 (record VARCHAR, date VARCHAR)
SELECT launched FROM table_name_50 WHERE commissioned = "25 july 1998"
What is Launched, when Commissioned is "25 July 1998"?
CREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR)
SELECT position FROM table_274117_5 WHERE year_of_induction_into_pro_football_hall_of_fame = "1980"
What position was the player who was inducted into the Pro Football Hall of Fame in 1980?
CREATE TABLE table_274117_5 (position VARCHAR, year_of_induction_into_pro_football_hall_of_fame VARCHAR)
SELECT original_airdate FROM table_name_19 WHERE directed_by = "erik wiese" AND season__number > 6
What is the Original airdate of the episode after Season 6 Directed by Erik Wiese?
CREATE TABLE table_name_19 (original_airdate VARCHAR, directed_by VARCHAR, season__number VARCHAR)
SELECT week FROM table_name_49 WHERE tournament = "rome"
Which week held a tournament in Rome?
CREATE TABLE table_name_49 (week VARCHAR, tournament VARCHAR)
SELECT no FROM table_12722302_3 WHERE directed_by = "Tucker Gates"
What's the number of the episode directed by Tucker Gates?
CREATE TABLE table_12722302_3 (no VARCHAR, directed_by VARCHAR)
SELECT COUNT(school_club_team) FROM table_11545282_4 WHERE player = "Darryl Dawkins"
How many schools did darryl dawkins play for
CREATE TABLE table_11545282_4 (school_club_team VARCHAR, player VARCHAR)
SELECT SUM(bronze) FROM table_name_25 WHERE total > 5
How many bronzes were won by the country with a total higher than 5?
CREATE TABLE table_name_25 (bronze INTEGER, total INTEGER)
SELECT airport FROM table_name_23 WHERE icao = "ento"
What Airport's ICAO is ENTO?
CREATE TABLE table_name_23 (airport VARCHAR, icao VARCHAR)
SELECT written_by FROM table_26565936_2 WHERE no_in_series = 109
Who wrote episode number 109 in the series?
CREATE TABLE table_26565936_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT live_births FROM table_name_85 WHERE migration = "-14 873"
What kind of Live births has a Migration of -14 873?
CREATE TABLE table_name_85 (live_births VARCHAR, migration VARCHAR)
SELECT 1998 FROM table_name_97 WHERE tournament = "canada"
What Tournament of canada happened in 1998?
CREATE TABLE table_name_97 (tournament VARCHAR)
SELECT ground FROM table_name_25 WHERE date = "18 january 1998"
Name The Ground on 18 january 1998?
CREATE TABLE table_name_25 (ground VARCHAR, date VARCHAR)
SELECT frequency FROM table_name_8 WHERE model_number = "turion 64 x2 tl-62"
What is the frequency of the Turion 64 X2 TL-62?
CREATE TABLE table_name_8 (frequency VARCHAR, model_number VARCHAR)
SELECT MIN(bathroom_count), MAX(bathroom_count) FROM Apartments
What is the minimum and maximum number of bathrooms of all the apartments?
CREATE TABLE Apartments (bathroom_count INTEGER)
SELECT time FROM table_name_91 WHERE away = "broadview hawks"
What is the Time with an Away that is broadview hawks?
CREATE TABLE table_name_91 (time VARCHAR, away VARCHAR)
SELECT title FROM table_23114705_3 WHERE no_in_season = 13
What is the name of the episode where the season number is 13?
CREATE TABLE table_23114705_3 (title VARCHAR, no_in_season VARCHAR)
SELECT winning_driver FROM table_name_73 WHERE name = "st. petersburg - moscow"
WHo is Winning driver that is in st. petersburg - moscow?
CREATE TABLE table_name_73 (winning_driver VARCHAR, name VARCHAR)
SELECT nation FROM table_name_62 WHERE total < 27 AND gold < 1 AND bronze > 1
What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1?
CREATE TABLE table_name_62 (nation VARCHAR, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT production_code FROM table_25996938_1 WHERE no_in_series = 11
Which prod code was series 11?
CREATE TABLE table_25996938_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT MIN(yards) FROM table_name_56 WHERE avg < 3
Which has and average less than 3 and the lowest yards?
CREATE TABLE table_name_56 (yards INTEGER, avg INTEGER)
SELECT school FROM table_15475116_1 WHERE colors = "Maroon and White"
What are all the schools that use the colors maroon and white
CREATE TABLE table_15475116_1 (school VARCHAR, colors VARCHAR)
SELECT COUNT(no_in_series) FROM table_2226817_12 WHERE directed_by = "Mark K. Samuels"
how many episodes has been directed by Mark K. Samuels ?
CREATE TABLE table_2226817_12 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT date FROM table_name_38 WHERE home = "utah"
When did they play Utah at home?
CREATE TABLE table_name_38 (date VARCHAR, home VARCHAR)
SELECT player FROM table_name_50 WHERE country = "england" AND place = "t7"
What is Player, when Country is "England", and when Place is "T7"?
CREATE TABLE table_name_50 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT mnz_fea FROM table_name_73 WHERE sil_spr = "18"
What was the MNZ FEA when the SIL SPR was 18?
CREATE TABLE table_name_73 (mnz_fea VARCHAR, sil_spr VARCHAR)
SELECT blackberry_os FROM table_14260687_3 WHERE symbian = "10.4"
How many millions of Blackberry OS smartphones were shipped when 10.4 million Symbian smartphones were shipped?
CREATE TABLE table_14260687_3 (blackberry_os VARCHAR, symbian VARCHAR)
SELECT MIN(year) FROM table_name_78 WHERE college = "alabama" AND pick < 26
What is the earliest year for Alabama with a pick under 26?
CREATE TABLE table_name_78 (year INTEGER, college VARCHAR, pick VARCHAR)
SELECT date FROM table_name_88 WHERE label = "village records"
What date is associated with the label Village Records?
CREATE TABLE table_name_88 (date VARCHAR, label VARCHAR)
SELECT visitor FROM table_name_11 WHERE home = "toronto maple leafs" AND date = "december 22"
Who were the Visitor of the Toronto Maple Leafs Home game on December 22?
CREATE TABLE table_name_11 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT 2 AS nd_leg FROM table_name_50 WHERE agg = "4-6"
What was the score of the second leg with an agg of 4-6?
CREATE TABLE table_name_50 (agg VARCHAR)
SELECT license FROM table_name_18 WHERE actual_version = "9.0"
Which License has an Actual Vaersion of 9.0?
CREATE TABLE table_name_18 (license VARCHAR, actual_version VARCHAR)
SELECT AVG(roll) FROM table_name_48 WHERE area = "featherston" AND authority = "integrated"
tell me the average roll for the featherston area and integrated authority.
CREATE TABLE table_name_48 (roll INTEGER, area VARCHAR, authority VARCHAR)
SELECT year FROM table_name_39 WHERE outcome = "runner-up" AND opponent = "filippo volandri"
What year was the match against filippo volandri where xavier malisse was runner-up?
CREATE TABLE table_name_39 (year VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT COUNT(gold) FROM table_name_93 WHERE bronze = 2 AND silver > 5
What is the total number of gold medals when the team got 2 bronze and more than 5 silver medals?
CREATE TABLE table_name_93 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT date FROM table_name_93 WHERE length_of_game = "75:43"
What was the date of the game that lasted 75:43?
CREATE TABLE table_name_93 (date VARCHAR, length_of_game VARCHAR)
SELECT rd, _time FROM table_name_48 WHERE opponent = "hastings rasani"
What was Tony Oakey's Rd., Time when he fought against hastings rasani?
CREATE TABLE table_name_48 (rd VARCHAR, _time VARCHAR, opponent VARCHAR)
SELECT AVG(round) FROM table_name_43 WHERE circuit = "norisring"
What is the round for the Norisring circuit?
CREATE TABLE table_name_43 (round INTEGER, circuit VARCHAR)
SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21
What is the intergiro classification of stage 21?
CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, stage VARCHAR)
SELECT record FROM table_name_82 WHERE attendance = "31,467"
What was the Indians' record during the game that had 31,467 in attendance?
CREATE TABLE table_name_82 (record VARCHAR, attendance VARCHAR)
SELECT name, cost FROM procedures ORDER BY cost DESC
List the name and cost of all procedures sorted by the cost from the highest to the lowest.
CREATE TABLE procedures (name VARCHAR, cost VARCHAR)
SELECT party FROM table_name_8 WHERE first_elected = 1990
From which party is the incumbent who was first elected to office in 1990?
CREATE TABLE table_name_8 (party VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4"
Who were the candidates in the Louisiana 4 district?
CREATE TABLE table_1341604_19 (candidates VARCHAR, district VARCHAR)
SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY COUNT(*) DESC LIMIT 2
What are the ids of the two department store chains with the largest number of department stores?
CREATE TABLE department_stores (dept_store_chain_id VARCHAR)
SELECT MIN(cap_number) FROM table_name_96 WHERE date = "8 february 2009" AND shirt_number > 19
Can you tell me the lowest Cap Number that has the Date of 8 february 2009, and the Shirt Number larger than 19?
CREATE TABLE table_name_96 (cap_number INTEGER, date VARCHAR, shirt_number VARCHAR)
SELECT COUNT(engine_displacement) FROM table_1147705_1 WHERE engine_type = "B5204 T3"
How many engine b5204 t3?
CREATE TABLE table_1147705_1 (engine_displacement VARCHAR, engine_type VARCHAR)
SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1
What is the location of the party with the most hosts?
CREATE TABLE party (LOCATION VARCHAR, Number_of_hosts VARCHAR)
SELECT status FROM table_name_21 WHERE population > 930 AND census_ranking = "1,769 of 5,008"
What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930?
CREATE TABLE table_name_21 (status VARCHAR, population VARCHAR, census_ranking VARCHAR)
SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco"
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?
CREATE TABLE table_name_26 (last_match VARCHAR, date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT aircraft FROM table_name_83 WHERE retired = "—" AND introduced = 2004
What aircraft was introduced in 2004 and has a retired of —?
CREATE TABLE table_name_83 (aircraft VARCHAR, retired VARCHAR, introduced VARCHAR)
SELECT name FROM table_name_5 WHERE finals = "0 (10)"
What player had a finals score of 0 (10)?
CREATE TABLE table_name_5 (name VARCHAR, finals VARCHAR)
SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code
What are the descriptions of all the project outcomes?
CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR)
SELECT nationality FROM table_name_61 WHERE college_country_team = "georgia tech"
What nationality was the player whose college team was Georgia Tech?
CREATE TABLE table_name_61 (nationality VARCHAR, college_country_team VARCHAR)
SELECT AVG(rank) FROM table_name_7 WHERE lane < 4 AND nationality = "san marino"
What is the total average for Rank entries where the Lane listed is smaller than 4 and the Nationality listed is San Marino?
CREATE TABLE table_name_7 (rank INTEGER, lane VARCHAR, nationality VARCHAR)
SELECT other_names FROM table_name_36 WHERE death = "may 23, 1821"
what is other names when death is may 23, 1821?
CREATE TABLE table_name_36 (other_names VARCHAR, death VARCHAR)
SELECT SUM(year) FROM table_name_15 WHERE entrant = "bmw motorsport"
What year shows the Entrant of bmw motorsport?
CREATE TABLE table_name_15 (year INTEGER, entrant VARCHAR)
SELECT MAX(wins) FROM table_name_48 WHERE losses > 1
What is the greatest Wins with Losses larger than 1?
CREATE TABLE table_name_48 (wins INTEGER, losses INTEGER)
SELECT COUNT(republican) AS :_saxby_chambliss FROM table_16751596_16 WHERE lead_margin = 21
How many times did Saxby Chambliss have a lead margin of 21?
CREATE TABLE table_16751596_16 (republican VARCHAR, lead_margin VARCHAR)
SELECT u15_1st_quad FROM table_name_37 WHERE open_3rd_viii = "bbc" AND u16_3rd_viii = "bbc"
Which U15 1st Quad had an Open 3rd VIII of BBC and U16 3rd VIII of BBC?
CREATE TABLE table_name_37 (u15_1st_quad VARCHAR, open_3rd_viii VARCHAR, u16_3rd_viii VARCHAR)