answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT played FROM table_name_63 WHERE points_for = "247"
What played has 247 as the points?
CREATE TABLE table_name_63 (played VARCHAR, points_for VARCHAR)
SELECT series_ep FROM table_15187735_12 WHERE segment_b = "Popcorn"
What is the series episode where Segment B is popcorn ?
CREATE TABLE table_15187735_12 (series_ep VARCHAR, segment_b VARCHAR)
SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "6 (4 in 34.49s)"
What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?
CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)
SELECT length FROM table_name_57 WHERE route_name = "sh 2"
What is the length of the highway with the route name sh 2?
CREATE TABLE table_name_57 (length VARCHAR, route_name VARCHAR)
SELECT song FROM table_name_62 WHERE votes > 640 AND draw = 1
Which song has votes greater than 640 and a draw of 1?
CREATE TABLE table_name_62 (song VARCHAR, votes VARCHAR, draw VARCHAR)
SELECT MAX(lost) FROM table_name_36 WHERE difference = "- 19"
What is the largest lost stat when the difference is - 19?
CREATE TABLE table_name_36 (lost INTEGER, difference VARCHAR)
SELECT MAX(best_score) FROM table_name_47 WHERE dance = "mambo"
What is the highest Best score for the Dance Mambo?
CREATE TABLE table_name_47 (best_score INTEGER, dance VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_58 WHERE ngc_number < 3384 AND constellation = "hydra" AND object_type = "spiral galaxy"
what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy?
CREATE TABLE table_name_58 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR, constellation VARCHAR)
SELECT winning_score FROM table_name_89 WHERE date = "aug 28, 1983"
What was the winning score on Aug 28, 1983?
CREATE TABLE table_name_89 (winning_score VARCHAR, date VARCHAR)
SELECT traditional FROM table_name_28 WHERE area = "35"
What is the Traditional for area 35?
CREATE TABLE table_name_28 (traditional VARCHAR, area VARCHAR)
SELECT COUNT(rank) FROM table_name_16 WHERE athlete = "liu xiaosheng" AND react < 0.245
How many total Rank listings have Liu Xiaosheng listed as the athlete with a react entry that is smaller than 0.245?
CREATE TABLE table_name_16 (rank VARCHAR, athlete VARCHAR, react VARCHAR)
SELECT location_attendance FROM table_22654073_7 WHERE record = "22-8"
Name the location attendance for 22-8
CREATE TABLE table_22654073_7 (location_attendance VARCHAR, record VARCHAR)
SELECT representative FROM table_20098199_2 WHERE religion = "United Methodist" AND prior_background = "Congressional aide"
Who has a religion of United Methodist and a prior background of a Congressional Aide?
CREATE TABLE table_20098199_2 (representative VARCHAR, religion VARCHAR, prior_background VARCHAR)
SELECT winning_driver FROM table_name_98 WHERE date = "29 march"
Name the winner for 29 march
CREATE TABLE table_name_98 (winning_driver VARCHAR, date VARCHAR)
SELECT venue FROM table_name_49 WHERE away_team = "collingwood"
What was the venue when Collingwood was the away team?
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
SELECT jockey FROM table_25429986_1 WHERE position = "10th"
who isthe jockey in 10th position?
CREATE TABLE table_25429986_1 (jockey VARCHAR, position VARCHAR)
SELECT district FROM table_2668254_8 WHERE incumbent = "Charles A. Wickliffe"
In what district was the incumbent Charles A. Wickliffe?
CREATE TABLE table_2668254_8 (district VARCHAR, incumbent VARCHAR)
SELECT AVG(year) FROM table_name_75 WHERE venue = "bydgoszcz, poland" AND event = "junior team"
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?
CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR)
SELECT record FROM table_name_4 WHERE date = "may 6"
What is the record of the game on May 6?
CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR)
SELECT MAX(lane) FROM table_name_81 WHERE heat = 6 AND time = "dns"
What is the highest lane for heat 6 with a time of dns?
CREATE TABLE table_name_81 (lane INTEGER, heat VARCHAR, time VARCHAR)
SELECT COUNT(august_21_22) FROM table_25235489_2 WHERE march_27_29 = "139"
How many numbers are there for August when March is 139?
CREATE TABLE table_25235489_2 (august_21_22 VARCHAR, march_27_29 VARCHAR)
SELECT award FROM table_name_77 WHERE year > 2008
What award was won after 2008?
CREATE TABLE table_name_77 (award VARCHAR, year INTEGER)
SELECT date FROM table_name_89 WHERE venue = "mcg"
On what date was a game played at MCG?
CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR)
SELECT somerset FROM table_12043148_2 WHERE year = 2009
what is the somerset for the year 2009?
CREATE TABLE table_12043148_2 (somerset VARCHAR, year VARCHAR)
SELECT tied FROM table_name_46 WHERE drawn = "47"
I want to know the tie for drawn of 47
CREATE TABLE table_name_46 (tied VARCHAR, drawn VARCHAR)
SELECT employee_id, MAX(end_date) FROM job_history GROUP BY employee_id
display the employee ID for each employee and the date on which he ended his previous job.
CREATE TABLE job_history (employee_id VARCHAR, end_date INTEGER)
SELECT record FROM table_name_35 WHERE date = "january 29"
Which record has a date of January 29?
CREATE TABLE table_name_35 (record VARCHAR, date VARCHAR)
SELECT region FROM table_1672804_2 WHERE province = "Constitutional province of Callao"
What is the region containing the Constitutional Province of Callao?
CREATE TABLE table_1672804_2 (region VARCHAR, province VARCHAR)
SELECT MAX(average) FROM table_name_3 WHERE goals < 45 AND team = "real sociedad"
What is the highest average of goals less than 45 for team Real Sociedad?
CREATE TABLE table_name_3 (average INTEGER, goals VARCHAR, team VARCHAR)
SELECT played FROM table_name_99 WHERE losing_bonus = "2" AND points_for = "706"
Name the played with losing bonus of 2 and points for of 706
CREATE TABLE table_name_99 (played VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
SELECT MIN(round) FROM table_name_3 WHERE player = "orlando pace"
What lowest round has orlando pace as the player?
CREATE TABLE table_name_3 (round INTEGER, player VARCHAR)
SELECT country FROM table_166346_1 WHERE production___bbl__day_ = "2,494,000 (10th)"
Which country had a production (bbl/day) of 2,494,000 (10th)?
CREATE TABLE table_166346_1 (country VARCHAR, production___bbl__day_ VARCHAR)
SELECT design FROM table_name_33 WHERE denomination = "$1.18"
What stamp design has a denomination of $1.18?
CREATE TABLE table_name_33 (design VARCHAR, denomination VARCHAR)
SELECT constructor FROM table_name_76 WHERE driver = "jim crawford"
Who built the Jim Crawford car?
CREATE TABLE table_name_76 (constructor VARCHAR, driver VARCHAR)
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23
On what date is there a status of Five Nations and an against of 23?
CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284
What is the Place of the Player with a Score of 73-73-65-73=284?
CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR)
SELECT nominee FROM table_name_67 WHERE category = "best musical"
what was the nominee of best musical
CREATE TABLE table_name_67 (nominee VARCHAR, category VARCHAR)
SELECT rider FROM table_name_95 WHERE laps > 23 AND manufacturer = "aprilia" AND grid = 14
Which rider had more than 23 laps, a manufacturer of Aprilia, and a grid of 14
CREATE TABLE table_name_95 (rider VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT place FROM table_name_6 WHERE player = "steve pate"
Golfer Steve Pate is in what place?
CREATE TABLE table_name_6 (place VARCHAR, player VARCHAR)
SELECT MAX(poles) FROM table_17289224_1 WHERE team_name = "David Price Racing"
How many poles did David Price Racing win?
CREATE TABLE table_17289224_1 (poles INTEGER, team_name VARCHAR)
SELECT COUNT(laps) FROM table_name_72 WHERE grid = 4
Hows many Laps are in a Grid of 4?
CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR)
SELECT pos FROM table_name_35 WHERE year = 1997
What was the position in 1997?
CREATE TABLE table_name_35 (pos VARCHAR, year VARCHAR)
SELECT collaboration FROM table_name_99 WHERE status = "pre-clinical" AND indication = "autoimmune disease and inflammation"
What company collaborated in pre-clinical autoimmune disease and inflammation?
CREATE TABLE table_name_99 (collaboration VARCHAR, status VARCHAR, indication VARCHAR)
SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283
When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)?
CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR)
SELECT country FROM table_name_75 WHERE score = 68 - 72 - 67 = 207
what is the country when the score is 68-72-67=207?
CREATE TABLE table_name_75 (country VARCHAR, score VARCHAR)
SELECT time FROM table_name_43 WHERE heat > 4 AND nationality = "australia"
What's Australia's time in the heat more than 4?
CREATE TABLE table_name_43 (time VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT gene_name FROM table_27155678_2 WHERE genus_species = "Methylobacterium nodulans"
Name the gene name for methylobacterium nodulans
CREATE TABLE table_27155678_2 (gene_name VARCHAR, genus_species VARCHAR)
SELECT _percentage_growth__2000_2008_ FROM table_10733530_3 WHERE nation = "Ethiopia"
What is the percentage of growth in 2000-2008 in ethiopia?
CREATE TABLE table_10733530_3 (_percentage_growth__2000_2008_ VARCHAR, nation VARCHAR)
SELECT rate FROM table_name_55 WHERE year = "17 years"
What is the rate of 17 years?
CREATE TABLE table_name_55 (rate VARCHAR, year VARCHAR)
SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = "UPS"
What is the shipping agent code of shipping agent UPS?
CREATE TABLE Ref_Shipping_Agents (shipping_agent_code VARCHAR, shipping_agent_name VARCHAR)
SELECT replaced_by FROM table_19359427_6 WHERE team = "Sheffield United"
Who came as a replacement in Sheffield United?
CREATE TABLE table_19359427_6 (replaced_by VARCHAR, team VARCHAR)
SELECT COUNT(payout___us) AS $__ FROM table_24427210_1 WHERE date = "December 28, 2009"
Name the total number of payout for december 28, 2009
CREATE TABLE table_24427210_1 (payout___us VARCHAR, date VARCHAR)
SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = "5008"
How many writers are listed for the episode with a production code of 5008?
CREATE TABLE table_17482534_1 (written_by VARCHAR, production_code VARCHAR)
SELECT away_team FROM table_name_51 WHERE home_team = "melbourne"
During melbourne's home game, who was the away team?
CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR)
SELECT partnering FROM table_name_92 WHERE score = "6-3, 4-6, 6-4"
Which Partnering has a Score of 6-3, 4-6, 6-4?
CREATE TABLE table_name_92 (partnering VARCHAR, score VARCHAR)
SELECT location FROM table_name_17 WHERE time = "5:00" AND record = "6-2-1"
What was the location of the bout that lasted 5:00 and led to a 6-2-1 record?
CREATE TABLE table_name_17 (location VARCHAR, time VARCHAR, record VARCHAR)
SELECT COUNT(round) FROM table_name_94 WHERE overall = 63
What round was the overall 63 drafted?
CREATE TABLE table_name_94 (round VARCHAR, overall VARCHAR)
SELECT MAX(year) FROM table_name_41 WHERE venue = "kyalami" AND driver = "keke rosberg"
What was the most recent race at Kyalami with Keke Rosberg competing?
CREATE TABLE table_name_41 (year INTEGER, venue VARCHAR, driver VARCHAR)
SELECT _percentage_indian_american FROM table_18963843_1 WHERE asian_american_population__2010_ = 126965
Name the % indian american for asian population 126965
CREATE TABLE table_18963843_1 (_percentage_indian_american VARCHAR, asian_american_population__2010_ VARCHAR)
SELECT SUM(100 AS s) FROM table_name_41 WHERE team = "deccan chargers" AND matches = 8 AND average > 35.57
Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.57?
CREATE TABLE table_name_41 (average VARCHAR, team VARCHAR, matches VARCHAR)
SELECT quantity_made FROM table_name_7 WHERE manufacturer = "4-6-2 — oooooo — pacific"
What's the quantity made when the manufacturer was 4-6-2 — oooooo — pacific?
CREATE TABLE table_name_7 (quantity_made VARCHAR, manufacturer VARCHAR)
SELECT AVG(total_blocks) FROM table_name_78 WHERE digs < 210 AND total_attempts > 1116
What is the total blocks when there are less than 210 digs and the total attempts are more than 1116?
CREATE TABLE table_name_78 (total_blocks INTEGER, digs VARCHAR, total_attempts VARCHAR)
SELECT winning_team FROM table_25668203_2 WHERE winning_driver = "Mikhail Goikhberg"
What was the winning team when mikhail goikhberg was the winning driver?
CREATE TABLE table_25668203_2 (winning_team VARCHAR, winning_driver VARCHAR)
SELECT away_team FROM table_name_53 WHERE venue = "corio oval"
What was the away team when the game was at corio oval?
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7
Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7
CREATE TABLE table_name_68 (wins__total_ INTEGER, rank VARCHAR, wins__indoor_ VARCHAR, wins__outdoor_ VARCHAR)
SELECT to_par FROM table_name_73 WHERE total < 293 AND player = "tiger woods"
Tiger Woods with a total less than 293 had what To par?
CREATE TABLE table_name_73 (to_par VARCHAR, total VARCHAR, player VARCHAR)
SELECT co_drivers FROM table_name_49 WHERE year > 2010
Who were the co-drivers in years after 2010?
CREATE TABLE table_name_49 (co_drivers VARCHAR, year INTEGER)
SELECT MIN(round) FROM table_name_26 WHERE college = "northeastern" AND player = "reggie lewis"
What round was northeastern college player Reggie Lewis drafted in?
CREATE TABLE table_name_26 (round INTEGER, college VARCHAR, player VARCHAR)
SELECT result FROM table_name_42 WHERE road_team = "los angeles" AND date = "april 17"
What is the result of the game on April 17 against Los Angeles?
CREATE TABLE table_name_42 (result VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE opponent = "philadelphia 76ers"
What is the Score of the game against Philadelphia 76ers?
CREATE TABLE table_name_2 (score VARCHAR, opponent VARCHAR)
SELECT MIN(matches) FROM table_name_59 WHERE win__percentage = "28.68%" AND lost < 97
What is the smallest number of Matches with less than 97 losses and a Win rate of 28.68%?
CREATE TABLE table_name_59 (matches INTEGER, win__percentage VARCHAR, lost VARCHAR)
SELECT wrestlers FROM table_name_58 WHERE days_held = "69"
Name the wrestlers for days held of 69
CREATE TABLE table_name_58 (wrestlers VARCHAR, days_held VARCHAR)
SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974
In how many districts was the democratic incumbent elected in 1974?
CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR)
SELECT date_of_release FROM table_name_16 WHERE title = "twenty"
When was twenty released?
CREATE TABLE table_name_16 (date_of_release VARCHAR, title VARCHAR)
SELECT class FROM table_name_16 WHERE city_of_license = "great barrington, massachusetts"
What's the Class for the city the license plate was issued in great barrington, massachusetts?
CREATE TABLE table_name_16 (class VARCHAR, city_of_license VARCHAR)
SELECT status FROM table_name_55 WHERE vehicle_types = "dmbs+tcl+dmcl"
what status is the vehicle types of dmbs+tcl+dmcl?
CREATE TABLE table_name_55 (status VARCHAR, vehicle_types VARCHAR)
SELECT COUNT(no) FROM table_12962773_1 WHERE current_club = "Panathinaikos" AND position = "Forward"
what's the no with current club being panathinaikos and position being forward
CREATE TABLE table_12962773_1 (no VARCHAR, current_club VARCHAR, position VARCHAR)
SELECT event FROM table_name_97 WHERE position = "6th" AND year > 2006
What is Event, when Position is 6th, and when Year is after 2006?
CREATE TABLE table_name_97 (event VARCHAR, position VARCHAR, year VARCHAR)
SELECT venue FROM table_name_33 WHERE result = "win" AND competition = "2002 tiger cup group stage" AND score = "0-4"
What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage?
CREATE TABLE table_name_33 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
SELECT year FROM table_21756039_1 WHERE overall = "29-4"
In which year is the overall 29-4?
CREATE TABLE table_21756039_1 (year VARCHAR, overall VARCHAR)
SELECT COUNT(jersey__number) FROM table_name_98 WHERE height__cm_ = 183 AND name = "paul stastny" AND weight__kg_ < 93
Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93?
CREATE TABLE table_name_98 (jersey__number VARCHAR, weight__kg_ VARCHAR, height__cm_ VARCHAR, name VARCHAR)
SELECT fastest_lap FROM table_2454550_1 WHERE location = "Phoenix, Arizona"
who held the fastes lap in Phoenix, Arizona?
CREATE TABLE table_2454550_1 (fastest_lap VARCHAR, location VARCHAR)
SELECT nickname FROM table_name_40 WHERE name = "university cricket club"
What's the Nickname listed for the Name of University Cricket Club?
CREATE TABLE table_name_40 (nickname VARCHAR, name VARCHAR)
SELECT tongyong FROM table_name_36 WHERE hanyu = "sanmin"
Where in Tongyong is Hanyu Sanmin?
CREATE TABLE table_name_36 (tongyong VARCHAR, hanyu VARCHAR)
SELECT country FROM table_name_37 WHERE place = "t3" AND player = "billy mayfair"
Which country is t3 finisher billy mayfair from?
CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT report FROM table_name_59 WHERE home_team = "townsville crocodiles"
What is the report corresponding to the game that had the Townsville Crocodiles as home team?
CREATE TABLE table_name_59 (report VARCHAR, home_team VARCHAR)
SELECT AVG(year) FROM table_name_30 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "the chipmunk adventure"
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?
CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR)
SELECT pole_position FROM table_26258348_4 WHERE grand_prix = "Canadian grand_prix"
Who had the pole position in the Canadian Grand Prix?
CREATE TABLE table_26258348_4 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT MAX(no_in_series) FROM table_17901155_3 WHERE directed_by = "Kelly Sandefur"
what is the series # for the episode directed by Kelly Sandefur?
CREATE TABLE table_17901155_3 (no_in_series INTEGER, directed_by VARCHAR)
SELECT MAX(lost) FROM table_name_63 WHERE points = 6
What is the highest lost that has 6 for points?
CREATE TABLE table_name_63 (lost INTEGER, points VARCHAR)
SELECT entrant FROM table_name_9 WHERE chassis = "de tomaso 505"
Which entrant used the chassis de tomaso 505?
CREATE TABLE table_name_9 (entrant VARCHAR, chassis VARCHAR)
SELECT product_name FROM products WHERE product_category_code = "Spices"
What are the names of products with category "Spices"?
CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR)
SELECT team FROM table_name_21 WHERE bowl = "humanitarian"
What team has a bowl of humanitarian?
CREATE TABLE table_name_21 (team VARCHAR, bowl VARCHAR)
SELECT MIN(pick__number) FROM table_25085059_1 WHERE college = "Kentucky"
What draft pick number did Kentucky get?
CREATE TABLE table_25085059_1 (pick__number INTEGER, college VARCHAR)
SELECT team FROM table_name_18 WHERE carries = 19 AND week > 13
Which Team has 19 Carries, and a Week larger than 13?
CREATE TABLE table_name_18 (team VARCHAR, carries VARCHAR, week VARCHAR)
SELECT genes FROM table_name_47 WHERE species = "rubrobacter xylanophilus"
How many genes in the species Rubrobacter Xylanophilus?
CREATE TABLE table_name_47 (genes VARCHAR, species VARCHAR)
SELECT series FROM table_name_12 WHERE game = "game 5"
Name the series for game 5
CREATE TABLE table_name_12 (series VARCHAR, game VARCHAR)
SELECT win_percentage FROM table_name_88 WHERE games = 80 AND Pwin_percentage = — AND term_[c_] = "1987–1988"
What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988?
CREATE TABLE table_name_88 (win_percentage VARCHAR, games VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_22 WHERE settlement = "Kolut"
Name the population for kolut
CREATE TABLE table_2562572_22 (population__2011_ VARCHAR, settlement VARCHAR)
SELECT format FROM table_name_77 WHERE date = "may 27, 2009"
Which format is released on May 27, 2009?
CREATE TABLE table_name_77 (format VARCHAR, date VARCHAR)