answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT label FROM table_name_73 WHERE date = "december 2004"
What is the label for December 2004?
CREATE TABLE table_name_73 (label VARCHAR, date VARCHAR)
SELECT height_ft__m_ FROM table_name_51 WHERE year = 1907
How tall is the structure built in 1907?
CREATE TABLE table_name_51 (height_ft__m_ VARCHAR, year VARCHAR)
SELECT player FROM table_name_35 WHERE year_s__won = "2007"
In 2007, what player won player of the year?
CREATE TABLE table_name_35 (player VARCHAR, year_s__won VARCHAR)
SELECT language FROM table_name_3 WHERE television_service = "telemarket for you"
What language is telemarket for you?
CREATE TABLE table_name_3 (language VARCHAR, television_service VARCHAR)
SELECT surface FROM table_name_68 WHERE year = 1996
What was the surface in 1996?
CREATE TABLE table_name_68 (surface VARCHAR, year VARCHAR)
SELECT 1958 FROM table_name_24 WHERE 1957 = "dnf-9"
Tell me the 1958 when 1957 is dnf-9
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT time FROM table_name_55 WHERE method = "decision(majority)" AND opponent = "keisuke yamada"
Which time has a Method of decision(majority), and an Opponent of keisuke yamada?
CREATE TABLE table_name_55 (time VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT listed FROM table_name_79 WHERE county = "canyon"
When was the historic place listed that's in canyon county?
CREATE TABLE table_name_79 (listed VARCHAR, county VARCHAR)
SELECT last_final_lost FROM table_name_70 WHERE last_win = "1959"
When was the last final lost of the club with a last win in 1959?
CREATE TABLE table_name_70 (last_final_lost VARCHAR, last_win VARCHAR)
SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"
Name the sanskrit word and meaning for aquarius
CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)
SELECT quantity FROM table_name_20 WHERE year_s__of_manufacture = "1900" AND class = "mc"
what is the quantity when the year of manufacture is 1900 and the class is mc?
CREATE TABLE table_name_20 (quantity VARCHAR, year_s__of_manufacture VARCHAR, class VARCHAR)
SELECT player FROM table_name_42 WHERE year_s__won < 1961 AND to_par = 6
What is Player, when Year(s) Won is before 1961, and when To Par is 6?
CREATE TABLE table_name_42 (player VARCHAR, year_s__won VARCHAR, to_par VARCHAR)
SELECT SUM(wins) FROM table_name_46 WHERE winning_span = "2000–2010"
Which Wins have a Winning span of 2000–2010?
CREATE TABLE table_name_46 (wins INTEGER, winning_span VARCHAR)
SELECT height FROM table_20785990_2 WHERE home_town = "Gulfport, MS"
What is the height of the player from Gulfport, MS?
CREATE TABLE table_20785990_2 (height VARCHAR, home_town VARCHAR)
SELECT country FROM table_name_61 WHERE time = "8:03.61"
What country has a time of 8:03.61?
CREATE TABLE table_name_61 (country VARCHAR, time VARCHAR)
SELECT MIN(round) FROM table_name_50 WHERE stadium = "members equity stadium" AND attendance < 12 OFFSET 581
What is the least round for the game played at Members Equity Stadium in from of 12,581 people?
CREATE TABLE table_name_50 (round INTEGER, stadium VARCHAR, attendance VARCHAR)
SELECT college_junior_club_team FROM table_1965650_8 WHERE player = "Bob Law"
What cub team or college did Bob Law come from?
CREATE TABLE table_1965650_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM storm WHERE Number_Deaths > 0
How many storms had death records?
CREATE TABLE storm (Number_Deaths INTEGER)
SELECT country FROM table_name_84 WHERE player = "arron oberholser"
where did arron oberholser play?
CREATE TABLE table_name_84 (country VARCHAR, player VARCHAR)
SELECT segment_a FROM table_name_5 WHERE segment_b = "aerospace fuel lines"
Segment B of aerospace fuel lines has what segment A?
CREATE TABLE table_name_5 (segment_a VARCHAR, segment_b VARCHAR)
SELECT social_democratic FROM table_1463383_1 WHERE socialist = "46.1%"
If Socialist is at 46.1%, what are all percentages for social democratic?
CREATE TABLE table_1463383_1 (social_democratic VARCHAR, socialist VARCHAR)
SELECT venue FROM table_name_83 WHERE year = 1951 AND date = "november 4"
What was the venue in 1951 on November 4?
CREATE TABLE table_name_83 (venue VARCHAR, year VARCHAR, date VARCHAR)
SELECT missing FROM table_11793221_4 WHERE commander = "Lieutenant General Sir Thomas Picton"
What was the missing for lieutenant general sir thomas picton?
CREATE TABLE table_11793221_4 (missing VARCHAR, commander VARCHAR)
SELECT network FROM table_name_67 WHERE viewers = "16.0 million"
Which Network has 16.0 million Viewers?
CREATE TABLE table_name_67 (network VARCHAR, viewers VARCHAR)
SELECT venue FROM table_name_2 WHERE away_team = "carlton"
Where did the away team Carlton play?
CREATE TABLE table_name_2 (venue VARCHAR, away_team VARCHAR)
SELECT championship_game FROM table_name_63 WHERE conference = "southwest"
What was the championship game for the Southwest conference?
CREATE TABLE table_name_63 (championship_game VARCHAR, conference VARCHAR)
SELECT under_13 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina"
What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?
CREATE TABLE table_26368963_2 (under_13 VARCHAR, under_15 VARCHAR)
SELECT losing_bonus FROM table_12792876_3 WHERE points_against = "445"
What was the losing bonus when the points against was 445?
CREATE TABLE table_12792876_3 (losing_bonus VARCHAR, points_against VARCHAR)
SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44
How many goal differences have Played larger than 44?
CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER)
SELECT category FROM table_name_38 WHERE year = 2010 AND result = "nominated" AND awards = "british soap awards"
What category was nominated in 2010 fo the British Soap Awards?
CREATE TABLE table_name_38 (category VARCHAR, awards VARCHAR, year VARCHAR, result VARCHAR)
SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain"
What are the average wins that have great britain as the team?
CREATE TABLE table_name_80 (wins INTEGER, team VARCHAR)
SELECT airdate FROM table_name_34 WHERE episode_no < 4 AND bbc_one_weekly_ranking = 6
What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?
CREATE TABLE table_name_34 (airdate VARCHAR, episode_no VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT AVG(api_level) FROM table_name_7 WHERE distribution = "10.6%"
with Distribution of 10.6% what is the average api level?
CREATE TABLE table_name_7 (api_level INTEGER, distribution VARCHAR)
SELECT size FROM table_name_81 WHERE ihsaa_class = "4a" AND previous_conference = "central indiana"
What is the size of the team that was previously from Central Indiana conference, and is in IHSSA Class 4a?
CREATE TABLE table_name_81 (size VARCHAR, ihsaa_class VARCHAR, previous_conference VARCHAR)
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood"
How many spectators watched when the away team was Collingwood?
CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_21 WHERE city_of_license = "los banos, california" AND erp_w < 10
In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz?
CREATE TABLE table_name_21 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR)
SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13
Name the most win % for 13 drawn
CREATE TABLE table_name_91 (win__percentage INTEGER, drawn VARCHAR)
SELECT player FROM table_name_42 WHERE pens = "0" AND start = "12"
Which Player has 0 Pens and 12 Starts?
CREATE TABLE table_name_42 (player VARCHAR, pens VARCHAR, start VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE home_team = "footscray"
What was Home team Footscray's score?
CREATE TABLE table_name_52 (home_team VARCHAR)
SELECT year FROM table_name_69 WHERE hungarian_top_40_album_charts = "3"
What year had the Hungarian top 40 album charts of 3?
CREATE TABLE table_name_69 (year VARCHAR, hungarian_top_40_album_charts VARCHAR)
SELECT mID, AVG(stars) FROM Rating GROUP BY mID HAVING COUNT(*) >= 2
Find the average rating star for each movie that received at least 2 ratings.
CREATE TABLE Rating (mID VARCHAR, stars INTEGER)
SELECT MAX(nadal) FROM table_name_55 WHERE round = "final" AND tournament = "miami"
What was the nadal in Miami in the final round?
CREATE TABLE table_name_55 (nadal INTEGER, round VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_7 WHERE competition = "fifa world cup 1986 play-off"
What is the Score of the Fifa World Cup 1986 Play-off Competition?
CREATE TABLE table_name_7 (score VARCHAR, competition VARCHAR)
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6"
What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT college_junior_club_team FROM table_2886617_4 WHERE nhl_team = "New York Rangers"
What team did the New York Rangers recruit a player from?
CREATE TABLE table_2886617_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT high_points FROM table_27712451_6 WHERE date = "December 10"
What are December 10's high points?
CREATE TABLE table_27712451_6 (high_points VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_8 WHERE away_team = "footscray"
What was the score of the home team when they played footscray?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(grid) FROM table_name_64 WHERE rider = "mika kallio"
what is the grid when the rider is mika kallio?
CREATE TABLE table_name_64 (grid INTEGER, rider VARCHAR)
SELECT SUM(number_deaths), SUM(damage_millions_USD) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm)
What is the total number of deaths and damage for all storms with a max speed greater than the average?
CREATE TABLE storm (number_deaths INTEGER, damage_millions_USD INTEGER, max_speed INTEGER)
SELECT home FROM table_name_20 WHERE date = "december 5"
On December 5 what team played their home game?
CREATE TABLE table_name_20 (home VARCHAR, date VARCHAR)
SELECT extra FROM table_name_37 WHERE result = "4th"
What is the extra result of the 4th game?
CREATE TABLE table_name_37 (extra VARCHAR, result VARCHAR)
SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)
SELECT position FROM table_name_96 WHERE round < 3 AND overall < 48
Which position had fewer rounds than 3, and an overall of less than 48?
CREATE TABLE table_name_96 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT tv_time FROM table_name_33 WHERE week > 15 AND opponent = "oakland raiders"
WHAT IS THE TV TIME WOTH A WEEK BIGGER THAN 15, WITH THE OAKLAND RAIDERS AS OPPONENT?
CREATE TABLE table_name_33 (tv_time VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT name, salary FROM instructor WHERE salary < (SELECT AVG(salary) FROM instructor WHERE dept_name = 'Physics')
Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.
CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR)
SELECT score FROM table_name_10 WHERE set_2 = "17–25" AND total = "48–75"
Which score has a Set 2 of 17–25, and a Total of 48–75?
CREATE TABLE table_name_10 (score VARCHAR, set_2 VARCHAR, total VARCHAR)
SELECT score FROM table_name_8 WHERE date = "november 16"
Name the score for november 16
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT result FROM table_name_23 WHERE week < 9 AND attendance = "49,970"
What was the result of the game prior to week 9 with an attendance of 49,970?
CREATE TABLE table_name_23 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT left_office FROM table_name_96 WHERE romanized__hangul_ = "chang myon (장면)"
When did chang myon (장면) leave office?
CREATE TABLE table_name_96 (left_office VARCHAR, romanized__hangul_ VARCHAR)
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki"
What are the results for the film titled 'Joki'?
CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)
SELECT population FROM table_171361_1 WHERE status = "City"
What is the population of each community with city status?
CREATE TABLE table_171361_1 (population VARCHAR, status VARCHAR)
SELECT on_air_id FROM table_name_87 WHERE frequency = "100.1"
Frequency of 100.1 has what on-air id?
CREATE TABLE table_name_87 (on_air_id VARCHAR, frequency VARCHAR)
SELECT SUM(against) FROM table_name_19 WHERE draw = 1 AND played < 8
What is the total against with 1 draw and less than 8 played?
CREATE TABLE table_name_19 (against INTEGER, draw VARCHAR, played VARCHAR)
SELECT season FROM table_name_87 WHERE series = "formula bmw usa"
What season was the Formula BMW USA in?
CREATE TABLE table_name_87 (season VARCHAR, series VARCHAR)
SELECT result FROM table_name_81 WHERE opponent = "errol zimmerman" AND date = "2007-04-07"
What is the result against Errol Zimmerman on 2007-04-07?
CREATE TABLE table_name_81 (result VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT director FROM table_10874596_1 WHERE original_title = "o.k."
Who were the directors of the film with the original title o.k.?
CREATE TABLE table_10874596_1 (director VARCHAR, original_title VARCHAR)
SELECT COUNT(4 AS th_placed) FROM table_19317584_2 WHERE date = "April 25"
How many placed 4th on April 25?
CREATE TABLE table_19317584_2 (date VARCHAR)
SELECT grid FROM table_name_57 WHERE time_retired = "hydraulics"
What was the Grid with a hydraulics time/required?
CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR)
SELECT location FROM table_21761882_4 WHERE date = "October 6"
What location was the game on October 6?
CREATE TABLE table_21761882_4 (location VARCHAR, date VARCHAR)
SELECT best_supporting_actress FROM table_15301258_1 WHERE best_supporting_actor = "Sun Honglei for Mongol"
Name the best supporting actress for sun honglei for mongol
CREATE TABLE table_15301258_1 (best_supporting_actress VARCHAR, best_supporting_actor VARCHAR)
SELECT jockey FROM table_30098144_2 WHERE race = "Doncaster Handicap"
List the rider for the doncaster handicap compeition.
CREATE TABLE table_30098144_2 (jockey VARCHAR, race VARCHAR)
SELECT title FROM table_26565917_2 WHERE no_in_season = 5
what was the name of episode 5?
CREATE TABLE table_26565917_2 (title VARCHAR, no_in_season VARCHAR)
SELECT general_classification FROM table_name_90 WHERE winner = "pascal richard"
Who was the General classification when Pascal Richard was the winner?
CREATE TABLE table_name_90 (general_classification VARCHAR, winner VARCHAR)
SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1
List the name of the phone model launched in year 2002 and with the highest RAM size.
CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, chip_model VARCHAR)
SELECT set_1 FROM table_name_87 WHERE set_3 = "25–21"
What was the first set with a third set of 25–21?
CREATE TABLE table_name_87 (set_1 VARCHAR, set_3 VARCHAR)
SELECT 2004 AS _05 FROM table_name_83 WHERE commodity = "milk"
What is the 2005-05 production for milk?
CREATE TABLE table_name_83 (commodity VARCHAR)
SELECT year_s__won FROM table_name_70 WHERE to_par = 8
What is the Year won for the player with a To par of 8?
CREATE TABLE table_name_70 (year_s__won VARCHAR, to_par VARCHAR)
SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = "john davidson" AND play_by_play = "marv albert" AND year > 1992
Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert?
CREATE TABLE table_name_58 (ice_level_reporters VARCHAR, year VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR)
SELECT player FROM table_name_41 WHERE date = "07/06/1997"
Which player played on 07/06/1997?
CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR)
SELECT year FROM table_name_63 WHERE nominee = "mary elizabeth mastrantonio"
What year was Mary Elizabeth Mastrantonio nominated?
CREATE TABLE table_name_63 (year VARCHAR, nominee VARCHAR)
SELECT champion FROM table_25563779_4 WHERE national_trophy_rookie = "not held"
Who is the champion if the national trophy/rookie is not held?
CREATE TABLE table_25563779_4 (champion VARCHAR, national_trophy_rookie VARCHAR)
SELECT SUM(attendance) FROM table_name_30 WHERE arena = "arrowhead pond of anaheim" AND points = 5
How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?
CREATE TABLE table_name_30 (attendance INTEGER, arena VARCHAR, points VARCHAR)
SELECT under_11 FROM table_26368963_2 WHERE under_19 = "Leong Siu Lynn"
What is every value for Under-11 if Under-19 is Leong Siu Lynn?
CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_19 VARCHAR)
SELECT MIN(pick) FROM table_name_52 WHERE player = "j.d. hill"
What pick was J.D. Hill?
CREATE TABLE table_name_52 (pick INTEGER, player VARCHAR)
SELECT AVG(rank) FROM table_name_1 WHERE time = "1:00.61"
What is the rank of the team with a time of 1:00.61?
CREATE TABLE table_name_1 (rank INTEGER, time VARCHAR)
SELECT authors FROM table_name_16 WHERE unit = "vyazniki assemblage" AND name = "malasaurus"
Who are the authors for the malasaurus of the vyazniki assemblage?
CREATE TABLE table_name_16 (authors VARCHAR, unit VARCHAR, name VARCHAR)
SELECT institution FROM table_261927_1 WHERE nickname = "Engineers"
What is the institution with the nickname engineers?
CREATE TABLE table_261927_1 (institution VARCHAR, nickname VARCHAR)
SELECT chapter FROM table_name_14 WHERE founding_date > 2012
Which chapter was founded later than 2012?
CREATE TABLE table_name_14 (chapter VARCHAR, founding_date INTEGER)
SELECT runner_up FROM table_1507431_1 WHERE no = 2
Who are all runner-ups for No. 2?
CREATE TABLE table_1507431_1 (runner_up VARCHAR, no VARCHAR)
SELECT MAX(total) FROM table_name_58 WHERE to_par = "+14"
Who has the highest total and a to par of +14?
CREATE TABLE table_name_58 (total INTEGER, to_par VARCHAR)
SELECT COUNT(year) FROM table_name_42 WHERE wins = 0 AND team = "ajs" AND points < 12
What is the year that there were 0 wins, team AJS, and under 12 points?
CREATE TABLE table_name_42 (year VARCHAR, points VARCHAR, wins VARCHAR, team VARCHAR)
SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND position > 5
Which Total has an A Score of 6.5, and a Position larger than 5?
CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR)
SELECT MIN(_number_s_reservoir_and_gnis_query_link) FROM table_18760137_2 WHERE _number_s_lake_and_gnis_query_link = 60
Name the minimum number of reservoir for gnis query link where numbers lake gnis query link being 60
CREATE TABLE table_18760137_2 (_number_s_reservoir_and_gnis_query_link INTEGER, _number_s_lake_and_gnis_query_link VARCHAR)
SELECT detroit__dtw_ FROM table_1637981_7 WHERE grand_rapids__grr_ = "$377.29"
When Grand Rapids's fare was $377.29, what is the fare to Detroit?
CREATE TABLE table_1637981_7 (detroit__dtw_ VARCHAR, grand_rapids__grr_ VARCHAR)
SELECT SUM(billboard_200_peak) FROM table_name_70 WHERE title = "bread"
What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?
CREATE TABLE table_name_70 (billboard_200_peak INTEGER, title VARCHAR)
SELECT womens_doubles FROM table_15001572_1 WHERE mens_doubles = "No competition"
What was the competition when there was no competition for mens doubles?
CREATE TABLE table_15001572_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT MAX(no_in_season) FROM table_20726262_4 WHERE usviewers__million_ = "2.59"
what is the maximum number in the season wher the us viewers is 2.59?
CREATE TABLE table_20726262_4 (no_in_season INTEGER, usviewers__million_ VARCHAR)
SELECT completed FROM table_name_25 WHERE name = "satsuki dd-27"
When was satsuki dd-27 completed?
CREATE TABLE table_name_25 (completed VARCHAR, name VARCHAR)
SELECT score FROM table_name_70 WHERE loss = "birkbeck (0–3)"
What is the score when there was a Loss of birkbeck (0–3)?
CREATE TABLE table_name_70 (score VARCHAR, loss VARCHAR)
SELECT island FROM table_name_98 WHERE density__per_km²_ = "1,368"
Which island has a density (per km²) of 1,368?
CREATE TABLE table_name_98 (island VARCHAR, density__per_km²_ VARCHAR)