answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "15.28"
What is the percentage of land area in the ecozone that the percentage protected is 15.28?
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289
What Player has a To par of +1 and the Score 75-70-71-73=289?
CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT COUNT(authors) FROM table_19523708_1 WHERE original = "Carry On"
How many authors are present when the original was Carry On?
CREATE TABLE table_19523708_1 (authors VARCHAR, original VARCHAR)
SELECT teleplay_by FROM table_26914076_2 WHERE story_by = "David Simon & Eric Overmyer and Tom Piazza"
Name the teleplay for david simon & eric overmyer and tom piazza
CREATE TABLE table_26914076_2 (teleplay_by VARCHAR, story_by VARCHAR)
SELECT player FROM table_name_24 WHERE college_junior_club_team__league_ = "regina pats (whl)"
Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?
CREATE TABLE table_name_24 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT pole_position FROM table_name_54 WHERE grand_prix = "portuguese grand prix"
What is the pole position of the Portuguese Grand Prix?
CREATE TABLE table_name_54 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT COUNT(first_elected) FROM table_1342233_5 WHERE district = "Arkansas 4"
How many were first elected in the Arkansas 4 district?
CREATE TABLE table_1342233_5 (first_elected VARCHAR, district VARCHAR)
SELECT site FROM table_name_49 WHERE game = "game 6"
Name the site with game of game 6
CREATE TABLE table_name_49 (site VARCHAR, game VARCHAR)
SELECT chinese_title FROM table_name_57 WHERE album_number = "3rd"
Album # of 3rd is what chinese title?
CREATE TABLE table_name_57 (chinese_title VARCHAR, album_number VARCHAR)
SELECT drawn FROM table_name_51 WHERE points_against = "371"
If points against was 371, what is the drawn?
CREATE TABLE table_name_51 (drawn VARCHAR, points_against VARCHAR)
SELECT COUNT(field_goals__5_points_) FROM table_14342210_14 WHERE player = "Walter Shaw"
How many field goals did Walter Shaw make?
CREATE TABLE table_14342210_14 (field_goals__5_points_ VARCHAR, player VARCHAR)
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray"
What date did Jamie McMurray win the race?
CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR)
SELECT album FROM table_18442691_2 WHERE artist = "ABBA"
When abba is the artist what is the album?
CREATE TABLE table_18442691_2 (album VARCHAR, artist VARCHAR)
SELECT MAX(gold) FROM table_name_78 WHERE silver < 0
What was the highest number of gold medals when there were 0 silver medals?
CREATE TABLE table_name_78 (gold INTEGER, silver INTEGER)
SELECT MAX(episode) FROM table_name_23 WHERE netflix = "s05e23"
What largest episode number's Netflix is S05E23?
CREATE TABLE table_name_23 (episode INTEGER, netflix VARCHAR)
SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8"
How many points for the cosworth v8 engine after 1985?
CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson"
What is the Free Agent Type for player bryant johnson?
CREATE TABLE table_name_2 (free_agent_type VARCHAR, player VARCHAR)
SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
Show location and name for all stadiums with a capacity between 5000 and 10000.
CREATE TABLE stadium (LOCATION VARCHAR, name VARCHAR, capacity INTEGER)
SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25°__seconds_ = "10.1" AND shell__lb_ < 12.5
What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?
CREATE TABLE table_name_24 (max_height__ft_ INTEGER, time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR)
SELECT pos FROM table_name_41 WHERE european_competitions = "eurocup regular season"
Name the position for european competitions of eurocup regular season
CREATE TABLE table_name_41 (pos VARCHAR, european_competitions VARCHAR)
SELECT COUNT(lane) FROM table_name_15 WHERE name = "brooke bennett" AND rank < 1
Name the total number of lane for brooke bennett and rank less than 1
CREATE TABLE table_name_15 (lane VARCHAR, name VARCHAR, rank VARCHAR)
SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = "19½–14½" AND venue = "harding park golf club"
Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?
CREATE TABLE table_name_31 (winning_team VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR)
SELECT l2_cache FROM table_name_48 WHERE model_number = "mobile pentium 333"
What is the L2 cache for the Mobile Pentium 333?
CREATE TABLE table_name_48 (l2_cache VARCHAR, model_number VARCHAR)
SELECT most_laps_led FROM table_name_28 WHERE winning_team = "chip ganassi racing" AND fastest_lap = "marco andretti"
What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti?
CREATE TABLE table_name_28 (most_laps_led VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR)
SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3
What is the highest numbered grid for piercarlo ghinzani with over 3 laps?
CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)"
Which film title used in nomination has the year (ceremony) 1990 (63rd)?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT SUM(votes) FROM table_name_26 WHERE vote__percentage > 19.5
Name the sum of votes % more than 19.5
CREATE TABLE table_name_26 (votes INTEGER, vote__percentage INTEGER)
SELECT institution FROM table_18483171_1 WHERE team_nickname = "Cardinals"
List all institutions with a team name of the Cardinals.
CREATE TABLE table_18483171_1 (institution VARCHAR, team_nickname VARCHAR)
SELECT position FROM table_name_31 WHERE year < 2000 AND college_country = "usc"
Regarding players before 2000, what is the USC player's position?
CREATE TABLE table_name_31 (position VARCHAR, year VARCHAR, college_country VARCHAR)
SELECT coach FROM table_1165048_1 WHERE dudley_tuckey_medal = "Ben Howlett"
who is the coach where dudley tuckey medal is ben howlett
CREATE TABLE table_1165048_1 (coach VARCHAR, dudley_tuckey_medal VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12
Which average money has a To par larger than 12?
CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER)
SELECT position FROM table_23585197_3 WHERE songwriter_s_ = "Adam Sandahl"
What is the position of the song that adam sandahl wrote?
CREATE TABLE table_23585197_3 (position VARCHAR, songwriter_s_ VARCHAR)
SELECT COUNT(running) FROM table_12407546_2 WHERE athlete = "Pamela Zapata"
What is the numberof running wiht pamela zapata?
CREATE TABLE table_12407546_2 (running VARCHAR, athlete VARCHAR)
SELECT nominating_festival FROM table_name_35 WHERE country = "germany"
What Nominating Festival took place in Germany?
CREATE TABLE table_name_35 (nominating_festival VARCHAR, country VARCHAR)
SELECT MAX(game) FROM table_name_6 WHERE series = "oilers win 4–3"
Series of oilers win 4–3 had what highest game?
CREATE TABLE table_name_6 (game INTEGER, series VARCHAR)
SELECT year FROM table_name_57 WHERE genre = "adventure"
What's year was the genre Adventure?
CREATE TABLE table_name_57 (year VARCHAR, genre VARCHAR)
SELECT COUNT(place) FROM table_name_97 WHERE draw = 21 AND points > 36
What is the total number of places for a song with a draw of 21 and more than 36 points?
CREATE TABLE table_name_97 (place VARCHAR, draw VARCHAR, points VARCHAR)
SELECT party FROM table_1342233_32 WHERE district = "New York 20"
What is the party for new york 20?
CREATE TABLE table_1342233_32 (party VARCHAR, district VARCHAR)
SELECT result FROM table_name_28 WHERE film_title_used_in_nomination = "lake of tears"
WHAT IS THE RESULT WITH FILM LAKE OF TEARS?
CREATE TABLE table_name_28 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT Fname, Lname FROM Student WHERE Major = 600
List all students' first names and last names who majored in 600.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Major VARCHAR)
SELECT SUM(pick) FROM table_name_25 WHERE position = "lw"
What is the sum of the pick of the lw position player?
CREATE TABLE table_name_25 (pick INTEGER, position VARCHAR)
SELECT MAX(byes) FROM table_name_88 WHERE losses > 7 AND wins < 6 AND draws < 0
Which byes are high when losses are larger than 7, wins smaller than 6, and draws are smaller than 0?
CREATE TABLE table_name_88 (byes INTEGER, draws VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897
Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?
CREATE TABLE table_name_50 (qual_1 VARCHAR, best VARCHAR, qual_2 VARCHAR)
SELECT SUM(game__number) FROM table_name_57 WHERE record = "11-10-3"
Record of 11-10-3 is what sum of game #?
CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR)
SELECT opponent FROM table_name_71 WHERE player = "ashley sampi"
Who was ashley sampi's opponent?
CREATE TABLE table_name_71 (opponent VARCHAR, player VARCHAR)
SELECT driver FROM table_name_21 WHERE capacity < 5700 AND total_time = "08:29"
Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?
CREATE TABLE table_name_21 (driver VARCHAR, capacity VARCHAR, total_time VARCHAR)
SELECT SUM(level) FROM table_name_7 WHERE season = 2007
what is the total levels in 2007?
CREATE TABLE table_name_7 (level INTEGER, season VARCHAR)
SELECT score FROM table_name_81 WHERE country = "canada"
What is Canada's score?
CREATE TABLE table_name_81 (score VARCHAR, country VARCHAR)
SELECT height FROM table_12962773_5 WHERE position = "Forward" AND current_club = "Real Madrid"
what's the height with position being forward and current club being real madrid
CREATE TABLE table_12962773_5 (height VARCHAR, position VARCHAR, current_club VARCHAR)
SELECT branding FROM table_10333757_1 WHERE calls = "WRKO"
What Branding does WRKO calls use?
CREATE TABLE table_10333757_1 (branding VARCHAR, calls VARCHAR)
SELECT SUM(byes) FROM table_name_24 WHERE wins < 16 AND losses = 8 AND mininera_dfl = "penshurst" AND against < 1405
WHAT ARE THE BYES WITH A WIN SMALLER THAN 16, 8 LOSSES, AND AT PENSHURST, WITH AGAINST SMALLER THAN 1405?
CREATE TABLE table_name_24 (byes INTEGER, against VARCHAR, mininera_dfl VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT team FROM table_name_30 WHERE birthplace = "northfield, minnesota"
What is the Team for the player born in northfield, minnesota?
CREATE TABLE table_name_30 (team VARCHAR, birthplace VARCHAR)
SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660
What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?
CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR)
SELECT result FROM table_name_37 WHERE award = "bodil award" AND category = "best actress" AND year = 2005
What was the result of the bodil award winning film from before 2005 in the best actress category?
CREATE TABLE table_name_37 (result VARCHAR, year VARCHAR, award VARCHAR, category VARCHAR)
SELECT year_s__won FROM table_name_40 WHERE total = 145 AND country = "united states"
What is Year(s) Won, when Total is "145", and when Country is "United States"?
CREATE TABLE table_name_40 (year_s__won VARCHAR, total VARCHAR, country VARCHAR)
SELECT MAX(year_established) FROM table_1784514_1
What is the latest year a division was established?
CREATE TABLE table_1784514_1 (year_established INTEGER)
SELECT high_rebounds FROM table_27700375_11 WHERE team = "Charlotte"
Name the high rebounds for charlotte
CREATE TABLE table_27700375_11 (high_rebounds VARCHAR, team VARCHAR)
SELECT date FROM table_1140090_6 WHERE winning_driver = "Chris Amon"
What was the date when Chris Amon won?
CREATE TABLE table_1140090_6 (date VARCHAR, winning_driver VARCHAR)
SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315
What are the heights of body builders with total score smaller than 315?
CREATE TABLE people (Height VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)
SELECT position FROM table_name_59 WHERE school_club_team = "michigan state"
What is Michigan State's position?
CREATE TABLE table_name_59 (position VARCHAR, school_club_team VARCHAR)
SELECT to_par FROM table_name_10 WHERE score = 70
Which To par is scored at 70?
CREATE TABLE table_name_10 (to_par VARCHAR, score VARCHAR)
SELECT Name, Party FROM representative
What are the names and parties of representatives?
CREATE TABLE representative (Name VARCHAR, Party VARCHAR)
SELECT nhl_team FROM table_1965650_8 WHERE player = "Jim Koleff"
What NHL team did jim koleff play on?
CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(publisher) FROM table_1217448_1 WHERE first_appearance = "Daredevil #1"
what is the total number of publisher where first appearance is daredevil #1
CREATE TABLE table_1217448_1 (publisher VARCHAR, first_appearance VARCHAR)
SELECT record FROM table_name_56 WHERE score = "111-96"
What record has a score of 111-96?
CREATE TABLE table_name_56 (record VARCHAR, score VARCHAR)
SELECT beatified FROM table_name_17 WHERE canonised < 1988
When was the person(s) who were canonised before 1988 beatified?
CREATE TABLE table_name_17 (beatified VARCHAR, canonised INTEGER)
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13"
What year was the winning race time 1:55:13?
CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR)
SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980
how many cars were produced in 1980?
CREATE TABLE CARS_DATA (YEAR VARCHAR)
SELECT COUNT(crowd) FROM table_name_77 WHERE venue = "glenferrie oval"
What is the crowd total for glenferrie oval?
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"
What are all the title directed by reginald hudlin
CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)
SELECT stadium FROM table_25129482_1 WHERE manager = "Kari Martonen"
Which stadium is managed by Kari Martonen?
CREATE TABLE table_25129482_1 (stadium VARCHAR, manager VARCHAR)
SELECT charter_range FROM table_name_85 WHERE school = "montana state university"
What are the active dates for the Montana State University chapter?
CREATE TABLE table_name_85 (charter_range VARCHAR, school VARCHAR)
SELECT round FROM table_name_90 WHERE name = "vladimir morozov"
What round has a name of vladimir morozov?
CREATE TABLE table_name_90 (round VARCHAR, name VARCHAR)
SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = "33.7%"
what is the highest mccain # where obama got 33.7%
CREATE TABLE table_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR)
SELECT method FROM table_name_33 WHERE event = "shooto" AND round = 2 AND opponent = "issei tamura"
Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?
CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, event VARCHAR, round VARCHAR)
SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round"
What is the pos with more than 1 tier during Pokal Slovenije 1. round?
CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)
SELECT second_member FROM table_name_3 WHERE first_member = "sir rowland hill, bt" AND second_party = "conservative"
Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?
CREATE TABLE table_name_3 (second_member VARCHAR, first_member VARCHAR, second_party VARCHAR)
SELECT date FROM table_name_20 WHERE year = "2008"
What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?
CREATE TABLE table_name_20 (date VARCHAR, year VARCHAR)
SELECT last_performance FROM table_19189856_1 WHERE first_performance = "11/15/1909"
when was the last performance of the first performance on 11/15/1909
CREATE TABLE table_19189856_1 (last_performance VARCHAR, first_performance VARCHAR)
SELECT to_par FROM table_name_72 WHERE player = "greg turner"
What is To par, when Player is "Greg Turner"?
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_name_53 WHERE category = "best international newcomer"
What year had the category of best international newcomer?
CREATE TABLE table_name_53 (year VARCHAR, category VARCHAR)
SELECT husband_dates FROM table_name_54 WHERE date_married = "1858"
Who was the husband date that was married in 1858?
CREATE TABLE table_name_54 (husband_dates VARCHAR, date_married VARCHAR)
SELECT away_team AS score FROM table_name_8 WHERE venue = "windy hill"
What is the away team score at the Windy Hill venue?
CREATE TABLE table_name_8 (away_team VARCHAR, venue VARCHAR)
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"
When Tujunga is moderate, what is La Crescenta-Montrose?
CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR)
SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 20
Tell me the time/retired for Laps larger than 63 and has a grid of 20
CREATE TABLE table_name_97 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT d_42 FROM table_name_7 WHERE d_43 = "d 14"
Name the D 42 with D 43 of d 14
CREATE TABLE table_name_7 (d_42 VARCHAR, d_43 VARCHAR)
SELECT website FROM table_2112260_1 WHERE specialization = "Engineering" AND division = "Dhaka division"
What is every website with specialization of engineering and division of dhaka division?
CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR)
SELECT MAX(total) FROM table_name_33 WHERE bronze = 2 AND gold = 1 AND silver > 0
What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?
CREATE TABLE table_name_33 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT current_series FROM table_1000181_1 WHERE notes = "New series began in June 2011"
What is the current series where the new series began in June 2011?
CREATE TABLE table_1000181_1 (current_series VARCHAR, notes VARCHAR)
SELECT COUNT(opponent) FROM table_12206918_2 WHERE date = "1982-12-03"
How many opponents fought on 1982-12-03?
CREATE TABLE table_12206918_2 (opponent VARCHAR, date VARCHAR)
SELECT chassis FROM table_name_90 WHERE year > 1967
What is the chassis more recent than 1967?
CREATE TABLE table_name_90 (chassis VARCHAR, year INTEGER)
SELECT total_enrollment FROM table_name_67 WHERE institution_name = "howard payne university"
What is Howard Payne University's total enrollment?
CREATE TABLE table_name_67 (total_enrollment VARCHAR, institution_name VARCHAR)
SELECT date FROM table_name_55 WHERE city = "rio de janeiro"
Name the date for rio de janeiro
CREATE TABLE table_name_55 (date VARCHAR, city VARCHAR)
SELECT party FROM table_1341522_13 WHERE district = "Georgia7"
What party won in the district Georgia7?
CREATE TABLE table_1341522_13 (party VARCHAR, district VARCHAR)
SELECT AVG(year) FROM table_name_37 WHERE isbn = "isbn 4-06-182042-7"
What Year has an ISBN OF ISBN 4-06-182042-7?
CREATE TABLE table_name_37 (year INTEGER, isbn VARCHAR)
SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9"
Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?
CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 0 + π +"
Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?
CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)
SELECT MAX(matrix) FROM table_name_33 WHERE recording_date = "1926/03"
what is the highest matrix when the recording date is 1926/03?
CREATE TABLE table_name_33 (matrix INTEGER, recording_date VARCHAR)
SELECT SUM(to_par) FROM table_name_59 WHERE finish = "t11"
What is the sum of To par when the Finish is t11?
CREATE TABLE table_name_59 (to_par INTEGER, finish VARCHAR)
SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy"
What country has the most height in the northwestern peak of rysy?
CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)