answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(field_goals) FROM table_25730209_2 WHERE player = "Donald Green"
How many field goals did Donald Green score?
CREATE TABLE table_25730209_2 (field_goals VARCHAR, player VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE venue = "lake oval"
Who was the away team at the game at Lake Oval?
CREATE TABLE table_name_57 (away_team VARCHAR, venue VARCHAR)
SELECT d_45_√ FROM table_name_62 WHERE d_41_√ = "r 20"
Name the D 45 √ when it has D 41√ of r 20
CREATE TABLE table_name_62 (d_45_√ VARCHAR, d_41_√ VARCHAR)
SELECT AVG(membership) FROM table_name_15 WHERE _percentage_lds = "3.33%" AND branches < 47
What is the average membership with 3.33% LDS and less than 47 branches?
CREATE TABLE table_name_15 (membership INTEGER, _percentage_lds VARCHAR, branches VARCHAR)
SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = "3 4" AND us_release_date = "27 december 2006"
What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"?
CREATE TABLE table_name_47 (broadcasts__tv__1 INTEGER, series VARCHAR, us_release_date VARCHAR)
SELECT nationality FROM table_11545282_17 WHERE player = "Bill Robinzine"
What is the nationality of bill robinzine?
CREATE TABLE table_11545282_17 (nationality VARCHAR, player VARCHAR)
SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = "b5252 fs"
What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs?
CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)
SELECT no_in_series FROM table_28561455_1 WHERE us_viewers__million_ = "11.84"
For how many series were there 11.84 million watchers?
CREATE TABLE table_28561455_1 (no_in_series VARCHAR, us_viewers__million_ VARCHAR)
SELECT nomination FROM table_name_43 WHERE year < 2009
What was the nomination in a year earlier than 2009?
CREATE TABLE table_name_43 (nomination VARCHAR, year INTEGER)
SELECT player FROM table_name_8 WHERE place = "t10" AND score = 80 - 70 - 72 - 72 = 294
What Player with a Place of T10 had a Score of 80-70-72-72=294?
CREATE TABLE table_name_8 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT density FROM table_name_33 WHERE simplified = "南山区"
What is the density when simplified shows 南山区?
CREATE TABLE table_name_33 (density VARCHAR, simplified VARCHAR)
SELECT finals FROM table_name_14 WHERE goals > 0 AND assists = 8
How many finals had more than 0 goals and 8 assists?
CREATE TABLE table_name_14 (finals VARCHAR, goals VARCHAR, assists VARCHAR)
SELECT outcome FROM table_name_54 WHERE date = "july 8, 2007"
The match played July 8, 2007 had what outcome?
CREATE TABLE table_name_54 (outcome VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010
Find the total number of instructors who teach a course in the Spring 2010 semester.
CREATE TABLE teaches (ID VARCHAR, semester VARCHAR, YEAR VARCHAR)
SELECT website FROM table_name_27 WHERE name = "yamagata international documentary film festival"
What's the website for the yamagata international documentary film festival?
CREATE TABLE table_name_27 (website VARCHAR, name VARCHAR)
SELECT date FROM table_name_35 WHERE home_team = "stockport county"
What is the date with home team of Stockport County?
CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = "220kw (299hp) @ 4000"
What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?
CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR)
SELECT points FROM table_24998088_1 WHERE position = "8th"
what were his points when he was in 8th position?
CREATE TABLE table_24998088_1 (points VARCHAR, position VARCHAR)
SELECT tdp FROM table_2467150_2 WHERE model__list_ = "X53xx"
What is every value for TDP if model is x53xx?
CREATE TABLE table_2467150_2 (tdp VARCHAR, model__list_ VARCHAR)
SELECT site FROM table_name_65 WHERE winning_team = "kansas city royals"
Where was the series that the Kansas City Royals lost?
CREATE TABLE table_name_65 (site VARCHAR, winning_team VARCHAR)
SELECT MAX(bronze) FROM table_name_93 WHERE gold > 1 AND nation = "china" AND total > 11
What is the highest amount of bronze china, which has more than 1 gold and more than 11 total, has?
CREATE TABLE table_name_93 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT year_startup FROM table_name_51 WHERE project_name = "taq taq ph 2"
What year was the startup for the Project Named of taq taq ph 2?
CREATE TABLE table_name_51 (year_startup VARCHAR, project_name VARCHAR)
SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'
How many students enrolled in class ACCT-211?
CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR)
SELECT event FROM table_name_62 WHERE time = "7:45.67"
What event has a time of 7:45.67?
CREATE TABLE table_name_62 (event VARCHAR, time VARCHAR)
SELECT country_territory FROM table_14308895_2 WHERE former_pageant = "Miss Universe Hungary"
which country has miss universe Hungary as former pageant?
CREATE TABLE table_14308895_2 (country_territory VARCHAR, former_pageant VARCHAR)
SELECT MIN(week) FROM table_29679510_2
In what week was the first game played?
CREATE TABLE table_29679510_2 (week INTEGER)
SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist"
WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?
CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)
SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = "pga championship" AND events < 4
what is the total number of times the tournament was pga championship and evens is less than 4?
CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)
SELECT MIN(field_goals) FROM table_24850487_5 WHERE blocks = 8
How many field goals did the player who had 8 blocks have?
CREATE TABLE table_24850487_5 (field_goals INTEGER, blocks VARCHAR)
SELECT MAX(number_of_households) FROM table_name_57 WHERE per_capita_income = "$25,557" AND population < 22 OFFSET 330
What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?
CREATE TABLE table_name_57 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)
SELECT date FROM table_name_81 WHERE label = "chrysalis, island records"
What is the date of the Chrysalis, Island Records label?
CREATE TABLE table_name_81 (date VARCHAR, label VARCHAR)
SELECT candidates FROM table_1805191_36 WHERE incumbent = "Steve Chabot"
Who were all the candidates in elections in which Steve Chabot was a candidate?
CREATE TABLE table_1805191_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT owner FROM table_name_75 WHERE year > 2009 AND winner = "blueeyesintherein"
Who owned winner Blueeyesintherein after 2009?
CREATE TABLE table_name_75 (owner VARCHAR, year VARCHAR, winner VARCHAR)
SELECT MAX(attendance) FROM table_14945608_1
What was the highest attendance?
CREATE TABLE table_14945608_1 (attendance INTEGER)
SELECT SUM(points) FROM table_name_83 WHERE chassis = "mp4-17d" AND year < 2003
What is the number of points for the vehicle with a mp4-17d chassis earlier than 2003?
CREATE TABLE table_name_83 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT title FROM table_25604014_8 WHERE written_by = "William M. Finkelstein"
What is the name of the episode that William M. Finkelstein wrote?
CREATE TABLE table_25604014_8 (title VARCHAR, written_by VARCHAR)
SELECT mid_hill_zone FROM table_10638523_1 WHERE particulars_and_characteristics = "Altitude"
For mid-hill zone what is the altitude?
CREATE TABLE table_10638523_1 (mid_hill_zone VARCHAR, particulars_and_characteristics VARCHAR)
SELECT manager FROM table_name_96 WHERE losses < 287 AND wins < 80 AND years = "1904" AND wpct = 0.296
Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904?
CREATE TABLE table_name_96 (manager VARCHAR, wpct VARCHAR, years VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT nation FROM table_name_84 WHERE record = "15.16 m"
Which Nation has a Record of 15.16 m?
CREATE TABLE table_name_84 (nation VARCHAR, record VARCHAR)
SELECT game_site FROM table_name_64 WHERE opponent = "cf pachuca"
Where does CF Pachuca play?
CREATE TABLE table_name_64 (game_site VARCHAR, opponent VARCHAR)
SELECT average_attendance FROM table_28884858_2 WHERE total_attendance = 541380
What was average attendance when total attendance was 541380?
CREATE TABLE table_28884858_2 (average_attendance VARCHAR, total_attendance VARCHAR)
SELECT rating FROM table_13110459_2 WHERE viewers__m_ = "2.89"
what are all the rating with viewers (m) being 2.89
CREATE TABLE table_13110459_2 (rating VARCHAR, viewers__m_ VARCHAR)
SELECT SUM(long) FROM table_name_30 WHERE name = "derrick locke"
What is the sum of Long for derrick locke?
CREATE TABLE table_name_30 (long INTEGER, name VARCHAR)
SELECT MAX(position) FROM table_name_62 WHERE lost = 24 AND drawn > 9
What is the highest position of the team with 24 lost and a drawn greater than 9?
CREATE TABLE table_name_62 (position INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT tournament FROM table_name_65 WHERE 2011 = "a" AND 2009 = "lq" AND 2012 = "1r"
what is the tournament when 2011 is a, 2009 is lq and 2012 is 1r?
CREATE TABLE table_name_65 (tournament VARCHAR)
SELECT COUNT(pick) FROM table_name_47 WHERE player = "robert ingalls"
What's the sum of the Pick that has the Player of Robert Ingalls?
CREATE TABLE table_name_47 (pick VARCHAR, player VARCHAR)
SELECT height FROM table_name_38 WHERE year = 1974
The year 1974 has what listed as the Height?
CREATE TABLE table_name_38 (height VARCHAR, year VARCHAR)
SELECT COUNT(affiliation) FROM table_28211213_1 WHERE institution = "University of Toledo"
How many affiliations does the University of Toledo have?
CREATE TABLE table_28211213_1 (affiliation VARCHAR, institution VARCHAR)
SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 12
Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?
CREATE TABLE table_name_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR)
SELECT drawn FROM table_name_25 WHERE tied = "0" AND player = "chris cowdrey"
I want to know the drawn that has a tie of 0 and the player is chris cowdrey
CREATE TABLE table_name_25 (drawn VARCHAR, tied VARCHAR, player VARCHAR)
SELECT dates FROM table_15315816_1 WHERE country = "Canada"
What are all of the dates in the country of Canada?
CREATE TABLE table_15315816_1 (dates VARCHAR, country VARCHAR)
SELECT COUNT(losses) FROM table_name_65 WHERE central_murray = "tooleybuc manangatang" AND draws < 0
What is the total number of losses of the central murray of tooleybuc manangatang, which has less than 0 draws?
CREATE TABLE table_name_65 (losses VARCHAR, central_murray VARCHAR, draws VARCHAR)
SELECT event FROM table_name_79 WHERE competition = "chicago marathon" AND year > 2004
Which Event has a Competition of chicago marathon, and a Year larger than 2004?
CREATE TABLE table_name_79 (event VARCHAR, competition VARCHAR, year VARCHAR)
SELECT MIN(total) FROM table_name_31 WHERE silver < 18 AND rank = "14"
What is the lowest total for those receiving less than 18 but more than 14?
CREATE TABLE table_name_31 (total INTEGER, silver VARCHAR, rank VARCHAR)
SELECT main_industry, SUM(market_value) FROM company GROUP BY main_industry
Show all main industry and total market value in each industry.
CREATE TABLE company (main_industry VARCHAR, market_value INTEGER)
SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998"
Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?
CREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR)
SELECT max_torque_at_rpm FROM table_name_90 WHERE engine_code_s_ = "bmm"
What is the maximum torque at rpm for the engine with code BMM?
CREATE TABLE table_name_90 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR)
SELECT MAX(caps) FROM table_name_5 WHERE goals = 0 AND rank = 15
What is the maximum cap number where 0 goals were scored with a rank of 15?
CREATE TABLE table_name_5 (caps INTEGER, goals VARCHAR, rank VARCHAR)
SELECT crowd FROM table_name_18 WHERE away_team = "st kilda"
How many people were in attendance at St Kilda's away match?
CREATE TABLE table_name_18 (crowd VARCHAR, away_team VARCHAR)
SELECT song FROM table_name_86 WHERE length = "4:08"
Which song lasts 4:08?
CREATE TABLE table_name_86 (song VARCHAR, length VARCHAR)
SELECT rank FROM table_name_97 WHERE silver > 0 AND bronze = 38
What is the rank of the nation with more than 0 silver medals and 38 bronze medals?
CREATE TABLE table_name_97 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT production_code FROM table_25548505_1 WHERE directed_by = "Michael McDonald"
What is the production code of the episode directed by Michael McDonald?
CREATE TABLE table_25548505_1 (production_code VARCHAR, directed_by VARCHAR)
SELECT score FROM table_name_99 WHERE home = "new york islanders"
What was the score of the game when they played at new york islanders?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = "Shahpar-2"
Which authority has a rocket launch called shahpar-2?
CREATE TABLE table_11869952_1 (institutional_authority VARCHAR, rocket_launch VARCHAR)
SELECT background FROM table_24501530_1 WHERE result = "Fired in week 5"
What is the background of the person fired in week 5?
CREATE TABLE table_24501530_1 (background VARCHAR, result VARCHAR)
SELECT socket FROM table_name_44 WHERE order_part_number = "tmrm72dam22gg"
What kind of Socket has a Order part number of tmrm72dam22gg?
CREATE TABLE table_name_44 (socket VARCHAR, order_part_number VARCHAR)
SELECT COUNT(rank) FROM table_26986076_2 WHERE tues_24_aug = "19' 19.83 117.110mph"
How many times was tues 24 aug 19' 19.83 117.110mph?
CREATE TABLE table_26986076_2 (rank VARCHAR, tues_24_aug VARCHAR)
SELECT tsongas__d_ FROM table_name_45 WHERE date = "may 22, 2007"
I want the tsongas of may 22, 2007
CREATE TABLE table_name_45 (tsongas__d_ VARCHAR, date VARCHAR)
SELECT rank FROM table_name_40 WHERE rider = "noel patterson"
What ran has noel patterson as the rider?
CREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR)
SELECT venue, name FROM event ORDER BY Event_Attendance DESC LIMIT 2
List the event venues and names that have the top 2 most number of people attended.
CREATE TABLE event (venue VARCHAR, name VARCHAR, Event_Attendance VARCHAR)
SELECT time FROM table_name_21 WHERE round > 1 AND event = "total fighting alliance 2"
Which Time has a Round larger than 1, and an Event of total fighting alliance 2?
CREATE TABLE table_name_21 (time VARCHAR, round VARCHAR, event VARCHAR)
SELECT COUNT(area__km²_) FROM table_1307842_7 WHERE population = 775927
Name the total number of area for 775927 population
CREATE TABLE table_1307842_7 (area__km²_ VARCHAR, population VARCHAR)
SELECT outcome FROM table_name_3 WHERE surface = "hard" AND score = "4–6, 6–7(3)"
What outcome occurs on a hard surface with a score of 4–6, 6–7(3)?
CREATE TABLE table_name_3 (outcome VARCHAR, surface VARCHAR, score VARCHAR)
SELECT year__ceremony_ FROM table_name_69 WHERE original_title = "zona sur"
What year was Zona Sur nominated?
CREATE TABLE table_name_69 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT result FROM table_name_24 WHERE date = "december 8, 1963"
What is the Result from the Date that is December 8, 1963?
CREATE TABLE table_name_24 (result VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_59 WHERE score = "3–2"
What is the Attendance of the game with a Score of 3–2?
CREATE TABLE table_name_59 (attendance VARCHAR, score VARCHAR)
SELECT city FROM table_name_22 WHERE event = "dick weber open"
What city was the Dick Weber Open in?
CREATE TABLE table_name_22 (city VARCHAR, event VARCHAR)
SELECT round FROM table_name_59 WHERE event = "ritc 89 - triple main event 89"
What is Round, when Event is RITC 89 - Triple Main Event 89?
CREATE TABLE table_name_59 (round VARCHAR, event VARCHAR)
SELECT guest_host FROM table_name_73 WHERE episode_number = 5
What is the name of the Guest Host for Episode Number of 5?
CREATE TABLE table_name_73 (guest_host VARCHAR, episode_number VARCHAR)
SELECT COUNT(townland) FROM table_30121096_1 WHERE civil_parish = "Caheragh" AND area__acres__ = 270
How many townlands are there for caheragh and is larger than 270 acres?
CREATE TABLE table_30121096_1 (townland VARCHAR, civil_parish VARCHAR, area__acres__ VARCHAR)
SELECT COUNT(rank) FROM table_name_2 WHERE silver < 2 AND gold = 4 AND bronze > 2
What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze?
CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT score FROM table_name_81 WHERE tie_no = "17"
What is Score, when Tie No is 17?
CREATE TABLE table_name_81 (score VARCHAR, tie_no VARCHAR)
SELECT COUNT(*) FROM tweets
Find the number of tweets in record.
CREATE TABLE tweets (Id VARCHAR)
SELECT birthdate FROM table_name_20 WHERE name = "raymond bonney"
What is the Birthdate of raymond bonney?
CREATE TABLE table_name_20 (birthdate VARCHAR, name VARCHAR)
SELECT COUNT(aggregate) FROM table_17968233_2 WHERE home__2nd_leg_ = "Instituto"
If the second leg is Instituto, what is the total number of aggregate?
CREATE TABLE table_17968233_2 (aggregate VARCHAR, home__2nd_leg_ VARCHAR)
SELECT finish FROM table_name_96 WHERE total = 282 AND player = "phil mickelson"
In what place did Phil Mickelson finish with a total of 282?
CREATE TABLE table_name_96 (finish VARCHAR, total VARCHAR, player VARCHAR)
SELECT representative FROM table_name_10 WHERE termination_of_mission = "may 24, 1905"
Which Representative has a Termination of Mission as May 24, 1905?
CREATE TABLE table_name_10 (representative VARCHAR, termination_of_mission VARCHAR)
SELECT fc_matches FROM table_name_18 WHERE total = "24"
Which FC match has a total of 24?
CREATE TABLE table_name_18 (fc_matches VARCHAR, total VARCHAR)
SELECT country FROM table_name_99 WHERE director = "dariush mehrjui"
Where is the director Dariush Mehrjui from?
CREATE TABLE table_name_99 (country VARCHAR, director VARCHAR)
SELECT record FROM table_name_84 WHERE opponent = "kansas city kings"
What is the Laker's record when they played against Kansas City Kings?
CREATE TABLE table_name_84 (record VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_4 WHERE 2012 = "a" AND 2010 = "q2"
What tournament had an A in 2012 and Q2 in 2010?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12
How many cop apps in the season with fewer than 12 league apps?
CREATE TABLE table_name_48 (cup_apps INTEGER, league_apps INTEGER)
SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'
Which Payments were processed with Visa? List the payment Id, the date and the amount.
CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)
SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = "R. Muthiah"
If the speaker is R. Muthiah, what is the election year maximum?
CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)
SELECT country FROM table_name_10 WHERE year > 2011
What country was the film made in that was made after 2011?
CREATE TABLE table_name_10 (country VARCHAR, year INTEGER)
SELECT outcome FROM table_name_84 WHERE partner = "kateryna bondarenko"
What was the Outcome of the match with Partner Kateryna Bondarenko?
CREATE TABLE table_name_84 (outcome VARCHAR, partner VARCHAR)
SELECT set_5 FROM table_name_15 WHERE set_3 = "25-23" AND set_4 = "23-25"
What is the Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25?
CREATE TABLE table_name_15 (set_5 VARCHAR, set_3 VARCHAR, set_4 VARCHAR)
SELECT SUM(laps) FROM table_name_53 WHERE time_retired = "gearbox"
How many laps were there when time/retired was gearbox?
CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR)
SELECT winner FROM table_name_99 WHERE location = "virginia"
What is the winner for Virginia?
CREATE TABLE table_name_99 (winner VARCHAR, location VARCHAR)
SELECT MAX(total) FROM table_name_87 WHERE last = "september 1970"
What is the greatest total when the last was September 1970?
CREATE TABLE table_name_87 (total INTEGER, last VARCHAR)