answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT loss FROM table_name_84 WHERE date = "april 6"
Who took the loss on the April 6 game?
CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR)
SELECT AVG(number) FROM table_name_18 WHERE artist = "black milk"
What is the average number for Black Milk?
CREATE TABLE table_name_18 (number INTEGER, artist VARCHAR)
SELECT AVG(round) FROM table_name_46 WHERE college = "auburn"
What is average round of Auburn College?
CREATE TABLE table_name_46 (round INTEGER, college VARCHAR)
SELECT original_air_date FROM table_25604014_9 WHERE production_code = "1L16"
Name the original air date for production code 1l16
CREATE TABLE table_25604014_9 (original_air_date VARCHAR, production_code VARCHAR)
SELECT headphone_model FROM table_1601027_1 WHERE driver_matched_db = "0.1" AND us_msrp = "$49"
Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?
CREATE TABLE table_1601027_1 (headphone_model VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)
SELECT sydney FROM table_name_39 WHERE gold_coast = "no" AND adelaide = "no" AND auckland = "no"
Which Sydney has Gold Coast no, Adelaide no< and Auckland no?
CREATE TABLE table_name_39 (sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT theme FROM table_23871828_1 WHERE week__number = "Top 9"
List all themes from the top 9.
CREATE TABLE table_23871828_1 (theme VARCHAR, week__number VARCHAR)
SELECT player FROM table_name_94 WHERE score > 67
What player has a score larger than 67?
CREATE TABLE table_name_94 (player VARCHAR, score INTEGER)
SELECT qual FROM table_name_80 WHERE laps = 200 AND year = "1957"
Which qual has both 200 total laps and took place in 1957?
CREATE TABLE table_name_80 (qual VARCHAR, laps VARCHAR, year VARCHAR)
SELECT commander FROM table_name_62 WHERE complement > 240 AND guns = "66" AND ship = "revolutie"
Which commander received complement larger than 240 , guns of 66 and ship of revolutie?
CREATE TABLE table_name_62 (commander VARCHAR, ship VARCHAR, complement VARCHAR, guns VARCHAR)
SELECT points FROM table_13789248_2 WHERE artist = "Dave Appell"
what's the points with artbeingt being dave appell
CREATE TABLE table_13789248_2 (points VARCHAR, artist VARCHAR)
SELECT country FROM table_28281704_1 WHERE stadium = "Lusail National stadium"
Name the country for lusail national stadium
CREATE TABLE table_28281704_1 (country VARCHAR, stadium VARCHAR)
SELECT house FROM table_name_24 WHERE abbr = "d"
Which house has an abbreviation of D?
CREATE TABLE table_name_24 (house VARCHAR, abbr VARCHAR)
SELECT result FROM table_26250176_1 WHERE week__number = "Top 12"
What was the results for top 12?
CREATE TABLE table_26250176_1 (result VARCHAR, week__number VARCHAR)
SELECT name FROM table_name_35 WHERE roll = 422
Who has a roll value of 422?
CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR)
SELECT written_by FROM table_26561508_1 WHERE production_code = "2T5954"
Who was the writter for the episode identified by the production code 2t5954?
CREATE TABLE table_26561508_1 (written_by VARCHAR, production_code VARCHAR)
SELECT first_elected FROM table_1341738_34 WHERE district = "North Carolina 8"
Who was the first person elected in North Carolina 8?
CREATE TABLE table_1341738_34 (first_elected VARCHAR, district VARCHAR)
SELECT MIN(week) FROM table_name_78 WHERE game_site = "braves field" AND date = "october 2, 1932"
What was the earliest week with a game at the Braves Field on October 2, 1932?
CREATE TABLE table_name_78 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT height FROM table_27515452_3 WHERE sizes = "33-24-35"
how tall is someone who is able to wear 33-24-35
CREATE TABLE table_27515452_3 (height VARCHAR, sizes VARCHAR)
SELECT COUNT(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Eric" AND t3.lname = "Tai"
How many clubs does the student named "Eric Tai" belong to?
CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)
SELECT opponent FROM table_name_58 WHERE save = "||33,389||87–62"
Who was the opponent in the game with save ||33,389||87–62?
CREATE TABLE table_name_58 (opponent VARCHAR, save VARCHAR)
SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557
Who was the home team when the crowd was larger than 13,557?
CREATE TABLE table_name_71 (home_team VARCHAR, crowd INTEGER)
SELECT kickoff FROM table_1639689_2 WHERE date = "Monday, May 13"
What was the kickoff time on monday, may 13?
CREATE TABLE table_1639689_2 (kickoff VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_27 WHERE game > 2 AND team = "@ denver" AND high_assists = "kobe bryant (5)"
Which High rebounds have a Game larger than 2, and a Team of @ denver, and High assists of kobe bryant (5)?
CREATE TABLE table_name_27 (high_rebounds VARCHAR, high_assists VARCHAR, game VARCHAR, team VARCHAR)
SELECT DISTINCT state FROM college WHERE enr < (SELECT MAX(enr) FROM college)
Find the states where have the colleges whose enrollments are less than the largest size.
CREATE TABLE college (state VARCHAR, enr INTEGER)
SELECT AVG(round) FROM table_name_22 WHERE pick__number > 70 AND position = "tackle"
What is the average Round, when Pick # is greater than 70, and when Position is Tackle?
CREATE TABLE table_name_22 (round INTEGER, pick__number VARCHAR, position VARCHAR)
SELECT make FROM table_name_47 WHERE car__number = 31
What is the make of car 31?
CREATE TABLE table_name_47 (make VARCHAR, car__number VARCHAR)
SELECT opponent FROM table_name_26 WHERE outcome = "winner" AND date = "5 november 2011"
Which opponent has an Outcome of winner, and a Date of 5 november 2011?
CREATE TABLE table_name_26 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT american FROM table_name_7 WHERE initial_syllable_open_semi_open_unstressed_vowels = "y /aɪ, ɨ/"
What is American, when Initial-Syllable Open/Semi-Open Unstressed Vowels is "y /aɪ, ɨ/"?
CREATE TABLE table_name_7 (american VARCHAR, initial_syllable_open_semi_open_unstressed_vowels VARCHAR)
SELECT known_for FROM table_name_67 WHERE entered = "day 1" AND celebrity = "freddie starr"
What was Freddie Starr, who entered on Day 1, known for?
CREATE TABLE table_name_67 (known_for VARCHAR, entered VARCHAR, celebrity VARCHAR)
SELECT MIN(laps) FROM table_name_62 WHERE time_retired = "+38.426"
What is the lowest number of laps with a time/retired of +38.426?
CREATE TABLE table_name_62 (laps INTEGER, time_retired VARCHAR)
SELECT max_power_output FROM table_2326823_2 WHERE model = "2.0 TS" AND peak_torque = "N·m (lb·ft) at 3,500 rpm"
List the max power produced for model 2.0 ts with peak of n·m (lb·ft) at 3,500 rpm.
CREATE TABLE table_2326823_2 (max_power_output VARCHAR, model VARCHAR, peak_torque VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Mike Oxley (R) unopposed"
what's the party with opponent being mike oxley (r) unopposed
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_77 WHERE score = "690.3"
What's the date when the score was 690.3?
CREATE TABLE table_name_77 (date VARCHAR, score VARCHAR)
SELECT car_numbers FROM table_name_37 WHERE first_used = "currently on order"
Which Car numbers have a First used of currently on order?
CREATE TABLE table_name_37 (car_numbers VARCHAR, first_used VARCHAR)
SELECT vacator FROM table_1013168_3 WHERE district = "Louisiana 1st"
What is the name of the vacator for district Louisiana 1st?
CREATE TABLE table_1013168_3 (vacator VARCHAR, district VARCHAR)
SELECT COUNT(district) FROM table_1341586_19 WHERE incumbent = "Lindy Boggs"
how many district with incumbent being lindy boggs
CREATE TABLE table_1341586_19 (district VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_2 WHERE director = "said elmarouk" AND year < 2008
What is the result for director Said Elmarouk before 2008?
CREATE TABLE table_name_2 (result VARCHAR, director VARCHAR, year VARCHAR)
SELECT home FROM table_name_64 WHERE visitor = "chicago"
Where was the home team in the game played against Chicago?
CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR)
SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND rounds = "3-12" AND tyre = "g"
Who used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire?
CREATE TABLE table_name_22 (driver VARCHAR, tyre VARCHAR, engine VARCHAR, rounds VARCHAR)
SELECT school FROM table_11677691_3 WHERE position = "Running back" AND college = "Nebraska"
Running back Aaron Green went to Nebraska and what high school?
CREATE TABLE table_11677691_3 (school VARCHAR, position VARCHAR, college VARCHAR)
SELECT theme FROM table_name_59 WHERE week = "top 11"
What was the theme for the Top 11 week?
CREATE TABLE table_name_59 (theme VARCHAR, week VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE engine = "cosworth v8" AND entrant = "john player lotus"
How many years did John Player Lotus used Cosworth v8?
CREATE TABLE table_name_3 (year INTEGER, engine VARCHAR, entrant VARCHAR)
SELECT time FROM table_name_59 WHERE grid = 19
Which Time has a Grid of 19?
CREATE TABLE table_name_59 (time VARCHAR, grid VARCHAR)
SELECT week FROM table_name_19 WHERE school = "ball state"
What is the week with a school that is ball state?
CREATE TABLE table_name_19 (week VARCHAR, school VARCHAR)
SELECT MIN(third) FROM table_name_37 WHERE club = "es sahel" AND rank < 3
What is the smallest number of third place earned for the Es Sahel at a rank less than 3?
CREATE TABLE table_name_37 (third INTEGER, club VARCHAR, rank VARCHAR)
SELECT MAX(against) FROM table_name_31 WHERE drawn > 1 AND team = "corinthians" AND played < 7
Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7?
CREATE TABLE table_name_31 (against INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'
What are the number of votes from state 'NY' or 'CA'?
CREATE TABLE votes (state VARCHAR)
SELECT team_s_ FROM table_2482547_5 WHERE average = "15.89"
What are all the teams with an average of 15.89?
CREATE TABLE table_2482547_5 (team_s_ VARCHAR, average VARCHAR)
SELECT iwork_version FROM table_name_44 WHERE release_date = "october 22, 2013" AND pages_version > 2
What version of iWork was released on October 22, 2013 with a pages version greater than 2?
CREATE TABLE table_name_44 (iwork_version VARCHAR, release_date VARCHAR, pages_version VARCHAR)
SELECT 2010 FROM table_name_83 WHERE 2008 = "2r" AND 2013 = "a"
What is the 2010 value with a 2r in 2008 and A in 2013?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT MAX(rank) FROM table_name_51 WHERE goals > 220 AND years = "1965–1978-78"
What is the highest Rank for more than 220 goals in 1965–1978-78?
CREATE TABLE table_name_51 (rank INTEGER, goals VARCHAR, years VARCHAR)
SELECT countries_visited FROM table_name_26 WHERE episode_no < 7 AND writer = "ray gosling"
Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?
CREATE TABLE table_name_26 (countries_visited VARCHAR, episode_no VARCHAR, writer VARCHAR)
SELECT player FROM table_name_98 WHERE pick < 13 AND position = "p" AND hometown_school = "georgia tech"
Which player was picked before 13, in a P position, and is from Georgia Tech?
CREATE TABLE table_name_98 (player VARCHAR, hometown_school VARCHAR, pick VARCHAR, position VARCHAR)
SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1
What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
CREATE TABLE table_name_62 (bronze INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MIN(extra_points) FROM table_name_86 WHERE player = "ross kidston" AND points < 5
Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5?
CREATE TABLE table_name_86 (extra_points INTEGER, player VARCHAR, points VARCHAR)
SELECT SUM(votes) FROM table_name_93 WHERE draw < 4 AND artist = "yvetta kadakas & ivo linna"
How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?
CREATE TABLE table_name_93 (votes INTEGER, draw VARCHAR, artist VARCHAR)
SELECT event FROM table_name_86 WHERE name = "dorcus inzikuru"
In what Event did Dorcus Inzikuru compete?
CREATE TABLE table_name_86 (event VARCHAR, name VARCHAR)
SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = "1669"
When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669?
CREATE TABLE table_name_23 (first_time_as_hc_climb VARCHAR, height__m_ VARCHAR, most_recent VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR)
SELECT AVG(sites) FROM table_name_8 WHERE screens = 687 AND rank > 7
what is the number of sites when the number of screens is 687 and rank is more than 7?
CREATE TABLE table_name_8 (sites INTEGER, screens VARCHAR, rank VARCHAR)
SELECT song_choice FROM table_26250189_1 WHERE original_artist = "Stevie Wonder"
What was the choice of song where the original artist was Stevie Wonder?
CREATE TABLE table_26250189_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT date FROM table_name_88 WHERE result = "l 14–13"
Which Date has a Result of l 14–13?
CREATE TABLE table_name_88 (date VARCHAR, result VARCHAR)
SELECT to_par FROM table_name_38 WHERE score = 71 - 68 - 69 = 208
What is the To Par score for the player with an overall score of 71-68-69=208?
CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR)
SELECT pada_3 FROM table_name_41 WHERE pada_1 = "टे te"
Which Pada 3 has a Pada 1 of टे te?
CREATE TABLE table_name_41 (pada_3 VARCHAR, pada_1 VARCHAR)
SELECT price_in_usd FROM table_name_79 WHERE company = "tealeaf"
What is the USD price for Tealeaf?
CREATE TABLE table_name_79 (price_in_usd VARCHAR, company VARCHAR)
SELECT MAX(game) FROM table_name_64 WHERE date = "april 21"
What is the highest game that has april 21 as the date?
CREATE TABLE table_name_64 (game INTEGER, date VARCHAR)
SELECT position FROM table_name_38 WHERE pick__number = 125
What position(s) did the player(s) with a pick number of 125 play?
CREATE TABLE table_name_38 (position VARCHAR, pick__number VARCHAR)
SELECT icao FROM table_name_96 WHERE city = "manchester"
Which ICAO's city is Manchester?
CREATE TABLE table_name_96 (icao VARCHAR, city VARCHAR)
SELECT loss FROM table_name_68 WHERE record = "14-19"
Name the loss with record of 14-19
CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR)
SELECT time_retired FROM table_name_66 WHERE grid = 8
When did grid 8 finish?
CREATE TABLE table_name_66 (time_retired VARCHAR, grid VARCHAR)
SELECT SUM(rank) FROM table_name_15 WHERE apps > 39 AND player = "ümit karan" AND rate > 0.58
What is the total Rank for ümit karan when Apps is more than 39 and Rate is more than 0.58?
CREATE TABLE table_name_15 (rank INTEGER, rate VARCHAR, apps VARCHAR, player VARCHAR)
SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42
What is the total number of goals scored against clubs that have played more than 42 times?
CREATE TABLE table_name_68 (goals_against VARCHAR, played INTEGER)
SELECT venue FROM table_name_72 WHERE race = "stan fox stakes"
What venue hosted the stan fox stakes?
CREATE TABLE table_name_72 (venue VARCHAR, race VARCHAR)
SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17
Name the number ends won when L is 4 and stolen ends is 17
CREATE TABLE table_15333005_1 (Ends VARCHAR, l VARCHAR, stolen_ends VARCHAR)
SELECT group_position FROM table_name_50 WHERE result_f_a = "0–1" AND date = "1 november 2006"
Which Group position has Result F–A of 0–1 on 1 november 2006?
CREATE TABLE table_name_50 (group_position VARCHAR, result_f_a VARCHAR, date VARCHAR)
SELECT DISTINCT city_code FROM Student
Show all cities where students live.
CREATE TABLE Student (city_code VARCHAR)
SELECT supporting_actress FROM table_24225238_1 WHERE film = "For Whom the Bell Tolls"
Who was the supporting actress in "For Whom the Bell Tolls"?
CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, film VARCHAR)
SELECT format FROM table_name_30 WHERE frequency = "99.3 fm"
WHich format has a Frequency of 99.3 fm?
CREATE TABLE table_name_30 (format VARCHAR, frequency VARCHAR)
SELECT MIN(political_rights) FROM table_name_54 WHERE year = 1976
What is the least political rights rank in 1976?
CREATE TABLE table_name_54 (political_rights INTEGER, year VARCHAR)
SELECT MAX(laps) FROM table_27940569_1
What was the greatest number of laps run?
CREATE TABLE table_27940569_1 (laps INTEGER)
SELECT AVG(bronze) FROM table_name_63 WHERE nation = "philippines" AND gold > 0
What is the average number of bronze medals of the Philippines, which has more than 0 gold?
CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
SELECT college FROM table_11677691_5 WHERE player = "Rushel Shell"
Which college has the player Rushel Shell?
CREATE TABLE table_11677691_5 (college VARCHAR, player VARCHAR)
SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5
what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
SELECT length_of_retirement FROM table_name_51 WHERE age_at_inauguration = "70years, 53days"
What is the Length of retirement of the President with an Age at inauguration of 70years, 53days?
CREATE TABLE table_name_51 (length_of_retirement VARCHAR, age_at_inauguration VARCHAR)
SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii"
What pick number was the rhp with a hometown/school of university of hawaii?
CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, hometown_school VARCHAR)
SELECT party FROM table_1341663_11 WHERE district = "Georgia 6"
In the Georgia 6 district, what is the elected party?
CREATE TABLE table_1341663_11 (party VARCHAR, district VARCHAR)
SELECT team FROM table_name_72 WHERE car_no = "15"
Which team had car number 15?
CREATE TABLE table_name_72 (team VARCHAR, car_no VARCHAR)
SELECT player FROM table_12962773_2 WHERE position = "Center"
What player plays center?
CREATE TABLE table_12962773_2 (player VARCHAR, position VARCHAR)
SELECT author FROM table_22464685_1 WHERE english_name = "Histories and Eulogies of the Sovereigns"
Who is the auther when the english name was histories and eulogies of the sovereigns?
CREATE TABLE table_22464685_1 (author VARCHAR, english_name VARCHAR)
SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = "Cologne , Germany Carpet – $75,000 – S32/D16" AND champion = "Matt Doyle 1–6, 6–1, 6–2"
How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?
CREATE TABLE table_29296103_10 (runner_up VARCHAR, tournament VARCHAR, champion VARCHAR)
SELECT score FROM table_name_16 WHERE visitor = "pacers" AND date = "14 april 2008"
Name the score for pacers visitor on 14 april 2008
CREATE TABLE table_name_16 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT 2006 FROM table_name_15 WHERE 2004 = "a" AND 2002 = "not tier i"
Which 2006 Tournament has a 2004, and a 2002 of not tier i?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT country FROM table_name_62 WHERE year_s__won = "1963"
Which Country has a Year(s) won of 1963?
CREATE TABLE table_name_62 (country VARCHAR, year_s__won VARCHAR)
SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca"
Which nation is Danilo di Luca from?
CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR)
SELECT date FROM table_name_17 WHERE score = "97-38"
On what day was the game that ended in a score of 97-38?
CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR)
SELECT mac_os_x FROM table_name_98 WHERE haiku = "no" AND client = "dc++"
Which Mac OSX had no haiku and a client that was dc++?
CREATE TABLE table_name_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)
SELECT SUM(game) FROM table_name_24 WHERE opponent = "montreal canadiens"
How many games had Montreal Canadiens as an opponent?
CREATE TABLE table_name_24 (game INTEGER, opponent VARCHAR)
SELECT opponent FROM table_name_11 WHERE date = "september 19"
Which opponent plays on September 19?
CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR)
SELECT player FROM table_name_38 WHERE nationality = "united states" AND college_junior_club_team__league_ = "bowling green falcons (ccha)"
Which player is from the United States, and played for the Bowling Green Falcons (CCHA) as their College/Junior/Club Team (League)?
CREATE TABLE table_name_38 (player VARCHAR, nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT home FROM table_name_64 WHERE visitor = "clippers"
Who was the home team that the Clippers played?
CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR)