answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT score FROM table_name_51 WHERE to_par < 2
When To par was less than 2, what was the score?
CREATE TABLE table_name_51 (score VARCHAR, to_par INTEGER)
SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic"
Name the year for is my magic
CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT elevator FROM table_name_78 WHERE cardinalatial_title = "deacon of s. maria in portico"
What is listed for the Elevator, that also has the Cardinalatial title of Deacon of S. Maria in Portico?
CREATE TABLE table_name_78 (elevator VARCHAR, cardinalatial_title VARCHAR)
SELECT place FROM table_name_31 WHERE player = "bryce molder"
what is the place for bryce molder?
CREATE TABLE table_name_31 (place VARCHAR, player VARCHAR)
SELECT attendance FROM table_name_59 WHERE result = "l0-13"
What is the Attendance when the Result is l0-13?
CREATE TABLE table_name_59 (attendance VARCHAR, result VARCHAR)
SELECT incident_no FROM table_name_8 WHERE place = "dantewada, chattisgarh"
What is the incident number of the incident that occurred in Dantewada, Chattisgarh?
CREATE TABLE table_name_8 (incident_no VARCHAR, place VARCHAR)
SELECT MAX(year_born) FROM table_name_31 WHERE position = "guard" AND player = "tony parker"
When was tony parker (guard) born?
CREATE TABLE table_name_31 (year_born INTEGER, position VARCHAR, player VARCHAR)
SELECT original_airdate FROM table_25691838_11 WHERE guest = "Salvatore Giunta"
What date did the episode originally air on with salvatore giunta as a guest?
CREATE TABLE table_25691838_11 (original_airdate VARCHAR, guest VARCHAR)
SELECT home_team FROM table_26842217_4 WHERE visiting_team = "San Jose State"
What is the home team where the San Jose state is the visiting team?
CREATE TABLE table_26842217_4 (home_team VARCHAR, visiting_team VARCHAR)
SELECT player FROM table_name_92 WHERE position = "number 8" AND club_province = "scarlets"
Which Player has a Position of number 8, and a Club/province of scarlets?
CREATE TABLE table_name_92 (player VARCHAR, position VARCHAR, club_province VARCHAR)
SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0
How many tries for the player whose number is greater than 2 and losses are smaller than 0?
CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR)
SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory"
Name the total number of stage for lloyd mondory
CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR)
SELECT original_airdate FROM table_name_2 WHERE episode = 1
Which Original Airdate has an Episode of 1?
CREATE TABLE table_name_2 (original_airdate VARCHAR, episode VARCHAR)
SELECT against FROM table_name_24 WHERE opposing_team = "sheffield wednesday"
What was the Against when the Opposing Team was sheffield wednesday?
CREATE TABLE table_name_24 (against VARCHAR, opposing_team VARCHAR)
SELECT AVG(points) FROM table_name_98 WHERE drawn > 1
Which Points have a Drawn larger than 1?
CREATE TABLE table_name_98 (points INTEGER, drawn INTEGER)
SELECT venue FROM table_name_93 WHERE year < 2009 AND result = "1st"
What is the venue of the competition with a result of 1st before 2009?
CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, result VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE mintage < 10 OFFSET 000
What is the smallest year with a Mintage smaller than 10,000?
CREATE TABLE table_name_37 (year INTEGER, mintage INTEGER)
SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series"
Name the 2003 for atp masters series 1998
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT species_authority FROM table_name_44 WHERE name = "true's beaked whale"
Which Species/Authority has a Name of true's beaked whale?
CREATE TABLE table_name_44 (species_authority VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_47 WHERE game > 58 AND february > 16 AND record = "40-20-4"
Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4?
CREATE TABLE table_name_47 (opponent VARCHAR, record VARCHAR, game VARCHAR, february VARCHAR)
SELECT pole_position FROM table_name_95 WHERE race = "swedish grand prix"
What is the Pole Position of the Swedish Grand Prix?
CREATE TABLE table_name_95 (pole_position VARCHAR, race VARCHAR)
SELECT original_title FROM table_name_15 WHERE film_title_used_in_nomination = "monga"
What is Original Title, when Film Title Used In Nomination is "Monga"?
CREATE TABLE table_name_15 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT oil_pattern FROM table_name_58 WHERE winner__title__number_ = "mike wolfe (3)"
Which Oil Pattern has a Winner (Title #) of mike wolfe (3)?
CREATE TABLE table_name_58 (oil_pattern VARCHAR, winner__title__number_ VARCHAR)
SELECT championship FROM table_26202847_6 WHERE score_in_the_final = "6–1, 3–6, 3–6"
Where is the championship where 6–1, 3–6, 3–6 is the score in the final?
CREATE TABLE table_26202847_6 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT winning_score FROM table_name_50 WHERE tournament = "greater vancouver open"
What was the winning score of the Greater Vancouver Open tournament?
CREATE TABLE table_name_50 (winning_score VARCHAR, tournament VARCHAR)
SELECT MIN(rank) FROM table_name_4 WHERE time = "8:13.67"
What is the lowest ranking for 8:13.67?
CREATE TABLE table_name_4 (rank INTEGER, time VARCHAR)
SELECT COUNT(entries) FROM table_name_55 WHERE season = "2001" AND front_row_starts < 13
What were the total number of entries in 2001 that had a front row smaller than 13?
CREATE TABLE table_name_55 (entries VARCHAR, season VARCHAR, front_row_starts VARCHAR)
SELECT headquarters FROM table_1610301_1 WHERE population__2011_ = 3811738
Where is the headquarters of the place whose population in 2011 was 3811738?
CREATE TABLE table_1610301_1 (headquarters VARCHAR, population__2011_ VARCHAR)
SELECT team FROM table_name_55 WHERE location_attendance = "boston garden" AND series = "1-0"
What team played at the Boston Garden when the series was 1-0?
CREATE TABLE table_name_55 (team VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT directed_by FROM table_11111116_7 WHERE us_viewers__million_ = "2.81"
Who directed an episode that had 2.81 million U.S. viewers?
CREATE TABLE table_11111116_7 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = "gen. juan alonso" AND inaugurated = "15 march 1940"
What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"?
CREATE TABLE table_name_74 (second_vice_president VARCHAR, third_vice_president VARCHAR, inaugurated VARCHAR)
SELECT venue FROM table_name_29 WHERE player = "les ames"
For player Les Ames, what was the venue?
CREATE TABLE table_name_29 (venue VARCHAR, player VARCHAR)
SELECT date FROM table_name_13 WHERE result = "3-1" AND location = "hague"
What date was the result 3-1 in Hague?
CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, location VARCHAR)
SELECT call_sign FROM table_name_33 WHERE owner = "ckua radio foundation"
What is the Call Sign of the Frequency by Owner CKUA Radio Foundation?
CREATE TABLE table_name_33 (call_sign VARCHAR, owner VARCHAR)
SELECT boys_singles FROM table_14319023_2 WHERE mixed_doubles = "Danny Bawa Chrisnanta Debby Susanto"
When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?
CREATE TABLE table_14319023_2 (boys_singles VARCHAR, mixed_doubles VARCHAR)
SELECT MAX(wins) FROM table_name_84 WHERE club = "terang" AND draws < 0
What are the most wins of Terang with the draws less than 0?
CREATE TABLE table_name_84 (wins INTEGER, club VARCHAR, draws VARCHAR)
SELECT adelaide FROM table_name_30 WHERE melbourne = "no" AND sydney = "no" AND gold_coast = "no"
Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?
CREATE TABLE table_name_30 (adelaide VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR)
SELECT date FROM table_name_34 WHERE record = "8–3–1"
What was the date of the game when the Avalanche had a record of 8–3–1?
CREATE TABLE table_name_34 (date VARCHAR, record VARCHAR)
SELECT surface FROM table_name_88 WHERE partner = "aurelija misevičiūtė"
The tournament with a partner listed as Aurelija Misevičiūtė had what kind of surface?
CREATE TABLE table_name_88 (surface VARCHAR, partner VARCHAR)
SELECT season_rank FROM table_2649597_1 WHERE winnings = "$491,977"
Where did they finish in the season when when they won $491,977?
CREATE TABLE table_2649597_1 (season_rank VARCHAR, winnings VARCHAR)
SELECT engine FROM table_name_19 WHERE start < 7 AND finish = 23
What engine has a start less than 7, and 23 as a finish?
CREATE TABLE table_name_19 (engine VARCHAR, start VARCHAR, finish VARCHAR)
SELECT location_code, location_name FROM Ref_locations
List all location codes and location names.
CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR)
SELECT hl_birkett FROM table_1320857_1 WHERE wh_archer = "R. Cochrane"
Who is h.l birkett if w.h. archer is r. cochrane?
CREATE TABLE table_1320857_1 (hl_birkett VARCHAR, wh_archer VARCHAR)
SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa"
What lane was Henrique Barbosa in?
CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR)
SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'
Find the total amount of loans provided by bank branches in the state of New York.
CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)
SELECT tv_season FROM table_10120207_8 WHERE viewers__millions_ = "10.73"
What year is the season with the 10.73 million views?
CREATE TABLE table_10120207_8 (tv_season VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(school_club_team) FROM table_10015132_11 WHERE no = "3"
How many schools did player number 3 play at?
CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)
SELECT notes FROM table_name_16 WHERE country = "finland"
What are the Notes of the Country of finland?
CREATE TABLE table_name_16 (notes VARCHAR, country VARCHAR)
SELECT MAX(choice) FROM table_10361230_1
What is the highest choice?
CREATE TABLE table_10361230_1 (choice INTEGER)
SELECT MIN(pick) FROM table_2840500_1 WHERE player = "Ric Jackman"
What draft pick number was Ric Jackman?
CREATE TABLE table_2840500_1 (pick INTEGER, player VARCHAR)
SELECT year FROM table_name_58 WHERE edition = "41st"
Which Year has an Edition of 41st?
CREATE TABLE table_name_58 (year VARCHAR, edition VARCHAR)
SELECT hk_viewers FROM table_29633639_1 WHERE english_title = "A Great Way to Care"
how many milion of viewers where in the episode called in english "is a great way to care"
CREATE TABLE table_29633639_1 (hk_viewers VARCHAR, english_title VARCHAR)
SELECT out_of FROM table_name_62 WHERE source = "protestantism by country"
Concerning protestantism by country, the ranking is out of how many total?
CREATE TABLE table_name_62 (out_of VARCHAR, source VARCHAR)
SELECT best_5_year_period FROM table_name_37 WHERE best_15_year_period = "alekhine; lasker"
Which best 5-year period has a best 15-year period of alekhine; lasker?
CREATE TABLE table_name_37 (best_5_year_period VARCHAR, best_15_year_period VARCHAR)
SELECT rating FROM table_name_12 WHERE season = "season 10"
What is the rating of the season 10?
CREATE TABLE table_name_12 (rating VARCHAR, season VARCHAR)
SELECT MAX(gold) FROM table_name_94 WHERE total < 4 AND silver = 1 AND bronze < 2 AND rank = "13"
Which is the highest Gold that has a total smaller than 4 and a silver of 1, and a bronze smaller than 2, and a rank of 13?
CREATE TABLE table_name_94 (gold INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3
Find the top 3 wineries with the greatest number of wines made of white color grapes.
CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)
SELECT born___died FROM table_name_1 WHERE notable_for = "tennis"
The person notable for tennis died in what year?
CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR)
SELECT COUNT(semifinals) FROM table_18646111_13 WHERE class = "TT2"
Name the number of semifinals for tt2
CREATE TABLE table_18646111_13 (semifinals VARCHAR, class VARCHAR)
SELECT time FROM table_name_94 WHERE rank > 2 AND country = "france"
When france had a rank larger than 2, what was their time?
CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR)
SELECT COUNT(clubs_involved) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan"
How many different values of clubs involved were there when the league entering at this round was allsvenskan?
CREATE TABLE table_29566686_1 (clubs_involved VARCHAR, leagues_entering_at_this_round VARCHAR)
SELECT MAX(played) FROM table_name_30 WHERE points_1 = "36 2" AND goals_against < 74
What is the highest played when there was less than 74 goals against and points 1 of 36 2?
CREATE TABLE table_name_30 (played INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT COUNT(route_number) FROM table_3005999_1 WHERE origin = "Birmingham" AND destination = "Bristol"
How many route numbers occur for the origin of Birmingham and destination of Bristol?
CREATE TABLE table_3005999_1 (route_number VARCHAR, origin VARCHAR, destination VARCHAR)
SELECT name FROM table_name_61 WHERE constituency_number = "1"
Which Name has a Constituency number of 1?
CREATE TABLE table_name_61 (name VARCHAR, constituency_number VARCHAR)
SELECT source FROM table_name_8 WHERE race_winners = "ben adriaenssen / ben van den bogaart" AND gp_winner = "ben adriaenssen / ben van den bogaart" AND date = "1 april"
What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?
CREATE TABLE table_name_8 (source VARCHAR, date VARCHAR, race_winners VARCHAR, gp_winner VARCHAR)
SELECT MIN(bronze) FROM table_name_86 WHERE nation = "andorra" AND total > 6
What is the least amount of bronze Andorra, who has more than 6 total medals, has?
CREATE TABLE table_name_86 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT team FROM table_name_69 WHERE rank < 4 AND time = "1:14.04.88"
Which team had a rank under 4 with a time of 1:14.04.88?
CREATE TABLE table_name_69 (team VARCHAR, rank VARCHAR, time VARCHAR)
SELECT capacity FROM table_name_84 WHERE model_engine = "2.0 duratorq"
Name the capacity for the engine of 2.0 duratorq
CREATE TABLE table_name_84 (capacity VARCHAR, model_engine VARCHAR)
SELECT record FROM table_name_22 WHERE game = 58
What's the record for Game 58?
CREATE TABLE table_name_22 (record VARCHAR, game VARCHAR)
SELECT Ends AS lost FROM table_26745426_2 WHERE country = Canada
Name the ends lost for canada
CREATE TABLE table_26745426_2 (Ends VARCHAR, country VARCHAR, Canada VARCHAR)
SELECT team FROM table_name_95 WHERE class = "rotax light"
What is the name of the team whose class is Rotax Light?
CREATE TABLE table_name_95 (team VARCHAR, class VARCHAR)
SELECT COUNT(laps) FROM table_name_90 WHERE time_retired = "+1.906"
How many laps did the team with a time/retired of +1.906 have?
CREATE TABLE table_name_90 (laps VARCHAR, time_retired VARCHAR)
SELECT sales_total FROM table_name_30 WHERE chart = "oricon monthly albums chart"
Which Sales Total has a Chart of oricon monthly albums chart?
CREATE TABLE table_name_30 (sales_total VARCHAR, chart VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE away = "real espana"
What was the attendance when the away team was Real Espana?
CREATE TABLE table_name_67 (attendance INTEGER, away VARCHAR)
SELECT COUNT(date_of_appointment) FROM table_27057070_3 WHERE team = "Khazar Lankaran"
How many date of appointment entries are there when the team is khazar lankaran?
CREATE TABLE table_27057070_3 (date_of_appointment VARCHAR, team VARCHAR)
SELECT MIN(november) FROM table_name_56 WHERE record = "12–2–4–1"
Which November is the lowest one that has a Record of 12–2–4–1?
CREATE TABLE table_name_56 (november INTEGER, record VARCHAR)
SELECT COUNT(driver) FROM table_17319931_1 WHERE time_retired = "+3 laps" AND points = "24"
How many drivers where there when the time/retired +3 laps and points were 24?
CREATE TABLE table_17319931_1 (driver VARCHAR, time_retired VARCHAR, points VARCHAR)
SELECT original_1st_us_tour_cast FROM table_24353141_1 WHERE original_tokyo___seoul_tour_cast = "Thomas Hettrick"
While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast?
CREATE TABLE table_24353141_1 (original_1st_us_tour_cast VARCHAR, original_tokyo___seoul_tour_cast VARCHAR)
SELECT MAX(l) FROM table_29545993_3 WHERE pa = 47
What is maximum loss record when the pa record is 47?
CREATE TABLE table_29545993_3 (l INTEGER, pa VARCHAR)
SELECT points FROM table_name_86 WHERE games = "363"
How many points were scored by the player who played 363 games?
CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR)
SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1
How many total wins are associated with events with 1 top-10?
CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 3
What College/Junior/Club Team (League) has a round of 3?
CREATE TABLE table_name_32 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT season_outcome FROM table_name_89 WHERE school = "smyrna"
Name the season outcome for smyrna
CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR)
SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0
What is the high loss total for players with zero wins and a win % greater than 0?
CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)
SELECT no_of_cities FROM table_name_38 WHERE voivodeship = "elbląg voivodeship"
Namem the number of cities that contains Voivodeship of elbląg voivodeship
CREATE TABLE table_name_38 (no_of_cities VARCHAR, voivodeship VARCHAR)
SELECT tv_station FROM table_name_17 WHERE romaji_title = "kazoku~tsuma no fuzai・otto no sonzai~"
what is the tv station when the romaji title is kazoku~tsuma no fuzai・otto no sonzai~?
CREATE TABLE table_name_17 (tv_station VARCHAR, romaji_title VARCHAR)
SELECT MAX(game) FROM table_name_83 WHERE record = "4-3-6"
Which Game is the highest one that has a Record of 4-3-6?
CREATE TABLE table_name_83 (game INTEGER, record VARCHAR)
SELECT date FROM table_name_53 WHERE away_team = "collingwood"
When did Collingwood play an away game?
CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR)
SELECT no_in_series FROM table_15472061_1 WHERE us_viewers__millions_ = "7.78"
Name the number in the series for when the viewers is 7.78
CREATE TABLE table_15472061_1 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
SELECT losses FROM table_name_40 WHERE matches = "5"
What is the losses for the 5 matches?
CREATE TABLE table_name_40 (losses VARCHAR, matches VARCHAR)
SELECT deorbit_date FROM table_name_9 WHERE launch_date = "9 march 2008"
When did the ATV that launched on 9 March 2008, deorbit?
CREATE TABLE table_name_9 (deorbit_date VARCHAR, launch_date VARCHAR)
SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Sonoma"
Give me the average prices of wines that are produced by appelations in Sonoma County.
CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR)
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400"
What is the Hanyu Pinyin with an area of 400?
CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__km²_ VARCHAR)
SELECT MAX(pick__number) FROM table_name_87 WHERE player = "greg harris"
What is the largest pick# for Greg Harris?
CREATE TABLE table_name_87 (pick__number INTEGER, player VARCHAR)
SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.8%" AND province = "Manitoba"
What's the percentage in 2001 in Manitoba where the percentage in 2011 is 0.8%?
CREATE TABLE table_1939405_2 (_percentage_2001 VARCHAR, _percentage_2011 VARCHAR, province VARCHAR)
SELECT term FROM table_name_5 WHERE name_of_acharya = "acharya shree vasudevprasadji maharaj"
What is the term of acharya shree vasudevprasadji maharaj?
CREATE TABLE table_name_5 (term VARCHAR, name_of_acharya VARCHAR)
SELECT pos FROM table_name_8 WHERE date_from = "28 august 2008"
What is Pos., when Date From is "28 August 2008"?
CREATE TABLE table_name_8 (pos VARCHAR, date_from VARCHAR)
SELECT MAX(episode) FROM table_15187735_4 WHERE segment_d = "Blown Glass"
What is the last episode which has segment d as blown glass?
CREATE TABLE table_15187735_4 (episode INTEGER, segment_d VARCHAR)
SELECT director FROM table_name_11 WHERE english_title = "the olsen gang sees red"
Who is the Director of the Olsen Gang Sees Red?
CREATE TABLE table_name_11 (director VARCHAR, english_title VARCHAR)
SELECT attendance FROM table_name_72 WHERE tie_no = "15"
What is the attendance for No. 15 tie?
CREATE TABLE table_name_72 (attendance VARCHAR, tie_no VARCHAR)