answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT finish FROM table_name_69 WHERE qual = "143.056"
CREATE TABLE table_name_69 (finish VARCHAR, qual VARCHAR)
What finish has a 143.056 qual?
SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5"
CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR)
What rank had more than 165 laps and a finish of 5?
SELECT record FROM table_name_22 WHERE opponent = "blue jays" AND loss = "batista (0–3)"
CREATE TABLE table_name_22 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
What was the record at the game against the Blue Jays with a loss of Batista (0–3)?
SELECT loss FROM table_name_90 WHERE record = "14–8"
CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR)
What was the loss of the game when the record was 14–8?
SELECT score FROM table_name_62 WHERE record = "28–19"
CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR)
What was the score of the game when the record was 28–19?
SELECT record FROM table_name_94 WHERE date = "may 1" AND loss = "speier (1–3)"
CREATE TABLE table_name_94 (record VARCHAR, date VARCHAR, loss VARCHAR)
What was the record at the game held on May 1st with a loss of Speier (1–3)?
SELECT played FROM table_name_75 WHERE lost < 12 AND points > 37 AND drawn = 5
CREATE TABLE table_name_75 (played VARCHAR, drawn VARCHAR, lost VARCHAR, points VARCHAR)
How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points?
SELECT AVG(lost) FROM table_name_83 WHERE drawn = 5 AND points > 41
CREATE TABLE table_name_83 (lost INTEGER, drawn VARCHAR, points VARCHAR)
How many games lost for the team that drew 5 times and had over 41 points?
SELECT COUNT(played) FROM table_name_81 WHERE drawn < 5 AND team = "army" AND points > 51
CREATE TABLE table_name_81 (played VARCHAR, points VARCHAR, drawn VARCHAR, team VARCHAR)
How many games played for the army team with over 51 points and under 5 games drawn?
SELECT SUM(points) FROM table_name_4 WHERE team = "navy" AND lost > 11
CREATE TABLE table_name_4 (points INTEGER, team VARCHAR, lost VARCHAR)
How many points for the navy team that lost over 11?
SELECT class FROM table_name_31 WHERE race_title = "xi coppa acerbo"
CREATE TABLE table_name_31 (class VARCHAR, race_title VARCHAR)
What class of car had the XI Coppa Acerbo title?
SELECT driver_s FROM table_name_67 WHERE race_title = "iii coppa acerbo"
CREATE TABLE table_name_67 (driver_s VARCHAR, race_title VARCHAR)
Who won the III Coppa Acerbo title?
SELECT race_title FROM table_name_81 WHERE vehicle = "maserati a6gcs"
CREATE TABLE table_name_81 (race_title VARCHAR, vehicle VARCHAR)
What's the name of the title for the Maserati A6GCS?
SELECT driver_s FROM table_name_81 WHERE class = "sports car" AND race_title = "xxiv gran premio di pescara"
CREATE TABLE table_name_81 (driver_s VARCHAR, class VARCHAR, race_title VARCHAR)
Who won the XXIV Gran Premio di Pescara in the sports car class?
SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta"
CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR)
What surface was the città di caltanissetta played on?
SELECT score FROM table_name_1 WHERE tournament = "volkswagen challenger"
CREATE TABLE table_name_1 (score VARCHAR, tournament VARCHAR)
What was the score in Volkswagen Challenger tournament?
SELECT 2010 FROM table_name_23 WHERE 2011 = "2,240,000"
CREATE TABLE table_name_23 (Id VARCHAR)
what is the production in 2010 with 2011 production of 2,240,000?
SELECT rank FROM table_name_52 WHERE 2010 = "2,903,000"
CREATE TABLE table_name_52 (rank VARCHAR)
what is the ranking for 2010 production of 2,903,000?
SELECT 2010 FROM table_name_39 WHERE rank = "8"
CREATE TABLE table_name_39 (rank VARCHAR)
what is the production in 2010 with rank of 8?
SELECT club FROM table_name_95 WHERE captain = "john hutchinson"
CREATE TABLE table_name_95 (club VARCHAR, captain VARCHAR)
What club captain is John Hutchinson in?
SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp"
CREATE TABLE table_name_13 (australian_marquee VARCHAR, captain VARCHAR)
What Australian Marquee team is Michael Beauchamp a captain of?
SELECT junior_marquee_player FROM table_name_22 WHERE captain = "harry kewell"
CREATE TABLE table_name_22 (junior_marquee_player VARCHAR, captain VARCHAR)
What Junior Marquee team is Harry Kewell of?
SELECT call_sign FROM table_name_33 WHERE frequency_mhz = "91.1 fm"
CREATE TABLE table_name_33 (call_sign VARCHAR, frequency_mhz VARCHAR)
What is the name of call sign that uses a Frequency MHz of 91.1 fm?
SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = "107.9 fm"
CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR)
How much is the total ERP W for an 107.9 fm freqeuncy MHz?
SELECT fcc_info FROM table_name_39 WHERE city_of_license = "harmony township, new jersey"
CREATE TABLE table_name_39 (fcc_info VARCHAR, city_of_license VARCHAR)
Can you tell me what is FCC info for harmony township, new jersey?
SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania"
CREATE TABLE table_name_66 (erp_w INTEGER, city_of_license VARCHAR)
What is the smallest ERP for allentown, pennsylvania?
SELECT AVG(grid) FROM table_name_42 WHERE time_retired = "+3.9 secs" AND laps < 96
CREATE TABLE table_name_42 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
Which grid has a time/retired of +3.9 secs in less than 96 laps?
SELECT driver FROM table_name_28 WHERE points = 7 AND team = "team australia"
CREATE TABLE table_name_28 (driver VARCHAR, points VARCHAR, team VARCHAR)
Which driver has 7 points for team Australia?
SELECT MIN(laps) FROM table_name_85 WHERE team = "dale coyne racing" AND time_retired = "mechanical" AND points < 5
CREATE TABLE table_name_85 (laps INTEGER, points VARCHAR, team VARCHAR, time_retired VARCHAR)
What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points?
SELECT MAX(points) FROM table_name_61 WHERE driver = "dan clarke" AND grid > 10
CREATE TABLE table_name_61 (points INTEGER, driver VARCHAR, grid VARCHAR)
What is the highest points total scored by Dan Clarke in a grid higher than 10?
SELECT MIN(total) FROM table_name_80 WHERE location = "boston, massachusetts"
CREATE TABLE table_name_80 (total INTEGER, location VARCHAR)
What is the earliest episode of the series that is set in Boston, Massachusetts?
SELECT sample_size FROM table_name_84 WHERE date_s__administered = "june 30, 2010"
CREATE TABLE table_name_84 (sample_size VARCHAR, date_s__administered VARCHAR)
How many people were surveyed in the poll from June 30, 2010?
SELECT meg_whitman__r_ FROM table_name_35 WHERE margin_of_error = "± 3.3%"
CREATE TABLE table_name_35 (meg_whitman__r_ VARCHAR, margin_of_error VARCHAR)
What percentage of the vote with a margin of error of ± 3.3% did Meg Whitman (R) get?
SELECT sample_size FROM table_name_61 WHERE poll_source = "rasmussen reports" AND date_s__administered = "october 13, 2010"
CREATE TABLE table_name_61 (sample_size VARCHAR, poll_source VARCHAR, date_s__administered VARCHAR)
How many people participated in the Rasmussen Reports poll on October 13, 2010?
SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010"
CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR)
What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.
SELECT prize FROM table_name_10 WHERE event = "ept deauville"
CREATE TABLE table_name_10 (prize VARCHAR, event VARCHAR)
What is the Prize, when the Event is Ept Deauville?
SELECT city FROM table_name_26 WHERE prize = "€880,000"
CREATE TABLE table_name_26 (city VARCHAR, prize VARCHAR)
What is the City, when the Prize is €880,000?
SELECT city FROM table_name_25 WHERE winner = "ruben visser"
CREATE TABLE table_name_25 (city VARCHAR, winner VARCHAR)
What is the City, when the Winner is Ruben Visser?
SELECT winner FROM table_name_98 WHERE prize = "€880,000"
CREATE TABLE table_name_98 (winner VARCHAR, prize VARCHAR)
Who is the Winner, when the Prize is €880,000?
SELECT city FROM table_name_17 WHERE prize = "$1,859,000"
CREATE TABLE table_name_17 (city VARCHAR, prize VARCHAR)
What is the City, when the Prize is $1,859,000?
SELECT prize FROM table_name_11 WHERE event = "ept sanremo"
CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR)
What is the Prize, when the Event is Ept Sanremo?
SELECT date FROM table_name_97 WHERE venue = "edgbaston"
CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR)
On what date was the venue at Edgbaston?
SELECT MIN(image) FROM table_name_51 WHERE harrison = "20w" AND ashmolean < 20
CREATE TABLE table_name_51 (image INTEGER, harrison VARCHAR, ashmolean VARCHAR)
What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean?
SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = "14s" AND image < 542
CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR)
What is the number of Ashmolean with 14s Harrison, and image less than 542?
SELECT cooper FROM table_name_43 WHERE ashmolean < 21 AND hahland < 4
CREATE TABLE table_name_43 (cooper VARCHAR, ashmolean VARCHAR, hahland VARCHAR)
What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?
SELECT smith FROM table_name_62 WHERE ashmolean = 16
CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR)
What is the smith with a 16 ashmolean?
SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)"
CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR)
What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?
SELECT MAX(red_list) FROM table_name_70 WHERE family = "muridae" AND species_authority = "microtus pinetorum (le conte, 1830)"
CREATE TABLE table_name_70 (red_list INTEGER, family VARCHAR, species_authority VARCHAR)
What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?
SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825"
CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR)
What is the name for the species Authority of sigmodon hispidus say & ord, 1825?
SELECT MAX(total) FROM table_name_73 WHERE silver = 1 AND rank > 7
CREATE TABLE table_name_73 (total INTEGER, silver VARCHAR, rank VARCHAR)
What is the largest total with a Silver of 1, and a Rank larger than 7?
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 6
CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR)
How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6?
SELECT MIN(silver) FROM table_name_33 WHERE bronze < 6 AND total = 3 AND rank < 9
CREATE TABLE table_name_33 (silver INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR)
What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9?
SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1
CREATE TABLE table_name_14 (rank VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR)
How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1?
SELECT SUM(total) FROM table_name_22 WHERE bronze = 0 AND gold < 0
CREATE TABLE table_name_22 (total INTEGER, bronze VARCHAR, gold VARCHAR)
How many totals have a Bronze of 0, and a Gold smaller than 0?
SELECT SUM(silver) FROM table_name_94 WHERE rank > 9 AND total > 1
CREATE TABLE table_name_94 (silver INTEGER, rank VARCHAR, total VARCHAR)
What is the total silver with a Rank larger than 9, and a Total larger than 1?
SELECT percentage___percentage_ FROM table_name_31 WHERE males = "1"
CREATE TABLE table_name_31 (percentage___percentage_ VARCHAR, males VARCHAR)
Which language do 1% of males speak?
SELECT males FROM table_name_44 WHERE percentage___percentage_ = "87.5"
CREATE TABLE table_name_44 (males VARCHAR, percentage___percentage_ VARCHAR)
Which language do 87.5% of males speak?
SELECT females FROM table_name_10 WHERE number = "706"
CREATE TABLE table_name_10 (females VARCHAR, number VARCHAR)
Which language do 706 females speak?
SELECT females FROM table_name_11 WHERE language = "ukrainian"
CREATE TABLE table_name_11 (females VARCHAR, language VARCHAR)
How many females speak Ukrainian?
SELECT SUM(position) FROM table_name_98 WHERE goal_difference < -11 AND played < 38
CREATE TABLE table_name_98 (position INTEGER, goal_difference VARCHAR, played VARCHAR)
What was the position of the team that had a goal difference of less than -11 and played less than 38 games?
SELECT MAX(played) FROM table_name_61 WHERE goal_difference < 27 AND losses > 13 AND goals_for < 42 AND draws = 6
CREATE TABLE table_name_61 (played INTEGER, draws VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, losses VARCHAR)
Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games?
SELECT COUNT(wins) FROM table_name_96 WHERE goals_against < 32
CREATE TABLE table_name_96 (wins VARCHAR, goals_against INTEGER)
What was the number of wins with goals against of less than 32?
SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt"
CREATE TABLE table_name_37 (in_service INTEGER, aircraft VARCHAR)
How many Antonov An-2 Colt aircraft are in service?
SELECT name FROM table_name_67 WHERE position = "rb"
CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR)
for the position of rb what is the name?
SELECT last_update FROM table_name_75 WHERE name = "joe surratt"
CREATE TABLE table_name_75 (last_update VARCHAR, name VARCHAR)
for the name of joe surratt what is the last update?
SELECT last_update FROM table_name_81 WHERE name = "jamar jackson"
CREATE TABLE table_name_81 (last_update VARCHAR, name VARCHAR)
for the name of jamar jackson what is the last update?
SELECT class FROM table_name_87 WHERE name = "jamar jackson"
CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR)
for the name of jamar jackson what is the class?
SELECT COUNT(number) FROM table_name_99 WHERE name = "jamar jackson"
CREATE TABLE table_name_99 (number VARCHAR, name VARCHAR)
for the name of jamar jackson what is the total of Number?
SELECT term_in_office FROM table_name_68 WHERE state = "vic" AND member = "stewart mcarthur"
CREATE TABLE table_name_68 (term_in_office VARCHAR, state VARCHAR, member VARCHAR)
What term did Stewart Mcarthur from Vic serve in office?
SELECT party FROM table_name_70 WHERE member = "hon paul keating"
CREATE TABLE table_name_70 (party VARCHAR, member VARCHAR)
What is Hon Paul Keating's Party?
SELECT member FROM table_name_73 WHERE party = "liberal" AND electorate = "bruce"
CREATE TABLE table_name_73 (member VARCHAR, party VARCHAR, electorate VARCHAR)
What member is in the liberal party and has an electorate of bruce?
SELECT electorate FROM table_name_6 WHERE state = "vic" AND party = "labor" AND member = "david charles"
CREATE TABLE table_name_6 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)
Which Electorate is from vic, a labor party, and is David Charles a member of?
SELECT format FROM table_name_59 WHERE label = "alfa records" AND date = "july 27, 1994"
CREATE TABLE table_name_59 (format VARCHAR, label VARCHAR, date VARCHAR)
Name the format on july 27, 1994 for alfa records
SELECT region FROM table_name_43 WHERE format = "cd" AND catalog = "alca-9203"
CREATE TABLE table_name_43 (region VARCHAR, format VARCHAR, catalog VARCHAR)
Name the region for cd with catalog of alca-9203
SELECT date FROM table_name_6 WHERE label = "alfa records" AND catalog = "alr-28045"
CREATE TABLE table_name_6 (date VARCHAR, label VARCHAR, catalog VARCHAR)
Name the date for alfa records and catalog of alr-28045
SELECT region FROM table_name_30 WHERE format = "cd" AND date = "february 22, 1984"
CREATE TABLE table_name_30 (region VARCHAR, format VARCHAR, date VARCHAR)
Name the region for cd format on february 22, 1984
SELECT region FROM table_name_6 WHERE date = "february 14, 2002"
CREATE TABLE table_name_6 (region VARCHAR, date VARCHAR)
Name the region for february 14, 2002
SELECT AVG(first_game) FROM table_name_16 WHERE lost > 16
CREATE TABLE table_name_16 (first_game INTEGER, lost INTEGER)
What First game has a Lost greater than 16?
SELECT percentage FROM table_name_80 WHERE first_game = 1998
CREATE TABLE table_name_80 (percentage VARCHAR, first_game VARCHAR)
What Percentage did the First game of 1998 have?
SELECT player FROM table_name_97 WHERE bowling = "4-15"
CREATE TABLE table_name_97 (player VARCHAR, bowling VARCHAR)
What bowler has a record of 4-15?
SELECT rank FROM table_name_69 WHERE player = "james franklin"
CREATE TABLE table_name_69 (rank VARCHAR, player VARCHAR)
What ranking is james franklin?
SELECT venue FROM table_name_14 WHERE player = "tim southee"
CREATE TABLE table_name_14 (venue VARCHAR, player VARCHAR)
what venue does tim southee bowl at?
SELECT regular_season FROM table_name_38 WHERE year = "2012"
CREATE TABLE table_name_38 (regular_season VARCHAR, year VARCHAR)
What was the regular season for 2012?
SELECT MIN(division) FROM table_name_91 WHERE playoffs = "did not qualify" AND open_cup = "did not qualify" AND year = "2002"
CREATE TABLE table_name_91 (division INTEGER, year VARCHAR, playoffs VARCHAR, open_cup VARCHAR)
What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?
SELECT chassis FROM table_name_40 WHERE points > 0
CREATE TABLE table_name_40 (chassis VARCHAR, points INTEGER)
What chassis has more than 0 points?
SELECT COUNT(points) FROM table_name_95 WHERE year < 1955
CREATE TABLE table_name_95 (points VARCHAR, year INTEGER)
How many points were there before 1955?
SELECT MIN(points) FROM table_name_5 WHERE chassis = "epperly indy roadster" AND year = 1959
CREATE TABLE table_name_5 (points INTEGER, chassis VARCHAR, year VARCHAR)
What is the lowest amount of points held by the Epperly Indy roadster in 1959?
SELECT chassis FROM table_name_3 WHERE points > 0
CREATE TABLE table_name_3 (chassis VARCHAR, points INTEGER)
What Chassis has more than 0 points?
SELECT date FROM table_name_15 WHERE attendance = "4,286"
CREATE TABLE table_name_15 (date VARCHAR, attendance VARCHAR)
What is the date that 4,286 attended?
SELECT game_site FROM table_name_64 WHERE opponent = "cf pachuca"
CREATE TABLE table_name_64 (game_site VARCHAR, opponent VARCHAR)
Where does CF Pachuca play?
SELECT attendance FROM table_name_21 WHERE game_site = "cup quarterfinals"
CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR)
What was the attendance of the Cup Quarterfinals game?
SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd"
CREATE TABLE table_name_19 (Id VARCHAR)
What shows for 2000 when 2013 shows 3rd?
SELECT 2004 FROM table_name_17 WHERE 2013 = "3rd"
CREATE TABLE table_name_17 (Id VARCHAR)
What is the 2004 when 2013 is 3rd?
SELECT 2009 FROM table_name_39 WHERE 2013 = "4th"
CREATE TABLE table_name_39 (Id VARCHAR)
What is the 2009 when the 2013 is 4th?
SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th"
CREATE TABLE table_name_4 (total VARCHAR)
What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?
SELECT winning_score FROM table_name_14 WHERE championship = "pga championship"
CREATE TABLE table_name_14 (winning_score VARCHAR, championship VARCHAR)
What was the winning score in the PGA Championship?
SELECT SUM(draws) FROM table_name_55 WHERE losses = 1
CREATE TABLE table_name_55 (draws INTEGER, losses VARCHAR)
How many draws with 1 loss?
SELECT COUNT(losses) FROM table_name_98 WHERE name = "alex wilkinson"
CREATE TABLE table_name_98 (losses VARCHAR, name VARCHAR)
How many losses does Alex Wilkinson have?
SELECT type FROM table_name_53 WHERE principal_activities = "headquarters"
CREATE TABLE table_name_53 (type VARCHAR, principal_activities VARCHAR)
Name the type for headquarters principal activites.
SELECT incorporated_in FROM table_name_73 WHERE principal_activities = "travel agency"
CREATE TABLE table_name_73 (incorporated_in VARCHAR, principal_activities VARCHAR)
Name the incorporated for principal activites of travel agency