answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_23 WHERE rank = 2
What Date has a Rank of 2?
CREATE TABLE table_name_23 (date VARCHAR, rank VARCHAR)
SELECT COUNT(attendance) FROM table_23308178_9 WHERE record = "49-15-11"
How many times was there a record of 49-15-11?
CREATE TABLE table_23308178_9 (attendance VARCHAR, record VARCHAR)
SELECT whitten FROM table_name_12 WHERE stuart = "bass" AND paul_mccartney = "electric guitar"
Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar?
CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR)
SELECT record FROM table_name_26 WHERE res = "loss" AND event = "ufc 62"
What is the record for the loss in UFC 62?
CREATE TABLE table_name_26 (record VARCHAR, res VARCHAR, event VARCHAR)
SELECT COUNT(no_in_series) FROM table_26801821_1 WHERE written_by = "Teresa Lin"
What is the number of the series written by Teresa Lin?
CREATE TABLE table_26801821_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT place FROM table_name_16 WHERE score = 73 - 68 - 71 = 212
What is the Place of the Player with a Score of 73-68-71=212?
CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR)
SELECT state FROM table_name_23 WHERE major_series = "imsa gt" AND track = "new orleans"
What is the State with the imsa gt as the Major Series and a track in new orleans?
CREATE TABLE table_name_23 (state VARCHAR, major_series VARCHAR, track VARCHAR)
SELECT MIN(year) FROM table_name_47 WHERE engine = "ford zetec-r v8" AND points > 0
What is the lowest year for an engine of ford zetec-r v8, and points greater than 0?
CREATE TABLE table_name_47 (year INTEGER, engine VARCHAR, points VARCHAR)
SELECT SUM(tier) FROM table_name_45 WHERE postseason = "semifinalist"
What is the total number of tiers for the postseason of semifinalist?
CREATE TABLE table_name_45 (tier INTEGER, postseason VARCHAR)
SELECT 2009 FROM table_name_56 WHERE 2011 = "1r" AND tournament = "australian open"
What's the 2009 of the Australian Open having a 1R in 2011?
CREATE TABLE table_name_56 (tournament VARCHAR)
SELECT entries FROM table_2534387_10 WHERE elapsed_time = "6 h 23 min"
Name the entries for 6 h 23 min elapsed time
CREATE TABLE table_2534387_10 (entries VARCHAR, elapsed_time VARCHAR)
SELECT opponent FROM table_name_52 WHERE game > 76 AND april = 6
Who is the opponent in a game higher than 76 on April 6?
CREATE TABLE table_name_52 (opponent VARCHAR, game VARCHAR, april VARCHAR)
SELECT MIN(gold) FROM table_name_54 WHERE silver < 0
What is the fewest number of golds for teams with 0 silver?
CREATE TABLE table_name_54 (gold INTEGER, silver INTEGER)
SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs"
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship?
CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR)
SELECT season FROM table_name_81 WHERE opponent = "queensland" AND wicket = "4"
What season did they play queensland at wicket 4?
CREATE TABLE table_name_81 (season VARCHAR, opponent VARCHAR, wicket VARCHAR)
SELECT points FROM table_name_24 WHERE goals_against = "222"
What's the points if the goals against were 222?
CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR)
SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001"
How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001?
CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR)
SELECT young_rider_classification FROM table_name_3 WHERE stage = "18"
What Young rider classification has a Stage of 18?
CREATE TABLE table_name_3 (young_rider_classification VARCHAR, stage VARCHAR)
SELECT score FROM table_name_84 WHERE opponent = "@ la lakers" AND record = "8-6"
Which Score has an Opponent of @ la lakers, and a Record of 8-6?
CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT incumbent FROM table_1341640_26 WHERE district = "Missouri 1"
What was the incumbent for missouri 1?
CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR)
SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan"
what is the year when the note is supporting and the title is rokumeikan?
CREATE TABLE table_name_5 (year VARCHAR, note VARCHAR, title VARCHAR)
SELECT COUNT(deaths) FROM table_2930244_4 WHERE number_of_hurricanes = 6
How many deaths did the eyar with exactly 6 hurricanes have?
CREATE TABLE table_2930244_4 (deaths VARCHAR, number_of_hurricanes VARCHAR)
SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858"
What is the Result when the week is later than 9, and there are 65,858 people in attendance?
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT no_in_series FROM table_2818164_5 WHERE no_in_season = "17"
What episode number in the series is also number 17 in the season?
CREATE TABLE table_2818164_5 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_65 WHERE original_title = "sedamdeset i dva dana"
What is the film title used for nomination with the original title sedamdeset i dva dana?
CREATE TABLE table_name_65 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT COUNT(won_by_2_or_more_goals_difference) FROM table_name_3 WHERE difference = "2" AND points > 9 AND team = "america-rj" AND played > 7
How many values for a win by 2 or more goals correspond to a difference of 2, more than 9 points, and the America-RJ team when more than 7 are played?
CREATE TABLE table_name_3 (won_by_2_or_more_goals_difference VARCHAR, played VARCHAR, team VARCHAR, difference VARCHAR, points VARCHAR)
SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Keiron & Brianne"
How many ranks by average when Keiron & Brianne are the couple?
CREATE TABLE table_26375386_28 (rank_by_average VARCHAR, couple VARCHAR)
SELECT COUNT(result) FROM table_15778392_1 WHERE theme = "Year They Were Born"
WHERE THE THEME WAS "YEAR THEY WERE BORN," WHAT THE TOTAL NUMBER OF RESULTS?
CREATE TABLE table_15778392_1 (result VARCHAR, theme VARCHAR)
SELECT MIN(points) FROM table_name_81 WHERE home = "boston"
What is the lowest Points, when Home is "Boston"?
CREATE TABLE table_name_81 (points INTEGER, home VARCHAR)
SELECT opponent FROM table_14863869_1 WHERE date = "September 23, 1984"
List all opponents in the September 23, 1984 game?
CREATE TABLE table_14863869_1 (opponent VARCHAR, date VARCHAR)
SELECT director_s_ FROM table_name_80 WHERE recipient = "cracking film productions"
Who directed a film for Cracking Film Productions?
CREATE TABLE table_name_80 (director_s_ VARCHAR, recipient VARCHAR)
SELECT AVG(access_count) FROM documents
What is the average access count of documents?
CREATE TABLE documents (access_count INTEGER)
SELECT date_of_issue FROM table_15635768_1 WHERE face_value = "42¢"
When the face value is 42¢, what was the issue's date?
CREATE TABLE table_15635768_1 (date_of_issue VARCHAR, face_value VARCHAR)
SELECT tournament FROM table_name_20 WHERE runner_up = "vijay singh"
In which tournament was vijay singh a runner-up?
CREATE TABLE table_name_20 (tournament VARCHAR, runner_up VARCHAR)
SELECT vacator FROM table_1847180_4 WHERE successor = "Walter B. Jones, Sr. (D)"
Who did Walter B. Jones, Sr. (d) succeeded in office?
CREATE TABLE table_1847180_4 (vacator VARCHAR, successor VARCHAR)
SELECT AVG(attendance) FROM table_name_6 WHERE away = "marathon"
What was the average attendance when marathon was the away team?
CREATE TABLE table_name_6 (attendance INTEGER, away VARCHAR)
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston"
Tell me the wekk for eastern #2 of houston
CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR)
SELECT entrant FROM table_name_66 WHERE points = "49" AND chassis = "mclaren m7a"
Which entrant has 49 points and a Mclaren M7A chassis?
CREATE TABLE table_name_66 (entrant VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT MAX(time) FROM table_name_30 WHERE rank < 5 AND name = "eamon sullivan"
what is the highest time when the rank is less than 5 and the name is eamon sullivan?
CREATE TABLE table_name_30 (time INTEGER, rank VARCHAR, name VARCHAR)
SELECT time_retired FROM table_name_80 WHERE constructor = "bmw sauber" AND driver = "nick heidfeld"
What is the Time/Retired for the BMW Sauber, and Nick Heidfeld?
CREATE TABLE table_name_80 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT round FROM table_name_41 WHERE date = "13 october 1984"
What is the round played on 13 October 1984?
CREATE TABLE table_name_41 (round VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_31 WHERE date = "march 4"
How many people were in attendance on March 4?
CREATE TABLE table_name_31 (attendance VARCHAR, date VARCHAR)
SELECT high_points FROM table_23286158_10 WHERE record = "48-30"
When 48-30 is the record who has the highest amount of points?
CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR)
SELECT format FROM table_name_20 WHERE label = "loen entertainment"
What was the format when the label was loen entertainment?
CREATE TABLE table_name_20 (format VARCHAR, label VARCHAR)
SELECT title FROM table_name_59 WHERE arranger = "tarek akef" AND length = "3:50"
What is the title track that is 3:50 and arranged by Tarek Akef?
CREATE TABLE table_name_59 (title VARCHAR, arranger VARCHAR, length VARCHAR)
SELECT district FROM table_name_64 WHERE reserved_for___sc___st__none_ = "none" AND name = "paraswada"
What is the district of Paraswada with none reserved?
CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT t1.product_id, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING COUNT(*) >= 2
Find the id and color description of the products with at least 2 characteristics.
CREATE TABLE product_characteristics (product_id VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR)
SELECT score FROM table_name_91 WHERE record = "56–21"
What was the score of the Mariners game when they had a record of 56–21?
CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR)
SELECT result FROM table_name_42 WHERE week < 9 AND attendance = "25,188"
what is the result when the week is earlier than 9 and attendance is 25,188?
CREATE TABLE table_name_42 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT nationality FROM table_name_70 WHERE time = "20.6" AND athlete = "ray norton"
What's the nationality of Ray norton with a time of 20.6?
CREATE TABLE table_name_70 (nationality VARCHAR, time VARCHAR, athlete 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 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 sector FROM table_name_64 WHERE incorporated < 1983
What is the sector of the company with an incorporated date before 1983?
CREATE TABLE table_name_64 (sector VARCHAR, incorporated INTEGER)
SELECT manufacturer FROM table_name_52 WHERE year_withdrawn = 1927
Who manufactured the vehicle that was withdrawn in 1927?
CREATE TABLE table_name_52 (manufacturer VARCHAR, year_withdrawn VARCHAR)
SELECT MAX(no_in_series) FROM table_20726262_4 WHERE production_code = "3WAB07"
what i the maximum number in the series where the production code is 3wab07?
CREATE TABLE table_20726262_4 (no_in_series INTEGER, production_code VARCHAR)
SELECT frequency FROM table_name_36 WHERE call_sign = "kfnw"
What is the frequency of KFNW?
CREATE TABLE table_name_36 (frequency VARCHAR, call_sign VARCHAR)
SELECT COUNT(position) FROM table_10975034_5 WHERE pick__number = 43
What is the number of position where the pick number is 43?
CREATE TABLE table_10975034_5 (position VARCHAR, pick__number VARCHAR)
SELECT year FROM table_name_18 WHERE genre = "platform game"
What year has a genre the platform game?
CREATE TABLE table_name_18 (year VARCHAR, genre VARCHAR)
SELECT number FROM table_name_26 WHERE percentage___percentage_ = "0.35"
Which number has a 0.35 percentage?
CREATE TABLE table_name_26 (number VARCHAR, percentage___percentage_ VARCHAR)
SELECT record FROM table_name_67 WHERE date = "february 27"
Name the record for february 27
CREATE TABLE table_name_67 (record VARCHAR, date VARCHAR)
SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8
Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?
CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)
SELECT attendance FROM table_name_86 WHERE week < 10 AND result = "l 12-15"
What was the attendance for the week before 10 with a result of L 12-15
CREATE TABLE table_name_86 (attendance VARCHAR, week VARCHAR, result VARCHAR)
SELECT COUNT(geo_id) FROM table_name_28 WHERE water__sqmi_ > 0.587 AND township = "riggin" AND ansi_code > 1759257
What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257?
CREATE TABLE table_name_28 (geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR, township VARCHAR)
SELECT score FROM table_name_56 WHERE tie_no = "33"
Which Score has a Tie no of 33?
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)
SELECT away_team AS score FROM table_name_18 WHERE home_team = "collingwood"
In the game where Collingwood is the home team what is the score of the away team?
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
SELECT record FROM table_name_1 WHERE date = "march 30"
What record has march 30 as the date?
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
SELECT ticket_sold___available FROM table_name_30 WHERE ticket_grossing = "$348,674"
How many tickets were sold and how many were available for the shows that grossed $348,674?
CREATE TABLE table_name_30 (ticket_sold___available VARCHAR, ticket_grossing VARCHAR)
SELECT played FROM table_name_88 WHERE club = "banwen rfc"
what's the played status when the club was banwen rfc?
CREATE TABLE table_name_88 (played VARCHAR, club VARCHAR)
SELECT year FROM table_name_3 WHERE attempts = "282"
When has Attempts of 282 ?
CREATE TABLE table_name_3 (year VARCHAR, attempts VARCHAR)
SELECT outcome FROM table_name_13 WHERE date__final_ = "february 17, 2003"
What was the outcome of the match on February 17, 2003?
CREATE TABLE table_name_13 (outcome VARCHAR, date__final_ VARCHAR)
SELECT retitled_as_same FROM table_169766_13 WHERE last_aired = 1958
Did the name change for the program last aired in 1958?
CREATE TABLE table_169766_13 (retitled_as_same VARCHAR, last_aired VARCHAR)
SELECT margin_of_victory FROM table_name_69 WHERE tournament = "waste management phoenix open"
what is the margin of victory for the waste management phoenix open tournament?
CREATE TABLE table_name_69 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT COUNT(first_elected) FROM table_2668173_4 WHERE party = "Anti-Masonic"
How many incumbents was first elected in the Anti-Masonic party?
CREATE TABLE table_2668173_4 (first_elected VARCHAR, party VARCHAR)
SELECT year FROM table_name_79 WHERE make_ & _model = "mci d4000n"
What year has a make & model of mci d4000n?
CREATE TABLE table_name_79 (year VARCHAR, make_ VARCHAR, _model VARCHAR)
SELECT MAX(weight), MIN(weight) FROM Player
What is the maximum and minimum height of all players?
CREATE TABLE Player (weight INTEGER)
SELECT original_air_date FROM table_18335117_3 WHERE no_overall = 15
When 15 is the number overall what is the original air date?
CREATE TABLE table_18335117_3 (original_air_date VARCHAR, no_overall VARCHAR)
SELECT passed FROM table_256286_19 WHERE no_votes = 61307
What was the passing result for the measure with 61307 no votes?
CREATE TABLE table_256286_19 (passed VARCHAR, no_votes VARCHAR)
SELECT total FROM table_name_86 WHERE set_2 = "25–22"
What is the total when the score for set 2 is 25–22?
CREATE TABLE table_name_86 (total VARCHAR, set_2 VARCHAR)
SELECT date_released FROM table_name_35 WHERE left_bloc = "3.2%"
What is the date released when the Left Bloc had 3.2%?
CREATE TABLE table_name_35 (date_released VARCHAR, left_bloc VARCHAR)
SELECT production_code FROM table_19266557_1 WHERE us_viewers__millions_ = "9.32"
With U.S. viewers of 9.32 million, what is the production code?
CREATE TABLE table_19266557_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND losses < 7
Which Against has Wins of 11, and Losses smaller than 7?
CREATE TABLE table_name_97 (against INTEGER, wins VARCHAR, losses VARCHAR)
SELECT quantity_made FROM table_name_78 WHERE wheel_arrangement = "2-6-0" AND class = "k"
what is the quantity made when the wheel arrangement is 2-6-0 and the class is k?
CREATE TABLE table_name_78 (quantity_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)
SELECT COUNT(others_votes) FROM table_15929156_3 WHERE others__percentage = "2.0%"
Name the number of others votes for when others % is 2.0%
CREATE TABLE table_15929156_3 (others_votes VARCHAR, others__percentage VARCHAR)
SELECT record FROM table_name_30 WHERE game_site = "tiger stadium"
What was the record at Tiger Stadium?
CREATE TABLE table_name_30 (record VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_29 WHERE result = "w 41-0"
What date had a result of W 41-0?
CREATE TABLE table_name_29 (date VARCHAR, result VARCHAR)
SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id
How many films are there in each category? List the genre name, genre id and the count.
CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)
SELECT SUM(league_goals) FROM table_name_80 WHERE total_goals = 8 AND league_cup_goals > 0
What was the sum of league goals where the toal was 8 and league cup goals were larger than 0?
CREATE TABLE table_name_80 (league_goals INTEGER, total_goals VARCHAR, league_cup_goals VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-81"
Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR, score VARCHAR)
SELECT tries_for FROM table_name_24 WHERE club = "croesyceiliog rfc"
How many tries did the club Croesyceiliog rfc have?
CREATE TABLE table_name_24 (tries_for VARCHAR, club VARCHAR)
SELECT truck_s_ FROM table_2187178_1 WHERE crew_chief = "Scott Neal"
Name the trucks for scott neal
CREATE TABLE table_2187178_1 (truck_s_ VARCHAR, crew_chief VARCHAR)
SELECT record FROM table_name_82 WHERE visitor = "nashville"
What is the record when the visitor was Nashville?
CREATE TABLE table_name_82 (record VARCHAR, visitor VARCHAR)
SELECT SUM(capacity__mw_) FROM table_name_31 WHERE size__mw_ = "0.85" AND wind_farm = "carrigh" AND turbines > 3
What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines?
CREATE TABLE table_name_31 (capacity__mw_ INTEGER, turbines VARCHAR, size__mw_ VARCHAR, wind_farm VARCHAR)
SELECT english_translation FROM table_name_81 WHERE season_in_sanskrit = "varsha"
What is the english translation of the sanskrit word varsha?
CREATE TABLE table_name_81 (english_translation VARCHAR, season_in_sanskrit VARCHAR)
SELECT MAX(round) FROM table_name_97 WHERE time = "0:57"
What is the highest round of the match with a time of 0:57?
CREATE TABLE table_name_97 (round INTEGER, time VARCHAR)
SELECT MIN(score_final) FROM table_name_26 WHERE rank_final = 7 AND year > 2009
Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?
CREATE TABLE table_name_26 (score_final INTEGER, rank_final VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_6 WHERE score = "3-2" AND loss = "anderson (2-6)"
What opponent has 3-2 as the score, and anderson (2-6) as a loss?
CREATE TABLE table_name_6 (opponent VARCHAR, score VARCHAR, loss VARCHAR)
SELECT MIN(rank) FROM table_name_23 WHERE country = "new zealand"
What is the smallest rank for new zealand?
CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR)
SELECT date FROM table_name_93 WHERE winning_score = –14(66 - 64 - 68 - 68 = 266)
Which Date has a Winning score of –14 (66-64-68-68=266)?
CREATE TABLE table_name_93 (date VARCHAR, winning_score VARCHAR)
SELECT flattening_ratio FROM table_name_79 WHERE equatorial_diameter = "49,528km"
What is the Flattening ratio associated with the Equatorial diameter of 49,528km?
CREATE TABLE table_name_79 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
SELECT score FROM table_name_57 WHERE goal = 6
What was the score for a goal of 6?
CREATE TABLE table_name_57 (score VARCHAR, goal VARCHAR)
SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg"
What pick number was player Greg McKegg?
CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR)