answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT venue FROM table_name_95 WHERE date = "september 11, 2004"
Where was the game on September 11, 2004?
CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR)
SELECT opponent FROM table_18894744_5 WHERE record = "10-4"
Name the opponent for record 10-4
CREATE TABLE table_18894744_5 (opponent VARCHAR, record VARCHAR)
SELECT country FROM table_name_56 WHERE notes = "sc/d" AND athlete = "latt shwe zin"
Which country is the athlete latt shwe zin with notes of sc/d from?
CREATE TABLE table_name_56 (country VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT competition FROM table_name_12 WHERE notes = "1:48.58"
In which competition was Moradi's time 1:48.58?
CREATE TABLE table_name_12 (competition VARCHAR, notes VARCHAR)
SELECT name FROM table_name_11 WHERE dcsf_number = 2117
Can you tell me the Name that has the DCSF number of 2117?
CREATE TABLE table_name_11 (name VARCHAR, dcsf_number VARCHAR)
SELECT authority FROM table_name_35 WHERE area = "rototuna"
What authority does the rototuna area have?
CREATE TABLE table_name_35 (authority VARCHAR, area VARCHAR)
SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series"
In the 250 series on clay what were the scores?
CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR)
SELECT date FROM table_name_96 WHERE score = "2–0"
What is the Date of the Competition with a Score of 2–0?
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR)
SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = "northeastern"
Name the Score of the Year larger than 2004 and a Runner-up of northeastern?
CREATE TABLE table_name_43 (score VARCHAR, year VARCHAR, runner_up VARCHAR)
SELECT home_team FROM table_name_40 WHERE tie_no = "16"
Who was the home team for tie number 16?
CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)
SELECT MIN(gold) FROM table_name_47 WHERE silver > 11 AND rank = "1" AND bronze < 7
What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals?
CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT MAX(total) FROM table_name_56 WHERE name = "bianka panova" AND place < 1
What is Bianka Panova's highest total with lower than place 1?
CREATE TABLE table_name_56 (total INTEGER, name VARCHAR, place VARCHAR)
SELECT score FROM table_name_6 WHERE visitor = "atlanta"
What was the score for the game against Atlanta?
CREATE TABLE table_name_6 (score VARCHAR, visitor VARCHAR)
SELECT DISTINCT characteristic_name FROM CHARACTERISTICS
Find the names of all the product characteristics.
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR)
SELECT date FROM table_name_38 WHERE score = "6-4"
When was the game that ended with a score of 6-4?
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification"
Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"?
CREATE TABLE MATCH (match_id VARCHAR, competition VARCHAR)
SELECT chart_peak FROM table_name_64 WHERE recorded = "2/19/69"
Which Chart peak was Recorded on 2/19/69?
CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR)
SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id
List the name for storms and the number of affected regions for each storm.
CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
SELECT state FROM table_name_74 WHERE electorate = "west sydney"
Which State has an Electorate of West Sydney?
CREATE TABLE table_name_74 (state VARCHAR, electorate VARCHAR)
SELECT catalog FROM table_name_18 WHERE format = "cd"
What catalog has the CD format?
CREATE TABLE table_name_18 (catalog VARCHAR, format VARCHAR)
SELECT losing_bonus FROM table_17941032_2 WHERE points = "53"
What was the losing bonus that had 53 points?
CREATE TABLE table_17941032_2 (losing_bonus VARCHAR, points VARCHAR)
SELECT venue FROM table_name_67 WHERE time = "14:30" AND away_team = "sun source"
What is the venue of the match with a 14:30 time and sun source as the away team?
CREATE TABLE table_name_67 (venue VARCHAR, time VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_30 WHERE away_team = "hawthorn"
What did the home team score against the away team Hawthorn?
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT Name FROM TRACK WHERE Name LIKE '%you%'
Find the names of all the tracks that contain the word "you".
CREATE TABLE TRACK (Name VARCHAR)
SELECT clublocation FROM club WHERE clubname = "Hopkins Student Enterprises"
Where is the club "Hopkins Student Enterprises" located?
CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR)
SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279)
Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?
CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_95 WHERE result = "draw"
What is the Date when the match Resulted in a draw?
CREATE TABLE table_name_95 (date VARCHAR, result VARCHAR)
SELECT player FROM table_name_24 WHERE school = "spring hs (spring, texas)"
who is the player when the school is spring hs (spring, texas)?
CREATE TABLE table_name_24 (player VARCHAR, school VARCHAR)
SELECT height_ft___m FROM table_name_77 WHERE floors = 40
What is the height of the building with 40 floors?
CREATE TABLE table_name_77 (height_ft___m VARCHAR, floors VARCHAR)
SELECT date FROM table_name_36 WHERE label = "bertelsmann music group" AND region = "europe"
What's the Date for the Label of Bertelsmann Music group and has a Region of Europe?
CREATE TABLE table_name_36 (date VARCHAR, label VARCHAR, region VARCHAR)
SELECT designation FROM table_name_37 WHERE launch_weight = "11.3kg"
What designation has a launch weight of 11.3kg?
CREATE TABLE table_name_37 (designation VARCHAR, launch_weight VARCHAR)
SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16
Name the sum of 2010 for 2000 of 17 and 2005 more than 16
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT COUNT(year) FROM table_name_66 WHERE position = "2nd"
How many years have had the position of 2nd?
CREATE TABLE table_name_66 (year VARCHAR, position VARCHAR)
SELECT record FROM table_name_42 WHERE game = "8"
What is the record for Game 8?
CREATE TABLE table_name_42 (record VARCHAR, game VARCHAR)
SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE ship_types_delivered = "S2 (LST) type, S2 (frigate) type, C1-M type"
What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered?
CREATE TABLE table_11552751_2 (ship_types_delivered VARCHAR)
SELECT date FROM table_17355408_4 WHERE team = "Chicago"
Name the date for chicago
CREATE TABLE table_17355408_4 (date VARCHAR, team VARCHAR)
SELECT brand FROM table_name_68 WHERE frequency = 640
What is Brand, when Frequency is "640"?
CREATE TABLE table_name_68 (brand VARCHAR, frequency VARCHAR)
SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = "2008–2009" AND lost < 13
How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?
CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR)
SELECT MAX(pa) FROM table_15333005_1 WHERE locale = Ontario
Name the most pa for ontario
CREATE TABLE table_15333005_1 (pa INTEGER, locale VARCHAR, Ontario VARCHAR)
SELECT location FROM table_name_82 WHERE record = "15–1–1 (1)"
When his record was 15–1–1 (1) where did he fight?
CREATE TABLE table_name_82 (location VARCHAR, record VARCHAR)
SELECT AVG(goals) FROM table_name_81 WHERE team = "rah ahan" AND division < 1
What is the average Goals, when Team is "Rah Ahan", and when Division is less than 1?
CREATE TABLE table_name_81 (goals INTEGER, team VARCHAR, division VARCHAR)
SELECT position FROM table_name_88 WHERE years_for_rockets = "1981"
What was the position of the player who played for the Rockets during 1981?
CREATE TABLE table_name_88 (position VARCHAR, years_for_rockets VARCHAR)
SELECT MIN(gold) FROM table_name_71 WHERE bronze = 2 AND rank = 6 AND total > 2
What is the smallest number of gold of a country of rank 6, with 2 bronzes?
CREATE TABLE table_name_71 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MAX(championships) FROM table_name_54 WHERE club = "springfield cardinals"
What are the highest championships where the club is Springfield Cardinals?
CREATE TABLE table_name_54 (championships INTEGER, club VARCHAR)
SELECT player FROM table_2781227_2 WHERE nhl_team = "Chicago Blackhawks"
What player belongs to the Chicago Blackhawks?
CREATE TABLE table_2781227_2 (player VARCHAR, nhl_team VARCHAR)
SELECT year FROM table_name_9 WHERE event = "junior race" AND position = "8th"
What year did she place 8th in the junior race?
CREATE TABLE table_name_9 (year VARCHAR, event VARCHAR, position VARCHAR)
SELECT notes FROM table_name_59 WHERE venue = "rome" AND date = "july 30, 2009"
For a venue of Rome on July 30, 2009, what are the notes?
CREATE TABLE table_name_59 (notes VARCHAR, venue VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_94 WHERE attendance = "24,791"
Which Opponent has an Attendance of 24,791?
CREATE TABLE table_name_94 (opponent VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_9 WHERE opponent = "orioles" AND date = "april 14"
Which record has an Opponent of orioles and a Date of april 14?
CREATE TABLE table_name_9 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT area FROM table_name_54 WHERE name = "mangamahu primary school"
What is the area of Mangamahu primary school?
CREATE TABLE table_name_54 (area VARCHAR, name VARCHAR)
SELECT MAX(prize_money__) AS $__ FROM table_name_16 WHERE rank = 1
What is the prize money for the player ranked 1?
CREATE TABLE table_name_16 (prize_money__ INTEGER, rank VARCHAR)
SELECT rank FROM table_13337302_16 WHERE dismissals = 4
List the ranks of all dismissals with a value of 4
CREATE TABLE table_13337302_16 (rank VARCHAR, dismissals VARCHAR)
SELECT drawn FROM table_name_12 WHERE losing_bonus = "6"
What is the value for Drawn, when the value for Losing bonus is 6?
CREATE TABLE table_name_12 (drawn VARCHAR, losing_bonus VARCHAR)
SELECT SUM(wins) FROM table_name_55 WHERE losses < 4 AND goals_against > 20
What is the sum of wins and the sum of losses less than 4 for teams larger than 20?
CREATE TABLE table_name_55 (wins INTEGER, losses VARCHAR, goals_against VARCHAR)
SELECT attendance FROM table_name_95 WHERE week > 16
What's the attendance when the week was more than 16?
CREATE TABLE table_name_95 (attendance VARCHAR, week INTEGER)
SELECT COUNT(age) FROM table_23476629_2 WHERE hometown = "Andujar"
How many contestants of whatever age are there whose hometown of Andujar?
CREATE TABLE table_23476629_2 (age VARCHAR, hometown VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?
CREATE TABLE table_name_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MAX(overall) FROM table_name_9 WHERE name = "gregory spann" AND pick__number > 19
Which Overall is the highest one that has a Name of gregory spann, and a Pick # larger than 19?
CREATE TABLE table_name_9 (overall INTEGER, name VARCHAR, pick__number VARCHAR)
SELECT party FROM table_name_55 WHERE ifop_5_30_09 = "2.5%"
Who had an Iflop of 2.5%?
CREATE TABLE table_name_55 (party VARCHAR, ifop_5_30_09 VARCHAR)
SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand"
What was Anders Forsbrand's score when the TO par is +4?
CREATE TABLE table_name_65 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT street_address FROM table_name_70 WHERE floors = 17
What is the Street Address of the Building with 17 Floors?
CREATE TABLE table_name_70 (street_address VARCHAR, floors VARCHAR)
SELECT MAX(launched) FROM table_name_1 WHERE name = "trn"
Tell me the highest launced for trn
CREATE TABLE table_name_1 (launched INTEGER, name VARCHAR)
SELECT AVG(game) FROM table_name_30 WHERE december > 21 AND opponent = "pittsburgh penguins"
December larger than 21, and a Opponent of Pittsburgh penguins had what average game?
CREATE TABLE table_name_30 (game INTEGER, december VARCHAR, opponent VARCHAR)
SELECT MAX(ends_lost) FROM table_name_11 WHERE locale = "ontario"
What's Ontario's highest Ends Lost?
CREATE TABLE table_name_11 (ends_lost INTEGER, locale VARCHAR)
SELECT award FROM table_name_18 WHERE year = 1992
What award is featured in 1992?
CREATE TABLE table_name_18 (award VARCHAR, year VARCHAR)
SELECT score FROM table_name_48 WHERE loss = "lannan (4-8)"
What is the score when a loss was listed with Lannan (4-8)?
CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR)
SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb"
What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?
CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT shutdown FROM table_name_26 WHERE electricity_grid = "28.12.1972"
When did the Electricity Grid 28.12.1972 officially shutdown?
CREATE TABLE table_name_26 (shutdown VARCHAR, electricity_grid VARCHAR)
SELECT position FROM table_name_82 WHERE year = 2009
Which position was in 2009?
CREATE TABLE table_name_82 (position VARCHAR, year VARCHAR)
SELECT SUM(laps) FROM table_name_40 WHERE time_retired = "exhaust" AND grid < 15
In grid 15, how many laps were there before ending with a time of exhaust?
CREATE TABLE table_name_40 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT home_team AS score FROM table_name_36 WHERE home_team = "footscray"
What is the average home team score for Footscray?
CREATE TABLE table_name_36 (home_team VARCHAR)
SELECT longitude FROM table_name_41 WHERE year_named = 1997 AND diameter__km_ < 490 AND name = "zipaltonal fluctus"
What's the longitude named zipaltonal fluctus in 1997 with a diameter smaller than 490?
CREATE TABLE table_name_41 (longitude VARCHAR, name VARCHAR, year_named VARCHAR, diameter__km_ VARCHAR)
SELECT MIN(laps) FROM table_name_85 WHERE rank = "30"
What is the lowest lap with a rank of 30?
CREATE TABLE table_name_85 (laps INTEGER, rank VARCHAR)
SELECT nationality FROM table_name_19 WHERE position = "d"
Name the nationality for d
CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR)
SELECT surface FROM table_name_98 WHERE semifinalists = "stefan edberg thomas muster"
Which Surface has a Semifinalist of stefan edberg thomas muster?
CREATE TABLE table_name_98 (surface VARCHAR, semifinalists VARCHAR)
SELECT MAX(block) FROM table_name_76 WHERE date_of_birth = "15.09.1981" AND height > 202
What is the highest block that has 15.09.1981 as the date, and a height greater than 202?
CREATE TABLE table_name_76 (block INTEGER, date_of_birth VARCHAR, height VARCHAR)
SELECT attendance FROM table_name_9 WHERE date = "august 29"
What is the attendance for august 29?
CREATE TABLE table_name_9 (attendance VARCHAR, date VARCHAR)
SELECT method FROM table_name_41 WHERE time = "0:38"
How did he win with a time of 0:38?
CREATE TABLE table_name_41 (method VARCHAR, time VARCHAR)
SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = "els callens nancy feber"
What tournament had an opponent of Els Callens Nancy Feber?
CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(*) FROM pilot
How many pilots are there?
CREATE TABLE pilot (Id VARCHAR)
SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = "Steve Shill" AND production_code = "E2102"
What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?
CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR)
SELECT ship FROM table_name_18 WHERE nationality = "norway"
What ship has a norway nationality?
CREATE TABLE table_name_18 (ship VARCHAR, nationality VARCHAR)
SELECT score FROM table_name_52 WHERE player = "john mahaffey"
What score did John Mahaffey have?
CREATE TABLE table_name_52 (score VARCHAR, player VARCHAR)
SELECT high_assists FROM table_name_18 WHERE date = "november 1"
What is High Assists, when Date is "November 1"?
CREATE TABLE table_name_18 (high_assists VARCHAR, date VARCHAR)
SELECT SUM(wins) FROM table_name_57 WHERE top_5 < 0
How many Wins have a Top 5 smaller than 0?
CREATE TABLE table_name_57 (wins INTEGER, top_5 INTEGER)
SELECT date FROM table_name_68 WHERE opponent = "canada"
What is the date when Canada played?
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR)
SELECT speed__ghz_ FROM table_269920_17 WHERE model = "X5560"
What is the speed of model x5560?
CREATE TABLE table_269920_17 (speed__ghz_ VARCHAR, model VARCHAR)
SELECT runners_up FROM table_name_39 WHERE last_final_lost = "1985"
How many runners-up did the club with the last final lost in 1985 have?
CREATE TABLE table_name_39 (runners_up VARCHAR, last_final_lost VARCHAR)
SELECT round_of_32 FROM table_17289604_38 WHERE athlete = "Nicole Vaidišová"
What were the results for round of 32 for Nicole Vaidišová?
CREATE TABLE table_17289604_38 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT MIN(attendance) FROM table_name_72 WHERE date = "february 4" AND points < 57
What is the lowest Attendance, when Date is "February 4", and when Points is less than 57?
CREATE TABLE table_name_72 (attendance INTEGER, date VARCHAR, points VARCHAR)
SELECT nationality FROM table_name_40 WHERE school_club_team = "seattle"
Which Nationality has a School/Club Team of seattle?
CREATE TABLE table_name_40 (nationality VARCHAR, school_club_team VARCHAR)
SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten"
What is the College of the LB Player with Big Ten Conf.?
CREATE TABLE table_name_70 (college VARCHAR, pos VARCHAR, conf VARCHAR)
SELECT venue FROM table_name_41 WHERE home_team = "footscray"
Where did Footscray play as the home team?
CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(mountains_classification) FROM table_23157997_13 WHERE youth_classification = "Mike Northey"
How many Mountains Classifications were in the race with Mike Northey as Youth Classification?
CREATE TABLE table_23157997_13 (mountains_classification VARCHAR, youth_classification VARCHAR)
SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum'
What are the opening year and staff number of the museum named Plaza Museum?
CREATE TABLE museum (Num_of_Staff VARCHAR, Open_Year VARCHAR, name VARCHAR)
SELECT district FROM table_1341453_45 WHERE incumbent = "Nick Lampson"
What district is nick lampson from?
CREATE TABLE table_1341453_45 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney"
How many types of products have Rodrick Heaney bought in total?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT COUNT(points_against) FROM table_13564637_5 WHERE tries_for = "43"
How many numbers were recorded points against when the tries were for 43?
CREATE TABLE table_13564637_5 (points_against VARCHAR, tries_for VARCHAR)
SELECT date FROM table_name_8 WHERE against = 42
What is the date of the 42 Against?
CREATE TABLE table_name_8 (date VARCHAR, against VARCHAR)
SELECT time_retired FROM table_name_78 WHERE grid > 1 AND driver = "damon hill"
Which Time/Retired had a grid number bigger than 1 and whose driver was Damon Hill?
CREATE TABLE table_name_78 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)