answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(year) FROM table_name_83 WHERE category = "best play"
How many years was Reasons to be Pretty nominated for best play?
CREATE TABLE table_name_83 (year VARCHAR, category VARCHAR)
SELECT earnings___$__ FROM table_name_40 WHERE player = "tiger woods"
What amount of earnings does Tiger Woods have?
CREATE TABLE table_name_40 (earnings___$__ VARCHAR, player VARCHAR)
SELECT SUM(score) FROM table_name_51 WHERE country = "australia" AND to_par = "e" AND player = "adam scott"
What was Adam Scott's total score when playing in Australia with a to par of e?
CREATE TABLE table_name_51 (score INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT attendance FROM table_name_86 WHERE opponent = "tonbridge angels"
What is the number of people in attendance when Tonbridge Angels is the opponent?
CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(record) FROM table_27715173_6 WHERE date = "November 24"
How many records are there for the game on november 24?
CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR)
SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston"
What was the score for Boston's Home game that had Gerber as the decision?
CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR)
SELECT sales_total FROM table_name_30 WHERE chart = "oricon monthly albums chart"
Which Sales Total has a Chart of oricon monthly albums chart?
CREATE TABLE table_name_30 (sales_total VARCHAR, chart VARCHAR)
SELECT semi_finalists FROM table_name_55 WHERE runner_up = "katrina adams zina garrison-jackson"
What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?
CREATE TABLE table_name_55 (semi_finalists VARCHAR, runner_up VARCHAR)
SELECT score FROM table_name_75 WHERE opponent_in_the_final = "ana ivanovic"
What was the final score of the game against opponent Ana Ivanovic?
CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT runner_up FROM table_name_49 WHERE year < 2008 AND champion = "josé acasuso"
Which Runner-up has a Year smaller than 2008, and a Champion of josé acasuso?
CREATE TABLE table_name_49 (runner_up VARCHAR, year VARCHAR, champion VARCHAR)
SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = "1"
How many total songs has the order #1
CREATE TABLE table_21501518_1 (song_choice VARCHAR, order__number VARCHAR)
SELECT dates_active FROM table_10602294_1 WHERE name = "Kamba"
When was Kamba active?
CREATE TABLE table_10602294_1 (dates_active VARCHAR, name VARCHAR)
SELECT game_title FROM table_name_48 WHERE metacritic = "85/100" AND year_released < 2010
What game was released before 2010 with a Metacritic of 85/100?
CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR)
SELECT tyres FROM table_name_70 WHERE class = "c" AND year < 1983
Which tires were in Class C in years before 1983?
CREATE TABLE table_name_70 (tyres VARCHAR, class VARCHAR, year VARCHAR)
SELECT COUNT(lost) FROM table_name_63 WHERE against = 49 AND played < 20
Which Lost has an Against of 49 and a Played smaller than 20?
CREATE TABLE table_name_63 (lost VARCHAR, against VARCHAR, played VARCHAR)
SELECT director FROM table_11642945_1 WHERE original_air_date = "10January2008"
If the Original Air Date is 10January2008, what directors released on that date?
CREATE TABLE table_11642945_1 (director VARCHAR, original_air_date VARCHAR)
SELECT location FROM table_name_83 WHERE rank > 12 AND floors = 13
Which location has 13 floors and a rank greater than 12?
CREATE TABLE table_name_83 (location VARCHAR, rank VARCHAR, floors VARCHAR)
SELECT COUNT(high_points) FROM table_11960944_4 WHERE high_rebounds = "McDyess (9)" AND high_assists = "Billups (10)"
how many times was the high rebounds by Mcdyess (9) and the high assists was by Billups (10)?
CREATE TABLE table_11960944_4 (high_points VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR)
SELECT engine FROM table_name_4 WHERE entrant = "fuel injection"
What type of engine did the Fuel Injection entrant use?
CREATE TABLE table_name_4 (engine VARCHAR, entrant VARCHAR)
SELECT MAX(1987) FROM table_name_48 WHERE 1995 < 1995 AND 1999 < 9
What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT college FROM table_name_98 WHERE pick = 33
What college did pick 33 attend?
CREATE TABLE table_name_98 (college VARCHAR, pick VARCHAR)
SELECT event FROM table_name_24 WHERE skip = "john morris" AND second = "matt st. louis"
Which event shows Matt St. Louis in second and a skip of John Morris?
CREATE TABLE table_name_24 (event VARCHAR, skip VARCHAR, second VARCHAR)
SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.2"
What number episode had a 4.2 rating?
CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR)
SELECT windows_builders FROM table_22903426_1 WHERE name = "Apache Gump"
Name the windows builders for apache gump
CREATE TABLE table_22903426_1 (windows_builders VARCHAR, name VARCHAR)
SELECT candidates FROM table_1341690_9 WHERE incumbent = "Don Fuqua"
What candidates ran in the election with don fuqua?
CREATE TABLE table_1341690_9 (candidates VARCHAR, incumbent VARCHAR)
SELECT champion FROM table_name_47 WHERE score = "7–6, 6–0"
Who is the champion with a score of 7–6, 6–0?
CREATE TABLE table_name_47 (champion VARCHAR, score VARCHAR)
SELECT role FROM table_name_37 WHERE year = 2007
What role was played in 2007?
CREATE TABLE table_name_37 (role VARCHAR, year VARCHAR)
SELECT radon FROM table_name_65 WHERE atomic_property = "outer shell electron configuration"
Which Radon has Atomic property of outer shell electron configuration?
CREATE TABLE table_name_65 (radon VARCHAR, atomic_property VARCHAR)
SELECT tires FROM table_name_46 WHERE drivers = "johnny parsons"
What tires did Johnny Parsons use?
CREATE TABLE table_name_46 (tires VARCHAR, drivers VARCHAR)
SELECT leading_scorer FROM table_name_53 WHERE home = "knicks" AND visitor = "warriors"
Who was the leading scorer of the game where the Knicks were the home team and the Warriors were the visiting team?
CREATE TABLE table_name_53 (leading_scorer VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT home_team AS score FROM table_name_61 WHERE away_team = "fitzroy"
What did the home team score against Fitzroy?
CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR)
SELECT player FROM table_name_81 WHERE pick > 17 AND round < 12 AND position = "tight end"
Who is the player in tight end position in a round below 12 that has a pick greater than 17?
CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT to_par FROM table_name_39 WHERE place = "t5" AND score = 74 - 69 - 66 = 209
What was the to par at the T5 for the player with a score of 74-69-66=209?
CREATE TABLE table_name_39 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes"
Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?
CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR)
SELECT country FROM table_name_45 WHERE margin = "2 strokes" AND score = "276 (-4)"
What was the country when the margin was 2 strokes, and when the score was 276 (-4)?
CREATE TABLE table_name_45 (country VARCHAR, margin VARCHAR, score VARCHAR)
SELECT build_date FROM table_name_36 WHERE service = "freight" AND wheel_arrangement = "c-c"
When was the build date for c-c wheel arrangement and freight service?
CREATE TABLE table_name_36 (build_date VARCHAR, service VARCHAR, wheel_arrangement VARCHAR)
SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene"
Find the number of flights landing in the city of Aberdeen or Abilene.
CREATE TABLE Airports (AirportCode VARCHAR, city VARCHAR); CREATE TABLE Flights (DestAirport VARCHAR)
SELECT AVG(wins) FROM table_name_31 WHERE byes < 0
What is the average of wins when the byes are less than 0?
CREATE TABLE table_name_31 (wins INTEGER, byes INTEGER)
SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6
Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?
CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR)
SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat"
What was the score of the game with Nathalie Tauziat as a partner?
CREATE TABLE table_name_7 (score VARCHAR, partnering VARCHAR)
SELECT high_assists FROM table_15869204_5 WHERE location_attendance = "Delta Center 19,639"
Name the high assists for delta center 19,639
CREATE TABLE table_15869204_5 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT COUNT(district) FROM table_1342256_10 WHERE first_elected = 1940
How many districts have an incumbent first elected in 1940?
CREATE TABLE table_1342256_10 (district VARCHAR, first_elected VARCHAR)
SELECT opponent FROM table_name_55 WHERE record = "4-2"
Which opponent has a record of 4-2?
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR)
SELECT production_code FROM table_25604014_4 WHERE directed_by = "Sam Weisman"
What is the production code for the episode directed by Sam weisman?
CREATE TABLE table_25604014_4 (production_code VARCHAR, directed_by VARCHAR)
SELECT nfl_team FROM table_14649522_1 WHERE college = "South Carolina"
Which team picked from South Carolina college?
CREATE TABLE table_14649522_1 (nfl_team VARCHAR, college VARCHAR)
SELECT director_s_ FROM table_name_92 WHERE film_title_used_in_nomination = "cannibal vegetarian"
Who is the director of Cannibal vegetarian, which is the film title used in nomination?
CREATE TABLE table_name_92 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT result FROM table_name_10 WHERE score = "2-2"
What's the result when the score is 2-2?
CREATE TABLE table_name_10 (result VARCHAR, score VARCHAR)
SELECT llws FROM table_name_70 WHERE city = "parsippany"
Which Little League World Series took place in Parsippany?
CREATE TABLE table_name_70 (llws VARCHAR, city VARCHAR)
SELECT winning_horse FROM table_name_81 WHERE winning_jockey = "rafael bejarano"
Who is the jockey for the winning horse Rafael Bejarano?
CREATE TABLE table_name_81 (winning_horse VARCHAR, winning_jockey VARCHAR)
SELECT location_attendance FROM table_11964154_9 WHERE high_rebounds = "Nick Collison (14)"
what's the location attendance where high rebounds is nick collison (14)
CREATE TABLE table_11964154_9 (location_attendance VARCHAR, high_rebounds VARCHAR)
SELECT outcome_of_election FROM table_name_31 WHERE candidate = "edward mahama" AND number_of_votes = "73,494"
What is the outcome of the election with edward mahama as a candidate and 73,494 votes?
CREATE TABLE table_name_31 (outcome_of_election VARCHAR, candidate VARCHAR, number_of_votes VARCHAR)
SELECT SUM(crowd) FROM table_name_50 WHERE venue = "victoria park"
What was the crowd numbers when the VFL played Victoria Park?
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
SELECT booking_start_date, booking_end_date FROM Apartment_Bookings
Show the start dates and end dates of all the apartment bookings.
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, booking_end_date VARCHAR)
SELECT MIN(ratio) FROM table_name_67 WHERE name = "ansi e"
Which Ratio has a Name of ansi e?
CREATE TABLE table_name_67 (ratio INTEGER, name VARCHAR)
SELECT constructor FROM table_name_13 WHERE driver = "jenson button"
What was Jenson Button's constructor?
CREATE TABLE table_name_13 (constructor VARCHAR, driver VARCHAR)
SELECT T1.School_name, T1.Mascot, T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested, T2.total_budget_percent_budgeted
List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.
CREATE TABLE school (School_name VARCHAR, Mascot VARCHAR, IHSAA_Football_Class VARCHAR, school_id VARCHAR); CREATE TABLE budget (school_id VARCHAR, total_budget_percent_invested VARCHAR, total_budget_percent_budgeted VARCHAR)
SELECT title FROM table_29803475_3 WHERE directed_by = "James Bobin"
what is the name of the episode directed by james bobin
CREATE TABLE table_29803475_3 (title VARCHAR, directed_by VARCHAR)
SELECT third FROM table_name_20 WHERE champion = "metalurh novomoskovsk"
Which Third has a Champion of metalurh novomoskovsk?
CREATE TABLE table_name_20 (third VARCHAR, champion VARCHAR)
SELECT date_of_appointment FROM table_27114708_2 WHERE team = "Ascoli"
For team ascoli please mention all the appointment date.
CREATE TABLE table_27114708_2 (date_of_appointment VARCHAR, team VARCHAR)
SELECT total_score_week FROM table_18278508_6 WHERE date_performed = "August 14" AND position = "Bottom 2"
What was the total score / week of the contestant who placed in the bottom 2 on august 14?
CREATE TABLE table_18278508_6 (total_score_week VARCHAR, date_performed VARCHAR, position VARCHAR)
SELECT format FROM table_name_70 WHERE country = "united kingdom" AND catalogue__number = "886973273913 (gowow012)"
What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?
CREATE TABLE table_name_70 (format VARCHAR, country VARCHAR, catalogue__number VARCHAR)
SELECT country FROM table_name_60 WHERE player = "gene littler"
What Country is Gene Littler from?
CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR)
SELECT mens_doubles FROM table_12171145_1 WHERE womens_singles = "Mette Sørensen"
Who was the mens doubles when womens singles is mette sørensen?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT date FROM table_name_71 WHERE game = 3
what is the date for game 3?
CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR)
SELECT winner FROM table_name_71 WHERE points_classification = "giuseppe saronni" AND trofeo_fast_team = "bianchi" AND stage = "3"
Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?
CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR)
SELECT high_rebounds FROM table_17058226_5 WHERE high_points = "Kevin Love (20)"
Who had all the high rebounds when kevin love (20) scored the highest points?
CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT MAX(bronze) FROM table_name_21 WHERE nation = "austria" AND total > 6
Which Bronze has a Nation of austria, and a Total larger than 6?
CREATE TABLE table_name_21 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(game) FROM table_22871316_11 WHERE date = "April 30"
How many games are on the date of April 30?
CREATE TABLE table_22871316_11 (game INTEGER, date VARCHAR)
SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense"
When Platense was the away team on 16 August 2008 how many people attended the game?
CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR)
SELECT score FROM table_name_46 WHERE player = "dave douglas"
Dave Douglas has what score?
CREATE TABLE table_name_46 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_47 WHERE tournament = "dutch open" AND opponent = "wong choong hann"
What was the score of the player who played against Wong Choong Hann in the Dutch Open?
CREATE TABLE table_name_47 (score VARCHAR, tournament VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar"
Name the score for 10 april 2007 and opponent of selima sfar
CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT MAX(episode) FROM table_29773532_21 WHERE share_16_39 = "23,22%"
Which episode had a share 16-19 of 23,22%?
CREATE TABLE table_29773532_21 (episode INTEGER, share_16_39 VARCHAR)
SELECT position FROM table_name_24 WHERE competition = "world championships" AND venue = "tokyo, japan"
What Position was achieved in the World Championships Competition in Tokyo, Japan?
CREATE TABLE table_name_24 (position VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT male_population_2001 FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 896
What are all values for male population in 2001 when sex ratio in 1991 is 896?
CREATE TABLE table_19589113_5 (male_population_2001 VARCHAR, sex_ratio_‡_1991 VARCHAR)
SELECT city FROM table_name_57 WHERE country = "spain" AND stadium = "palacio de deportes de santander"
Which City has a Country of spain, and a Stadium of palacio de deportes de santander?
CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, stadium VARCHAR)
SELECT COUNT(losses) FROM table_name_61 WHERE played > 34
How many losses had a played number that was more than 34?
CREATE TABLE table_name_61 (losses VARCHAR, played INTEGER)
SELECT name FROM table_26916717_1 WHERE team_school = "California"
What player attended california university?
CREATE TABLE table_26916717_1 (name VARCHAR, team_school VARCHAR)
SELECT venue FROM table_name_64 WHERE away_team = "geelong"
What venue features geelong as the away side?
CREATE TABLE table_name_64 (venue VARCHAR, away_team VARCHAR)
SELECT title FROM table_27115960_1 WHERE no_in_series = 9
Season 9 all the titles were no. in series.
CREATE TABLE table_27115960_1 (title VARCHAR, no_in_series VARCHAR)
SELECT MIN(place) FROM table_name_8 WHERE country = "united kingdom" AND time = "1:30.51.2"
When the United Kingdom had a time of 1:30.51.2, what was the lowest that they ranked?
CREATE TABLE table_name_8 (place INTEGER, country VARCHAR, time VARCHAR)
SELECT MAX(year) FROM table_name_34 WHERE champion = "marcel granollers"
what year has the highest marcel granollers champions?
CREATE TABLE table_name_34 (year INTEGER, champion VARCHAR)
SELECT 2007 FROM table_name_70 WHERE 2006 = "236"
What 2007 has 236 for 2006?
CREATE TABLE table_name_70 (Id VARCHAR)
SELECT MAX(losses) FROM table_name_81 WHERE club = "camperdown" AND against < 945
What's the highest amount of losses of Camperdown when the against was less than 945?
CREATE TABLE table_name_81 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT player FROM table_11677691_5 WHERE college = "Stanford"
Which players attend Stanford college?
CREATE TABLE table_11677691_5 (player VARCHAR, college VARCHAR)
SELECT accreditation_type FROM table_name_72 WHERE accreditation_level = "joyn" AND hardware_model = "nokia 700"
What is the Accreditation Type, when the Accreditation Level is Joyn, and when the Hardware Model is Nokia 700?
CREATE TABLE table_name_72 (accreditation_type VARCHAR, accreditation_level VARCHAR, hardware_model VARCHAR)
SELECT team FROM table_15869204_6 WHERE date = "January 9"
WHO DID THE RAPTORS PLAY ON JANUARY 9?
CREATE TABLE table_15869204_6 (team VARCHAR, date VARCHAR)
SELECT MAX(no_in_season) FROM table_15431959_1 WHERE directed_by = "Peter DeLuise"
How many seasons did Peter Deluise direct Stargate SG-1?
CREATE TABLE table_15431959_1 (no_in_season INTEGER, directed_by VARCHAR)
SELECT airport FROM table_name_11 WHERE icao = "ybcg"
Which airport has an ICAO of ybcg?
CREATE TABLE table_name_11 (airport VARCHAR, icao VARCHAR)
SELECT AVG(grid) FROM table_name_32 WHERE laps > 53
When the laps are over 53, what's the average grid?
CREATE TABLE table_name_32 (grid INTEGER, laps INTEGER)
SELECT colors FROM table_1221089_1 WHERE institution = "University of Richmond"
What are the the University of Richmond's school colors?
CREATE TABLE table_1221089_1 (colors VARCHAR, institution VARCHAR)
SELECT transfer_window FROM table_name_21 WHERE moving_from = "fenerbahçe"
What was the transfer window with a moving from of fenerbahçe?
CREATE TABLE table_name_21 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT COUNT(*) FROM instruments WHERE instrument = "drums"
How many songs have used the instrument "drums"?
CREATE TABLE instruments (instrument VARCHAR)
SELECT 2004 FROM table_name_61 WHERE 2012 = "21"
Tell me the 2004 for 2012 of 21
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT AVG(yards__red_tees_) FROM table_name_27 WHERE hole = "1" AND par__white_tees_ > 4
What is the average number of yards on a red tee that has a hole of 1 and a par above 4?
CREATE TABLE table_name_27 (yards__red_tees_ INTEGER, hole VARCHAR, par__white_tees_ VARCHAR)
SELECT chassis FROM table_name_32 WHERE year > 1990 AND entrant = "fondmetal f1 spa"
Which chassis did fondmetal f1 spa use after 1990?
CREATE TABLE table_name_32 (chassis VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT score FROM table_name_33 WHERE attendance = "gund arena 20,562" AND date = "january 27"
What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
CREATE TABLE table_name_33 (score VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT Name FROM technician WHERE Team <> "NYY"
List the name of technicians whose team is not "NYY".
CREATE TABLE technician (Name VARCHAR, Team VARCHAR)
SELECT champion FROM table_name_33 WHERE israel_bowl = "iv"
Name the champion for israel bowl of iv
CREATE TABLE table_name_33 (champion VARCHAR, israel_bowl VARCHAR)
SELECT attendance FROM table_name_48 WHERE home_team = "walsall"
What was the attendance for the home team of Walsall?
CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)