answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT class FROM table_name_44 WHERE year > 1985 AND wins > 0
CREATE TABLE table_name_44 (class VARCHAR, year VARCHAR, wins VARCHAR)
What engine class is associated with a year after 1985 and over 0 wins?
SELECT opponent FROM table_name_53 WHERE loss = "trout (7-4)"
CREATE TABLE table_name_53 (opponent VARCHAR, loss VARCHAR)
Which opponent has a loss of trout (7-4)?
SELECT opponent FROM table_name_65 WHERE save = "smith (22)"
CREATE TABLE table_name_65 (opponent VARCHAR, save VARCHAR)
Which opponent has a save of smith (22)?
SELECT COUNT(gold) FROM table_name_38 WHERE bronze > 1 AND silver > 2
CREATE TABLE table_name_38 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
How much Gold has a Bronze larger than 1, and a Silver larger than 2?
SELECT AVG(total) FROM table_name_85 WHERE nation = "japan (jpn)" AND silver < 1
CREATE TABLE table_name_85 (total INTEGER, nation VARCHAR, silver VARCHAR)
Which Total has a Nation of japan (jpn), and a Silver smaller than 1?
SELECT margin_of_victory FROM table_name_98 WHERE tournament = "wgc-accenture match play championship"
CREATE TABLE table_name_98 (margin_of_victory VARCHAR, tournament VARCHAR)
What is the margin of victory in WGC-Accenture Match Play Championship?
SELECT date FROM table_name_7 WHERE runner_s__up = "nick price"
CREATE TABLE table_name_7 (date VARCHAR, runner_s__up VARCHAR)
On what date was Nick Price the runner-up?
SELECT margin_of_victory FROM table_name_52 WHERE runner_s__up = "nick price"
CREATE TABLE table_name_52 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
What is the margin of victory for Nick Price as a runner-up?
SELECT margin_of_victory FROM table_name_25 WHERE tournament = "pga championship"
CREATE TABLE table_name_25 (margin_of_victory VARCHAR, tournament VARCHAR)
What is the margin of victory for PGA Championship?
SELECT date FROM table_name_46 WHERE winning_score = –20(68 - 67 - 65 - 64 = 264)
CREATE TABLE table_name_46 (date VARCHAR, winning_score VARCHAR)
On what date was the winning score –20 (68-67-65-64=264)?
SELECT player FROM table_name_88 WHERE position = "d" AND round > 3
CREATE TABLE table_name_88 (player VARCHAR, position VARCHAR, round VARCHAR)
Which player was D past Round 3?
SELECT round FROM table_name_5 WHERE position = "f"
CREATE TABLE table_name_5 (round VARCHAR, position VARCHAR)
Which Round was F picked?
SELECT position FROM table_name_6 WHERE player = "ryan russell"
CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR)
What Position is Ryan Russell?
SELECT nationality FROM table_name_12 WHERE round = 4
CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR)
What country does Round 4 come from?
SELECT opponent FROM table_name_17 WHERE date = "april 14"
CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR)
Which opponent was present on April 14?
SELECT loss FROM table_name_60 WHERE date = "april 15"
CREATE TABLE table_name_60 (loss VARCHAR, date VARCHAR)
what team lost on april 15
SELECT opponent FROM table_name_93 WHERE date = "april 21"
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
what team played on april 21
SELECT score FROM table_name_81 WHERE date = "april 10"
CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR)
what team scored on april 10
SELECT loser FROM table_name_44 WHERE time = "0:58"
CREATE TABLE table_name_44 (loser VARCHAR, time VARCHAR)
Who lost with a time of 0:58?
SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante"
CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR)
What is the average number of rounds for winner Rafael Cavalcante?
SELECT method FROM table_name_71 WHERE time = "2:32"
CREATE TABLE table_name_71 (method VARCHAR, time VARCHAR)
What win method has a time of 2:32?
SELECT SUM(points) FROM table_name_67 WHERE lost = 0 AND games > 8
CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, games VARCHAR)
What is the sum of points values that are associated with 0 losses and more than 8 games?
SELECT MIN(lost) FROM table_name_25 WHERE points > 13 AND games < 8
CREATE TABLE table_name_25 (lost INTEGER, points VARCHAR, games VARCHAR)
What is the fewest losses associated with more than 13 points and fewer than 8 games?
SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1
CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)
What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?
SELECT MIN(points) FROM table_name_95 WHERE games > 8
CREATE TABLE table_name_95 (points INTEGER, games INTEGER)
What is the fewest number of points associated with more than 8 games?
SELECT title FROM table_name_33 WHERE role = "richard kolner"
CREATE TABLE table_name_33 (title VARCHAR, role VARCHAR)
Which title did richard kolner play?
SELECT title FROM table_name_93 WHERE dance_partner = "adele astaire" AND lyrics = "ira gershwin" AND director = "felix edwardes"
CREATE TABLE table_name_93 (title VARCHAR, director VARCHAR, dance_partner VARCHAR, lyrics VARCHAR)
Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?
SELECT role FROM table_name_61 WHERE theatre = "globe" AND music = "jerome kern"
CREATE TABLE table_name_61 (role VARCHAR, theatre VARCHAR, music VARCHAR)
Which Role has a Theatre of globe, and a Music of jerome kern?
SELECT name FROM table_name_22 WHERE year * __est_ = "2012"
CREATE TABLE table_name_22 (name VARCHAR, year VARCHAR, __est_ VARCHAR)
what name was on the year 2012
SELECT name FROM table_name_40 WHERE spouse = "charles ii"
CREATE TABLE table_name_40 (name VARCHAR, spouse VARCHAR)
Which member of house of Habsburg-Lorraine had the spouse Charles II?
SELECT marriage FROM table_name_67 WHERE death = "29 december 1829"
CREATE TABLE table_name_67 (marriage VARCHAR, death VARCHAR)
What is the marriage date for the Habsburg-Lorraine house member who died 29 December 1829?
SELECT ceased_to_be_duchess FROM table_name_5 WHERE became_duchess = "7/8 april 1766"
CREATE TABLE table_name_5 (ceased_to_be_duchess VARCHAR, became_duchess VARCHAR)
When did the duchess who became duchess on 7/8 April 1766 cease to be duchess?
SELECT death FROM table_name_2 WHERE birth = "30 october 1797"
CREATE TABLE table_name_2 (death VARCHAR, birth VARCHAR)
What is the date of death of the duchess born on 30 October 1797?
SELECT birth FROM table_name_16 WHERE marriage = "1 may 1844"
CREATE TABLE table_name_16 (birth VARCHAR, marriage VARCHAR)
What is the birth date of the duchess who married on 1 May 1844?
SELECT MAX(pick) FROM table_name_67 WHERE round = 7
CREATE TABLE table_name_67 (pick INTEGER, round VARCHAR)
What is the highest numbered pick from round 7?
SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = "botafogo" AND position < 2
CREATE TABLE table_name_57 (played VARCHAR, position VARCHAR, against VARCHAR, team VARCHAR)
How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?
SELECT AVG(drawn) FROM table_name_56 WHERE points < 14 AND lost < 4 AND played > 9
CREATE TABLE table_name_56 (drawn INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)
Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9?
SELECT MIN(played) FROM table_name_54 WHERE team = "vasco da gama" AND against < 11
CREATE TABLE table_name_54 (played INTEGER, team VARCHAR, against VARCHAR)
Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11?
SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 5
CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR)
Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5?
SELECT SUM(lost) FROM table_name_76 WHERE position = 3 AND drawn > 3
CREATE TABLE table_name_76 (lost INTEGER, position VARCHAR, drawn VARCHAR)
Which Lost has a Position of 3, and a Drawn larger than 3?
SELECT COUNT(lost) FROM table_name_61 WHERE drawn > 1 AND points < 14 AND against > 10
CREATE TABLE table_name_61 (lost VARCHAR, against VARCHAR, drawn VARCHAR, points VARCHAR)
How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10?
SELECT tournament FROM table_name_5 WHERE opponent = "yvonne vermaak"
CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR)
What tournament has yvonne vermaak as the opponent?
SELECT outcome FROM table_name_79 WHERE opponent = "yvonne vermaak"
CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR)
What outcome has yvonne vermaak as the opponent?
SELECT outcome FROM table_name_1 WHERE tournament = "hershey"
CREATE TABLE table_name_1 (outcome VARCHAR, tournament VARCHAR)
What is the outcome for the Hershey tournament?
SELECT opponent FROM table_name_4 WHERE save = "ni fu-deh"
CREATE TABLE table_name_4 (opponent VARCHAR, save VARCHAR)
Who played against Save Of Ni Fu-Deh?
SELECT loss FROM table_name_56 WHERE opponent = "chinatrust whales" AND save = "miguel saladin"
CREATE TABLE table_name_56 (loss VARCHAR, opponent VARCHAR, save VARCHAR)
What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales?
SELECT opponent FROM table_name_80 WHERE loss = "diegomar markwell"
CREATE TABLE table_name_80 (opponent VARCHAR, loss VARCHAR)
Who's the opponent when Diegomar Markwell is the loss?
SELECT attendance FROM table_name_8 WHERE record = "86-71"
CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)
what game had a score of 86-71
SELECT record FROM table_name_34 WHERE date = "september 14"
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)
what game took place on september 14
SELECT record FROM table_name_70 WHERE attendance = "21,629"
CREATE TABLE table_name_70 (record VARCHAR, attendance VARCHAR)
what game had an attendance of 21,629
SELECT AVG(s_no) FROM table_name_10 WHERE opponent = "sri lanka"
CREATE TABLE table_name_10 (s_no INTEGER, opponent VARCHAR)
what is the number of people in sri lanka
SELECT position_in_1998 FROM table_name_10 WHERE team = "slavia"
CREATE TABLE table_name_10 (position_in_1998 VARCHAR, team VARCHAR)
What was the position of the Slavia team in 1998?
SELECT team FROM table_name_91 WHERE location = "lida"
CREATE TABLE table_name_91 (team VARCHAR, location VARCHAR)
Which team is located in Lida?
SELECT episode_no FROM table_name_56 WHERE countries_visited = "india"
CREATE TABLE table_name_56 (episode_no VARCHAR, countries_visited VARCHAR)
Which episode number visited India?
SELECT episode_title FROM table_name_26 WHERE countries_visited = "cuba"
CREATE TABLE table_name_26 (episode_title VARCHAR, countries_visited VARCHAR)
Which episode title featured a visit to the country of Cuba?
SELECT position FROM table_name_83 WHERE player = "jesse boulerice"
CREATE TABLE table_name_83 (position VARCHAR, player VARCHAR)
Which position does Jesse Boulerice play?
SELECT MIN(wins) FROM table_name_1 WHERE driver = "ayrton senna"
CREATE TABLE table_name_1 (wins INTEGER, driver VARCHAR)
What is the fewest number of wins in the chart for Ayrton Senna?
SELECT entries FROM table_name_51 WHERE wins > 11
CREATE TABLE table_name_51 (entries VARCHAR, wins INTEGER)
What is the number of entries associated with more than 11 wins?
SELECT MAX(points) FROM table_name_96 WHERE lost > 1 AND games < 5
CREATE TABLE table_name_96 (points INTEGER, lost VARCHAR, games VARCHAR)
Name the most points with lost more than 1 and games less than 5
SELECT SUM(drawn) FROM table_name_13 WHERE lost > 1 AND games < 5
CREATE TABLE table_name_13 (drawn INTEGER, lost VARCHAR, games VARCHAR)
Name the sum of drawn with lost more than 1 and games less than 5
SELECT MIN(lost) FROM table_name_4 WHERE points > 6 AND games < 5
CREATE TABLE table_name_4 (lost INTEGER, points VARCHAR, games VARCHAR)
Name the least lost with points more than 6 and games less than 5
SELECT SUM(points) FROM table_name_25 WHERE games < 5
CREATE TABLE table_name_25 (points INTEGER, games INTEGER)
Name the sum of points with games less than 5
SELECT location FROM table_name_17 WHERE time = "5:00" AND record = "6-2-1"
CREATE TABLE table_name_17 (location VARCHAR, time VARCHAR, record VARCHAR)
What was the location of the bout that lasted 5:00 and led to a 6-2-1 record?
SELECT record FROM table_name_79 WHERE opponent = "alexis vila"
CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR)
What was the record after the bout with Alexis Vila?
SELECT player_name FROM table_name_93 WHERE position = "defensive end" AND college = "california"
CREATE TABLE table_name_93 (player_name VARCHAR, position VARCHAR, college VARCHAR)
Who was a defensive end at California?
SELECT player_name FROM table_name_53 WHERE year_[a_] > 2011
CREATE TABLE table_name_53 (player_name VARCHAR, year_ VARCHAR, a_ VARCHAR)
Which players were selected after 2011?
SELECT player_name FROM table_name_64 WHERE position = "linebacker" AND college = "tennessee"
CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)
Who was a linebacker at Tennessee?
SELECT MIN(wins) FROM table_name_70 WHERE events > 30
CREATE TABLE table_name_70 (wins INTEGER, events INTEGER)
Which Wins is the lowest one that has Events larger than 30?
SELECT date FROM table_name_67 WHERE results¹ = "3:0"
CREATE TABLE table_name_67 (date VARCHAR, results¹ VARCHAR)
What day were the results 3:0?
SELECT city FROM table_name_32 WHERE date = "april 29"
CREATE TABLE table_name_32 (city VARCHAR, date VARCHAR)
What city played on april 29?
SELECT city FROM table_name_99 WHERE opponent = "england"
CREATE TABLE table_name_99 (city VARCHAR, opponent VARCHAR)
Which city has an opponent of England?
SELECT date FROM table_name_8 WHERE opponent = "austria"
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
What day was the opponent Austria?
SELECT MAX(population) FROM table_name_8 WHERE country_territory_entity = "seychelles" AND rank < 13
CREATE TABLE table_name_8 (population INTEGER, country_territory_entity VARCHAR, rank VARCHAR)
Name the most population for seychelles and rank less than 13
SELECT frequency FROM table_name_49 WHERE owner = "canadian broadcasting corporation" AND branding = "cbc radio one"
CREATE TABLE table_name_49 (frequency VARCHAR, owner VARCHAR, branding VARCHAR)
What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?
SELECT frequency FROM table_name_14 WHERE format = "soft adult contemporary"
CREATE TABLE table_name_14 (frequency VARCHAR, format VARCHAR)
What is the frequency of the soft adult contemporary stations?
SELECT owner FROM table_name_65 WHERE frequency = "fm 92.1"
CREATE TABLE table_name_65 (owner VARCHAR, frequency VARCHAR)
Who owns the station with the frequency FM 92.1?
SELECT branding FROM table_name_80 WHERE owner = "canadian broadcasting corporation" AND frequency = "fm 97.7"
CREATE TABLE table_name_80 (branding VARCHAR, owner VARCHAR, frequency VARCHAR)
What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?
SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc"
CREATE TABLE table_name_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR)
Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?
SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17"
CREATE TABLE table_name_72 (series VARCHAR, poles VARCHAR, races VARCHAR)
Which Series has Poles of 0, and Races of 17?
SELECT team_name FROM table_name_25 WHERE poles = "0" AND final_placing = "29th"
CREATE TABLE table_name_25 (team_name VARCHAR, poles VARCHAR, final_placing VARCHAR)
Which Team Name has Poles of 0, and a Final Placing of 29th?
SELECT series FROM table_name_31 WHERE final_placing = "9th" AND podiums = "2"
CREATE TABLE table_name_31 (series VARCHAR, final_placing VARCHAR, podiums VARCHAR)
Which Series has a Final Placing of 9th, and Podiums of 2?
SELECT series FROM table_name_34 WHERE team_name = "sunred engineering"
CREATE TABLE table_name_34 (series VARCHAR, team_name VARCHAR)
Which Series has a Team Name of sunred engineering?
SELECT points FROM table_name_38 WHERE wins = "0" AND final_placing = "21st"
CREATE TABLE table_name_38 (points VARCHAR, wins VARCHAR, final_placing VARCHAR)
Which Points have Wins of 0, and a Final Placing of 21st?
SELECT bronze FROM table_name_46 WHERE place = "lahti"
CREATE TABLE table_name_46 (bronze VARCHAR, place VARCHAR)
Name the bronze for lahti
SELECT rank FROM table_name_35 WHERE goals > 10 AND scorer = "choi sang-kuk"
CREATE TABLE table_name_35 (rank VARCHAR, goals VARCHAR, scorer VARCHAR)
Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?
SELECT rank FROM table_name_69 WHERE scorer = "lee sang-cheol"
CREATE TABLE table_name_69 (rank VARCHAR, scorer VARCHAR)
Which Rank has a Scorer of lee sang-cheol?
SELECT club FROM table_name_40 WHERE rank = "5"
CREATE TABLE table_name_40 (club VARCHAR, rank VARCHAR)
Which Club has a Rank of 5?
SELECT MIN(original_amendments_cosponsored) FROM table_name_50 WHERE all_bills_sponsored < 64 AND bill_support_withdrawn < 0
CREATE TABLE table_name_50 (original_amendments_cosponsored INTEGER, all_bills_sponsored VARCHAR, bill_support_withdrawn VARCHAR)
How many original bills amendments cosponsored lower than 64,with the bill support withdrawn lower than 0?
SELECT incumbent FROM table_name_55 WHERE status = "re-elected" AND party = "democratic"
CREATE TABLE table_name_55 (incumbent VARCHAR, status VARCHAR, party VARCHAR)
Who is the democratic incumbent that was re-elected?
SELECT elected FROM table_name_92 WHERE party = "republican" AND status = "re-elected" AND incumbent = "john all barham"
CREATE TABLE table_name_92 (elected VARCHAR, incumbent VARCHAR, party VARCHAR, status VARCHAR)
What year was republican, re-elected incumbent John all barham elected?
SELECT COUNT(october) FROM table_name_18 WHERE game = 4 AND points < 3
CREATE TABLE table_name_18 (october VARCHAR, game VARCHAR, points VARCHAR)
What day in october was game number 4 with under 3 points?
SELECT school FROM table_name_27 WHERE pick > 181
CREATE TABLE table_name_27 (school VARCHAR, pick INTEGER)
Which school was the drafted player from in a pick larger than 181?
SELECT points_against FROM table_name_61 WHERE lost = "17"
CREATE TABLE table_name_61 (points_against VARCHAR, lost VARCHAR)
Which points against has 17 as the lost?
SELECT lost FROM table_name_78 WHERE points_for = "528"
CREATE TABLE table_name_78 (lost VARCHAR, points_for VARCHAR)
What lost has 528 as the points?
SELECT drawn FROM table_name_31 WHERE try_bonus = "16"
CREATE TABLE table_name_31 (drawn VARCHAR, try_bonus VARCHAR)
What is the drawn that has 16 as the trys bonus?
SELECT club FROM table_name_64 WHERE tries_for = "tries for"
CREATE TABLE table_name_64 (club VARCHAR, tries_for VARCHAR)
What club has tries for in the category tries for?
SELECT drawn FROM table_name_96 WHERE played = "22" AND points = "96"
CREATE TABLE table_name_96 (drawn VARCHAR, played VARCHAR, points VARCHAR)
What is the drawn that has 22 for played, and 96 for points?
SELECT points_for FROM table_name_22 WHERE drawn = "1" AND try_bonus = "16"
CREATE TABLE table_name_22 (points_for VARCHAR, drawn VARCHAR, try_bonus VARCHAR)
What points have 1 for drawn, and 16 as a try bonus?
SELECT team__number1 FROM table_name_45 WHERE round = "group h"
CREATE TABLE table_name_45 (team__number1 VARCHAR, round VARCHAR)
What is team 1 in group h?
SELECT score FROM table_name_85 WHERE date = "15 march 2006"
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
What was the score on 15 march 2006?