answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(number_of_seats) FROM table_name_21 WHERE current_status = "retired" AND quantity < 8
CREATE TABLE table_name_21 (number_of_seats INTEGER, current_status VARCHAR, quantity VARCHAR)
What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?
SELECT MIN(number_of_seats) FROM table_name_93 WHERE current_status = "retired" AND year_placed_in_service = "1981"
CREATE TABLE table_name_93 (number_of_seats INTEGER, current_status VARCHAR, year_placed_in_service VARCHAR)
What is the smallest number of seats in a retired vehicle that was started in service in 1981?
SELECT height FROM table_name_42 WHERE name = "trevard lindley"
CREATE TABLE table_name_42 (height VARCHAR, name VARCHAR)
What is Trevard Lindley's height?
SELECT class FROM table_name_87 WHERE games↑ = 2 AND name = "ashton cobb"
CREATE TABLE table_name_87 (class VARCHAR, games↑ VARCHAR, name VARCHAR)
What is Ashton Cobb's class in Game 2?
SELECT MIN(games) AS ↑ FROM table_name_2 WHERE position = "re" AND number < 95
CREATE TABLE table_name_2 (games INTEGER, position VARCHAR, number VARCHAR)
What is the earliest game with a position of Re and a smaller number than 95?
SELECT quarterback FROM table_name_33 WHERE career_wins > 81 AND teams = "seattle" AND team_wins < 70
CREATE TABLE table_name_33 (quarterback VARCHAR, team_wins VARCHAR, career_wins VARCHAR, teams VARCHAR)
Which Seattle quarterback has more than 81 career wins and less than 70 team wins?
SELECT MIN(overall) FROM table_name_61 WHERE name = "mike harris"
CREATE TABLE table_name_61 (overall INTEGER, name VARCHAR)
What is Mike Harris' lowest overall?
SELECT MAX(pick__number) FROM table_name_81 WHERE overall = 228 AND round < 7
CREATE TABLE table_name_81 (pick__number INTEGER, overall VARCHAR, round VARCHAR)
What is the highest pick # that has a 228 overall and a round less than 7?
SELECT value FROM table_name_82 WHERE type = "negative infinity"
CREATE TABLE table_name_82 (value VARCHAR, type VARCHAR)
What value has negative infinity?
SELECT exponent_field FROM table_name_93 WHERE exp__biased_ = "255" AND value = "+∞"
CREATE TABLE table_name_93 (exponent_field VARCHAR, exp__biased_ VARCHAR, value VARCHAR)
What's the exponent field that has 255 exp and value of +∞?
SELECT type FROM table_name_29 WHERE value = "0.0"
CREATE TABLE table_name_29 (type VARCHAR, value VARCHAR)
What's the type of 0.0 value?
SELECT significand__fraction_field_ FROM table_name_2 WHERE value = "1.0"
CREATE TABLE table_name_2 (significand__fraction_field_ VARCHAR, value VARCHAR)
What's the Significant of a value 1.0?
SELECT MIN(round) FROM table_name_19 WHERE pick__number = 8 AND college = "temple" AND overall > 72
CREATE TABLE table_name_19 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR)
What is the lowest round of the pick #8 player with an overall greater than 72 from the college of temple?
SELECT MIN(overall) FROM table_name_19 WHERE position = "wide receiver" AND round < 5 AND pick__number > 7
CREATE TABLE table_name_19 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)
What is the lowest overall of the wide receiver player from a round higher than 5 and a pick lower than 7?
SELECT overall FROM table_name_91 WHERE position = "running back"
CREATE TABLE table_name_91 (overall VARCHAR, position VARCHAR)
What is the overall of the running back player?
SELECT general_classification FROM table_name_18 WHERE team_classification = "japan"
CREATE TABLE table_name_18 (general_classification VARCHAR, team_classification VARCHAR)
What is the general classification when the team classification is japan?
SELECT stage FROM table_name_68 WHERE team_classification = "tabriz petrochemical team"
CREATE TABLE table_name_68 (stage VARCHAR, team_classification VARCHAR)
Which stage had tabriz petrochemical team in the team classification?
SELECT stage FROM table_name_59 WHERE malaysian_rider_classification = "suhardi hassan"
CREATE TABLE table_name_59 (stage VARCHAR, malaysian_rider_classification VARCHAR)
Which stage had suhardi hassan in the Malaysian rider classification?
SELECT COUNT(drawn) FROM table_name_53 WHERE points = 6 AND lost < 4
CREATE TABLE table_name_53 (drawn VARCHAR, points VARCHAR, lost VARCHAR)
How many drawn have points of 6 and lost by fewer than 4?
SELECT MIN(game) FROM table_name_48 WHERE record = "23–6–4"
CREATE TABLE table_name_48 (game INTEGER, record VARCHAR)
What was the earliest game with a record of 23–6–4?
SELECT MIN(game) FROM table_name_96 WHERE record = "16–4–3"
CREATE TABLE table_name_96 (game INTEGER, record VARCHAR)
What was the earliest game with a record of 16–4–3?
SELECT MAX(erp_w) FROM table_name_3 WHERE call_sign = "w255bi"
CREATE TABLE table_name_3 (erp_w INTEGER, call_sign VARCHAR)
Which ERP W is the highest one that has a Call sign of w255bi?
SELECT fcc_info FROM table_name_96 WHERE frequency_mhz = 100.7
CREATE TABLE table_name_96 (fcc_info VARCHAR, frequency_mhz VARCHAR)
Which FCC info has a Frequency MHz of 100.7?
SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w264bg"
CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR)
How much Frequency MHz has a Call sign of w264bg?
SELECT MIN(erp_w) FROM table_name_47 WHERE call_sign = "w233be"
CREATE TABLE table_name_47 (erp_w INTEGER, call_sign VARCHAR)
Which ERP W is the lowest one that has a Call sign of w233be?
SELECT fcc_info FROM table_name_84 WHERE frequency_mhz > 102.3
CREATE TABLE table_name_84 (fcc_info VARCHAR, frequency_mhz INTEGER)
Which FCC info has a Frequency MHz larger than 102.3?
SELECT date_given FROM table_name_35 WHERE head_of_household = "rica"
CREATE TABLE table_name_35 (date_given VARCHAR, head_of_household VARCHAR)
What date was Rica head of household?
SELECT MAX(task_no) FROM table_name_16 WHERE head_of_household = "cathy"
CREATE TABLE table_name_16 (task_no INTEGER, head_of_household VARCHAR)
What is the latest task number for which Cathy is head of household?
SELECT head_of_household FROM table_name_39 WHERE task_no = 7
CREATE TABLE table_name_39 (head_of_household VARCHAR, task_no VARCHAR)
Who is the head of household for task number 7?
SELECT task_no FROM table_name_98 WHERE hand_grenade_user = "cathy"
CREATE TABLE table_name_98 (task_no VARCHAR, hand_grenade_user VARCHAR)
Which task had Cathy as the hand grenade user?
SELECT MAX(task_no) FROM table_name_94 WHERE date_given = "january 22, 2010 (day 111)"
CREATE TABLE table_name_94 (task_no INTEGER, date_given VARCHAR)
What is the task number on January 22, 2010 (day 111)?
SELECT record FROM table_name_86 WHERE streak = "win 7"
CREATE TABLE table_name_86 (record VARCHAR, streak VARCHAR)
What was the record in the win 7 streak?
SELECT score FROM table_name_46 WHERE opponent = "detroit pistons"
CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR)
What was the score when the opponent was Detroit Pistons?
SELECT date FROM table_name_50 WHERE streak = "won 8"
CREATE TABLE table_name_50 (date VARCHAR, streak VARCHAR)
What is the date when streak was won 8?
SELECT total_trips__am_pm_ FROM table_name_47 WHERE operated_by = "atlantic coast charters"
CREATE TABLE table_name_47 (total_trips__am_pm_ VARCHAR, operated_by VARCHAR)
What trips are operated by Atlantic coast charters?
SELECT AVG(week) FROM table_name_4 WHERE result = "l 10-7" AND attendance < 37 OFFSET 500
CREATE TABLE table_name_4 (week INTEGER, result VARCHAR, attendance VARCHAR)
What was the average week of a game with a result of l 10-7 attended by 37,500?
SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938"
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
What was the average attendance on October 30, 1938?
SELECT date FROM table_name_88 WHERE city = "belgrade" AND type_of_game = "friendly"
CREATE TABLE table_name_88 (date VARCHAR, city VARCHAR, type_of_game VARCHAR)
When did Yugoslavia play a friendly game in Belgrade?
SELECT date FROM table_name_94 WHERE type_of_game = "wc 1974 qualifying"
CREATE TABLE table_name_94 (date VARCHAR, type_of_game VARCHAR)
When was the WC 1974 Qualifying game?
SELECT city FROM table_name_2 WHERE opponent = "norway"
CREATE TABLE table_name_2 (city VARCHAR, opponent VARCHAR)
What city did Yugoslavia play Norway in?
SELECT opponent FROM table_name_90 WHERE results¹ = "2:3"
CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR)
Who did Yugoslavia play against that led to a result of 2:3?
SELECT score_in_final FROM table_name_75 WHERE outcome = "runner-up" AND date = "9 february 1992"
CREATE TABLE table_name_75 (score_in_final VARCHAR, outcome VARCHAR, date VARCHAR)
What is the final score of the runner-up on 9 February 1992?
SELECT opponent FROM table_name_79 WHERE time = "1:50"
CREATE TABLE table_name_79 (opponent VARCHAR, time VARCHAR)
Which opponent has a time of 1:50?
SELECT opponent FROM table_name_85 WHERE time = "2:35"
CREATE TABLE table_name_85 (opponent VARCHAR, time VARCHAR)
Which opponent has a time of 2:35?
SELECT time FROM table_name_27 WHERE opponent = "stephanie palmer"
CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR)
What is the time when the opponent is stephanie palmer?
SELECT tournament FROM table_name_99 WHERE opponent_in_the_final = "samantha stosur"
CREATE TABLE table_name_99 (tournament VARCHAR, opponent_in_the_final VARCHAR)
What tournament has Samantha Stosur as the opponent in the final?
SELECT date FROM table_name_36 WHERE tournament = "zürich, switzerland"
CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR)
What date is the zürich, switzerland tournament?
SELECT date FROM table_name_50 WHERE surface = "hard" AND tournament = "sydney, australia"
CREATE TABLE table_name_50 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
What is the date of the Sydney, Australia tournament with a hard surface?
SELECT result FROM table_name_78 WHERE date = "4 april 1993"
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
Which Result has a Date of 4 april 1993?
SELECT venue FROM table_name_53 WHERE result = "5-1" AND score = "3-0"
CREATE TABLE table_name_53 (venue VARCHAR, result VARCHAR, score VARCHAR)
Which Venue has a Result of 5-1, and a Score of 3-0?
SELECT score FROM table_name_68 WHERE result = "5-1"
CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR)
Which Score has a Result of 5-1?
SELECT venue FROM table_name_72 WHERE result = "5-1" AND score = "1-0"
CREATE TABLE table_name_72 (venue VARCHAR, result VARCHAR, score VARCHAR)
Which Venue has a Result of 5-1, and a Score of 1-0?
SELECT venue FROM table_name_18 WHERE result = "5-0"
CREATE TABLE table_name_18 (venue VARCHAR, result VARCHAR)
Which Venue has a Result of 5-0?
SELECT to_par FROM table_name_89 WHERE winner = "gary player"
CREATE TABLE table_name_89 (to_par VARCHAR, winner VARCHAR)
What did winner Gary Player par?
SELECT SUM(pata) FROM table_name_38 WHERE model = "nforce professional 3400 mcp"
CREATE TABLE table_name_38 (pata INTEGER, model VARCHAR)
How many PATAs does an nForce Professional 3400 MCP have?
SELECT pci_express FROM table_name_11 WHERE memory = "ddr 266/333/400 registered/ecc" AND sound = "enhanced ac'97 2.3"
CREATE TABLE table_name_11 (pci_express VARCHAR, memory VARCHAR, sound VARCHAR)
Which PCI-Express has a DDR 266/333/400 Registered/ECC memory and Enhanced AC'97 2.3 sound?
SELECT fsb_ht_frequency__mhz_ FROM table_name_79 WHERE sata > 6 AND memory = "ddr 266/333/400 registered/ecc"
CREATE TABLE table_name_79 (fsb_ht_frequency__mhz_ VARCHAR, sata VARCHAR, memory VARCHAR)
Which FSB/HT frequency (MHz) has a SATA larger than 6 and DDR 266/333/400 Registered/ECC memory?
SELECT network FROM table_name_29 WHERE model = "nforce professional 3400 mcp"
CREATE TABLE table_name_29 (network VARCHAR, model VARCHAR)
Which network has model nForce Professional 3400 MCP?
SELECT model FROM table_name_33 WHERE displacement = "1,868 cc"
CREATE TABLE table_name_33 (model VARCHAR, displacement VARCHAR)
What model has an engine of 1,868 cc?
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE round = 8
CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
What College team has 8 rounds?
SELECT nationality FROM table_name_47 WHERE player = "daryn fersovich"
CREATE TABLE table_name_47 (nationality VARCHAR, player VARCHAR)
What nationality is Daryn Fersovich?
SELECT date FROM table_name_8 WHERE ground = "subiaco"
CREATE TABLE table_name_8 (date VARCHAR, ground VARCHAR)
What day was the ground subiaco?
SELECT COUNT(crowd) FROM table_name_54 WHERE home_team = "melbourne"
CREATE TABLE table_name_54 (crowd VARCHAR, home_team VARCHAR)
What was the crowd size for the Home team of melbourne?
SELECT score FROM table_name_7 WHERE couple = "cristián & cheryl" AND style = "cha-cha-cha"
CREATE TABLE table_name_7 (score VARCHAR, couple VARCHAR, style VARCHAR)
Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
SELECT score FROM table_name_2 WHERE couple = "jason & edyta" AND style = "freestyle"
CREATE TABLE table_name_2 (score VARCHAR, couple VARCHAR, style VARCHAR)
Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?
SELECT music FROM table_name_20 WHERE style = "jive"
CREATE TABLE table_name_20 (music VARCHAR, style VARCHAR)
Which music is jive?
SELECT couple FROM table_name_82 WHERE result = "third place" AND style = "cha-cha-cha"
CREATE TABLE table_name_82 (couple VARCHAR, result VARCHAR, style VARCHAR)
Which Couple has a Result of third place, and a Style of cha-cha-cha?
SELECT score FROM table_name_18 WHERE result = "third place" AND style = "cha-cha-cha"
CREATE TABLE table_name_18 (score VARCHAR, result VARCHAR, style VARCHAR)
Which Score has a Result of third place, and a Style of cha-cha-cha?
SELECT music FROM table_name_22 WHERE score = "30 (10, 10, 10)" AND style = "cha-cha-cha"
CREATE TABLE table_name_22 (music VARCHAR, score VARCHAR, style VARCHAR)
Which Music has a Score of 30 (10, 10, 10), and a Style of cha-cha-cha?
SELECT australian_national_kennel_council_toy_dogs_group FROM table_name_98 WHERE the_kennel_club__uk__toy_group = "papillon"
CREATE TABLE table_name_98 (australian_national_kennel_council_toy_dogs_group VARCHAR, the_kennel_club__uk__toy_group VARCHAR)
What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed?
SELECT new_zealand_kennel_club_toy_group FROM table_name_26 WHERE australian_national_kennel_council_toy_dogs_group = "papillon"
CREATE TABLE table_name_26 (new_zealand_kennel_club_toy_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR)
What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?
SELECT canadian_kennel_club_toy_dogs_group FROM table_name_49 WHERE australian_national_kennel_council_toy_dogs_group = "australian silky terrier"
CREATE TABLE table_name_49 (canadian_kennel_club_toy_dogs_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR)
What is the Canadian Kennel Club Toy Dogs Group with the australian silky terrier as the Australian National Kennel Council Toy Dogs Group breed?
SELECT the_kennel_club__uk__toy_group FROM table_name_65 WHERE american_kennel_club_toy_group = "shih-tzu"
CREATE TABLE table_name_65 (the_kennel_club__uk__toy_group VARCHAR, american_kennel_club_toy_group VARCHAR)
What is the Kennel Club (UK) Toy Group with the shih-tzu as the American Kennel Club Toy Group breed?
SELECT prize FROM table_name_31 WHERE entrants = 453
CREATE TABLE table_name_31 (prize VARCHAR, entrants VARCHAR)
What prize amount was awarded at the event with 453 entrants?
SELECT results FROM table_name_78 WHERE runner_up = "michael demichele"
CREATE TABLE table_name_78 (results VARCHAR, runner_up VARCHAR)
What were the overall event results when Michael Demichele was runner-up?
SELECT MIN(entrants) FROM table_name_90 WHERE winner = "grant hinkle"
CREATE TABLE table_name_90 (entrants INTEGER, winner VARCHAR)
What was the fewest entrants in an event won by Grant Hinkle?
SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary"
CREATE TABLE table_name_21 (entrants INTEGER, winner VARCHAR)
How many entrants did the events won by Frank Gary average?
SELECT medal FROM table_name_60 WHERE games = "1996 atlanta" AND sport = "wrestling"
CREATE TABLE table_name_60 (medal VARCHAR, games VARCHAR, sport VARCHAR)
What medal was won in the 1996 Atlanta games in wrestling?
SELECT name FROM table_name_33 WHERE games = "2008 beijing"
CREATE TABLE table_name_33 (name VARCHAR, games VARCHAR)
Who won a medal at the 2008 Beijing Olympics?
SELECT event FROM table_name_1 WHERE name = "cristina iovu"
CREATE TABLE table_name_1 (event VARCHAR, name VARCHAR)
What event did Cristina Iovu participate in?
SELECT games FROM table_name_71 WHERE medal = "bronze" AND sport = "weightlifting" AND event = "94kg men's weightlifting"
CREATE TABLE table_name_71 (games VARCHAR, event VARCHAR, medal VARCHAR, sport VARCHAR)
At which games was a bronze medal won in the 94kg men's weightlifting event?
SELECT sport FROM table_name_22 WHERE event = "94kg men's weightlifting"
CREATE TABLE table_name_22 (sport VARCHAR, event VARCHAR)
Which sport has 94kg men's weightlifting as one of its events?
SELECT name FROM table_name_90 WHERE pick__number < 11 AND position = "quarterback"
CREATE TABLE table_name_90 (name VARCHAR, pick__number VARCHAR, position VARCHAR)
What is the Name of the Quarterback with a Pick # less than 11?
SELECT surname FROM table_name_12 WHERE first = "donovan"
CREATE TABLE table_name_12 (surname VARCHAR, first VARCHAR)
What is donovan's surname?
SELECT throws FROM table_name_39 WHERE first = "james"
CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR)
How many throws did james get?
SELECT dob FROM table_name_5 WHERE surname = "biddle"
CREATE TABLE table_name_5 (dob VARCHAR, surname VARCHAR)
When is Biddle's DOB?
SELECT opponent FROM table_name_27 WHERE attendance = "33,628"
CREATE TABLE table_name_27 (opponent VARCHAR, attendance VARCHAR)
Who is the opponent of the game with 33,628 folks in attendance?
SELECT loss FROM table_name_12 WHERE attendance = "38,062"
CREATE TABLE table_name_12 (loss VARCHAR, attendance VARCHAR)
What is the loss of the game with 38,062 folks in attendance?
SELECT score FROM table_name_19 WHERE attendance = "33,531"
CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR)
What is the score of the game that 33,531 people went too?
SELECT date FROM table_name_80 WHERE attendance = "38,062"
CREATE TABLE table_name_80 (date VARCHAR, attendance VARCHAR)
What is the date of the game with 38,062 people in attendance?
SELECT college_junior_club_team__league_ FROM table_name_11 WHERE player = "brendan locke"
CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
What is Brendan Locke's College/Junior/Club Team (League)?
SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = "right wing" AND round = "sup"
CREATE TABLE table_name_38 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
What League's Round is Sup and Position is Right Wing?
SELECT round FROM table_name_24 WHERE position = "goaltender"
CREATE TABLE table_name_24 (round VARCHAR, position VARCHAR)
In what Round is the Position Goaltender?
SELECT college_junior_club_team__league_ FROM table_name_94 WHERE position = "left wing" AND player = "yanick dupre"
CREATE TABLE table_name_94 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
In what League is Left Wing Yanick Dupre?
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "right wing" AND round = "6"
CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
In what League in Round 6 is the Position Right Wing?
SELECT round FROM table_name_70 WHERE position = "center" AND player = "john parco"
CREATE TABLE table_name_70 (round VARCHAR, position VARCHAR, player VARCHAR)
In what Round is John Parco a Center?
SELECT team FROM table_name_21 WHERE draws = "15"
CREATE TABLE table_name_21 (team VARCHAR, draws VARCHAR)
Which team had 15 draws?
SELECT season FROM table_name_79 WHERE losses = "16" AND team = "hampshire"
CREATE TABLE table_name_79 (season VARCHAR, losses VARCHAR, team VARCHAR)
Which season had 16 losses for the Hampshire team?
SELECT season FROM table_name_61 WHERE wins = "0" AND losses = "5" AND team = "surrey"
CREATE TABLE table_name_61 (season VARCHAR, team VARCHAR, wins VARCHAR, losses VARCHAR)
Which season had 0 wins and 5 losses for the Surrey team?
SELECT season FROM table_name_48 WHERE draws = "10"
CREATE TABLE table_name_48 (season VARCHAR, draws VARCHAR)
Which season had 10 draws?