answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT player FROM table_name_89 WHERE nhl_team = "mighty ducks of anaheim"
I want the player for NHL team for mighty ducks of anaheim
CREATE TABLE table_name_89 (player VARCHAR, nhl_team VARCHAR)
SELECT high_assists FROM table_11964154_11 WHERE location_attendance = "Toyota Center 18,370"
Who had the high assists when the location attendance was Toyota Center 18,370?
CREATE TABLE table_11964154_11 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT lost FROM table_name_1 WHERE played = "22" AND points_against = "334"
How many losses did the club with 22 played and 334 points against have?
CREATE TABLE table_name_1 (lost VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT college FROM table_28059992_2 WHERE position = "DL"
Name the college for dl
CREATE TABLE table_28059992_2 (college VARCHAR, position VARCHAR)
SELECT source FROM table_name_46 WHERE undecided = "2%"
Which Source has a Undecided of 2%?
CREATE TABLE table_name_46 (source VARCHAR, undecided VARCHAR)
SELECT AVG(year) FROM table_name_27 WHERE character = "wu ji wei (無極威)"
What is the year that has a character named Wu Ji Wei (無極威)?
CREATE TABLE table_name_27 (year INTEGER, character VARCHAR)
SELECT 2003 FROM table_name_71 WHERE 1996 = "a" AND tournament = "hamburg masters"
In the Hamburg Masters Tournament, during which Jiří Novák was absent(A) in 1996, how did he do in 2003?
CREATE TABLE table_name_71 (tournament VARCHAR)
SELECT loans_received, _3q FROM table_name_24 WHERE total_debt = "$169,256"
What was the amount of loans received with a total debt of $169,256?
CREATE TABLE table_name_24 (loans_received VARCHAR, _3q VARCHAR, total_debt VARCHAR)
SELECT Fname FROM STUDENT ORDER BY Age DESC
Find the first name of students in the descending order of age.
CREATE TABLE STUDENT (Fname VARCHAR, Age VARCHAR)
SELECT artist FROM table_name_66 WHERE draw < 16 AND english_translation = "lullaby"
Can you tell me the Artist that has the Draw smaller than 16, and the English translation of lullaby?
CREATE TABLE table_name_66 (artist VARCHAR, draw VARCHAR, english_translation VARCHAR)
SELECT class FROM table_name_52 WHERE rank = "2nd"
Which class had a rank of 2nd?
CREATE TABLE table_name_52 (class VARCHAR, rank VARCHAR)
SELECT 2012 FROM table_name_51 WHERE 2009 = "1r" AND 2007 = "2r"
What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT scorers FROM table_name_63 WHERE opponent = "aberdeen"
Who was the scorer when the opponent was aberdeen?
CREATE TABLE table_name_63 (scorers VARCHAR, opponent VARCHAR)
SELECT assists_per_game FROM table_2387461_1 WHERE points_per_game = "7.7"
How may assists per game have 7.7 points per game?
CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, points_per_game VARCHAR)
SELECT customer_details FROM customers ORDER BY customer_details
List the names of all the customers in alphabetical order.
CREATE TABLE customers (customer_details VARCHAR)
SELECT player FROM table_name_48 WHERE school_club_team_country = "st. mary's"
Who is the player for St. Mary's team?
CREATE TABLE table_name_48 (player VARCHAR, school_club_team_country VARCHAR)
SELECT MIN(election) FROM table_name_69 WHERE _number_of_candidates_nominated > 7 AND _percentage_of_popular_vote = "2.75%" AND _number_of_seats_won < 0
What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?
CREATE TABLE table_name_69 (election INTEGER, _number_of_seats_won VARCHAR, _number_of_candidates_nominated VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT MAX(position) FROM table_name_96 WHERE points = 257 AND bike_no < 19
What is the most elevated Position that has a Points of 257, and a Bike No littler than 19?
CREATE TABLE table_name_96 (position INTEGER, points VARCHAR, bike_no VARCHAR)
SELECT iata FROM table_name_56 WHERE country = "libya" AND city = "benghazi"
What is the IATA for Benghazi, Libya?
CREATE TABLE table_name_56 (iata VARCHAR, country VARCHAR, city VARCHAR)
SELECT evening_gown FROM table_11970261_2 WHERE preliminaries = "9.212"
what's the evening gown with preliminaries being 9.212
CREATE TABLE table_11970261_2 (evening_gown VARCHAR, preliminaries VARCHAR)
SELECT SUM(long) FROM table_name_59 WHERE loss > 390 AND gain < 1 OFFSET 405
When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?
CREATE TABLE table_name_59 (long INTEGER, loss VARCHAR, gain VARCHAR)
SELECT country FROM table_name_79 WHERE population__2011_est_ = "3,221,216"
Which country has a population of 3,221,216?
CREATE TABLE table_name_79 (country VARCHAR, population__2011_est_ VARCHAR)
SELECT pada_4 FROM table_name_32 WHERE pada_2 = "थ tha"
which Pada 4 has a Pada 2 of थ tha?
CREATE TABLE table_name_32 (pada_4 VARCHAR, pada_2 VARCHAR)
SELECT visitor FROM table_name_48 WHERE home = "chicago black hawks" AND record = "1-1"
What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?
CREATE TABLE table_name_48 (visitor VARCHAR, home VARCHAR, record VARCHAR)
SELECT MIN(week) FROM table_23624542_4 WHERE attendance = 10402
What week has an attendance of 10402
CREATE TABLE table_23624542_4 (week INTEGER, attendance VARCHAR)
SELECT republican FROM table_name_49 WHERE district > 4
Who was the Republican in the district more than 4?
CREATE TABLE table_name_49 (republican VARCHAR, district INTEGER)
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cuts_made > 0
What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts?
CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
SELECT location_attendance FROM table_name_65 WHERE game = 44
What is the location and attendance of game 44?
CREATE TABLE table_name_65 (location_attendance VARCHAR, game VARCHAR)
SELECT score FROM table_name_51 WHERE date = "december 2"
What is the score on December 2?
CREATE TABLE table_name_51 (score VARCHAR, date VARCHAR)
SELECT _m__finishing_position FROM table_name_44 WHERE president = "ray kaduck" AND _m__coach = "corey bowen"
What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?
CREATE TABLE table_name_44 (_m__finishing_position VARCHAR, president VARCHAR, _m__coach VARCHAR)
SELECT years FROM table_name_62 WHERE goals = 27
For the player that scored 27 goals, what years did he score them?
CREATE TABLE table_name_62 (years VARCHAR, goals VARCHAR)
SELECT COUNT(total) FROM table_name_89 WHERE silver = 1 AND gold < 0
What is the Total medals for the Nation with 1 Silver and 0 Golds?
CREATE TABLE table_name_89 (total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(meaning) FROM table_11908801_1 WHERE full_name = "Chidinma Anulika"
What is the number of meaning where full name is chidinma anulika?
CREATE TABLE table_11908801_1 (meaning VARCHAR, full_name VARCHAR)
SELECT home_team FROM table_name_27 WHERE tie_no = "15" AND away_team = "sheffield united" AND date = "sheffield united"
With Sheffield United as the away team and the date, what home team has a tie no of 15?
CREATE TABLE table_name_27 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 1
What is the total number of civil liberties 2011 values having 2010 political rights values under 3 and 2011 political rights values under 1?
CREATE TABLE table_name_70 (civil_liberties_2011 VARCHAR, political_rights_2010 VARCHAR, political_rights_2011 VARCHAR)
SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_hot_100 = "–"
Which Year has an Album of airwaves, and a US Hot 100 of –?
CREATE TABLE table_name_64 (year INTEGER, album VARCHAR, us_hot_100 VARCHAR)
SELECT AVG(votes) FROM table_name_14 WHERE constituency = "dublin south" AND spoilt < 3 OFFSET 387
WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?
CREATE TABLE table_name_14 (votes INTEGER, constituency VARCHAR, spoilt VARCHAR)
SELECT MAX(ties_played) FROM table_10294071_1 WHERE player = "Josip Palada Category:Articles with hCards"
what is the maximum ties played where player is josip palada category:articles with hcards
CREATE TABLE table_10294071_1 (ties_played INTEGER, player VARCHAR)
SELECT school_club_team FROM table_15463188_7 WHERE name = "Norman Gonzales"
Nametheh school team for norman gonzales
CREATE TABLE table_15463188_7 (school_club_team VARCHAR, name VARCHAR)
SELECT MAX(lane) FROM table_name_62 WHERE time < 24.72 AND rank = 4
What's the highest lane of rank 4 with a time less than 24.72?
CREATE TABLE table_name_62 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT longitude FROM table_18600760_7 WHERE land___sqmi__ = "10.950"
If the land square milage is 10.950, what is the longitude?
CREATE TABLE table_18600760_7 (longitude VARCHAR, land___sqmi__ VARCHAR)
SELECT 2007 FROM table_name_91 WHERE 2010 = "2r" AND tournament = "us open"
What is the 2007 result when the 2010 result was 2r, at the US Open?
CREATE TABLE table_name_91 (tournament VARCHAR)
SELECT candidates FROM table_1342233_24 WHERE district = "Mississippi 6"
What candidates are from mississippi 6?
CREATE TABLE table_1342233_24 (candidates VARCHAR, district VARCHAR)
SELECT points_against FROM table_name_70 WHERE points_diff = "+96"
What is points sgsinst when points diff is +96?
CREATE TABLE table_name_70 (points_against VARCHAR, points_diff VARCHAR)
SELECT MAX(freight__metric_tonnes_) FROM table_13836704_9 WHERE airport = "Liverpool"
what is the maximum freight (metric tonnes) with airport being liverpool
CREATE TABLE table_13836704_9 (freight__metric_tonnes_ INTEGER, airport VARCHAR)
SELECT artist FROM table_name_81 WHERE country = "uruguay"
what artist cam from uruguay
CREATE TABLE table_name_81 (artist VARCHAR, country VARCHAR)
SELECT coordinate_velocity_v_dx_dt_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 2 hyperbolic radians"
If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?
CREATE TABLE table_15314901_1 (coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR, condition_parameter VARCHAR)
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05"
What is the playoffs 1 result of season 2004-05?
CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR)
SELECT points FROM table_name_42 WHERE year = 1972 AND engine = "cosworth v8"
How many points did the Cosworth v8 engine get in 1972?
CREATE TABLE table_name_42 (points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT MAX(grid) FROM table_name_15 WHERE driver = "ralph firman" AND laps < 18
What is the largest grid with a Driver of ralph firman, and a Lap smaller than 18?
CREATE TABLE table_name_15 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT COUNT(others_number) FROM table_name_88 WHERE kerry_percentage = "36.7%"
When Kerry is at 36.7%, what is the total number of others?
CREATE TABLE table_name_88 (others_number VARCHAR, kerry_percentage VARCHAR)
SELECT location FROM table_name_7 WHERE time = "2:33"
Where was the fight located that lasted a time of 2:33?
CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR)
SELECT emp_fname, emp_lname FROM employee ORDER BY emp_dob LIMIT 1
What is the first and last name of the oldest employee?
CREATE TABLE employee (emp_fname VARCHAR, emp_lname VARCHAR, emp_dob VARCHAR)
SELECT cause_of_death FROM table_24143253_2 WHERE name = "Stella Farentino"
How did Stella Farentino die?
CREATE TABLE table_24143253_2 (cause_of_death VARCHAR, name VARCHAR)
SELECT score FROM table_name_28 WHERE game = 1
What was the final score of Game 1?
CREATE TABLE table_name_28 (score VARCHAR, game VARCHAR)
SELECT winner FROM table_name_1 WHERE score = "7–6(4), 6–4"
Who wins with a score 7–6(4), 6–4
CREATE TABLE table_name_1 (winner VARCHAR, score VARCHAR)
SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l"
Return the lot details of lots that belong to investors with details "l"?
CREATE TABLE LOTS (lot_details VARCHAR, investor_id VARCHAR); CREATE TABLE INVESTORS (investor_id VARCHAR, Investor_details VARCHAR)
SELECT top_speed FROM table_1857216_1 WHERE transmission = "4-speed automatic" AND production = "2002-2005"
What is the top speed of a 4-speed automatic with production in 2002-2005?
CREATE TABLE table_1857216_1 (top_speed VARCHAR, transmission VARCHAR, production VARCHAR)
SELECT school FROM table_11677100_18 WHERE hometown = "Lake Charles, LA"
What is the school of the player from Lake Charles, LA?
CREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)
SELECT school FROM table_11677691_9 WHERE hometown = "Centerville, Ohio"
Which school is located in the hometown of Centerville, Ohio?
CREATE TABLE table_11677691_9 (school VARCHAR, hometown VARCHAR)
SELECT engine_displacement FROM table_1147705_1 WHERE engine_type = "B5254 T"
What is the engine displacement for the engine type b5254 t?
CREATE TABLE table_1147705_1 (engine_displacement VARCHAR, engine_type VARCHAR)
SELECT AVG(laps) FROM table_name_74 WHERE grid = 9
I want the average Laps for grid of 9
CREATE TABLE table_name_74 (laps INTEGER, grid VARCHAR)
SELECT authority FROM table_25316812_1 WHERE budget_limit__£m_ = "900"
What is the authority who set the budget limit (£m) at 900?
CREATE TABLE table_25316812_1 (authority VARCHAR, budget_limit__£m_ VARCHAR)
SELECT home FROM table_name_77 WHERE venue = "stadion pod vrmcem"
Who was the home team for the match at Stadion pod Vrmcem?
CREATE TABLE table_name_77 (home VARCHAR, venue VARCHAR)
SELECT tournament FROM table_name_4 WHERE 2001 = "a" AND 2008 = "a" AND 2010 = "qf"
Which tournament's 2001 and 2008 were a when 2010 was qf?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT home_team AS score FROM table_name_59 WHERE away_team = "geelong"
What was the score of the home team when the away team was Geelong?
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT company, main_industry FROM company WHERE NOT company_id IN (SELECT company_id FROM station_company)
Show company name and main industry without a gas station.
CREATE TABLE station_company (company VARCHAR, main_industry VARCHAR, company_id VARCHAR); CREATE TABLE company (company VARCHAR, main_industry VARCHAR, company_id VARCHAR)
SELECT away_team FROM table_name_69 WHERE home_team = "essendon"
Name the away team for essendon
CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345"
What is the Number of Households that have a Per Capita Income of $21,345?
CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)
SELECT MAX(year) FROM table_name_82 WHERE engine = "offenhauser l4" AND chassis = "kurtis kraft 500c" AND entrant = "federal engineering"
Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering?
CREATE TABLE table_name_82 (year INTEGER, entrant VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT grand_prix FROM table_1137694_3 WHERE winning_constructor = "Jordan - Mugen-Honda"
Which Grand Prix was won by a car constructed by Jordan - Mugen-Honda?
CREATE TABLE table_1137694_3 (grand_prix VARCHAR, winning_constructor VARCHAR)
SELECT date FROM table_name_77 WHERE away_team = "south melbourne"
What was the date of the game when the away team was south melbourne?
CREATE TABLE table_name_77 (date VARCHAR, away_team VARCHAR)
SELECT party FROM table_name_2 WHERE result = "re-elected" AND district = "south carolina 5"
Which party was re-elected in south carolina 5 district?
CREATE TABLE table_name_2 (party VARCHAR, result VARCHAR, district VARCHAR)
SELECT MIN(no_in_season) FROM table_1876825_6 WHERE written_by = "Neil Thompson"
What season episode is written by neil thompson?
CREATE TABLE table_1876825_6 (no_in_season INTEGER, written_by VARCHAR)
SELECT record FROM table_name_99 WHERE year = 1925
What's the record during 1925?
CREATE TABLE table_name_99 (record VARCHAR, year VARCHAR)
SELECT result FROM table_name_87 WHERE date = "april 9"
What is the Result of the Game on April 9?
CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR)
SELECT podiums FROM table_name_82 WHERE poles = "3"
What are the Podiums that has a Poles of 3?
CREATE TABLE table_name_82 (podiums VARCHAR, poles VARCHAR)
SELECT COUNT(lane) FROM table_name_95 WHERE nationality = "great britain" AND time > 57.78
What lane is from Great Britain and a 57.78 time?
CREATE TABLE table_name_95 (lane VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT venue FROM table_name_83 WHERE year = 2005 AND notes = "men individual 9.84km"
What venue hosted in 2005 and had a Notes of men individual 9.84km?
CREATE TABLE table_name_83 (venue VARCHAR, year VARCHAR, notes VARCHAR)
SELECT date FROM table_name_88 WHERE team = "clare" AND player = "ger loughnane"
On which date did Ger Loughnane from Team Clare have a match?
CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_97 WHERE elevator = "nicholas iii"
What's the nationality for Nicholas III?
CREATE TABLE table_name_97 (nationality VARCHAR, elevator VARCHAR)
SELECT MAX(division) FROM table_name_27 WHERE year < 2011
What is the highest division for years earlier than 2011?
CREATE TABLE table_name_27 (division INTEGER, year INTEGER)
SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.
CREATE TABLE invoices (invoice_details VARCHAR, invoice_date VARCHAR)
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"
I want the driver for ferrari who made Laps less than 26 and grids more than 9
CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT attendance FROM table_name_12 WHERE loss = "koch (0-1)"
When the game had a loss of Koch (0-1) what was the attendance?
CREATE TABLE table_name_12 (attendance VARCHAR, loss VARCHAR)
SELECT phoenician FROM table_name_77 WHERE hangul = "ㄹ"
What is the Phoenician letter for the Hangul of ㄹ?
CREATE TABLE table_name_77 (phoenician VARCHAR, hangul VARCHAR)
SELECT record FROM table_name_62 WHERE november > 11 AND opponent = "st. louis blues"
What record has a november greater than 11, and st. louis blues as the opponent?
CREATE TABLE table_name_62 (record VARCHAR, november VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_35 WHERE round = 3
What is the method when the round shows 3?
CREATE TABLE table_name_35 (method VARCHAR, round VARCHAR)
SELECT outcome FROM table_name_57 WHERE score_in_the_final = "3–6, 1–6"
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 MIN(rank) FROM table_19744915_15
What is the lowest rank?
CREATE TABLE table_19744915_15 (rank INTEGER)
SELECT detroit__dtw_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59"
When Lansing's fare is $433.59, what is the Detroit fare?
CREATE TABLE table_1637981_7 (detroit__dtw_ VARCHAR, lansing__lan_ VARCHAR)
SELECT year FROM table_name_47 WHERE rank = "1"
What year was the ranking 1?
CREATE TABLE table_name_47 (year VARCHAR, rank VARCHAR)
SELECT date FROM table_name_28 WHERE home = "columbus"
What was the date of the Capitals game when Columbus was the home team?
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT MIN(bronze) FROM table_name_38 WHERE nation = "total" AND gold < 14
Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14?
CREATE TABLE table_name_38 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min"
Orbital period of 89 to 128 min has what specific orbital energy?
CREATE TABLE table_name_73 (specific_orbital_energy VARCHAR, orbital_period VARCHAR)
SELECT home_team FROM table_name_76 WHERE away_team = "fitzroy"
Who was the home team when Fitzroy was the away team?
CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(pick) FROM table_name_13 WHERE position = "of" AND team = "san francisco giants" AND player = "arturo mcdowell"
What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?
CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)
SELECT label FROM table_name_12 WHERE catalog = "none" AND region = "united kingdom"
What is the label for the catalog of none, and is in the United Kingdom?
CREATE TABLE table_name_12 (label VARCHAR, catalog VARCHAR, region VARCHAR)
SELECT tie_no FROM table_name_7 WHERE home_team = "queens park rangers"
What was the tie number of the game when the queens park rangers were the home team?
CREATE TABLE table_name_7 (tie_no VARCHAR, home_team VARCHAR)
SELECT high_10_profile FROM table_237036_2 WHERE high_profile = 160
What is the high 10 profile when high profile is 160?
CREATE TABLE table_237036_2 (high_10_profile VARCHAR, high_profile VARCHAR)