answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT record FROM table_name_56 WHERE games = "1991 port of spain"
What is the Record of the 1991 Port of Spain Games?
CREATE TABLE table_name_56 (record VARCHAR, games VARCHAR)
SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4"
What is the first elected date for the incumbent in the South Carolina 4 district?
CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "spartan stadium" AND date = "september 20, 1998"
Who was the home team on September 20, 1998 at Spartan Stadium?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR, date VARCHAR)
SELECT team FROM table_15872814_7 WHERE high_assists = "Rafer Alston (5)"
What team had high assists Rafer Alston (5)?
CREATE TABLE table_15872814_7 (team VARCHAR, high_assists VARCHAR)
SELECT soap_opera FROM table_name_48 WHERE actor = "elin sogn"
what is the soap opera for elin sogn?
CREATE TABLE table_name_48 (soap_opera VARCHAR, actor VARCHAR)
SELECT MAX(no_in_series) FROM table_24319661_5 WHERE us_viewers__million_ = "2.77"
What episode number in the series had 2.77 million U.S. viewers?
CREATE TABLE table_24319661_5 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
SELECT office FROM table_name_88 WHERE democratic_ticket = "herbert h. lehman"
Which Office has a Democratic ticket of herbert h. lehman?
CREATE TABLE table_name_88 (office VARCHAR, democratic_ticket VARCHAR)
SELECT COUNT(grid) FROM table_name_2 WHERE rider = "aleix espargaro"
What is the total number of Grid, when Rider is Aleix Espargaro?
CREATE TABLE table_name_2 (grid VARCHAR, rider VARCHAR)
SELECT COUNT(mls_team) FROM table_25518547_3 WHERE affiliation = "University of Maryland"
How many teams drafted players from the University of Maryland?
CREATE TABLE table_25518547_3 (mls_team VARCHAR, affiliation VARCHAR)
SELECT set_1 FROM table_name_96 WHERE score = "3–2"
What is the Set 1 with a Score with 3–2?
CREATE TABLE table_name_96 (set_1 VARCHAR, score VARCHAR)
SELECT school FROM table_name_73 WHERE location = "trafalgar"
Which school is located in trafalgar?
CREATE TABLE table_name_73 (school VARCHAR, location VARCHAR)
SELECT regiment FROM table_29458735_5 WHERE county = "Fulton"
which regiment was in the Fulton County
CREATE TABLE table_29458735_5 (regiment VARCHAR, county VARCHAR)
SELECT championship FROM table_23235767_4 WHERE surface = "Clay" AND opponent_in_the_final = "Corrado Barazzutti"
Name the championship for clay and corrado barazzutti
CREATE TABLE table_23235767_4 (championship VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT player FROM table_name_38 WHERE college = "kent state"
Which player came from Kent State?
CREATE TABLE table_name_38 (player VARCHAR, college VARCHAR)
SELECT COUNT(*) FROM postseason WHERE YEAR = 1885 AND ties = 1
How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
CREATE TABLE postseason (YEAR VARCHAR, ties VARCHAR)
SELECT AVG(wins) FROM table_name_91 WHERE hampden_fl = "south warrambool"
How many wins did South Warrambool have?
CREATE TABLE table_name_91 (wins INTEGER, hampden_fl VARCHAR)
SELECT COUNT(position) FROM table_name_68 WHERE played > 24
What was the position has a played entry of more than 24?
CREATE TABLE table_name_68 (position VARCHAR, played INTEGER)
SELECT SUM(goals) FROM table_name_83 WHERE country = "wal" AND name = "smith" AND apps > 0
what is the goals when the country is wal, the name is smith and apps is more than 0?
CREATE TABLE table_name_83 (goals INTEGER, apps VARCHAR, country VARCHAR, name VARCHAR)
SELECT game_site FROM table_name_83 WHERE record = "bye"
Where did they play on their bye week?
CREATE TABLE table_name_83 (game_site VARCHAR, record VARCHAR)
SELECT COUNT(notes) FROM table_12562214_1 WHERE date__from_ = "14 March 1910"
how many notes are form the date (from) 14 march 1910?
CREATE TABLE table_12562214_1 (notes VARCHAR, date__from_ VARCHAR)
SELECT home FROM table_name_88 WHERE score = "2:2"
Who was at home when the score was 2:2?
CREATE TABLE table_name_88 (home VARCHAR, score VARCHAR)
SELECT COUNT(game) FROM table_name_58 WHERE team = "@ new york"
What is the total of the game that the team was @ new york?
CREATE TABLE table_name_58 (game VARCHAR, team VARCHAR)
SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-79"
Which player was active in Jazz in 1975-79?
CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR)
SELECT year FROM table_name_27 WHERE finish = "3"
What year was there a finish of 3?
CREATE TABLE table_name_27 (year VARCHAR, finish VARCHAR)
SELECT money___$__ FROM table_name_75 WHERE to_par < 4 AND score = 74 - 72 - 68 - 73 = 287
How much money does the player with a to par less than 4 and a score of 74-72-68-73=287 have?
CREATE TABLE table_name_75 (money___$__ VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT team FROM table_name_27 WHERE games > 32 AND rebounds = 311
What team has more than 32 games and 311 rebounds?
CREATE TABLE table_name_27 (team VARCHAR, games VARCHAR, rebounds VARCHAR)
SELECT to_par FROM table_name_43 WHERE country = "australia" AND score = 73 - 69 - 71 = 213
What is the to par for Australia and a 73-69-71=213 score?
CREATE TABLE table_name_43 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT games FROM table_name_3 WHERE team = "efes pilsen"
How many Games for the player with Rebounds from Efes Pilsen?
CREATE TABLE table_name_3 (games VARCHAR, team VARCHAR)
SELECT production_number FROM table_name_49 WHERE title = "crows' feat"
What is Crows' Feat's production number?
CREATE TABLE table_name_49 (production_number VARCHAR, title VARCHAR)
SELECT round_of_16 FROM table_name_16 WHERE event = "69kg"
What's the 69kg of Round 16?
CREATE TABLE table_name_16 (round_of_16 VARCHAR, event VARCHAR)
SELECT COUNT(wins) FROM table_name_81 WHERE goal_difference < 21 AND draws = 4 AND losses < 21
What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?
CREATE TABLE table_name_81 (wins VARCHAR, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR)
SELECT MAX(points) FROM table_name_85 WHERE team = "adet" AND draw < 6
What is the Highest Points for Team Adet where the Draw is less than 6?
CREATE TABLE table_name_85 (points INTEGER, team VARCHAR, draw VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1
Find the physician who was trained in the most expensive procedure?
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR)
SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = "24 august 2006"
Which Entrepreneur(s) first aired on 24 August 2006?
CREATE TABLE table_name_28 (entrepreneur_s_ VARCHAR, first_aired VARCHAR)
SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson"
What team does Reed Sorenson drive for?
CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR)
SELECT meas_num FROM table_256286_18 WHERE type = "Init"
what is the measure number for the init type?
CREATE TABLE table_256286_18 (meas_num VARCHAR, type VARCHAR)
SELECT nationality FROM table_name_24 WHERE player = "jim les"
What's the nationality of jim les?
CREATE TABLE table_name_24 (nationality VARCHAR, player VARCHAR)
SELECT team FROM table_name_75 WHERE seed > 7 AND notes = "ncraa champion"
What team with a seed value greater than 7 has a note that they were an NCRAA champion?
CREATE TABLE table_name_75 (team VARCHAR, seed VARCHAR, notes VARCHAR)
SELECT state FROM table_name_95 WHERE percent__2009_ = "6.2%"
Which state has a Percent (2009) of 6.2%?
CREATE TABLE table_name_95 (state VARCHAR, percent__2009_ VARCHAR)
SELECT tournament FROM table_name_12 WHERE 2010 = "1r" AND 2011 = "1r"
what is the tournament with the performance in 2010 and 2011 is 1r?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT roman FROM table_name_27 WHERE proto_germanic_origin = "/w/"
The Proto-Germanic origin of /w/ is associated with what Roman entry?
CREATE TABLE table_name_27 (roman VARCHAR, proto_germanic_origin VARCHAR)
SELECT position FROM table_name_28 WHERE overall < 421 AND player = "matt clark"
What position was less than 421 overall played by Matt Clark?
CREATE TABLE table_name_28 (position VARCHAR, overall VARCHAR, player VARCHAR)
SELECT MAX(wins) FROM table_name_64 WHERE against = 1800 AND draws > 0
How many wins for team with 1800 Against and more than 0 byes?
CREATE TABLE table_name_64 (wins INTEGER, against VARCHAR, draws VARCHAR)
SELECT to_par FROM table_name_92 WHERE score = 68 AND player = "tom kite"
What is Tom Kite with a Score of 68's To Par?
CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR, player VARCHAR)
SELECT date FROM table_name_77 WHERE winning_driver = "pedro rodríguez"
When was pedro rodríguez the winning driver?
CREATE TABLE table_name_77 (date VARCHAR, winning_driver VARCHAR)
SELECT guest FROM table_name_76 WHERE score__first_match_ = "3:0 (0:2)"
Who were the guest team wehn the match score was 3:0 (0:2)?
CREATE TABLE table_name_76 (guest VARCHAR, score__first_match_ VARCHAR)
SELECT company FROM table_name_63 WHERE base = "ljubljana"
what is the company when the base is ljubljana?
CREATE TABLE table_name_63 (company VARCHAR, base VARCHAR)
SELECT MAX(others_number) FROM table_1302886_1 WHERE bush_percentage = "57.0%"
What is the others# when bush% is 57.0%?
CREATE TABLE table_1302886_1 (others_number INTEGER, bush_percentage VARCHAR)
SELECT team_classification FROM table_name_88 WHERE general_classification = "vladimir karpets" AND mountains_classification = "no award"
Which Team classification has a General classification of Vladimir Karpets and a Mountains classification of No Award?
CREATE TABLE table_name_88 (team_classification VARCHAR, general_classification VARCHAR, mountains_classification VARCHAR)
SELECT date FROM table_name_26 WHERE score = "103-94"
What date was the game score 103-94?
CREATE TABLE table_name_26 (date VARCHAR, score VARCHAR)
SELECT championship FROM table_1918850_2 WHERE opponents_in_the_final = "Arantxa Sánchez Vicario Todd Woodbridge"
which championship had arantxa sánchez vicario todd woodbridge as opponents in the final
CREATE TABLE table_1918850_2 (championship VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_47 WHERE results¹ = "4:0"
On what Date were the Results¹ 4:0?
CREATE TABLE table_name_47 (date VARCHAR, results¹ VARCHAR)
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"
What was the season record when the team played against Milwaukee?
CREATE TABLE table_27704187_10 (record VARCHAR, team VARCHAR)
SELECT writer FROM table_name_86 WHERE title = "infiltration"
Who wrote Infiltration?
CREATE TABLE table_name_86 (writer VARCHAR, title VARCHAR)
SELECT MAX(no_in_season) FROM table_10953197_6 WHERE director = "Chip Chalmers" AND production_code = "2397162"
what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode
CREATE TABLE table_10953197_6 (no_in_season INTEGER, director VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_2 WHERE city_location = "cleveland, ohio" AND round = 6
What day was the location Cleveland, Ohio in Round 6?
CREATE TABLE table_name_2 (date VARCHAR, city_location VARCHAR, round VARCHAR)
SELECT date FROM table_name_2 WHERE type = "plain stage"
Name the date which has type of plain stage
CREATE TABLE table_name_2 (date VARCHAR, type VARCHAR)
SELECT 2008 FROM table_name_5 WHERE 2007 = "a" AND 2011 = "a" AND tournament = "san jose"
what is the 2008 when 2007 is A, 2011 is A and tournament is san jose?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT us_customary FROM table_name_33 WHERE unit = "butylka (vodochnaya)"
How large in US customary terms is the unit called butylka (vodochnaya)?
CREATE TABLE table_name_33 (us_customary VARCHAR, unit VARCHAR)
SELECT date FROM table_name_46 WHERE winner = "ted horn" AND race_name = "lakewood race 2"
What date did Ted Horn win Lakewood Race 2?
CREATE TABLE table_name_46 (date VARCHAR, winner VARCHAR, race_name VARCHAR)
SELECT engine FROM table_name_85 WHERE year = 1961
What engine was in the year of 1961?
CREATE TABLE table_name_85 (engine VARCHAR, year VARCHAR)
SELECT MIN(year) FROM table_name_95 WHERE location = "athens"
What was the earliest year a game was played in Athens?
CREATE TABLE table_name_95 (year INTEGER, location VARCHAR)
SELECT season FROM table_29697744_1 WHERE position = "9th"
in what year the position was the 9th
CREATE TABLE table_29697744_1 (season VARCHAR, position VARCHAR)
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3
What's the website for the Listen Live webcast on the 99.3 frequency?
CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)
SELECT record FROM table_name_75 WHERE round = "1" AND res = "loss" AND opponent = "alex hunter"
What is the record when the loss was to Alex Hunter in round 1?
CREATE TABLE table_name_75 (record VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR)
SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = "3rd" AND date = "january 29"
I want the standing for january 29 and finished of 3rd and total points less than 248
CREATE TABLE table_name_59 (standing VARCHAR, date VARCHAR, total_points VARCHAR, finished VARCHAR)
SELECT high_assists FROM table_10812293_6 WHERE date = "February 9"
Who got high assists for the game played on February 9?
CREATE TABLE table_10812293_6 (high_assists VARCHAR, date VARCHAR)
SELECT constructor FROM table_name_91 WHERE chassis = "mp4/1c" AND driver = "niki lauda"
Who is the constructor for driver Niki Lauda and a chassis of mp4/1c?
CREATE TABLE table_name_91 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718"
What is the sum of households that makes a median household income of $44,718?
CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Israel"
What 2011 GDP (PPP) billions of USD does Israel have?
CREATE TABLE table_2248784_4 (country VARCHAR)
SELECT name FROM table_name_46 WHERE pos = "d" AND date_of_birth = "1983-07-19"
What is the Name of the D Player born on 1983-07-19?
CREATE TABLE table_name_46 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat"
What is the % identity to C7orf38 of the animal whose common name is rat?
CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, common_name VARCHAR)
SELECT COUNT(original_air_date) FROM table_19396259_1 WHERE production_code = "3T7501"
Name the original air date for production code of 3t7501
CREATE TABLE table_19396259_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_10 WHERE visitor = "philadelphia"
What date was the game where the visiting team was philadelphia?
CREATE TABLE table_name_10 (date VARCHAR, visitor VARCHAR)
SELECT weight FROM table_14624447_24 WHERE number = 27
What are all weights for the number 27?
CREATE TABLE table_14624447_24 (weight VARCHAR, number VARCHAR)
SELECT nationality FROM table_name_79 WHERE rank = 27
What is the nationality for rank 27?
CREATE TABLE table_name_79 (nationality VARCHAR, rank VARCHAR)
SELECT province FROM table_name_61 WHERE city = "hiroshima"
Which Province has a City of hiroshima?
CREATE TABLE table_name_61 (province VARCHAR, city VARCHAR)
SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010"
What is the greatest number of losses a team that played fewer than 25 games in 2010 had?
CREATE TABLE table_name_87 (losses INTEGER, games VARCHAR, season VARCHAR)
SELECT recognised_seats FROM table_19304764_2 WHERE discipline = "Pharmacology"
Name the recognised seats for pharmacology
CREATE TABLE table_19304764_2 (recognised_seats VARCHAR, discipline VARCHAR)
SELECT doucet FROM table_11447995_2 WHERE lawrance = "36"
What is Doucet when Lawrance is 36?
CREATE TABLE table_11447995_2 (doucet VARCHAR, lawrance VARCHAR)
SELECT date FROM table_name_29 WHERE place = "chernivtsi" AND race_winners = "etienne bax / kaspars stupelis"
What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What
CREATE TABLE table_name_29 (date VARCHAR, place VARCHAR, race_winners VARCHAR)
SELECT country FROM table_name_27 WHERE date = "18 may 2004"
What is the name of the country that has 18 May 2004 as the date?
CREATE TABLE table_name_27 (country VARCHAR, date VARCHAR)
SELECT time_retired FROM table_name_78 WHERE points = "14"
What was the time/retired for the driver with 14 points?
CREATE TABLE table_name_78 (time_retired VARCHAR, points VARCHAR)
SELECT score FROM table_name_86 WHERE date = "23 july 1992"
I want the score for 23 july 1992
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR)
SELECT result FROM table_name_88 WHERE award = "drama desk award" AND category = "outstanding sound design"
Which production won the drama desk award as well as the category of outstanding sound design?
CREATE TABLE table_name_88 (result VARCHAR, award VARCHAR, category VARCHAR)
SELECT MAX(weight__kg_) FROM table_2062148_4
Name the most weight
CREATE TABLE table_2062148_4 (weight__kg_ INTEGER)
SELECT COUNT(location_attendance) FROM table_22893781_5 WHERE date = "December 2"
How many attended on december 2?
CREATE TABLE table_22893781_5 (location_attendance VARCHAR, date VARCHAR)
SELECT SUM(rank) FROM table_name_32 WHERE col__m_ = 0 AND peak = "aoraki/mount cook" AND prominence__m_ > 3 OFFSET 755
Which Rank has a Col (m) of 0, and a Peak of aoraki/mount cook, and a Prominence (m) larger than 3,755?
CREATE TABLE table_name_32 (rank INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR)
SELECT surface FROM table_name_53 WHERE opponent_in_final = "david nalbandian"
What is the surface of the tournament with david nalbandian as the opponent in the final?
CREATE TABLE table_name_53 (surface VARCHAR, opponent_in_final VARCHAR)
SELECT SUM(points) FROM table_name_70 WHERE entrant = "alfa romeo spa" AND year < 1951
What is the total points that an 1951 Entrant alfa romeo spa have?
CREATE TABLE table_name_70 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT to_par FROM table_name_73 WHERE total < 293 AND player = "tiger woods"
Tiger Woods with a total less than 293 had what To par?
CREATE TABLE table_name_73 (to_par VARCHAR, total VARCHAR, player VARCHAR)
SELECT date FROM table_name_17 WHERE away_team = "hawthorn"
what date were they playing in hawthorn
CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)
SELECT original_air_date FROM table_17356205_1 WHERE directed_by = "Terrence Nightingall"
What is the original air date of the episode directed by Terrence Nightingall?
CREATE TABLE table_17356205_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2
What is the name of the shipping agent of the document with id 2?
CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR)
SELECT nominated_work FROM table_name_67 WHERE category = "best performance by a leading actress in a play" AND year < 2007
Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007?
CREATE TABLE table_name_67 (nominated_work VARCHAR, category VARCHAR, year VARCHAR)
SELECT avg_start FROM table_2190919_3 WHERE avg_finish = "29.0"
With an average finish of 29.0, what was the average start?
CREATE TABLE table_2190919_3 (avg_start VARCHAR, avg_finish VARCHAR)
SELECT position FROM table_name_94 WHERE player = "jon perlman"
What was the position of Jon Perlman?
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT MAX(total) FROM table_name_31 WHERE solo > 15
What is the high total for players with over 15 solo tackles?
CREATE TABLE table_name_31 (total INTEGER, solo INTEGER)
SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = "bill holland"
Which race did Bill Holland win in 1946?
CREATE TABLE table_name_40 (race_name VARCHAR, year VARCHAR, winner VARCHAR)
SELECT visitor FROM table_name_74 WHERE home = "chicago black hawks" AND date = "april 20"
Name the Visitor that has a Home of chicago black hawks on april 20?
CREATE TABLE table_name_74 (visitor VARCHAR, home VARCHAR, date VARCHAR)