answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = "K. J. Choi"
What was the margin of victory when runner-up was K. J. Choi?
CREATE TABLE table_247955_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT county FROM table_name_61 WHERE cerclis_id = "nhd062004569"
What county is CERCLIS ID nhd062004569 in?
CREATE TABLE table_name_61 (county VARCHAR, cerclis_id VARCHAR)
SELECT season FROM table_name_81 WHERE number > 15 AND name = "omar thomas"
In what season did Omar Thomas play, with a jersey number larger than 15?
CREATE TABLE table_name_81 (season VARCHAR, number VARCHAR, name VARCHAR)
SELECT name FROM instructor WHERE NOT id IN (SELECT id FROM teaches WHERE semester = 'Spring')
Find the names of instructors who didn't each any courses in any Spring semester.
CREATE TABLE teaches (name VARCHAR, id VARCHAR, semester VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR, semester VARCHAR)
SELECT home_team AS score FROM table_name_60 WHERE away_team = "carlton"
What is the home team score that played away team carlton?
CREATE TABLE table_name_60 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(vault) FROM table_18662026_1 WHERE rings = "60.000"
If the rings number is 60.000, what is the number for the vault?
CREATE TABLE table_18662026_1 (vault VARCHAR, rings VARCHAR)
SELECT AVG(date) FROM table_name_96 WHERE opponent = "milton keynes lightning" AND attendance < 1 OFFSET 771
Which Date has an Opponent of milton keynes lightning, and an Attendance smaller than 1,771?
CREATE TABLE table_name_96 (date INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school"
Which college has a linebacker from Lessburg High School?
CREATE TABLE table_name_92 (college VARCHAR, position VARCHAR, school VARCHAR)
SELECT player FROM table_name_36 WHERE position = "middle blocker" AND nationality = "turkey" AND shirt_no = 8
What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8?
CREATE TABLE table_name_36 (player VARCHAR, shirt_no VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon state"
What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play?
CREATE TABLE table_name_92 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR)
SELECT player FROM table_name_9 WHERE college = "murray state"
Which player is from Murray State college?
CREATE TABLE table_name_9 (player VARCHAR, college VARCHAR)
SELECT COUNT(DISTINCT FDA_approved) FROM medicine
How many distinct FDA approval statuses are there for the medicines?
CREATE TABLE medicine (FDA_approved VARCHAR)
SELECT home_team FROM table_name_30 WHERE away_team = "north melbourne"
Who is North Melbourne's home team?
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT icao FROM table_name_88 WHERE iata = "bvc"
What is the ICAO for the IATA bvc?
CREATE TABLE table_name_88 (icao VARCHAR, iata VARCHAR)
SELECT SUM(lost) FROM table_name_76 WHERE position = 3 AND drawn > 3
Which Lost has a Position of 3, and a Drawn larger than 3?
CREATE TABLE table_name_76 (lost INTEGER, position VARCHAR, drawn VARCHAR)
SELECT us AS AC FROM table_name_13 WHERE album = "the best" AND year = 1965
What was the best album in 1965?
CREATE TABLE table_name_13 (us VARCHAR, album VARCHAR, year VARCHAR)
SELECT average FROM table_26041144_10 WHERE strike_rate = "75.78"
What was the average when the strike rate is 75.78?
CREATE TABLE table_26041144_10 (average VARCHAR, strike_rate VARCHAR)
SELECT high_rebounds FROM table_23286112_12 WHERE game = 2
Who had the highest rebounds in game 2?
CREATE TABLE table_23286112_12 (high_rebounds VARCHAR, game VARCHAR)
SELECT COUNT(d__max_) FROM table_name_59 WHERE morse_taper_number < 3 AND c__max_ = 59.5
With a Morse Taper number less than 3 and a C (max) of 59.5 what is the total of D (max)?
CREATE TABLE table_name_59 (d__max_ VARCHAR, morse_taper_number VARCHAR, c__max_ VARCHAR)
SELECT built FROM table_name_9 WHERE location = "la vista"
When was la vista built?
CREATE TABLE table_name_9 (built VARCHAR, location VARCHAR)
SELECT record FROM table_name_24 WHERE game = 24
What is Record, when Game is "24"?
CREATE TABLE table_name_24 (record VARCHAR, game VARCHAR)
SELECT season FROM table_name_42 WHERE skip = "eve muirhead" AND third = "kerry barr"
What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?
CREATE TABLE table_name_42 (season VARCHAR, skip VARCHAR, third VARCHAR)
SELECT date FROM table_1140117_5 WHERE race_name = "XII Pau Grand Prix"
Which date did the race name XII Pau Grand Prix take place on?
CREATE TABLE table_1140117_5 (date VARCHAR, race_name VARCHAR)
SELECT icao FROM table_name_89 WHERE city = "nakashibetsu"
What is the ICAO of Nakashibetsu?
CREATE TABLE table_name_89 (icao VARCHAR, city VARCHAR)
SELECT StuID FROM Student WHERE city_code = "CHI"
Show ids for all students who live in CHI.
CREATE TABLE Student (StuID VARCHAR, city_code VARCHAR)
SELECT grid FROM table_name_97 WHERE laps = 35
I want the Grid for Laps of 35
CREATE TABLE table_name_97 (grid VARCHAR, laps VARCHAR)
SELECT nationality FROM table_name_63 WHERE position = "center" AND years_in_orlando = "2010–2012"
Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?
CREATE TABLE table_name_63 (nationality VARCHAR, position VARCHAR, years_in_orlando VARCHAR)
SELECT weight_ & _height FROM table_name_43 WHERE player = "james donaldson"
Which Weight & Height has a Player of james donaldson?
CREATE TABLE table_name_43 (weight_ VARCHAR, _height VARCHAR, player VARCHAR)
SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon"
What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st?
CREATE TABLE table_name_11 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT MIN(drawn) FROM table_name_45 WHERE goal_difference = "0" AND goals_against < 55
What is the fewest draws for teams with a 0 goal difference and under 55 goals against?
CREATE TABLE table_name_45 (drawn INTEGER, goal_difference VARCHAR, goals_against VARCHAR)
SELECT playing_for FROM table_name_27 WHERE _number_100 > 36 AND score = "122"
Which Playing For has a # 100 larger than 36, and a Score of 122?
CREATE TABLE table_name_27 (playing_for VARCHAR, _number_100 VARCHAR, score VARCHAR)
SELECT SUM(money_requested__) AS £_ FROM table_name_87 WHERE first_aired = "4 september 2011"
how much money was requested on the show which aired on 4 september 2011?
CREATE TABLE table_name_87 (money_requested__ INTEGER, first_aired VARCHAR)
SELECT province FROM table_15081939_4 WHERE swimsuit = "8.43"
Which province got a swimsuit score of 8.43
CREATE TABLE table_15081939_4 (province VARCHAR, swimsuit VARCHAR)
SELECT user FROM table_25479607_3 WHERE max_demand_charge___rs__kva_ = "1,100" AND unit__kwh__time_range = "H-2: Off-peak (22:30-05:30)"
What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?
CREATE TABLE table_25479607_3 (user VARCHAR, max_demand_charge___rs__kva_ VARCHAR, unit__kwh__time_range VARCHAR)
SELECT sub_parish__sogn_ FROM table_name_41 WHERE year_built > 1916 AND location_of_the_church = "ortnevik"
WHAT IS THE SUB-PARISH WITH A YEAR AFTER 1916, IN ortnevik?
CREATE TABLE table_name_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR)
SELECT MIN(games_played) FROM table_18018248_2 WHERE loses = 21
What is the least amount of games played with 21 losses?
CREATE TABLE table_18018248_2 (games_played INTEGER, loses VARCHAR)
SELECT AVG(Price), AVG(Score), Appelation FROM WINE GROUP BY Appelation
What are the average price and score of wines grouped by appelation?
CREATE TABLE WINE (Appelation VARCHAR, Price INTEGER, Score INTEGER)
SELECT AVG(overall) FROM table_name_23 WHERE college = "usf" AND round > 5
What is the average overall pick number for the USF player who was picked after round 5?
CREATE TABLE table_name_23 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT SUM(draw) FROM table_name_15 WHERE points = 0 AND lost < 14
What is the total for the draw with 0 points, and less than 14 lost?
CREATE TABLE table_name_15 (draw INTEGER, points VARCHAR, lost VARCHAR)
SELECT gender FROM table_name_19 WHERE university_students_and_adults__18yrs + _ = "25mm"
Which gender is associated with University students and adults of 25mm?
CREATE TABLE table_name_19 (gender VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE away_team = "geelong"
What is the away team's score when the away team is geelong?
CREATE TABLE table_name_16 (away_team VARCHAR)
SELECT tires FROM table_name_15 WHERE engine = "offy" AND chassis = "manta" AND team = "bfm enterprises"
What tires did BFM Enterprises run on their Offy engine and manta chassis?
CREATE TABLE table_name_15 (tires VARCHAR, team VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT président FROM table_name_10 WHERE départment__or_collectivity_ = "creuse"
Who is the president representing the Creuse department?
CREATE TABLE table_name_10 (président VARCHAR, départment__or_collectivity_ VARCHAR)
SELECT friday_fifth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Polish"
How do you say Friday in Polish?
CREATE TABLE table_1277350_5 (friday_fifth_day VARCHAR, day__see_irregularities__ VARCHAR)
SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen"
What is Timo Lehkonen's highest pick number?
CREATE TABLE table_2850912_5 (pick__number INTEGER, player VARCHAR)
SELECT result FROM table_name_97 WHERE date = "21st"
What was the Result of the game dated 21st?
CREATE TABLE table_name_97 (result VARCHAR, date VARCHAR)
SELECT MAX(money_list_rank) FROM table_14836185_3
What was the highest number on money list rank for Angela Stanford's career?
CREATE TABLE table_14836185_3 (money_list_rank INTEGER)
SELECT country FROM table_name_63 WHERE score = 66 - 70 - 69 - 71 = 276
What country has the score og 66-70-69-71=276?
CREATE TABLE table_name_63 (country VARCHAR, score VARCHAR)
SELECT SUM(played) FROM table_name_81 WHERE points_1 = "53" AND position > 3
WHAT IS THE SUM PLAYED WITH POINTS 1 OF 53, AND POSITION LARGER THAN 3?
CREATE TABLE table_name_81 (played INTEGER, points_1 VARCHAR, position VARCHAR)
SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc"
What try bonus has a club of caerphilly rfc?
CREATE TABLE table_name_27 (try_bonus VARCHAR, club VARCHAR)
SELECT date FROM table_name_64 WHERE type_of_game = "euro '64 qualifying"
What is the date of the Euro '64 qualifying game?
CREATE TABLE table_name_64 (date VARCHAR, type_of_game VARCHAR)
SELECT opponent_in_the_final FROM table_name_36 WHERE year = 1888
Name the opponent in the final for year of 1888
CREATE TABLE table_name_36 (opponent_in_the_final VARCHAR, year VARCHAR)
SELECT gross_mw FROM table_name_94 WHERE type = "phase ii"
Type of phase ii has what gross mw?
CREATE TABLE table_name_94 (gross_mw VARCHAR, type VARCHAR)
SELECT game FROM table_name_11 WHERE home_team = "st. louis" AND date = "april 12"
What is the Game number on April 12 with St. Louis Home Team?
CREATE TABLE table_name_11 (game VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT nominated_won FROM table_name_57 WHERE award_category = "jury award"
What was nominated for the Jury Award?
CREATE TABLE table_name_57 (nominated_won VARCHAR, award_category VARCHAR)
SELECT date FROM table_name_42 WHERE status = "five nations" AND venue = "twickenham , london" AND opposing_teams = "ireland"
When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in?
CREATE TABLE table_name_42 (date VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR)
SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = "Rob Dinning"
What is the name of the marketing region that the store Rob Dinning belongs to?
CREATE TABLE Marketing_Regions (Marketing_Region_Name VARCHAR, Marketing_Region_Code VARCHAR); CREATE TABLE Stores (Marketing_Region_Code VARCHAR, Store_Name VARCHAR)
SELECT opponent FROM table_name_50 WHERE date = "october 20"
What is the Opponent of the Game on October 20?
CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(high_assists) FROM table_13619135_7 WHERE team = "@ Minnesota"
How many people had the high assists @ minnesota?
CREATE TABLE table_13619135_7 (high_assists VARCHAR, team VARCHAR)
SELECT fsi_2012 FROM table_26313243_1 WHERE cpi_2012 = "42.7"
Name the fsi 2012 for 42.7 cpi
CREATE TABLE table_26313243_1 (fsi_2012 VARCHAR, cpi_2012 VARCHAR)
SELECT COUNT(league) FROM table_22683369_8 WHERE player = "Kris Doolan"
What is Kris doolan's league number?
CREATE TABLE table_22683369_8 (league VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_83 WHERE pick = 46
Which school of club team has a pick of 46?
CREATE TABLE table_name_83 (school_club_team VARCHAR, pick VARCHAR)
SELECT title FROM table_11665016_2 WHERE directed_by = "Steven DePaul"
Which episode was directed by steven depaul
CREATE TABLE table_11665016_2 (title VARCHAR, directed_by VARCHAR)
SELECT partner FROM table_name_68 WHERE date = 1979 AND opponents_in_the_final = "heinz günthardt bob hewitt"
Name the Partner which is in 1979, and Opponents in the final of heinz günthardt bob hewitt?
CREATE TABLE table_name_68 (partner VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(top_25) FROM table_name_92 WHERE top_5 > 1
What is the total amount of Top-25 having a Top-5 greater than 1?
CREATE TABLE table_name_92 (top_25 VARCHAR, top_5 INTEGER)
SELECT round FROM table_name_90 WHERE rank < 117
What is Round, when Rank is less than 117?
CREATE TABLE table_name_90 (round VARCHAR, rank INTEGER)
SELECT AVG(average_annual_output__million_kwh_) FROM table_name_12 WHERE name = "culligran" AND installed_capacity__megawatts_ < 19
What is the Average annual output for Culligran power station with an Installed capacity less than 19?
CREATE TABLE table_name_12 (average_annual_output__million_kwh_ INTEGER, name VARCHAR, installed_capacity__megawatts_ VARCHAR)
SELECT previous_conference FROM table_name_67 WHERE school = "penn"
Which previous conference is associated with Penn school?
CREATE TABLE table_name_67 (previous_conference VARCHAR, school VARCHAR)
SELECT SUM(total_region) FROM table_name_90 WHERE mt_morgan > 5 OFFSET 060
What is the sum of people in the total region when more than 5,060 were in Mt. Morgan?
CREATE TABLE table_name_90 (total_region INTEGER, mt_morgan INTEGER)
SELECT location FROM table_10568553_1 WHERE roads_intersected = "Route 24"
Where does Route 24 intersect?
CREATE TABLE table_10568553_1 (location VARCHAR, roads_intersected VARCHAR)
SELECT issue_price__bu_[_clarification_needed_] FROM table_name_57 WHERE mintage__proof_ = "29,586"
What's listed as the Issue Price (BU) [Clarification Needed] with a Mintage (Proof) of 29,586?
CREATE TABLE table_name_57 (issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR, mintage__proof_ VARCHAR)
SELECT COUNT(ties) FROM table_14389782_2 WHERE games_started = 36
How many ties were there for game 36 started?
CREATE TABLE table_14389782_2 (ties VARCHAR, games_started VARCHAR)
SELECT viewers FROM table_11642945_1 WHERE director = "Matt Gallagher"
Which viewers had Matt Gallagher as the director?
CREATE TABLE table_11642945_1 (viewers VARCHAR, director VARCHAR)
SELECT home_team FROM table_name_79 WHERE date = "january 5, 2008"
Which home team played on January 5, 2008?
CREATE TABLE table_name_79 (home_team VARCHAR, date VARCHAR)
SELECT MAX(score) FROM table_name_80 WHERE player = "tsuneyuki nakajima"
What is the top score for tsuneyuki nakajima?
CREATE TABLE table_name_80 (score INTEGER, player VARCHAR)
SELECT judge_e FROM table_name_80 WHERE judge_c = "56.67" AND rider = "dag albert"
what is the judge e when judge c is 56.67 and the rider is dag albert?
CREATE TABLE table_name_80 (judge_e VARCHAR, judge_c VARCHAR, rider VARCHAR)
SELECT population__millions_ FROM table_1610496_3 WHERE gdp_adjusted__$_billions_ = "492"
What is the population in millions when the adjusted GDP is 492 billion?
CREATE TABLE table_1610496_3 (population__millions_ VARCHAR, gdp_adjusted__$_billions_ VARCHAR)
SELECT date FROM table_name_95 WHERE tournament = "national jewish hospital open" AND runner_s__up = "pat bradley"
Which Date has a Tournament of national jewish hospital open, and a Runner(s)-up of pat bradley?
CREATE TABLE table_name_95 (date VARCHAR, tournament VARCHAR, runner_s__up VARCHAR)
SELECT leading_scorer FROM table_name_82 WHERE date = "1 april 2008"
Name the leading scorer for 1 april 2008
CREATE TABLE table_name_82 (leading_scorer VARCHAR, date VARCHAR)
SELECT date FROM table_name_36 WHERE circuit = "cremona"
What Date has a Circuit of cremona?
CREATE TABLE table_name_36 (date VARCHAR, circuit VARCHAR)
SELECT MIN(points) FROM table_name_56 WHERE date = "march 2"
What were the lowest points on march 2?
CREATE TABLE table_name_56 (points INTEGER, date VARCHAR)
SELECT site FROM table_name_15 WHERE date = "november 13"
What is Site, when Date is "November 13"?
CREATE TABLE table_name_15 (site VARCHAR, date VARCHAR)
SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears"
What is the result of the game against the Chicago Bears?
CREATE TABLE table_14966537_1 (result VARCHAR, opponent VARCHAR)
SELECT athletes FROM table_name_39 WHERE run_2 = "2:21.82"
Which Athletes have a Run 2 of 2:21.82?
CREATE TABLE table_name_39 (athletes VARCHAR, run_2 VARCHAR)
SELECT credentials_presented FROM table_name_35 WHERE state = "vermont"
What day were credentials presented for vermont?
CREATE TABLE table_name_35 (credentials_presented VARCHAR, state VARCHAR)
SELECT tyres FROM table_name_40 WHERE chassis = "mp4/14"
What tyres were used with the mp4/14 chassis?
CREATE TABLE table_name_40 (tyres VARCHAR, chassis VARCHAR)
SELECT city_of_license FROM table_name_77 WHERE class = "c1" AND identifier = "cbcd-fm"
Which city has a C1 class and Identifier of CBCD-FM?
CREATE TABLE table_name_77 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT joined FROM table_name_2 WHERE founded < 1856 AND current_conference = "big south (ncaa division i)"
What joined that was founded prior to year 1856 and whose current conference is the Big South (NCAA Division I)?
CREATE TABLE table_name_2 (joined VARCHAR, founded VARCHAR, current_conference VARCHAR)
SELECT MIN(ratio) FROM table_name_67 WHERE name = "ansi e"
Which Ratio has a Name of ansi e?
CREATE TABLE table_name_67 (ratio INTEGER, name VARCHAR)
SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = "did not advance" AND round_of_32 = "n/a"
When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?
CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR)
SELECT MAX(grid) FROM table_name_50 WHERE time_retired = "+19.1 secs"
What was the highest grid for a time/retired of +19.1 secs?
CREATE TABLE table_name_50 (grid INTEGER, time_retired VARCHAR)
SELECT qual_2 FROM table_name_80 WHERE team = "herdez competition" AND name = "ryan hunter-reay"
What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?
CREATE TABLE table_name_80 (qual_2 VARCHAR, team VARCHAR, name VARCHAR)
SELECT MAX(laps) FROM table_name_9 WHERE qual = "136.498"
How many laps did Duke Nelson complete when his qualifying time was 136.498?
CREATE TABLE table_name_9 (laps INTEGER, qual VARCHAR)
SELECT airdate FROM table_23122988_1 WHERE headliner = "Sean Lock"
What date did the show air when Sean Lock was the headliner?
CREATE TABLE table_23122988_1 (airdate VARCHAR, headliner VARCHAR)
SELECT state FROM table_name_87 WHERE royal_house = "ji" AND name = "ding"
What state is Ding and has a royal house of Ji?
CREATE TABLE table_name_87 (state VARCHAR, royal_house VARCHAR, name VARCHAR)
SELECT directed_by FROM table_228973_11 WHERE original_air_date = "February 4, 2005"
Who directed the episode which originally aired February 4, 2005?
CREATE TABLE table_228973_11 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT MAX(episode) FROM table_29773532_21 WHERE share_16_39 = "23,22%"
Which episode had a share 16-19 of 23,22%?
CREATE TABLE table_29773532_21 (episode INTEGER, share_16_39 VARCHAR)
SELECT AVG(home_run) FROM table_name_55 WHERE game = 89
Which average Home Run has a Game of 89?
CREATE TABLE table_name_55 (home_run INTEGER, game VARCHAR)
SELECT score FROM table_name_67 WHERE date = "14 april 2001"
what was the score for the game on 14 april 2001?
CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_32 WHERE week < 9 AND game_site = "robert f. kennedy memorial stadium"
Who did the Jets play in their pre-week 9 game at the Robert F. Kennedy memorial stadium?
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)