answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT record FROM table_name_6 WHERE loss = "lilly (0-1)"
CREATE TABLE table_name_6 (record VARCHAR, loss VARCHAR)
What was their record when they lost with Lilly (0-1) pitching?
SELECT record FROM table_name_51 WHERE attendance = "26,827"
CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR)
What was their record when the attendance was 26,827?
SELECT december FROM table_name_76 WHERE february = "anne-marie fox"
CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR)
Who is the December playmate with a February playmate Anne-Marie Fox?
SELECT august FROM table_name_51 WHERE october = "shannon long"
CREATE TABLE table_name_51 (august VARCHAR, october VARCHAR)
Who is the August playmate with the October playmate Shannon Long?
SELECT december FROM table_name_72 WHERE november = "marlene janssen"
CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR)
Who is the December playmate with a November playmate Marlene Janssen?
SELECT november FROM table_name_66 WHERE july = "hope marie carlton"
CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR)
Who is the November playmate with the July playmate Hope Marie Carlton?
SELECT march FROM table_name_53 WHERE august = "gianna amore"
CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR)
Who is the March playmate with an August playmate Gianna Amore?
SELECT january FROM table_name_66 WHERE november = "donna edmondson"
CREATE TABLE table_name_66 (january VARCHAR, november VARCHAR)
Who is the January playmate with the November playmate Donna Edmondson?
SELECT stadium FROM table_name_10 WHERE host_team = "tennessee titans"
CREATE TABLE table_name_10 (stadium VARCHAR, host_team VARCHAR)
What is the home stadium of the Tennessee Titans?
SELECT MAX(week) FROM table_name_29 WHERE visiting_team = "houston texans"
CREATE TABLE table_name_29 (week INTEGER, visiting_team VARCHAR)
When were the Houston Texans the visiting team later in the season?
SELECT date FROM table_name_18 WHERE final_score = "24-34"
CREATE TABLE table_name_18 (date VARCHAR, final_score VARCHAR)
The final score was 24-34 on what date?
SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 7
CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, total VARCHAR)
What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?
SELECT SUM(total) FROM table_name_26 WHERE bronze = 7 AND gold > 18
CREATE TABLE table_name_26 (total INTEGER, bronze VARCHAR, gold VARCHAR)
What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?
SELECT MIN(gold) FROM table_name_47 WHERE silver > 11 AND rank = "1" AND bronze < 7
CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals?
SELECT MAX(total) FROM table_name_43 WHERE bronze = 7 AND silver > 12
CREATE TABLE table_name_43 (total INTEGER, bronze VARCHAR, silver VARCHAR)
What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?
SELECT MIN(gold) FROM table_name_4 WHERE total = 37 AND rank = "1" AND bronze > 7
CREATE TABLE table_name_4 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)
What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals?
SELECT score FROM table_name_84 WHERE opponent = "yuliya ustyuzhanina"
CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR)
Name the score for yuliya ustyuzhanina
SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach"
CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
Name the date for hard surface and tournament of fort walton beach
SELECT opponent FROM table_name_7 WHERE score = "1–6, 6–4, 6–4"
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)
Name the opponent with score of 1–6, 6–4, 6–4
SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar"
CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR)
Name the score for 10 april 2007 and opponent of selima sfar
SELECT COUNT(runners) FROM table_name_34 WHERE placing > 8
CREATE TABLE table_name_34 (runners VARCHAR, placing INTEGER)
How many runners had placings over 8?
SELECT course FROM table_name_22 WHERE jockey = "royston ffrench"
CREATE TABLE table_name_22 (course VARCHAR, jockey VARCHAR)
Which course had a jockey of Royston FFrench?
SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = "buttercross limited stakes"
CREATE TABLE table_name_33 (prize__ INTEGER, race VARCHAR)
What is the average prize for the Buttercross Limited Stakes?
SELECT SUM(runners) FROM table_name_81 WHERE jockey = "olivier peslier" AND placing < 2
CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR)
How many total runners had jockeys of Olivier Peslier with placings under 2?
SELECT games FROM table_name_71 WHERE marks = "21"
CREATE TABLE table_name_71 (games VARCHAR, marks VARCHAR)
Name the games with marks of 21
SELECT kicks FROM table_name_40 WHERE goals = "1"
CREATE TABLE table_name_40 (kicks VARCHAR, goals VARCHAR)
Name the kicks with goals of 1
SELECT goals FROM table_name_65 WHERE games = "6"
CREATE TABLE table_name_65 (goals VARCHAR, games VARCHAR)
Name the goals with games of 6
SELECT date FROM table_name_35 WHERE final_score = "7-23"
CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)
What game had the date was it with the final score of 7-23
SELECT final_score FROM table_name_74 WHERE stadium = "astrodome"
CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR)
What was the final score of the game at the astrodome?
SELECT final_score FROM table_name_99 WHERE date = "december 30"
CREATE TABLE table_name_99 (final_score VARCHAR, date VARCHAR)
What was the final score for the date of December 30?
SELECT visiting_team FROM table_name_90 WHERE stadium = "jack murphy stadium"
CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)
What was the name of the Visiting team at Jack Murphy Stadium?
SELECT host_team FROM table_name_1 WHERE stadium = "texas stadium"
CREATE TABLE table_name_1 (host_team VARCHAR, stadium VARCHAR)
What was the name of the host team at Texas stadium?
SELECT host_team FROM table_name_39 WHERE date = "december 16"
CREATE TABLE table_name_39 (host_team VARCHAR, date VARCHAR)
What was the name of the host team dated December 16?
SELECT team FROM table_name_21 WHERE year > 1997
CREATE TABLE table_name_21 (team VARCHAR, year INTEGER)
Are there any Teams after 1997?
SELECT class FROM table_name_85 WHERE laps < 77
CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER)
Which class has laps under 77?
SELECT boarded FROM table_name_48 WHERE class = "first"
CREATE TABLE table_name_48 (boarded VARCHAR, class VARCHAR)
Who boarded first class?
SELECT MIN(attendance) FROM table_name_80 WHERE away_fans < 151 AND opponent = "bury"
CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR)
What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?
SELECT MIN(points) FROM table_name_15 WHERE year = 1978 AND chassis = "ensign n177"
CREATE TABLE table_name_15 (points INTEGER, year VARCHAR, chassis VARCHAR)
What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?
SELECT MAX(points) FROM table_name_8 WHERE entrant = "warsteiner brewery"
CREATE TABLE table_name_8 (points INTEGER, entrant VARCHAR)
What are the highest number of points with an Entrant of warsteiner brewery?
SELECT d_43 FROM table_name_68 WHERE d_46 = "r 6"
CREATE TABLE table_name_68 (d_43 VARCHAR, d_46 VARCHAR)
What is the D 43 when D 46 is R 6?
SELECT d_44 FROM table_name_64 WHERE d_43 = "r 14"
CREATE TABLE table_name_64 (d_44 VARCHAR, d_43 VARCHAR)
What is the D44 when D43 is R 14?
SELECT d_48 FROM table_name_27 WHERE d_43 = "plurality ↑"
CREATE TABLE table_name_27 (d_48 VARCHAR, d_43 VARCHAR)
What is the D48 when D 43 is plurality ↑??
SELECT d_44 FROM table_name_70 WHERE d_41 = "d 16"
CREATE TABLE table_name_70 (d_44 VARCHAR, d_41 VARCHAR)
What is the D44 when D41 is D 16?
SELECT gender FROM table_name_95 WHERE decile = 5 AND area = "dalefield"
CREATE TABLE table_name_95 (gender VARCHAR, decile VARCHAR, area VARCHAR)
What gender is the team that has a decile of 5 and in the Dalefield area?
SELECT name FROM table_name_61 WHERE roll < 81 AND area = "dalefield"
CREATE TABLE table_name_61 (name VARCHAR, roll VARCHAR, area VARCHAR)
What school in Dalefield has a roll less than 81?
SELECT MIN(height__m_) FROM table_name_22 WHERE island = "burray"
CREATE TABLE table_name_22 (height__m_ INTEGER, island VARCHAR)
What is the lowest Height (m) on the island of Burray?
SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = "0" AND island = "faray"
CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR)
What group on the island of Faray has a Height (m) of 32 and a Population of 0?
SELECT group FROM table_name_23 WHERE population = "see hoy"
CREATE TABLE table_name_23 (group VARCHAR, population VARCHAR)
What group has a Population of see hoy?
SELECT group FROM table_name_49 WHERE population = "0" AND island = "muckle green holm"
CREATE TABLE table_name_49 (group VARCHAR, population VARCHAR, island VARCHAR)
What group on the island of Muckle Green Holm has a population of 0?
SELECT area___ha__ FROM table_name_31 WHERE height__m_ > 7 AND island = "linga holm"
CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR)
What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?
SELECT population FROM table_name_30 WHERE height__m_ = 15 AND area___ha__ = "00017 17"
CREATE TABLE table_name_30 (population VARCHAR, height__m_ VARCHAR, area___ha__ VARCHAR)
What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?
SELECT roll FROM table_name_86 WHERE area = "aramoho" AND decile = 1
CREATE TABLE table_name_86 (roll VARCHAR, area VARCHAR, decile VARCHAR)
What is the roll number of the school in Aramoho with a decile of 1?
SELECT area FROM table_name_54 WHERE name = "mangamahu primary school"
CREATE TABLE table_name_54 (area VARCHAR, name VARCHAR)
What is the area of Mangamahu primary school?
SELECT area FROM table_name_17 WHERE authority = "state" AND gender = "coed" AND roll = 122
CREATE TABLE table_name_17 (area VARCHAR, roll VARCHAR, authority VARCHAR, gender VARCHAR)
What is the area of the coed school with a state authority and a roll number of 122?
SELECT result___category FROM table_name_18 WHERE year < 2007
CREATE TABLE table_name_18 (result___category VARCHAR, year INTEGER)
Which result is older than 2007?
SELECT SUM(year) FROM table_name_39 WHERE album___song = "speaking louder than before"
CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR)
What year was the Album/Song Speaking louder than before?
SELECT MAX(year) FROM table_name_19 WHERE album___song = "the best worst-case scenario"
CREATE TABLE table_name_19 (year INTEGER, album___song VARCHAR)
What is the most recent year with the Album/Song "the best worst-case scenario"?
SELECT score FROM table_name_23 WHERE surface = "clay" AND partner = "remi tezuka"
CREATE TABLE table_name_23 (score VARCHAR, surface VARCHAR, partner VARCHAR)
What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface?
SELECT score FROM table_name_59 WHERE partner = "ksenia lykina" AND tournament = "kurume"
CREATE TABLE table_name_59 (score VARCHAR, partner VARCHAR, tournament VARCHAR)
What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament?
SELECT score FROM table_name_27 WHERE partner = "katie o'brien"
CREATE TABLE table_name_27 (score VARCHAR, partner VARCHAR)
What was the score of the final in which Melanie South played with partner Katie O'Brien?
SELECT outcome FROM table_name_82 WHERE tournament = "edinburgh"
CREATE TABLE table_name_82 (outcome VARCHAR, tournament VARCHAR)
What was the outcome of the tournament in Edinburgh?
SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school"
CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR)
What is the total decile with an Authority of state, and a Name of newfield park school?
SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = "coed" AND authority = "state integrated" AND area = "georgetown"
CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR)
What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?
SELECT MIN(roll) FROM table_name_97 WHERE authority = "state" AND name = "newfield park school" AND decile < 2
CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR)
What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?
SELECT name FROM table_name_65 WHERE area = "makarewa"
CREATE TABLE table_name_65 (name VARCHAR, area VARCHAR)
Which name has an Area of makarewa?
SELECT name FROM table_name_35 WHERE gender = "coed" AND decile > 5 AND roll = 131
CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR)
Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131?
SELECT SUM(ends) FROM table_name_65 WHERE goals < 0
CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER)
Add up all the Ends columns that have goals smaller than 0.
SELECT competition FROM table_name_43 WHERE year = 2003
CREATE TABLE table_name_43 (competition VARCHAR, year VARCHAR)
What was the competition in 2003?
SELECT competition FROM table_name_76 WHERE year = 2003
CREATE TABLE table_name_76 (competition VARCHAR, year VARCHAR)
What was the competition in 2003?
SELECT MAX(position) FROM table_name_92 WHERE points = "50+12" AND draws < 10
CREATE TABLE table_name_92 (position INTEGER, points VARCHAR, draws VARCHAR)
Which position has 50+12 points and fewer than 10 draws?
SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38
CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR)
How many positions have goals of fewer than 40 and more than 38 played?
SELECT SUM(losses) FROM table_name_26 WHERE goal_difference < -2 AND club = "cd sabadell" AND played > 38
CREATE TABLE table_name_26 (losses INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)
How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?
SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = "30-8"
CREATE TABLE table_name_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR)
What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points?
SELECT COUNT(loss) FROM table_name_86 WHERE avg_g < -3.3 AND gain > 126
CREATE TABLE table_name_86 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR)
What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126?
SELECT COUNT(loss) FROM table_name_41 WHERE gain > 27 AND avg_g < 55.9 AND name = "jackson, t." AND long < 34
CREATE TABLE table_name_41 (loss VARCHAR, long VARCHAR, name VARCHAR, gain VARCHAR, avg_g VARCHAR)
What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had?
SELECT COUNT(long) FROM table_name_45 WHERE loss = 0 AND gain < 17 AND avg_g > 0 AND name = "dubose, e."
CREATE TABLE table_name_45 (long VARCHAR, name VARCHAR, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?
SELECT date FROM table_name_38 WHERE record = "20–16"
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
What date was the record 20–16?
SELECT attendance FROM table_name_43 WHERE opponent = "brewers" AND score = "9–6"
CREATE TABLE table_name_43 (attendance VARCHAR, opponent VARCHAR, score VARCHAR)
What was the attendance in the gave versus the Brewers with a score of 9–6?
SELECT attendance FROM table_name_90 WHERE date = "may 26"
CREATE TABLE table_name_90 (attendance VARCHAR, date VARCHAR)
What was the attendance on May 26?
SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127
CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR)
Matches of 127 has how many total number of inns?
SELECT MIN(runs) FROM table_name_83 WHERE name = "clem hill" AND inns > 126
CREATE TABLE table_name_83 (runs INTEGER, name VARCHAR, inns VARCHAR)
Name of clem hill, and Inns larger than 126 has the lowest runs?
SELECT COUNT(matches) FROM table_name_24 WHERE runs < 6106 AND inns < 146
CREATE TABLE table_name_24 (matches VARCHAR, runs VARCHAR, inns VARCHAR)
Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?
SELECT MAX(inns) FROM table_name_64 WHERE seasons = "1987–2007" AND runs > 11622
CREATE TABLE table_name_64 (inns INTEGER, seasons VARCHAR, runs VARCHAR)
Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?
SELECT partner FROM table_name_46 WHERE opponents_in_the_final = "františek čermák michal mertiňák"
CREATE TABLE table_name_46 (partner VARCHAR, opponents_in_the_final VARCHAR)
Name the partner for opponents of františek čermák michal mertiňák
SELECT score_in_the_final FROM table_name_63 WHERE date = "january 12, 2013"
CREATE TABLE table_name_63 (score_in_the_final VARCHAR, date VARCHAR)
Name the score in the final for january 12, 2013
SELECT opponents_in_the_final FROM table_name_19 WHERE outcome = "runner-up" AND date = "august 7, 2011"
CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
Name the opponents for outcome of runner-up and date of august 7, 2011
SELECT partner FROM table_name_22 WHERE surface = "grass" AND opponents_in_the_final = "jürgen melzer philipp petzschner"
CREATE TABLE table_name_22 (partner VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR)
Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner
SELECT score_in_the_final FROM table_name_1 WHERE outcome = "runner-up" AND surface = "hard" AND opponents_in_the_final = "michaël llodra nenad zimonjić"
CREATE TABLE table_name_1 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić
SELECT launched FROM table_name_45 WHERE ship = "wyandotte"
CREATE TABLE table_name_45 (launched VARCHAR, ship VARCHAR)
What date was the ship 'Wyandotte' launched?
SELECT renamed FROM table_name_58 WHERE ship = "ajax"
CREATE TABLE table_name_58 (renamed VARCHAR, ship VARCHAR)
What was the original name of the ship 'Ajax'?
SELECT commissioned_or_completed_ * _ FROM table_name_60 WHERE ship = "manhattan"
CREATE TABLE table_name_60 (commissioned_or_completed_ VARCHAR, _ VARCHAR, ship VARCHAR)
What date was the ship named Manhattan completed?
SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004
CREATE TABLE table_name_77 (class VARCHAR, laps VARCHAR, year VARCHAR)
What class had fewer than 336 laps in 2004?
SELECT AVG(attendance) FROM table_name_72 WHERE game < 1
CREATE TABLE table_name_72 (attendance INTEGER, game INTEGER)
What is the average attendance of game 1?
SELECT MAX(attendance) FROM table_name_38 WHERE time = "2:07"
CREATE TABLE table_name_38 (attendance INTEGER, time VARCHAR)
What is the attendance amount of the race with a time of 2:07?
SELECT club FROM table_name_33 WHERE goals_for < 61 AND goals_against = 55
CREATE TABLE table_name_33 (club VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
What club has less than 61 goals for and 55 goals against?
SELECT COUNT(draws) FROM table_name_29 WHERE points = "45+7" AND position < 3
CREATE TABLE table_name_29 (draws VARCHAR, points VARCHAR, position VARCHAR)
What is the amount of Draws for the game that had a score of 45+7 and a position below 3?
SELECT MIN(draws) FROM table_name_86 WHERE goal_difference > -16 AND club = "elche cf" AND played > 38
CREATE TABLE table_name_86 (draws INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)
What was the number of draws when the Elche CF club played 38 and had a goal difference of -16?
SELECT recipient FROM table_name_7 WHERE year < 2008
CREATE TABLE table_name_7 (recipient VARCHAR, year INTEGER)
Who was the recipient for Outstanding actress television series prior to 2008?
SELECT opponent FROM table_name_67 WHERE record = "71-78"
CREATE TABLE table_name_67 (opponent VARCHAR, record VARCHAR)
Who was the opponent at the game when the record was 71-78?
SELECT date FROM table_name_2 WHERE loss = "risley (0-1)"
CREATE TABLE table_name_2 (date VARCHAR, loss VARCHAR)
What was the date of the game that had a loss of Risley (0-1)?