answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31
When the laps are 31 and the constructor was honda, what's the sum of all grid values?
CREATE TABLE table_name_58 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT away_team AS score FROM table_name_80 WHERE home_team = "south melbourne"
What did the away team score when the home team was south melbourne?
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(game) FROM table_name_6 WHERE series = "oilers win 4–3"
Series of oilers win 4–3 had what highest game?
CREATE TABLE table_name_6 (game INTEGER, series VARCHAR)
SELECT MAX(goals_for) FROM table_name_26 WHERE lost = 25
What is the highest number of goals for for teams with 25 losses?
CREATE TABLE table_name_26 (goals_for INTEGER, lost VARCHAR)
SELECT original_air_date FROM table_23177573_1 WHERE rank__week_ = 21
What is the original air date of the episode that had a week ranking of 21?
CREATE TABLE table_23177573_1 (original_air_date VARCHAR, rank__week_ VARCHAR)
SELECT directed_by FROM table_2409041_9 WHERE no_in_series = 179
Who directed episode number 179 in the series?
CREATE TABLE table_2409041_9 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT school FROM table_1984697_85 WHERE size = 604
Name the school/s with is size of 604.
CREATE TABLE table_1984697_85 (school VARCHAR, size VARCHAR)
SELECT week_1_sept_2 FROM table_name_72 WHERE week_3_sept_14 = "south florida (3-0)"
Which Week 1 Sept 2 has a Week 3 Sept 14 of south florida (3-0)?
CREATE TABLE table_name_72 (week_1_sept_2 VARCHAR, week_3_sept_14 VARCHAR)
SELECT dissolved FROM table_name_58 WHERE assembled = "4 november 1461"
What is the dissolved date of the parliament assembled on 4 November 1461?
CREATE TABLE table_name_58 (dissolved VARCHAR, assembled VARCHAR)
SELECT scorers FROM table_name_34 WHERE ground = "a" AND date = "1 august 2008"
Who are the scorers on 1 August 2008, where the ground was A?
CREATE TABLE table_name_34 (scorers VARCHAR, ground VARCHAR, date VARCHAR)
SELECT COUNT(goals_for) FROM table_name_66 WHERE draws < 11 AND points = "54+16" AND goals_against < 39
How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?
CREATE TABLE table_name_66 (goals_for VARCHAR, goals_against VARCHAR, draws VARCHAR, points VARCHAR)
SELECT AVG(average) FROM table_name_90 WHERE matches < 2
What is the typical match smaller than 2?
CREATE TABLE table_name_90 (average INTEGER, matches INTEGER)
SELECT COUNT(viewers__millions_) FROM table_24689168_5 WHERE episode = 8
How many records for number of viewers is listed for episode number 8?
CREATE TABLE table_24689168_5 (viewers__millions_ VARCHAR, episode VARCHAR)
SELECT COUNT(engine_type) FROM table_1147705_1 WHERE model = "2.4 AWD"
How many have are model 2.4 awd?
CREATE TABLE table_1147705_1 (engine_type VARCHAR, model VARCHAR)
SELECT opponents_in_the_final FROM table_name_2 WHERE date = "march 14, 2008"
Who was the match played against in the final on March 14, 2008?
CREATE TABLE table_name_2 (opponents_in_the_final VARCHAR, date VARCHAR)
SELECT giant_slalom FROM table_name_45 WHERE victories > 27 AND slalom = "–" AND career = "1996–2009"
What Giant Slalom has Victories larger than 27, a Slalom of –, and a Career of 1996–2009?
CREATE TABLE table_name_45 (giant_slalom VARCHAR, career VARCHAR, victories VARCHAR, slalom VARCHAR)
SELECT first_broadcast FROM table_19930660_2 WHERE episode = "2x11"
When was episode 2x11 aired for the first time?
CREATE TABLE table_19930660_2 (first_broadcast VARCHAR, episode VARCHAR)
SELECT MAX(year) FROM table_name_68 WHERE entrant = "equipe talbot gitanes" AND points < 1
What is the latest year for Entrant of equipe talbot gitanes with less than 1 point?
CREATE TABLE table_name_68 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT date FROM table_name_55 WHERE week = 8
What day did the team play on week 8?
CREATE TABLE table_name_55 (date VARCHAR, week VARCHAR)
SELECT name FROM table_name_41 WHERE number < 6 AND date < 1993
What is the name of the train numbered less than 6 before 1993?
CREATE TABLE table_name_41 (name VARCHAR, number VARCHAR, date VARCHAR)
SELECT MIN(pts_game) FROM table_name_59 WHERE name = "philippa tuttiett" AND points > 6
Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger then 6?
CREATE TABLE table_name_59 (pts_game INTEGER, name VARCHAR, points VARCHAR)
SELECT spacecraft FROM table_name_66 WHERE end_time = "17:28"
What spacecraft had an EVA that ended at 17:28?
CREATE TABLE table_name_66 (spacecraft VARCHAR, end_time VARCHAR)
SELECT MAX(pick__number) FROM table_name_42 WHERE cfl_team = "winnipeg blue bombers"
what is the highest pick number of the CFL team, the winnipeg blue bombers?
CREATE TABLE table_name_42 (pick__number INTEGER, cfl_team VARCHAR)
SELECT round FROM table_name_84 WHERE overall = 6
Name the round having an overall of 6
CREATE TABLE table_name_84 (round VARCHAR, overall VARCHAR)
SELECT week_4 FROM table_name_65 WHERE week_2 = "tiffany logan"
What kind of Week 4 has a Week 2 of tiffany logan?
CREATE TABLE table_name_65 (week_4 VARCHAR, week_2 VARCHAR)
SELECT points FROM table_name_17 WHERE draws < 7 AND wins < 16 AND goals_for = 35
What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is "35"?
CREATE TABLE table_name_17 (points VARCHAR, goals_for VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT location_attendance FROM table_name_29 WHERE date = "dec 2"
What was the Location/Attendance on Dec 2?
CREATE TABLE table_name_29 (location_attendance VARCHAR, date VARCHAR)
SELECT away FROM table_name_97 WHERE round < 2 AND club = "nk rijeka"
What is NK Rijeka's away score in Round 2?
CREATE TABLE table_name_97 (away VARCHAR, round VARCHAR, club VARCHAR)
SELECT solidv4 FROM table_127511_1 WHERE pacbio = "$300 USD"
How much was solidv4 when pacbio is $300 usd?
CREATE TABLE table_127511_1 (solidv4 VARCHAR, pacbio VARCHAR)
SELECT MIN(year) FROM table_name_41 WHERE attendance = 77 OFFSET 254
When was the earliest year when the attendance was 77,254?
CREATE TABLE table_name_41 (year INTEGER, attendance VARCHAR)
SELECT engine FROM table_name_84 WHERE year < 1983
What is the Engine used before 1983?
CREATE TABLE table_name_84 (engine VARCHAR, year INTEGER)
SELECT listed FROM table_name_79 WHERE county = "nuckolls"
what is the listing date for nuckolls county?
CREATE TABLE table_name_79 (listed VARCHAR, county VARCHAR)
SELECT AVG(round) FROM table_name_57 WHERE college = "stanford" AND overall < 8
Which Round has a College of stanford, and an Overall smaller than 8?
CREATE TABLE table_name_57 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT no_vote FROM table_name_31 WHERE date = "1998" AND state = "alaska"
How many no votes from Alaska in 1998?
CREATE TABLE table_name_31 (no_vote VARCHAR, date VARCHAR, state VARCHAR)
SELECT state FROM table_name_32 WHERE representative = "jimmy quillen"
Which state does Jimmy Quillen represent?
CREATE TABLE table_name_32 (state VARCHAR, representative VARCHAR)
SELECT drawn FROM table_name_7 WHERE points < 46 AND position < 20 AND lost < 19 AND against = 56
Which Drawn has Points smaller than 46, and a Position smaller than 20, and a Lost smaller than 19, and an Against of 56?
CREATE TABLE table_name_7 (drawn VARCHAR, against VARCHAR, lost VARCHAR, points VARCHAR, position VARCHAR)
SELECT MAX(against) FROM table_name_35 WHERE losses < 17 AND draws > 1
WHAT IS THE HIGHEST AGAINST WITH LOSSES SMALLER THAN 17, DRAWS LARGER THAN 1?
CREATE TABLE table_name_35 (against INTEGER, losses VARCHAR, draws VARCHAR)
SELECT COUNT(score) FROM table_27734769_9 WHERE date = "January 19"
How many scores where achieved on January 19?
CREATE TABLE table_27734769_9 (score VARCHAR, date VARCHAR)
SELECT race_name FROM table_name_23 WHERE winning_driver = "stirling moss" AND circuit = "oulton park"
What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park?
CREATE TABLE table_name_23 (race_name VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT COUNT(events) FROM table_name_13 WHERE top_25 < 2
How many events resulted in a top-25 less than 2?
CREATE TABLE table_name_13 (events VARCHAR, top_25 INTEGER)
SELECT COUNT(fa_trophy) FROM table_name_27 WHERE player = "ceri williams" AND total < 19
How many FA trophies did Ceri Williams get with a smaller total than 19?
CREATE TABLE table_name_27 (fa_trophy VARCHAR, player VARCHAR, total VARCHAR)
SELECT 5 AS th_evening FROM table_29857115_4 WHERE singer = "Gabriella Ferrone"
What was gabriella ferrone's result on the 5th evening?
CREATE TABLE table_29857115_4 (singer VARCHAR)
SELECT MIN(score) FROM table_name_90 WHERE country = "sweden"
What is Sweden's lowest score?
CREATE TABLE table_name_90 (score INTEGER, country VARCHAR)
SELECT away_team FROM table_name_6 WHERE tie_no = "2"
What is the away team with a 2 tie no.?
CREATE TABLE table_name_6 (away_team VARCHAR, tie_no VARCHAR)
SELECT crowd FROM table_name_31 WHERE home_team = "north melbourne"
What was the attendance for the North Melbourne's home game?
CREATE TABLE table_name_31 (crowd VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_23 WHERE visiting_team = "new england patriots"
When did the New England Patriots play as the visiting team?
CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR)
SELECT score FROM table_name_73 WHERE away_team = "melbourne tigers"
What did the Melbourne Tigers score when they were the away team?
CREATE TABLE table_name_73 (score VARCHAR, away_team VARCHAR)
SELECT points FROM table_name_75 WHERE grid = "1"
How many points when the Grid was 1?
CREATE TABLE table_name_75 (points VARCHAR, grid VARCHAR)
SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
How many crops were damaged when the public property damage was 1,03,049.60?
CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)
SELECT discovery___publication_of_name FROM table_name_55 WHERE fossil_record = "still living"
Tell me the discovery/publication for still living
CREATE TABLE table_name_55 (discovery___publication_of_name VARCHAR, fossil_record VARCHAR)
SELECT AVG(gold) FROM table_name_9 WHERE nation = "luxembourg"
Luxembourg received how many gold medals?
CREATE TABLE table_name_9 (gold INTEGER, nation VARCHAR)
SELECT finish FROM table_name_18 WHERE player = "jack nicklaus"
Jack Nicklaus finished in what place?
CREATE TABLE table_name_18 (finish VARCHAR, player VARCHAR)
SELECT quantity_preserved FROM table_name_17 WHERE quantity_made = "15"
What was the quantity preserved for quantity made of 15?
CREATE TABLE table_name_17 (quantity_preserved VARCHAR, quantity_made VARCHAR)
SELECT event FROM table_name_95 WHERE class = "time trial hc a"
What is the event when the class is time trial hc a?
CREATE TABLE table_name_95 (event VARCHAR, class VARCHAR)
SELECT year FROM table_28848697_4 WHERE tied = 11
What is the year listed when tied is listed as 11?
CREATE TABLE table_28848697_4 (year VARCHAR, tied VARCHAR)
SELECT AVG(tie_no) FROM table_name_22 WHERE date = "birmingham city"
What is the average Tie no when the date is Birmingham City?
CREATE TABLE table_name_22 (tie_no INTEGER, date VARCHAR)
SELECT rank__week_ FROM table_26200084_1 WHERE _number = 19
What was the ranking of episode #19?
CREATE TABLE table_26200084_1 (rank__week_ VARCHAR, _number VARCHAR)
SELECT score FROM table_name_38 WHERE date = "5 september 2001"
What was the score of the match played on 5 September 2001?
CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR)
SELECT album FROM table_name_32 WHERE year > 2005 AND country = "australia"
Which Album had a bigger year than 2005 and whose country was Australia?
CREATE TABLE table_name_32 (album VARCHAR, year VARCHAR, country VARCHAR)
SELECT class FROM table_name_15 WHERE part_3 = "blétu"
What is Class, when Part 2 is "blétu"?
CREATE TABLE table_name_15 (class VARCHAR, part_3 VARCHAR)
SELECT centennial FROM table_name_40 WHERE del_pueblo = "1986"
Which Centennial has a del Pueblo of 1986?
CREATE TABLE table_name_40 (centennial VARCHAR, del_pueblo VARCHAR)
SELECT venue FROM table_name_9 WHERE away_team = "carlton"
Where did Carlton play?
CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR)
SELECT MIN(price__usd_) FROM table_29778616_1 WHERE model = "PQ32MU"
What is the price (usd) for the model pq32mu?
CREATE TABLE table_29778616_1 (price__usd_ INTEGER, model VARCHAR)
SELECT game FROM table_27539535_4 WHERE november = 21
What is every game on November 21?
CREATE TABLE table_27539535_4 (game VARCHAR, november VARCHAR)
SELECT us AS Rap FROM table_name_44 WHERE year = 2000 AND us = "105"
What is the U.S. rap ranking in 2000 of the U.S. 105 single?
CREATE TABLE table_name_44 (us VARCHAR, year VARCHAR)
SELECT MIN(gold) FROM table_name_13 WHERE total > 44
What was the gold medal total for a total of 44 medals?
CREATE TABLE table_name_13 (gold INTEGER, total INTEGER)
SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"
Name the sec wins for .357 percentage and 4-3 home record
CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)
SELECT arabs_2011 FROM table_1939367_1 WHERE province = "Nunavut"
If the province is Nunavut, what is the Arabs 2011 amount?
CREATE TABLE table_1939367_1 (arabs_2011 VARCHAR, province VARCHAR)
SELECT round FROM table_name_9 WHERE opponent = "celtic" AND date = "24 february 1900"
What round did the celtic played away on 24 february 1900?
CREATE TABLE table_name_9 (round VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_29 WHERE score_in_the_final = "6–2, 3–6, 4–6"
Tell me the opponent for 6–2, 3–6, 4–6
CREATE TABLE table_name_29 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT date FROM table_name_80 WHERE race_name = "xiv international gold cup"
What date was the xiv international gold cup?
CREATE TABLE table_name_80 (date VARCHAR, race_name VARCHAR)
SELECT label FROM table_name_75 WHERE format = "stereo vinyl lp" AND catalog = "sf-7635"
What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635?
CREATE TABLE table_name_75 (label VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT country FROM table_2351952_1 WHERE numbers = "801-812"
The numbers 801-812 are in which country?
CREATE TABLE table_2351952_1 (country VARCHAR, numbers VARCHAR)
SELECT score FROM table_name_14 WHERE visitor = "chicago"
what team visited chicago
CREATE TABLE table_name_14 (score VARCHAR, visitor VARCHAR)
SELECT MIN(tracks) FROM table_name_26 WHERE length = "18:36"
Which tracks have a length of 18:36?
CREATE TABLE table_name_26 (tracks INTEGER, length VARCHAR)
SELECT tournament FROM table_name_40 WHERE score = "4-6 6-2 6-1"
Which Tournament has a Score of 4-6 6-2 6-1?
CREATE TABLE table_name_40 (tournament VARCHAR, score VARCHAR)
SELECT AVG(grid) FROM table_name_76 WHERE laps < 32 AND manufacturer = "yamaha"
If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria?
CREATE TABLE table_name_76 (grid INTEGER, laps VARCHAR, manufacturer VARCHAR)
SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)
Find the names of scientists who are not working on the project with the highest hours.
CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER)
SELECT 2 AS nd_member FROM table_name_96 WHERE assembled = "30 march 1298"
What is 2nd Member, when Assembled is "30 March 1298"?
CREATE TABLE table_name_96 (assembled VARCHAR)
SELECT time_retired FROM table_name_55 WHERE driver = "emerson fittipaldi"
What is the time/retired for the driver emerson fittipaldi?
CREATE TABLE table_name_55 (time_retired VARCHAR, driver VARCHAR)
SELECT record FROM table_name_61 WHERE team = "utah"
What is the record of team utah?
CREATE TABLE table_name_61 (record VARCHAR, team VARCHAR)
SELECT result FROM table_name_80 WHERE year > 1987 AND awards = "berlin international film festival"
What was the result at the Berlin International Film Festival in a year greater than 1987?
CREATE TABLE table_name_80 (result VARCHAR, year VARCHAR, awards VARCHAR)
SELECT COUNT(losses) FROM table_name_50 WHERE goals_for > 29 AND team = "montreal"
What is the total number of losses for the Team of Montreal with Goals For larger than 29?
CREATE TABLE table_name_50 (losses VARCHAR, goals_for VARCHAR, team VARCHAR)
SELECT MIN(season__number) FROM table_13755296_1 WHERE directed_by = "Dan Attias"
What's the season number of the episode directed by Dan Attias?
CREATE TABLE table_13755296_1 (season__number INTEGER, directed_by VARCHAR)
SELECT champion FROM table_name_16 WHERE llws = "group stage" AND city = "russellville"
Which champion has a Group Stage LLWS in Russellville?
CREATE TABLE table_name_16 (champion VARCHAR, llws VARCHAR, city VARCHAR)
SELECT MIN(average_climb___percentage_) FROM table_16654785_2 WHERE name = "Tenbosse"
What is the average climb for Tenbosse?
CREATE TABLE table_16654785_2 (average_climb___percentage_ INTEGER, name VARCHAR)
SELECT COUNT(rank) FROM table_name_42 WHERE primary_industry = "health care"
How many ranks have an industry of health care?
CREATE TABLE table_name_42 (rank VARCHAR, primary_industry VARCHAR)
SELECT report FROM table_name_13 WHERE date = "10 october"
What is the report for 10 october?
CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE player = "sam torrance"
What did Sam Torrance score?
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)
SELECT attendance FROM table_name_86 WHERE opponent = "san francisco 49ers"
What is the attendance when the opponent is the San Francisco 49ers?
CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR)
SELECT MIN(enrollment) FROM table_name_46 WHERE location = "lafayette"
What is the lowest enrollment that has Lafayette as the location?
CREATE TABLE table_name_46 (enrollment INTEGER, location VARCHAR)
SELECT COUNT(release_date) FROM table_20174050_1 WHERE story__number = 7
How many different release dates are there for the audio book with a story number 7?
CREATE TABLE table_20174050_1 (release_date VARCHAR, story__number VARCHAR)
SELECT area__km²___per_sqmi_ FROM table_14098_1 WHERE country_or_territory_with_flag = "Uruguay"
What unit of measurement for uruguay?
CREATE TABLE table_14098_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR)
SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals"
On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?
CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR)
SELECT COUNT(game) FROM table_11961582_4 WHERE high_assists = "A. Johnson (6)"
What was the total number of games where A. Johnson (6) gave the most high assists?
CREATE TABLE table_11961582_4 (game VARCHAR, high_assists VARCHAR)
SELECT rank_points FROM table_name_77 WHERE event = "wc milan" AND shooter = "lalita yauhleuskaya ( aus )"
What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?
CREATE TABLE table_name_77 (rank_points VARCHAR, event VARCHAR, shooter VARCHAR)
SELECT player FROM table_name_33 WHERE round < 3
Which player was selected in rounds under 3?
CREATE TABLE table_name_33 (player VARCHAR, round INTEGER)
SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = "total northern villages" AND population__2006_ > 11414
How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?
CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR)
SELECT MAX(points) FROM table_name_49 WHERE score = "1–1 ot"
Which highest Points has a Score of 1–1 ot?
CREATE TABLE table_name_49 (points INTEGER, score VARCHAR)
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"
Which city is the headquarter of the store named "Blackville" in?
CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)