question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is To Par, when Country is "United States", when Place is "T4", and when Score is "71-68=139"?
CREATE TABLE table_name_75 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_75 WHERE country = "united states" AND place = "t4" AND score = 71 - 68 = 139
What is the final result of the team that has Simara as No.5?
CREATE TABLE table_name_11 (final VARCHAR, no5 VARCHAR)
SELECT final FROM table_name_11 WHERE no5 = "simara"
Where was the game with a 4-1 record played?
CREATE TABLE table_23243769_4 (location VARCHAR, record VARCHAR)
SELECT location FROM table_23243769_4 WHERE record = "4-1"
What was the date of appointment for the 10th person in position?
CREATE TABLE table_22133191_3 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT date_of_appointment FROM table_22133191_3 WHERE position_in_table = "10th"
Which Away team has Carlton for it's Home team?
CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_96 WHERE home_team = "carlton"
Who had a qual 1 of 1:01.461?
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR)
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461"
Name the Status of Venue of sydney sports ground , sydney?
CREATE TABLE table_name_46 (status VARCHAR, venue VARCHAR)
SELECT status FROM table_name_46 WHERE venue = "sydney sports ground , sydney"
For week number of the top 40, what was the results?
CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR)
SELECT result FROM table_22736523_1 WHERE week__number = "Top 40"
On what date was a two-way tie (8) the high rebound?
CREATE TABLE table_name_3 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_3 WHERE high_rebounds = "two-way tie (8)"
In how many district has a politician took office on 1844-10-14?
CREATE TABLE table_26362472_1 (district VARCHAR, took_office VARCHAR)
SELECT district FROM table_26362472_1 WHERE took_office = "1844-10-14"
What is the title of the original airing on e4 May 2, 2010?
CREATE TABLE table_22170495_6 (title VARCHAR, original_airing_on_e4 VARCHAR)
SELECT title FROM table_22170495_6 WHERE original_airing_on_e4 = "May 2, 2010"
Which week has a Kickoff time of 1:00 with a record of 4-5-1?
CREATE TABLE table_name_85 (week VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT week FROM table_name_85 WHERE kickoff_[a_] = "1:00" AND record = "4-5-1"
How many Wins have Winnings of $184,190, and a Top 10 larger than 1?
CREATE TABLE table_name_8 (wins VARCHAR, winnings VARCHAR, top_10 VARCHAR)
SELECT COUNT(wins) FROM table_name_8 WHERE winnings = "$184,190" AND top_10 > 1
What are all of the dates in the country of Canada?
CREATE TABLE table_15315816_1 (dates VARCHAR, country VARCHAR)
SELECT dates FROM table_15315816_1 WHERE country = "Canada"
Which County has Precincts of 90/90?
CREATE TABLE table_name_51 (county VARCHAR, precincts VARCHAR)
SELECT county FROM table_name_51 WHERE precincts = "90/90"
What circuit did Clay Regazzoni win?
CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR)
SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni"
Name the silver for ronald weigel category:articles with hcards
CREATE TABLE table_22355_44 (silver INTEGER, athlete VARCHAR)
SELECT MAX(silver) FROM table_22355_44 WHERE athlete = "Ronald Weigel Category:Articles with hCards"
What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197?
CREATE TABLE table_23938357_7 (ws_points VARCHAR)
SELECT MIN(08 AS _09_gp_jgp_2nd) FROM table_23938357_7 WHERE ws_points = 3197
Name the school/s with is size of 604.
CREATE TABLE table_1984697_85 (school VARCHAR, size VARCHAR)
SELECT school FROM table_1984697_85 WHERE size = 604
What was Trevard Lindley's number?
CREATE TABLE table_14624447_33 (number INTEGER, name VARCHAR)
SELECT MAX(number) FROM table_14624447_33 WHERE name = "Trevard Lindley"
What is the schoo/club team of the player in round 3?
CREATE TABLE table_name_92 (school_club_team VARCHAR, round VARCHAR)
SELECT school_club_team FROM table_name_92 WHERE round = 3
List the companies and the investors of entrepreneurs.
CREATE TABLE entrepreneur (Company VARCHAR, Investor VARCHAR)
SELECT Company, Investor FROM entrepreneur
If the district is Chittorgarh, what is the area?
CREATE TABLE table_2168295_1 (area__km²_ VARCHAR, district VARCHAR)
SELECT area__km²_ FROM table_2168295_1 WHERE district = "Chittorgarh"
What year was the first store in India?
CREATE TABLE table_name_20 (first_store VARCHAR, country VARCHAR)
SELECT first_store FROM table_name_20 WHERE country = "india"
Round of 11 had waht sum of pick?
CREATE TABLE table_name_24 (pick INTEGER, round VARCHAR)
SELECT SUM(pick) FROM table_name_24 WHERE round = 11
Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?
CREATE TABLE table_name_37 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT driver FROM table_name_37 WHERE grid > 2 AND constructor = "bmw sauber" AND time_retired = "+15.037"
Who build the boat where Ken Read was the skipper?
CREATE TABLE table_19872699_1 (builder VARCHAR, skipper VARCHAR)
SELECT builder FROM table_19872699_1 WHERE skipper = "Ken Read"
What is the lowest number of total race points for the country of Belgium?
CREATE TABLE table_23293785_2 (race_total_pts_ INTEGER, country VARCHAR)
SELECT MIN(race_total_pts_) FROM table_23293785_2 WHERE country = "Belgium"
Who was the runner-up at the event held in Tartu, Estonia?
CREATE TABLE table_name_53 (runner_up VARCHAR, venue VARCHAR)
SELECT runner_up FROM table_name_53 WHERE venue = "tartu, estonia"
What was the type of game with a 1:6 result?
CREATE TABLE table_name_5 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT type_of_game FROM table_name_5 WHERE results¹ = "1:6"
WHAT PLAYER HAS A SCORE OF 66-73=139?
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_79 WHERE score = 66 - 73 = 139
Return all the committees that have delegates from Democratic party.
CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)
SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic"
List the order dates of all the bookings.
CREATE TABLE BOOKINGS (Order_Date VARCHAR)
SELECT Order_Date FROM BOOKINGS
How many grids have less than 41 laps and a Driver of pedro de la rosa?
CREATE TABLE table_name_11 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_11 WHERE laps < 41 AND driver = "pedro de la rosa"
What was the outcome of the final with a partner of Brett Steven?
CREATE TABLE table_name_62 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_62 WHERE partner = "brett steven"
What player is a cornerback?
CREATE TABLE table_name_57 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_57 WHERE position = "cornerback"
Where was the incident of 2009-09-05?
CREATE TABLE table_name_28 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_28 WHERE date = "2009-09-05"
How few acres is the area of Clashroe?
CREATE TABLE table_30120633_1 (area__acres__ INTEGER, townland VARCHAR)
SELECT MIN(area__acres__) FROM table_30120633_1 WHERE townland = "Clashroe"
Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?
CREATE TABLE table_name_71 (number__map_ INTEGER, area_in_km² VARCHAR, population_canada_2011_census VARCHAR)
SELECT MIN(number__map_) FROM table_name_71 WHERE area_in_km² = 9.7 AND population_canada_2011_census > 66 OFFSET 158
What is the total of the team with a T score less than 6.8?
CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER)
SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8
Name the location attendance for philadelphia
CREATE TABLE table_15780049_8 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_15780049_8 WHERE team = "Philadelphia"
Which player is from the College of Alabama?
CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_97 WHERE college = "alabama"
Where did Carlton play as the home team?
CREATE TABLE table_name_14 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_14 WHERE home_team = "carlton"
What was the To par of the golfer that placed t5?
CREATE TABLE table_name_66 (to_par VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_66 WHERE place = "t5"
How many wins when the draws are less than 1 and more than 4 losses?
CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, losses VARCHAR)
SELECT AVG(wins) FROM table_name_59 WHERE draws < 1 AND losses > 4
What is High Points, when Team is @ Phoenix?
CREATE TABLE table_name_73 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_name_73 WHERE team = "@ phoenix"
When the Total is less than 1, how many Bronze medals are won?
CREATE TABLE table_name_27 (bronze INTEGER, total INTEGER)
SELECT MIN(bronze) FROM table_name_27 WHERE total < 1
What was the lowest week in the month of August against Andrew Combs?
CREATE TABLE table_name_60 (week INTEGER, month VARCHAR, offensive VARCHAR)
SELECT MIN(week) FROM table_name_60 WHERE month = "august" AND offensive = "andrew combs"
What does a hand of Theoretical return have as a 3 credit?
CREATE TABLE table_name_34 (hand VARCHAR)
SELECT 3 AS _credits FROM table_name_34 WHERE hand = "theoretical return"
What are the distinct years in which the competitions type is not "Tournament"?
CREATE TABLE competition (YEAR VARCHAR, Competition_type VARCHAR)
SELECT DISTINCT YEAR FROM competition WHERE Competition_type <> "Tournament"
What chassis had 39 points?
CREATE TABLE table_name_5 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_5 WHERE points = "39"
What is the name of the winner when the Score was 274 (–14) in tennessee?
CREATE TABLE table_name_40 (winner VARCHAR, score VARCHAR, location VARCHAR)
SELECT winner FROM table_name_40 WHERE score = "274 (–14)" AND location = "tennessee"
What was the score for the away team when they played at lake oval?
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
Name the transfer wind for giuly
CREATE TABLE table_name_15 (transfer_window VARCHAR, name VARCHAR)
SELECT transfer_window FROM table_name_15 WHERE name = "giuly"
What game was played at Philadelphia?
CREATE TABLE table_name_36 (game INTEGER, team VARCHAR)
SELECT AVG(game) FROM table_name_36 WHERE team = "philadelphia"
What is the match number where the result is ICL World by 8 wickets?
CREATE TABLE table_17103566_1 (match_number VARCHAR, result VARCHAR)
SELECT match_number FROM table_17103566_1 WHERE result = "ICL World by 8 wickets"
which is the number of the season episode whose writer is R. Scott Gemmill and the Director is Ray Austin?
CREATE TABLE table_228973_3 (no_in_season VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT no_in_season FROM table_228973_3 WHERE written_by = "R. Scott Gemmill" AND directed_by = "Ray Austin"
What is the total of the ranks that did not participate?
CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)
SELECT total FROM table_name_88 WHERE rank = "did not participate"
Name the nationality for francesco guglielmi
CREATE TABLE table_22705586_1 (nationality VARCHAR, name VARCHAR)
SELECT nationality FROM table_22705586_1 WHERE name = "Francesco Guglielmi"
What party was re-elected to Virginia 12?
CREATE TABLE table_2668420_17 (party VARCHAR, result VARCHAR, district VARCHAR)
SELECT party FROM table_2668420_17 WHERE result = "Re-elected" AND district = "Virginia 12"
What city of license/market has the channel of 41?
CREATE TABLE table_1847523_2 (city_of_license__market VARCHAR, channel___tv___rf__ VARCHAR)
SELECT city_of_license__market FROM table_1847523_2 WHERE channel___tv___rf__ = "41"
What is withdrawn with a GSR Class of 296?
CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR)
SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296"
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 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 title of the record with an artist of Tangorodrim, category number FSR006?
CREATE TABLE table_name_46 (title VARCHAR, artist VARCHAR, cat__number VARCHAR)
SELECT title FROM table_name_46 WHERE artist = "tangorodrim" AND cat__number = "fsr006"
What is the score of the home team that played Collingwood?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "collingwood"
What round did the celtic played away on 24 february 1900?
CREATE TABLE table_name_9 (round VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT round FROM table_name_9 WHERE opponent = "celtic" AND date = "24 february 1900"
What's the diameter when longitude is 105.0e before 2003?
CREATE TABLE table_name_42 (diameter__km_ INTEGER, longitude VARCHAR, year_named VARCHAR)
SELECT SUM(diameter__km_) FROM table_name_42 WHERE longitude = "105.0e" AND year_named < 2003
What tournament location has south korea as the country?
CREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR)
SELECT tournament_location FROM table_name_43 WHERE country = "south korea"
Who has a walking data of 3:10:48+?
CREATE TABLE table_name_11 (athlete VARCHAR, data VARCHAR)
SELECT athlete FROM table_name_11 WHERE data = "3:10:48+"
Which earth has west metal?
CREATE TABLE table_name_10 (earth VARCHAR, metal VARCHAR)
SELECT earth FROM table_name_10 WHERE metal = "west"
What is the highest year that a candidate was first elected?
CREATE TABLE table_1341738_11 (first_elected INTEGER)
SELECT MAX(first_elected) FROM table_1341738_11
Which bullet has a Shoulder of 10.92 (.430)?
CREATE TABLE table_name_25 (bullet VARCHAR, shoulder VARCHAR)
SELECT bullet FROM table_name_25 WHERE shoulder = "10.92 (.430)"
What was the attendance for the away team Solihull Moors?
CREATE TABLE table_name_10 (attendance VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_10 WHERE away_team = "solihull moors"
Name the opponent when the resultwas w 12-11
CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_45 WHERE result = "w 12-11"
What is the Name of the Player with a Height of m (ft 1in)?
CREATE TABLE table_name_20 (name VARCHAR, height VARCHAR)
SELECT name FROM table_name_20 WHERE height = "m (ft 1in)"
What are the average byes of Bonnie Doon having more than 16 wins?
CREATE TABLE table_name_54 (byes INTEGER, benalla_dfl VARCHAR, wins VARCHAR)
SELECT AVG(byes) FROM table_name_54 WHERE benalla_dfl = "bonnie doon" AND wins > 16
What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?
CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt"
what's the date entered service with ships name koningin wilhelmina
CREATE TABLE table_11662133_3 (date_entered_service VARCHAR, ships_name VARCHAR)
SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = "Koningin Wilhelmina"
Which team played them when andray blatche , javale mcgee (20) had the high points?
CREATE TABLE table_27721131_6 (team VARCHAR, high_points VARCHAR)
SELECT team FROM table_27721131_6 WHERE high_points = "Andray Blatche , JaVale McGee (20)"
What is the share of votes in the 2008 (1) election?
CREATE TABLE table_name_99 (share_of_votes VARCHAR, election VARCHAR)
SELECT share_of_votes FROM table_name_99 WHERE election = "2008 (1)"
What is the acquis chapter open/closed dates with a membership application in 2009-04-28?
CREATE TABLE table_name_44 (acquis_chapters_open_closed VARCHAR, membership_application VARCHAR)
SELECT acquis_chapters_open_closed FROM table_name_44 WHERE membership_application = "2009-04-28"
Which Opponent has a Venue of h, and a Result of 0–1, and a Date of 29 august 1998?
CREATE TABLE table_name_12 (opponent VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_12 WHERE venue = "h" AND result = "0–1" AND date = "29 august 1998"
What is the number of played when points against 645?
CREATE TABLE table_13018116_1 (played VARCHAR, pts_agst VARCHAR)
SELECT COUNT(played) FROM table_13018116_1 WHERE pts_agst = 645
Name thedistrict for 1994
CREATE TABLE table_1341472_34 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341472_34 WHERE first_elected = 1994
Show the parties that have both representatives in New York state and representatives in Pennsylvania state.
CREATE TABLE representative (Party VARCHAR, State VARCHAR)
SELECT Party FROM representative WHERE State = "New York" INTERSECT SELECT Party FROM representative WHERE State = "Pennsylvania"
Who got the 3rd place in the cup on 01.02.2009?
CREATE TABLE table_20462111_1 (date VARCHAR)
SELECT 3 AS rd_place FROM table_20462111_1 WHERE date = "01.02.2009"
Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?
CREATE TABLE table_name_11 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT position FROM table_name_11 WHERE college_junior_club_team__league_ = "estevan bruins (wchl)" AND round = 3
Which episode had 16.38 million U.S. viewers?
CREATE TABLE table_10935548_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT title FROM table_10935548_1 WHERE us_viewers__millions_ = "16.38"
Who was No. 3 when No. 5 James and No. 6 Mason?
CREATE TABLE table_name_35 (no_3 VARCHAR, no_5 VARCHAR, no_6 VARCHAR)
SELECT no_3 FROM table_name_35 WHERE no_5 = "james" AND no_6 = "mason"
What is Time/Retired, when Laps is less than 49, and when Name is "Michael Caruso"?
CREATE TABLE table_name_65 (time_retired VARCHAR, laps VARCHAR, name VARCHAR)
SELECT time_retired FROM table_name_65 WHERE laps < 49 AND name = "michael caruso"
What was the location and the attendance for the game on October 12?
CREATE TABLE table_27756572_2 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_27756572_2 WHERE date = "October 12"
Name the sum of laps for mi-jack conquest racing and points less than 11
CREATE TABLE table_name_19 (laps INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(laps) FROM table_name_19 WHERE team = "mi-jack conquest racing" AND points < 11
Which game had Philadelphia as its home team and was played on April 23?
CREATE TABLE table_name_55 (game VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT game FROM table_name_55 WHERE home_team = "philadelphia" AND date = "april 23"
Which Tie number had Fulham as the away team?
CREATE TABLE table_name_79 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_79 WHERE away_team = "fulham"
What did st. louis score at home?
CREATE TABLE table_name_11 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_11 WHERE home = "st. louis"
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?
CREATE TABLE table_name_98 (rank INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE gold < 3 AND silver > 2 AND total < 5
What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?
CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR)
SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943"
What score was on July 25?
CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_26 WHERE date = "july 25"
What are the least losses of Mortlake having less than 970 against?
CREATE TABLE table_name_96 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT MIN(losses) FROM table_name_96 WHERE club = "mortlake" AND against < 970
How many people wrote episode number 2 of the season?
CREATE TABLE table_25737761_4 (writer VARCHAR, _number VARCHAR)
SELECT COUNT(writer) FROM table_25737761_4 WHERE _number = 2