answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT losing_bp FROM table_name_14 WHERE drawn = "1" AND try_bp = "6"
Name the Losing BP with drawn of 1 and a Try BP of 6.
CREATE TABLE table_name_14 (losing_bp VARCHAR, drawn VARCHAR, try_bp VARCHAR)
SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "William C. Lantaff"
how many first elected with incumbent being william c. lantaff
CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(member) FROM table_11764007_2 WHERE week_arrived_on_main_island = "4"
How many members arrived on the main island in week 4?
CREATE TABLE table_11764007_2 (member VARCHAR, week_arrived_on_main_island VARCHAR)
SELECT college FROM table_name_86 WHERE team = "boston celtics" AND round = "7"
Name the college that has 7 rounds and boston celtics team
CREATE TABLE table_name_86 (college VARCHAR, team VARCHAR, round VARCHAR)
SELECT tonnage FROM table_name_54 WHERE u_boats_destroyed__kuk_ = "2" AND ships_sunk__pola_ = "(not recorded)"
What is the listed Tonnage that has U-boats destroyed (KuK) of 2 and Ships sunk (Pola) of (not recorded)?
CREATE TABLE table_name_54 (tonnage VARCHAR, u_boats_destroyed__kuk_ VARCHAR, ships_sunk__pola_ VARCHAR)
SELECT home_ground FROM table_name_24 WHERE position_in_2012_13 = "7th, third division"
When the position in 2012-12 is 7th, third division what is the home ground?
CREATE TABLE table_name_24 (home_ground VARCHAR, position_in_2012_13 VARCHAR)
SELECT frequency FROM table_name_65 WHERE website = "elmanana.com.mx"
what is the frequency of visits to elmanana.com.mx
CREATE TABLE table_name_65 (frequency VARCHAR, website VARCHAR)
SELECT game FROM table_17360840_5 WHERE record = "6-9-7"
Which game had a record of 6-9-7?
CREATE TABLE table_17360840_5 (game VARCHAR, record VARCHAR)
SELECT episode_no FROM table_name_23 WHERE original_airdate = "february 4, 2008"
What is the episode number of the episode that originally aired on February 4, 2008?
CREATE TABLE table_name_23 (episode_no VARCHAR, original_airdate VARCHAR)
SELECT round FROM table_name_70 WHERE position = "center" AND player = "john parco"
In what Round is John Parco a Center?
CREATE TABLE table_name_70 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT SUM(pick__number) FROM table_name_36 WHERE position = "guard" AND round > 2
What is the sum of Pick #, when Position is Guard, and when Round is greater than 2?
CREATE TABLE table_name_36 (pick__number INTEGER, position VARCHAR, round VARCHAR)
SELECT MIN(pick__number) FROM table_name_45 WHERE name = "john scully"
What is the lowest pick number of John Scully?
CREATE TABLE table_name_45 (pick__number INTEGER, name VARCHAR)
SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 3
Which 3 players won the most player awards? List their full name and id.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR)
SELECT name FROM table_name_77 WHERE runner_up = "sania mirza elena vesnina"
What is the Name when the runner-up was Sania Mirza Elena Vesnina?
CREATE TABLE table_name_77 (name VARCHAR, runner_up VARCHAR)
SELECT winning_driver FROM table_name_98 WHERE winning_team = "mobilecast impul" AND circuit = "twin ring motegi"
Name the winning driver for mobilecast impul and twin ring motegi
CREATE TABLE table_name_98 (winning_driver VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.33"
What is the desired rate when the rate limit (p) is 50.33?
CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR)
SELECT date FROM table_name_14 WHERE record = "13-15"
What day is their record 13-15?
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1"
What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT score FROM table_name_43 WHERE tie_no = "replay" AND away_team = "york city"
What is the score when the Tie no is replay, and the away team is York City?
CREATE TABLE table_name_43 (score VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT republican FROM table_name_27 WHERE green = "harold burbank"
Who was the Republican when the green was Harold Burbank?
CREATE TABLE table_name_27 (republican VARCHAR, green VARCHAR)
SELECT hindi FROM table_name_36 WHERE kannada = "shanivara"
WHAT HINDI HAS A KANNADA OF SHANIVARA?
CREATE TABLE table_name_36 (hindi VARCHAR, kannada VARCHAR)
SELECT replaced_by FROM table_27091128_3 WHERE outgoing_manager = "Hüsnü Özkara"
Who replaced the outgoing manager Hüsnü Özkara?
CREATE TABLE table_27091128_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT title FROM table_name_5 WHERE riaa_sales_certification = "gold"
Which Title was awarded the gold RIAA Sales Certification?
CREATE TABLE table_name_5 (title VARCHAR, riaa_sales_certification VARCHAR)
SELECT date FROM table_name_89 WHERE opponent_in_the_final = "kyoko nagatsuka"
What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final?
CREATE TABLE table_name_89 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_22875369_3 WHERE irish_points = 89
Name the date for irish points being 89
CREATE TABLE table_22875369_3 (date VARCHAR, irish_points VARCHAR)
SELECT COUNT(avg_g) FROM table_name_40 WHERE name = "mccrary, greg"
What is the total avg/g of McCrary, Greg?
CREATE TABLE table_name_40 (avg_g VARCHAR, name VARCHAR)
SELECT constructor FROM table_name_4 WHERE time_retired = "+1 lap" AND driver = "olivier panis"
Who constructed olivier panis' car that retired after +1 lap?
CREATE TABLE table_name_4 (constructor VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT player FROM table_name_99 WHERE position = "p" AND team = "oakland athletics"
who is the player when the position is p and the team is oakland athletics?
CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, team VARCHAR)
SELECT recipient FROM table_name_94 WHERE award = "£6,947" AND film = "jamaica"
Name the recipient for jamaica and award of £6,947
CREATE TABLE table_name_94 (recipient VARCHAR, award VARCHAR, film VARCHAR)
SELECT score FROM table_name_59 WHERE opponent = "minnesota"
What was the score of the Iowa v. Minnesota game?
CREATE TABLE table_name_59 (score VARCHAR, opponent VARCHAR)
SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2
display the ID for those employees who did two or more jobs in the past.
CREATE TABLE job_history (employee_id VARCHAR)
SELECT country FROM table_name_68 WHERE rank = "1"
What country was rank 1?
CREATE TABLE table_name_68 (country VARCHAR, rank VARCHAR)
SELECT title FROM table_14847258_1 WHERE us_viewers__millions_ = "15.03"
15.03 million u.s viewers seen what episode?
CREATE TABLE table_14847258_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT site_stadium FROM table_name_21 WHERE date = "march 23"
On March 23, what is the site/stadium?
CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR)
SELECT goals_against FROM table_name_36 WHERE wins = 7
For teams with 7 wins, what is the number of goals against?
CREATE TABLE table_name_36 (goals_against VARCHAR, wins VARCHAR)
SELECT college FROM table_name_58 WHERE cfl_team = "hamilton tiger-cats"
Which college's cfl team is the hamilton tiger-cats?
CREATE TABLE table_name_58 (college VARCHAR, cfl_team VARCHAR)
SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0
What is the total medals for nation with more than 0 silvers and more than 0 golds?
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
What is the ship id and name that caused most total injuries?
CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)
SELECT model_no FROM table_name_28 WHERE manufacturer = "bombardier"
Which model number does bombardier manufacture?
CREATE TABLE table_name_28 (model_no VARCHAR, manufacturer VARCHAR)
SELECT MIN(gold) FROM table_name_13 WHERE total > 44
What was the gold medal total for a total of 44 medals?
CREATE TABLE table_name_13 (gold INTEGER, total INTEGER)
SELECT SUM(drawn) FROM table_name_33 WHERE penalties = 1 AND conversions > 20
How many ties did he have when he had 1 penalties and more than 20 conversions?
CREATE TABLE table_name_33 (drawn INTEGER, penalties VARCHAR, conversions VARCHAR)
SELECT player FROM table_2840500_2 WHERE nhl_team = "Washington Capitals"
Who was drafted by the Washington Capitals?
CREATE TABLE table_2840500_2 (player VARCHAR, nhl_team VARCHAR)
SELECT SUM(goals) FROM table_name_63 WHERE position = "14th of 24" AND league = "football conference"
Goals that has a Position of 14th of 24, and a League of football conference has what sum?
CREATE TABLE table_name_63 (goals INTEGER, position VARCHAR, league VARCHAR)
SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1
Which gender makes up the majority of the staff?
CREATE TABLE staff (gender VARCHAR)
SELECT date FROM table_name_2 WHERE home = "ny islanders"
What is the date of the game where the NY Islanders are the home team?
CREATE TABLE table_name_2 (date VARCHAR, home VARCHAR)
SELECT retail_name FROM table_name_1 WHERE chipset_based_on = "radeon 9200"
What is the Retail name with a Chipset based on with radeon 9200?
CREATE TABLE table_name_1 (retail_name VARCHAR, chipset_based_on VARCHAR)
SELECT prize FROM table_name_10 WHERE event = "ept deauville"
What is the Prize, when the Event is Ept Deauville?
CREATE TABLE table_name_10 (prize VARCHAR, event VARCHAR)
SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES
Show the minimum, average, maximum order quantity of all invoices.
CREATE TABLE INVOICES (Order_Quantity INTEGER)
SELECT COUNT(diameter__km_) FROM table_16799784_3 WHERE longitude = "109.9E"
At a longitude of 109.9e, how many features were found?
CREATE TABLE table_16799784_3 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT successor FROM table_1013168_2 WHERE date_of_successors_formal_installation = "November 8, 1978"
Who was the succesor that was formally installed on November 8, 1978?
CREATE TABLE table_1013168_2 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT title FROM table_26961951_6 WHERE directed_by = "Romeo Tirone"
What is the title of the episode directed by Romeo Tirone?
CREATE TABLE table_26961951_6 (title VARCHAR, directed_by VARCHAR)
SELECT share__18_49_ FROM table_28980706_4 WHERE viewers__millions_ = "9.28"
When there are 9.28 million viewers what is the share (18-49)?
CREATE TABLE table_28980706_4 (share__18_49_ VARCHAR, viewers__millions_ VARCHAR)
SELECT week_5 FROM table_name_3 WHERE week_6 = "evicted" AND week_2 = "34.55"
What is week 5 when week 6 is evicted, and week 2 is 34.55?
CREATE TABLE table_name_3 (week_5 VARCHAR, week_6 VARCHAR, week_2 VARCHAR)
SELECT competition FROM table_name_91 WHERE score = "2-0"
What is the name of the competition that has a score of 2-0?
CREATE TABLE table_name_91 (competition VARCHAR, score VARCHAR)
SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname
Find the first names of faculties of rank Professor in alphabetic order.
CREATE TABLE FACULTY (Fname VARCHAR, Rank VARCHAR)
SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Leopold Bauer Alfred Kohlhauser"
who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT description FROM table_name_67 WHERE year_of_issue = 1983 AND weight = "3.50grams"
Which Description has a Year of Issue of 1983, and a Weight of 3.50grams?
CREATE TABLE table_name_67 (description VARCHAR, year_of_issue VARCHAR, weight VARCHAR)
SELECT location FROM table_name_78 WHERE result = "win" AND opponent = "johan mparmpagiannis"
What is the location for the win against Johan Mparmpagiannis?
CREATE TABLE table_name_78 (location VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT season FROM table_20026849_1 WHERE winner = "Anthony Yeh"
What season was won by Anthony Yeh?
CREATE TABLE table_20026849_1 (season VARCHAR, winner VARCHAR)
SELECT MIN(_number) FROM table_19982699_1 WHERE producer = "Charles Salmon" AND television_premiere = "January 27, 2007"
How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?
CREATE TABLE table_19982699_1 (_number INTEGER, producer VARCHAR, television_premiere VARCHAR)
SELECT played_in FROM table_name_36 WHERE matches = "16"
Where were 16 matches played?
CREATE TABLE table_name_36 (played_in VARCHAR, matches VARCHAR)
SELECT driver FROM table_name_19 WHERE time_retired = "2:16:38.0"
What driver has a Time/Retired of 2:16:38.0?
CREATE TABLE table_name_19 (driver VARCHAR, time_retired VARCHAR)
SELECT date_performed FROM table_name_12 WHERE position = "bottom 3" AND scores_by_each_individual_judge = 5 + 5 + 4 = 14
Which Date performed has a Position of bottom 3, and Scores by each individual judge of 5 + 5 + 4 = 14?
CREATE TABLE table_name_12 (date_performed VARCHAR, position VARCHAR, scores_by_each_individual_judge VARCHAR)
SELECT award FROM table_name_1 WHERE name = "lowe"
What is the award type for all Lowe awards?
CREATE TABLE table_name_1 (award VARCHAR, name VARCHAR)
SELECT playing_for FROM table_name_76 WHERE opponent = "real españa" AND season = "2012–13"
What shows for playing when the opponent was Real España, in the 2012–13 season?
CREATE TABLE table_name_76 (playing_for VARCHAR, opponent VARCHAR, season VARCHAR)
SELECT COUNT(nhl_team) FROM table_1965650_7 WHERE player = "Denis Andersen"
How many teams have a player named Denis Andersen?
CREATE TABLE table_1965650_7 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(highest_position) FROM table_name_29 WHERE album_title = "talk on corners" AND issue_date > 1
What is the highest position Talk on Corners, which had an issue date greater than 1, had?
CREATE TABLE table_name_29 (highest_position VARCHAR, album_title VARCHAR, issue_date VARCHAR)
SELECT MIN(appearances) FROM table_name_30 WHERE win__percentage = 0.706
What's listed as the lowest Appearances with a Win % of 0.706?
CREATE TABLE table_name_30 (appearances INTEGER, win__percentage VARCHAR)
SELECT surface FROM table_name_4 WHERE tournament = "sunderland , united kingdom"
What is Surface, when Tournament is "Sunderland , United Kingdom"?
CREATE TABLE table_name_4 (surface VARCHAR, tournament VARCHAR)
SELECT AVG(inegi_code) FROM table_name_17 WHERE population_density___km_2__ < 81.4 AND human_development_index__2000_ = 0.6593
WHich INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)?
CREATE TABLE table_name_17 (inegi_code INTEGER, population_density___km_2__ VARCHAR, human_development_index__2000_ VARCHAR)
SELECT round FROM table_22656187_9 WHERE w_l = "Loss" AND edition = "2012 Fed Cup Europe/Africa Group I"
Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I?
CREATE TABLE table_22656187_9 (round VARCHAR, w_l VARCHAR, edition VARCHAR)
SELECT outcome FROM table_name_62 WHERE partner = "brett steven"
What was the outcome of the final with a partner of Brett Steven?
CREATE TABLE table_name_62 (outcome VARCHAR, partner VARCHAR)
SELECT position FROM table_name_40 WHERE races = "test driver"
If the Races is Test Driver what is the Position?
CREATE TABLE table_name_40 (position VARCHAR, races VARCHAR)
SELECT score FROM table_name_35 WHERE date = "october 9"
Name the score for october 9
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
SELECT party FROM table_name_14 WHERE state = "wa" AND member = "hon victor garland"
Which party has wa as the state, and hon victor garland as the memeber?
CREATE TABLE table_name_14 (party VARCHAR, state VARCHAR, member VARCHAR)
SELECT format FROM table_name_8 WHERE frequency = "00 96.3 fm"
What was the format for the radio with a frequency of 00 96.3 fm?
CREATE TABLE table_name_8 (format VARCHAR, frequency VARCHAR)
SELECT winning_driver FROM table_1140116_5 WHERE circuit = "Modena"
Who won the Modena circuit?
CREATE TABLE table_1140116_5 (winning_driver VARCHAR, circuit VARCHAR)
SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters"
What is Ludo Peeters' team classification?
CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)
SELECT release_date FROM table_name_34 WHERE type = "2d"
Which Release date has a Type of 2d?
CREATE TABLE table_name_34 (release_date VARCHAR, type VARCHAR)
SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7"
Which Visiting Team has a Stadium of servus centre on march 7?
CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR)
SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = "woodrow wilson" AND representative = "benton mcmillin"
Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin
CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR)
SELECT engine FROM table_name_40 WHERE chassis = "mclaren mp4-20"
What engine did the mclaren mp4-20 use?
CREATE TABLE table_name_40 (engine VARCHAR, chassis VARCHAR)
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
Find the ids of the problems that are reported by the staff whose last name is Bosco.
CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_last_name VARCHAR)
SELECT away_team AS score FROM table_name_47 WHERE home_team = "collingwood"
What did the away team score when they were playing collingwood?
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_26 WHERE venue = "corio oval"
What is the away team at corio oval?
CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_21 WHERE record = "29–23–13"
What is the Score of the game with a Record of 29–23–13?
CREATE TABLE table_name_21 (score VARCHAR, record VARCHAR)
SELECT loss FROM table_name_30 WHERE date = "april 26"
Which loss has a Date of april 26?
CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR)
SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque"
What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?
CREATE TABLE table_name_76 (power VARCHAR, combined_consumption VARCHAR, code VARCHAR)
SELECT club FROM table_13564637_5 WHERE points = "30"
Who is the club that has 30 points?
CREATE TABLE table_13564637_5 (club VARCHAR, points VARCHAR)
SELECT together_we_can_do_more FROM table_2651755_1 WHERE democratic_coalition = "René Alinco ( PPD )"
Who is the together we can do more when democratic coalition is rené alinco ( ppd )?
CREATE TABLE table_2651755_1 (together_we_can_do_more VARCHAR, democratic_coalition VARCHAR)
SELECT wins FROM table_name_67 WHERE position = "7th"
What is the value for Wins when the Position is 7th?
CREATE TABLE table_name_67 (wins VARCHAR, position VARCHAR)
SELECT network FROM table_name_12 WHERE year > 2011
Which network broadcasted the cup after 2011?
CREATE TABLE table_name_12 (network VARCHAR, year INTEGER)
SELECT hdd_capacity FROM table_name_7 WHERE _number_fdd > 0 AND fdd_capacity__each_ = "710kb"
Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb
CREATE TABLE table_name_7 (hdd_capacity VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR)
SELECT player FROM table_name_43 WHERE total = 3 AND ekstraklasa < 3 AND uefa_cup = 2
Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2?
CREATE TABLE table_name_43 (player VARCHAR, uefa_cup VARCHAR, total VARCHAR, ekstraklasa VARCHAR)
SELECT constructor FROM table_name_50 WHERE driver = "heinz-harald frentzen"
What is the constructor of the driver Heinz-Harald Frentzen?
CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR)
SELECT name FROM table_name_1 WHERE time_retired = "52:56.4653"
Who recorded a time or retired time of 52:56.4653?
CREATE TABLE table_name_1 (name VARCHAR, time_retired VARCHAR)
SELECT date FROM table_name_17 WHERE label = "parlophone" AND format = "lp"
What date has parlophone as the label, and lp as a format?
CREATE TABLE table_name_17 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT notes FROM table_name_48 WHERE rank < 2
What were the notes for the player who finished with a rank smaller than 2?
CREATE TABLE table_name_48 (notes VARCHAR, rank INTEGER)
SELECT result FROM table_name_83 WHERE date = "april 26, 2003"
What was the result of the game that took place on april 26, 2003?
CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR)
SELECT COUNT(winning_team) FROM table_14638077_2 WHERE circuit = "Road America"
how many winning team with circuit being road america
CREATE TABLE table_14638077_2 (winning_team VARCHAR, circuit VARCHAR)