answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT 2011 FROM table_name_74 WHERE tournament = "miami masters"
WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS?
CREATE TABLE table_name_74 (tournament VARCHAR)
SELECT bullet FROM table_name_28 WHERE length = "33.78 (1.33)"
Which bullet has a Length of 33.78 (1.33)?
CREATE TABLE table_name_28 (bullet VARCHAR, length VARCHAR)
SELECT nominated_work FROM table_name_29 WHERE result = "nominated" AND award = "drama league award" AND year < 2007
What was the nominated work, nominated for the drama league award before 2007?
CREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR)
SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California"
what are all the positions of players who's hometown is concord, california
CREATE TABLE table_11677691_12 (position VARCHAR, hometown VARCHAR)
SELECT date FROM table_name_49 WHERE games = "2002 salt lake city" AND time = "3:57.70"
On what day was the record set at the 2002 Salt Lake City games with a time of 3:57.70?
CREATE TABLE table_name_49 (date VARCHAR, games VARCHAR, time VARCHAR)
SELECT SUM(rank) FROM table_name_51 WHERE peak_name = "red shirt table"
What is the total number of ranks when the Peak Name is Red Shirt Table?
CREATE TABLE table_name_51 (rank INTEGER, peak_name VARCHAR)
SELECT location FROM table_26847237_1 WHERE opposition = "East Coast"
What was the location when the opposition was East Coast?
CREATE TABLE table_26847237_1 (location VARCHAR, opposition VARCHAR)
SELECT game_site FROM table_name_58 WHERE date = "december 24, 2000"
What game site has december 24, 2000 as a date?
CREATE TABLE table_name_58 (game_site VARCHAR, date VARCHAR)
SELECT coupon FROM table_21692771_1 WHERE issuer = "COMMERZBANK AG"
What is the coupon that has an issuer of Commerzbank AG?
CREATE TABLE table_21692771_1 (coupon VARCHAR, issuer VARCHAR)
SELECT AVG(round) FROM table_name_25 WHERE record = "1-1"
What is the average round for the record of 1-1?
CREATE TABLE table_name_25 (round INTEGER, record VARCHAR)
SELECT reg_season FROM table_14225409_1 WHERE playoffs = "Conference Semifinals" AND us_open_cup = "Did not qualify"
What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup?
CREATE TABLE table_14225409_1 (reg_season VARCHAR, playoffs VARCHAR, us_open_cup VARCHAR)
SELECT nhl_team FROM table_1473672_2 WHERE college_junior_club_team = "Oshawa Generals (OMJHL)"
Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?
CREATE TABLE table_1473672_2 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT SUM(no_specimens) FROM table_name_1 WHERE abbr = "sant"
How many specimens does the SANT institution have?
CREATE TABLE table_name_1 (no_specimens INTEGER, abbr VARCHAR)
SELECT background FROM table_name_82 WHERE hometown = "barrington, illinois"
What is the Background of the Candidate from Barrington, Illinois?
CREATE TABLE table_name_82 (background VARCHAR, hometown VARCHAR)
SELECT ihsaa_class__football_ FROM table_name_63 WHERE school = "bishop luers"
What is Bishop Luers IHSAA class in football?
CREATE TABLE table_name_63 (ihsaa_class__football_ VARCHAR, school VARCHAR)
SELECT manufacturer FROM table_name_93 WHERE grid = "11"
Which manufacturer is grid 11?
CREATE TABLE table_name_93 (manufacturer VARCHAR, grid VARCHAR)
SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
What is the oldest log id and its corresponding problem id?
CREATE TABLE problem_log (problem_log_id VARCHAR, problem_id VARCHAR, log_entry_date VARCHAR)
SELECT home__2nd_leg_ FROM table_name_39 WHERE aggregate = "2-4"
Which team played at home for the second leg and has an aggregate score of 2-4?
CREATE TABLE table_name_39 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT years FROM table_name_96 WHERE name = "plateau school"
What years does plateau school serve?
CREATE TABLE table_name_96 (years VARCHAR, name VARCHAR)
SELECT match_points FROM table_27987767_2 WHERE losers = "Gran Parma"
how many match points did gran parma lost
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR)
SELECT date FROM table_27537518_7 WHERE first_star = "M. Grabovski"
What date was M. Grabovski the first start of the game?
CREATE TABLE table_27537518_7 (date VARCHAR, first_star VARCHAR)
SELECT record FROM table_name_90 WHERE high_points = "ray allen (27)"
What is Record, when High Points is "Ray Allen (27)"?
CREATE TABLE table_name_90 (record VARCHAR, high_points VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_37 WHERE cyrillic_name_other_names = "Александрово"
Name the population for александрово
CREATE TABLE table_2562572_37 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT result FROM table_name_85 WHERE opponent_number = "at 2 usc"
What was the result when the opponent was at 2 usc?
CREATE TABLE table_name_85 (result VARCHAR, opponent_number VARCHAR)
SELECT result FROM table_name_3 WHERE category = "best costume design"
Which Result has a Category of the best costume design?
CREATE TABLE table_name_3 (result VARCHAR, category VARCHAR)
SELECT title FROM table_name_39 WHERE director = "rowell santiago"
Which Title has a Director of rowell santiago?
CREATE TABLE table_name_39 (title VARCHAR, director VARCHAR)
SELECT place FROM table_name_51 WHERE score = 68 - 69 - 73 = 210
What is the place of the 68-69-73=210?
CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR)
SELECT surface FROM table_name_51 WHERE edition = 2012 AND outcome = "winner"
What is Surface, when Edition is 2012, and when Outcome is Winner?
CREATE TABLE table_name_51 (surface VARCHAR, edition VARCHAR, outcome VARCHAR)
SELECT range__varies_with_payload_weight_ FROM table_name_34 WHERE payload = "unknown"
What is the range (varies by payload weight) for the unknown player?
CREATE TABLE table_name_34 (range__varies_with_payload_weight_ VARCHAR, payload VARCHAR)
SELECT COUNT(losses) FROM table_name_4 WHERE against = 1412 AND byes < 2
What is the total number of losses against 1412, and Byes less than 2?
CREATE TABLE table_name_4 (losses VARCHAR, against VARCHAR, byes VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE game_site = "kingdome" AND date = "october 13, 1991"
Which week was the game held at Kingdome on October 13, 1991?
CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "burnley"
When was the away team burnley?
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_87 WHERE tournament = "alfred dunhill championship 1"
What is Date, when Tournament is Alfred Dunhill Championship 1?
CREATE TABLE table_name_87 (date VARCHAR, tournament VARCHAR)
SELECT home_team FROM table_name_20 WHERE venue = "corio oval"
Who was the home team for the game played at Corio Oval?
CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR)
SELECT name FROM table_name_20 WHERE height = "m (ft 1in)"
What is the Name of the Player with a Height of m (ft 1in)?
CREATE TABLE table_name_20 (name VARCHAR, height VARCHAR)
SELECT COUNT(index_weighting___percentage__at_17_january_2013) FROM table_168274_1 WHERE company = "Bouygues"
Name the total number of index weighting % at 17 january 2013 for bouygues
CREATE TABLE table_168274_1 (index_weighting___percentage__at_17_january_2013 VARCHAR, company VARCHAR)
SELECT AVG(Years_working) FROM journalist
What is the average number of years spent working as a journalist?
CREATE TABLE journalist (Years_working INTEGER)
SELECT network FROM table_22485543_1 WHERE studio_host = "Bob Costas" AND ice_level_reporters = "Darren Pang"
Which network has bob costas as the studio host and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (network VARCHAR, studio_host VARCHAR, ice_level_reporters VARCHAR)
SELECT MIN(reported_offenses) FROM table_name_96 WHERE killeen_rate = 511.6 AND texas_rate < 314.4
Killeen Rate of 511.6, and a Texas Rate smaller than 314.4 is the lowest reported offenses?
CREATE TABLE table_name_96 (reported_offenses INTEGER, killeen_rate VARCHAR, texas_rate VARCHAR)
SELECT COUNT(team) FROM table_242813_2 WHERE overall_rank = 4
Name the team ranked 4
CREATE TABLE table_242813_2 (team VARCHAR, overall_rank VARCHAR)
SELECT celebrity FROM table_name_94 WHERE entered = "day 1" AND exited = "day 20"
Who entered on day 1 and exited on day 20?
CREATE TABLE table_name_94 (celebrity VARCHAR, entered VARCHAR, exited VARCHAR)
SELECT date FROM table_name_1 WHERE venue = "windy hill"
What dates were the matches at windy hill?
CREATE TABLE table_name_1 (date VARCHAR, venue VARCHAR)
SELECT distance_duration FROM table_name_3 WHERE date = "sept 5" AND race_title = "le grand prix de trois-rivières"
What is the distance/duration on sept 5 of le grand prix de trois-rivières?
CREATE TABLE table_name_3 (distance_duration VARCHAR, date VARCHAR, race_title VARCHAR)
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'
Find the names of customers who are not living in the state of California.
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364
What was Lee Smith's highest number of goals when he made fewer than 364 appearances?
CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR)
SELECT local_affairs FROM table_name_9 WHERE human_resources_ & _operations = "n. charles hamilton"
Who was in local affairs when the Human Resources & Operations was N. Charles Hamilton?
CREATE TABLE table_name_9 (local_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT MAX(points) FROM table_name_93 WHERE year < 1983
What is the most amount of points for a team before 1983?
CREATE TABLE table_name_93 (points INTEGER, year INTEGER)
SELECT builder FROM table_name_98 WHERE name = "uss cambridge"
Who was the builder for the USS cambridge?
CREATE TABLE table_name_98 (builder VARCHAR, name VARCHAR)
SELECT home_team FROM table_name_21 WHERE tie_no = "14"
WHAT IS THE HOME TEAM WITH A TIE OF 14?
CREATE TABLE table_name_21 (home_team VARCHAR, tie_no VARCHAR)
SELECT medal FROM table_name_68 WHERE event = "men's light welterweight" AND games = "1996 atlanta"
What medal was won in the men's light welterweight event at the 1996 Atlanta games?
CREATE TABLE table_name_68 (medal VARCHAR, event VARCHAR, games VARCHAR)
SELECT MIN(week) FROM table_24481478_1 WHERE team_record = "7–2"
In which week was the team record 7–2?
CREATE TABLE table_24481478_1 (week INTEGER, team_record VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE comptroller = "alan hevesi" AND party = "working families"
How many times what the comptroller alan hevesi and the party working families?
CREATE TABLE table_name_78 (year VARCHAR, comptroller VARCHAR, party VARCHAR)
SELECT result FROM table_name_74 WHERE opponent = "dundee"
What was the result when Dundee was the opponent?
CREATE TABLE table_name_74 (result VARCHAR, opponent VARCHAR)
SELECT proto_germanic FROM table_name_41 WHERE german = "/s/ or /ts/"
What's the Proto Germanic when then German is /s/ or /ts/?
CREATE TABLE table_name_41 (proto_germanic VARCHAR, german VARCHAR)
SELECT COUNT(game) FROM table_name_50 WHERE march = 19 AND points < 83
How many games have a March of 19, and Points smaller than 83?
CREATE TABLE table_name_50 (game VARCHAR, march VARCHAR, points VARCHAR)
SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis"
What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126?
CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR)
SELECT COUNT(season) FROM table_name_48 WHERE races > 14 AND position = "9th" AND wins < 0
how many times is races more than 14, position is 9th and wins less than 0?
CREATE TABLE table_name_48 (season VARCHAR, wins VARCHAR, races VARCHAR, position VARCHAR)
SELECT COUNT(rank) FROM table_name_47 WHERE surname = "lindberg"
What did the Surname Lindberg rank?
CREATE TABLE table_name_47 (rank VARCHAR, surname VARCHAR)
SELECT COUNT(wins) FROM table_name_77 WHERE top_5 < 2 AND events = 19
What was Miller Barber wins with Top-5 less than 2 and 19 Events?
CREATE TABLE table_name_77 (wins VARCHAR, top_5 VARCHAR, events VARCHAR)
SELECT MAX(Otl) FROM table_2233872_1 WHERE l = 28
What was the maximum OTL if L is 28?
CREATE TABLE table_2233872_1 (Otl INTEGER, l VARCHAR)
SELECT land___sqmi__ FROM table_18600760_18 WHERE township = "Reed"
What is the land area of Reed Township?
CREATE TABLE table_18600760_18 (land___sqmi__ VARCHAR, township VARCHAR)
SELECT COUNT(DISTINCT nationality) FROM swimmer
How many different countries are all the swimmers from?
CREATE TABLE swimmer (nationality VARCHAR)
SELECT MAX(score) FROM table_name_94 WHERE country = "united states" AND player = "tom purtzer"
When Tom Purtzer of the United States played what is the maximum score?
CREATE TABLE table_name_94 (score INTEGER, country VARCHAR, player VARCHAR)
SELECT venue FROM table_name_62 WHERE home_team = "melbourne"
In which venue does Melbourne play as the home team?
CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(opponent) FROM table_21269143_1 WHERE date = "05/09/2009"
Name the total number of opponets for 05/09/2009
CREATE TABLE table_21269143_1 (opponent VARCHAR, date VARCHAR)
SELECT name FROM Employee WHERE salary > (SELECT AVG(salary) FROM Employee)
Show names for all employees with salary more than the average.
CREATE TABLE Employee (name VARCHAR, salary INTEGER)
SELECT finish FROM table_name_95 WHERE year = "1953"
What was the finishing place for 1953?
CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)
SELECT original_air_date FROM table_27437601_2 WHERE no_in_season = 12
List the 1st air date for season 12.
CREATE TABLE table_27437601_2 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT COUNT(starts) FROM table_13026799_3 WHERE year = 1987
What is the number of starts for 1987?
CREATE TABLE table_13026799_3 (starts VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_98 WHERE game = "44"
Who was the opponent in Game 44?
CREATE TABLE table_name_98 (opponent VARCHAR, game VARCHAR)
SELECT catalog FROM table_name_44 WHERE date = "24 march 2006"
Which catalog has a date of 24 march 2006?
CREATE TABLE table_name_44 (catalog VARCHAR, date VARCHAR)
SELECT writer FROM table_name_9 WHERE artist = "mort drucker" AND issue > 470 AND actual_title = "law & order: svu"
What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?
CREATE TABLE table_name_9 (writer VARCHAR, actual_title VARCHAR, artist VARCHAR, issue VARCHAR)
SELECT position FROM table_name_55 WHERE years_in_orlando = "2003–2004"
Which Position has a Years in Orlando of 2003–2004?
CREATE TABLE table_name_55 (position VARCHAR, years_in_orlando VARCHAR)
SELECT country FROM table_name_46 WHERE gdp__nominal_ = "$29.9 billion"
Which country has a GDP (nominal) of $29.9 billion?
CREATE TABLE table_name_46 (country VARCHAR, gdp__nominal_ VARCHAR)
SELECT opponent FROM table_name_43 WHERE date = "31 jul"
who is the opponent on 31 jul?
CREATE TABLE table_name_43 (opponent VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_15 WHERE score_in_the_final = "4–6, 4–6" AND date = "october 21, 1990"
Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?
CREATE TABLE table_name_15 (outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR)
SELECT winner FROM table_name_49 WHERE team_classification = "silence-lotto"
What winner has silence-lotto as the team classification?
CREATE TABLE table_name_49 (winner VARCHAR, team_classification VARCHAR)
SELECT owner FROM table_2899987_2 WHERE origin = "Mexico City"
Which owners originate in Mexico City?
CREATE TABLE table_2899987_2 (owner VARCHAR, origin VARCHAR)
SELECT opponent FROM table_name_2 WHERE date = "september 4"
What team did the home team play on September 4?
CREATE TABLE table_name_2 (opponent VARCHAR, date VARCHAR)
SELECT high_assists FROM table_17355628_10 WHERE date = "April 8"
Name the high assists for april 8
CREATE TABLE table_17355628_10 (high_assists VARCHAR, date VARCHAR)
SELECT driver FROM table_name_24 WHERE rounds = "3"
Name the driver for 3 rounds
CREATE TABLE table_name_24 (driver VARCHAR, rounds VARCHAR)
SELECT COUNT(winning_driver) FROM table_10706879_3 WHERE name = "Kraco Twin 125 (R2)"
How many winning drivers in the kraco twin 125 (r2) race were there?
CREATE TABLE table_10706879_3 (winning_driver VARCHAR, name VARCHAR)
SELECT country FROM table_name_20 WHERE player = "craig stadler"
What country was the game in when the player was Craig Stadler?
CREATE TABLE table_name_20 (country VARCHAR, player VARCHAR)
SELECT production FROM table_name_67 WHERE result = "nominated" AND year = 2009 AND award_ceremony = "helpmann awards"
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?
CREATE TABLE table_name_67 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR)
SELECT name FROM table_name_85 WHERE transfer_window = "summer" AND nat = "ger" AND transfer_fee = "n/a"
Which player from GER has a transfer window of summer, and a transfer fee of n/a?
CREATE TABLE table_name_85 (name VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR, nat VARCHAR)
SELECT SUM(year) FROM table_name_25 WHERE result = "6th" AND venue = "munich, west germany"
What year is the result 6th in munich, west germany?
CREATE TABLE table_name_25 (year INTEGER, result VARCHAR, venue VARCHAR)
SELECT COUNT(assists) FROM table_name_94 WHERE name = "pablo prigioni" AND games > 21
What is the total number of Assists, when Name is "Pablo Prigioni", and when Games is greater than 21?
CREATE TABLE table_name_94 (assists VARCHAR, name VARCHAR, games VARCHAR)
SELECT player FROM table_name_94 WHERE round = 6
Who is the player in round 6?
CREATE TABLE table_name_94 (player VARCHAR, round VARCHAR)
SELECT AVG(year) FROM table_name_78 WHERE floors > 75
When was the average year that the number of floors was greater than 75?
CREATE TABLE table_name_78 (year INTEGER, floors INTEGER)
SELECT primary_conference FROM table_name_58 WHERE founded < 1866 AND affiliation = "private/catholic"
What is the primary conference that was founded before 1866 and has an affiliation of private/catholic?
CREATE TABLE table_name_58 (primary_conference VARCHAR, founded VARCHAR, affiliation VARCHAR)
SELECT opponent FROM table_name_77 WHERE date = "november 5, 1961"
Who did the Eagle's play on November 5, 1961?
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_29 WHERE date = "november 17"
who visited on november 17?
CREATE TABLE table_name_29 (visitor VARCHAR, date VARCHAR)
SELECT year_s__won FROM table_name_71 WHERE total < 276
Which Year(s) won has a Total smaller than 276? Question 1
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER)
SELECT tries_against FROM table_17941032_3 WHERE tries_for = "30"
Name the tries against when tries for is 30
CREATE TABLE table_17941032_3 (tries_against VARCHAR, tries_for VARCHAR)
SELECT MIN(attendance) FROM table_14656147_2
Find the least value of attendance?
CREATE TABLE table_14656147_2 (attendance INTEGER)
SELECT COUNT(seats) FROM table_name_72 WHERE dáil = "6th"
How many seats does the 6th Dail have?
CREATE TABLE table_name_72 (seats VARCHAR, dáil VARCHAR)
SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11"
What is the Score that has a Home of montreal canadiens on april 11?
CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT date FROM table_name_75 WHERE home_team = "collingwood"
What date did Collingwood play as the home team?
CREATE TABLE table_name_75 (date VARCHAR, home_team VARCHAR)
SELECT time FROM table_name_15 WHERE week = 2
What time was the game in week 2?
CREATE TABLE table_name_15 (time VARCHAR, week VARCHAR)
SELECT type_of_work FROM table_207795_1 WHERE published_in_english = "N/A" AND published_in_russian = "1986"
when it published in english is n/a and published in russian is 1986, what is the type of work?
CREATE TABLE table_207795_1 (type_of_work VARCHAR, published_in_english VARCHAR, published_in_russian VARCHAR)