question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Country of the Player with a Score of 66-72-70-69=277?
CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_47 WHERE score = 66 - 72 - 70 - 69 = 277
What is the sum of a grid for driver Patrick Carpentier and less than 103 laps?
CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_58 WHERE driver = "patrick carpentier" AND laps < 103
What team has 0 points and a contact tired/retired, and 71 laps?
CREATE TABLE table_name_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR)
SELECT team FROM table_name_80 WHERE points = 0 AND time_retired = "contact" AND laps = 71
What is the sum of lap for the Dale Coyne Racing Team, and 0 points?
CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 0
What is the lowest number of laps with more than 16 points?
CREATE TABLE table_name_29 (laps INTEGER, points INTEGER)
SELECT MIN(laps) FROM table_name_29 WHERE points > 16
What team has 104 laps and a grid of 10?
CREATE TABLE table_name_70 (team VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT team FROM table_name_70 WHERE laps = 104 AND grid = 10
Which year had e34 Nimzo-Indian defence is the opening?
CREATE TABLE table_name_81 (year VARCHAR, opening VARCHAR)
SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence"
What is the average quantity that has 1104 as the number(s)?
CREATE TABLE table_name_40 (quantity INTEGER, number_s_ VARCHAR)
SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104"
What type has 5 as the quantity?
CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR)
SELECT type FROM table_name_26 WHERE quantity = 5
What years did Alvin Mitchell play?
CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR)
SELECT years FROM table_name_44 WHERE player = "alvin mitchell"
Who is the player on a team from the 1970s?
CREATE TABLE table_name_63 (player VARCHAR, team VARCHAR)
SELECT player FROM table_name_63 WHERE team = "1970s"
What team does Oliver Dobbins play for?
CREATE TABLE table_name_39 (team VARCHAR, player VARCHAR)
SELECT team FROM table_name_39 WHERE player = "oliver dobbins"
Who was the opponent in the mallorca 2, spain tournament?
CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain"
When was varvara lepchenko the opponent?
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_7 WHERE opponent = "varvara lepchenko"
For the total of 288 what was the to par?
CREATE TABLE table_name_71 (to_par VARCHAR, total VARCHAR)
SELECT to_par FROM table_name_71 WHERE total = 288
What year did the United States win with a total of 278?
CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278
What was the lowest total with a finish of t47?
CREATE TABLE table_name_88 (total INTEGER, finish VARCHAR)
SELECT MIN(total) FROM table_name_88 WHERE finish = "t47"
What is the to par when the total is larger than 288?
CREATE TABLE table_name_97 (to_par VARCHAR, total INTEGER)
SELECT to_par FROM table_name_97 WHERE total > 288
What is the rank for total less than 5, 1 bronze and less than 1 silver?
CREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 1
What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals?
CREATE TABLE table_name_95 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MAX(bronze) FROM table_name_95 WHERE rank > 11 AND gold < 0
What is the least total when there are more than 2 golds and fewer than 0 silver?
CREATE TABLE table_name_6 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_6 WHERE gold > 2 AND silver < 0
Which visitor has a record of 2-4?
CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_39 WHERE record = "2-4"
What is the record on April 28?
CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_81 WHERE date = "april 28"
What is the score for the Chicago Black Hawks game with a record of 2-1?
CREATE TABLE table_name_36 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT score FROM table_name_36 WHERE home = "chicago black hawks" AND record = "2-1"
What's the latest year with a hometown of san carlos, pangasinan?
CREATE TABLE table_name_50 (year INTEGER, hometown VARCHAR)
SELECT MAX(year) FROM table_name_50 WHERE hometown = "san carlos, pangasinan"
What are the other awards for 1995?
CREATE TABLE table_name_77 (other_awards VARCHAR, year VARCHAR)
SELECT other_awards FROM table_name_77 WHERE year = 1995
What's the latest year that daisy garcia reyes did not place in miss world?
CREATE TABLE table_name_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR)
SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes"
Which venue had an against smaller than 7?
CREATE TABLE table_name_15 (venue VARCHAR, against INTEGER)
SELECT venue FROM table_name_15 WHERE against < 7
What day was Australia the opposing team and the against 12?
CREATE TABLE table_name_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR)
SELECT date FROM table_name_92 WHERE opposing_teams = "australia" AND against = 12
What day was Wales the opposing team?
CREATE TABLE table_name_17 (date VARCHAR, opposing_teams VARCHAR)
SELECT date FROM table_name_17 WHERE opposing_teams = "wales"
What is the amount of money with a score of 67-71-70-71=279?
CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279
What is Dave Rummells's to par?
CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_22 WHERE player = "dave rummells"
What is the to par number with a score of 67-66-71-71=275?
CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_51 WHERE score = 67 - 66 - 71 - 71 = 275
What country is Steve Jones from?
CREATE TABLE table_name_55 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_55 WHERE player = "steve jones"
Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen's Indian Defence?
CREATE TABLE table_name_87 (black VARCHAR, opening VARCHAR, white VARCHAR, moves VARCHAR)
SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence"
What is Points, when Points For is "points for"?
CREATE TABLE table_name_71 (points VARCHAR, points_for VARCHAR)
SELECT points FROM table_name_71 WHERE points_for = "points for"
What is Drawn, when Played is "18", and when Points Against is "478"?
CREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478"
What is Points For, when Losing Bonus is "2", when Lost is "8", and when Club is "Rhyl And District RFC"?
CREATE TABLE table_name_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR)
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc"
What is Lost, when Points For is "205"?
CREATE TABLE table_name_16 (lost VARCHAR, points_for VARCHAR)
SELECT lost FROM table_name_16 WHERE points_for = "205"
What is Played, when Tries Against is "63"?
CREATE TABLE table_name_81 (played VARCHAR, tries_against VARCHAR)
SELECT played FROM table_name_81 WHERE tries_against = "63"
What is Try Bonus, when Tries For is "39"?
CREATE TABLE table_name_98 (try_bonus VARCHAR, tries_for VARCHAR)
SELECT try_bonus FROM table_name_98 WHERE tries_for = "39"
What Week 2 has a Week 4 of piret aava?
CREATE TABLE table_name_63 (week_2 VARCHAR, week_4 VARCHAR)
SELECT week_2 FROM table_name_63 WHERE week_4 = "piret aava"
What Week 2 has a Week 3 of casey mae?
CREATE TABLE table_name_16 (week_2 VARCHAR, week_3 VARCHAR)
SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae"
What Week 2 has a Week 1 of crystal beddows?
CREATE TABLE table_name_66 (week_2 VARCHAR, week_1 VARCHAR)
SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows"
What Week 3 has a Week 4 of gina blair?
CREATE TABLE table_name_95 (week_3 VARCHAR, week_4 VARCHAR)
SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair"
What Week 5 has a Week 1 of mysti sherwood?
CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR)
SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood"
What Week 4 has a Week 2 of samantha speer?
CREATE TABLE table_name_62 (week_4 VARCHAR, week_2 VARCHAR)
SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer"
Which 2nd Party has a Election of 1857?
CREATE TABLE table_name_14 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_14 WHERE election = "1857"
Which 2nd Party has a Election of 1857?
CREATE TABLE table_name_17 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_17 WHERE election = "1857"
which 1st Member has a Election of 1832
CREATE TABLE table_name_51 (election VARCHAR)
SELECT 1 AS st_member FROM table_name_51 WHERE election = "1832"
Who is moving from Treviso with a loan return?
CREATE TABLE table_name_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR)
SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return"
What is the nationality of Acquafresca?
CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR)
SELECT nat FROM table_name_9 WHERE name = "acquafresca"
What is the type if the transfer window is summer and the moving from category is free agent?
CREATE TABLE table_name_89 (type VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)
SELECT type FROM table_name_89 WHERE transfer_window = "summer" AND moving_from = "free agent"
What is the transfer window for the moving from of SΓ£o Paulo?
CREATE TABLE table_name_46 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT transfer_window FROM table_name_46 WHERE moving_from = "sΓ£o paulo"
What is the moving from with a transfer and the nationality of Bra?
CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra"
What is the end date for Maaroufi?
CREATE TABLE table_name_59 (ends VARCHAR, name VARCHAR)
SELECT ends FROM table_name_59 WHERE name = "maaroufi"
The game played on October 2, 1966 had what result?
CREATE TABLE table_name_40 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_40 WHERE date = "october 2, 1966"
Who was the game played against on October 9, 1966?
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966"
What is the maximum week that 69,372 people attended the game?
CREATE TABLE table_name_13 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_13 WHERE attendance = "69,372"
What is the date of the game played after week 4 with 60,658 people in attendance?
CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_28 WHERE week > 4 AND attendance = "60,658"
What is the total capacity for the city of Trogir?
CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR)
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir"
What party established in 1797 won an election in 2007?
CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR)
SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007
What Played has a Lost smaller than 3, and a Drawn smaller than 0?
CREATE TABLE table_name_13 (played INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT AVG(played) FROM table_name_13 WHERE lost < 3 AND drawn < 0
What is the largest % Won with a Lost smaller than 0?
CREATE TABLE table_name_89 (_percentage_won INTEGER, lost INTEGER)
SELECT MAX(_percentage_won) FROM table_name_89 WHERE lost < 0
What is the total of Against with % Won larger than 100?
CREATE TABLE table_name_76 (against INTEGER, _percentage_won INTEGER)
SELECT SUM(against) FROM table_name_76 WHERE _percentage_won > 100
What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5?
CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR)
SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5
What is the Lost with Against smaller than 25, and Played smaller than 1?
CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1
What is the largest height when the prominence is 3,118?
CREATE TABLE table_name_98 (height__m_ INTEGER, prominence__m_ VARCHAR)
SELECT MAX(height__m_) FROM table_name_98 WHERE prominence__m_ = 3 OFFSET 118
What is the Tie number of when Wigan Athletic was the away team?
CREATE TABLE table_name_34 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_34 WHERE away_team = "wigan athletic"
Name the team with a tie number of 6.
CREATE TABLE table_name_51 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_51 WHERE tie_no = "6"
What ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy?
CREATE TABLE table_name_81 (ship VARCHAR, country VARCHAR, builder VARCHAR)
SELECT ship FROM table_name_81 WHERE country = "royal navy" AND builder = "palmers shipbuilding and iron company"
What is the class/type at Trieste?
CREATE TABLE table_name_32 (class___type VARCHAR, location VARCHAR)
SELECT class___type FROM table_name_32 WHERE location = "trieste"
What is the country of Palmers Shipbuilding and Iron Company?
CREATE TABLE table_name_96 (country VARCHAR, builder VARCHAR)
SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company"
In what country is Aberdeen?
CREATE TABLE table_name_96 (country VARCHAR, location VARCHAR)
SELECT country FROM table_name_96 WHERE location = "aberdeen"
Which Number of households has a Median household income of $32,806, and a Population larger than 11,291?
CREATE TABLE table_name_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291
Which County has a Median household income of $37,230?
CREATE TABLE table_name_96 (county VARCHAR, median_household_income VARCHAR)
SELECT county FROM table_name_96 WHERE median_household_income = "$37,230"
Which Population has a County of mississippi, and a Number of households smaller than 17,741?
CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741
Count the average Height which has a Position of pf, and a Year born (Age) on april 1, 1981 (age32)?
CREATE TABLE table_name_27 (height INTEGER, position VARCHAR, year_born__age_ VARCHAR)
SELECT AVG(height) FROM table_name_27 WHERE position = "pf" AND year_born__age_ = "april 1, 1981 (age32)"
Which Height has a Position of c, and a Player of yiannis bourousis?
CREATE TABLE table_name_50 (height INTEGER, position VARCHAR, player VARCHAR)
SELECT SUM(height) FROM table_name_50 WHERE position = "c" AND player = "yiannis bourousis"
Which Outcome has a Score in the final of 1–6, 6–4, 7–5?
CREATE TABLE table_name_61 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_name_61 WHERE score_in_the_final = "1–6, 6–4, 7–5"
Which Outcome has a Score in the final of 4–6, 5–7?
CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_name_96 WHERE score_in_the_final = "4–6, 5–7"
Which Opponents in the final has a Partner of olga lugina?
CREATE TABLE table_name_79 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT opponents_in_the_final FROM table_name_79 WHERE partner = "olga lugina"
Which Outcome has a Score in the final of 3–6, 1–6?
CREATE TABLE table_name_57 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_name_57 WHERE score_in_the_final = "3–6, 1–6"
What rank is He Yingqin who was born before 1890?
CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR)
SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890
What year is the death for a birth of 1873 and higher than rank 28?
CREATE TABLE table_name_74 (death VARCHAR, birth VARCHAR, rank VARCHAR)
SELECT death FROM table_name_74 WHERE birth = 1873 AND rank > 28
What is the name with a death in 2001?
CREATE TABLE table_name_6 (name VARCHAR, death VARCHAR)
SELECT name FROM table_name_6 WHERE death = "2001"
What is the 1st round result for ECAC Chaumont (D2) as team 1?
CREATE TABLE table_name_91 (team_1 VARCHAR)
SELECT 1 AS st_round FROM table_name_91 WHERE team_1 = "ecac chaumont (d2)"
Which team 1 played against team 2 of Tours FC (D2)?
CREATE TABLE table_name_21 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)"
Which is team 2 when team 1 is ECAC Chaumont (d2)?
CREATE TABLE table_name_45 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_45 WHERE team_1 = "ecac chaumont (d2)"
Which Written by has a Code of 1.2 1.3?
CREATE TABLE table_name_57 (written_by VARCHAR, code VARCHAR)
SELECT written_by FROM table_name_57 WHERE code = "1.2 1.3"
What is the highest crude death rate when deaths are 3 433 and average population is greater than 298?
CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR)
SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298
How many live births where the crude birth rate is lore than 15.7, average population is less than 297 and deaths are al 4 686?
CREATE TABLE table_name_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR)
SELECT live_births FROM table_name_79 WHERE crude_birth_rate__per_1000_ > 15.7 AND average_population__x_1000_ < 297 AND deaths = "4 686"
What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376?
CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = "4 376"
What is the average population when deaths are 3 557 and crude death date is less than 11.9?
CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9
In what week(s) did the Broncos go up against the Cleveland Browns?
CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR)
SELECT SUM(week) FROM table_name_99 WHERE opponent = "cleveland browns"
What week was the December 24, 1994 game?
CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994"
Which Nationality has a Round smaller than 3?
CREATE TABLE table_name_98 (nationality VARCHAR, round INTEGER)
SELECT nationality FROM table_name_98 WHERE round < 3
Which Position has a Round larger than 4, and a Player of patrick johnson?
CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson"
Which Nationality has a Round of 4?
CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR)
SELECT nationality FROM table_name_17 WHERE round = 4
Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18?
CREATE TABLE table_name_48 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = "usa u-18"