answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT team FROM table_name_50 WHERE game = 68
What team played the Jazz at game 68?
CREATE TABLE table_name_50 (team VARCHAR, game VARCHAR)
SELECT first_elected FROM table_name_16 WHERE district = "minnesota 2"
What is First Elected, when District is "Minnesota 2"?
CREATE TABLE table_name_16 (first_elected VARCHAR, district VARCHAR)
SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White"
What are the names and scores of wines that are made of white color grapes?
CREATE TABLE GRAPES (Grape VARCHAR, Color VARCHAR); CREATE TABLE WINE (Name VARCHAR, Score VARCHAR, Grape VARCHAR)
SELECT AVG(tries_for) FROM table_name_69 WHERE points_against > 87 AND tries_against < 28 AND points_diff = "+63"
Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points diff of +63?
CREATE TABLE table_name_69 (tries_for INTEGER, points_diff VARCHAR, points_against VARCHAR, tries_against VARCHAR)
SELECT SUM(crowd) FROM table_name_69 WHERE venue = "kardinia park"
How large was the crowd at the Kardinia Park venue games?
CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR)
SELECT place FROM table_name_82 WHERE country = "new zealand"
What is the place of the player from New Zealand?
CREATE TABLE table_name_82 (place VARCHAR, country VARCHAR)
SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba"
How many laps did pere riba ride?
CREATE TABLE table_name_52 (laps INTEGER, rider VARCHAR)
SELECT winning_driver FROM table_name_36 WHERE pole_position = "timo scheider" AND circuit = "oschersleben"
Who is the winning driver of the Oschersleben circuit with Timo Scheider as the pole position?
CREATE TABLE table_name_36 (winning_driver VARCHAR, pole_position VARCHAR, circuit VARCHAR)
SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'
Find the first names of teachers whose email address contains the word "man".
CREATE TABLE Teachers (first_name VARCHAR, email_address VARCHAR)
SELECT original_air_date FROM table_10953197_3 WHERE production_code = "2394087"
what are the original air dates with a production code of 2394087
CREATE TABLE table_10953197_3 (original_air_date VARCHAR, production_code VARCHAR)
SELECT round FROM table_name_28 WHERE opponent = "clyde"
In what round was Clyde the opponent?
CREATE TABLE table_name_28 (round VARCHAR, opponent VARCHAR)
SELECT 2013 FROM table_name_44 WHERE 2006 = "a" AND 2010 = "1r"
Which tournament in 2013 had a 2010 finish of 1R?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT us_viewers__million_ FROM table_28037619_2 WHERE directed_by = "Roger Young" AND written_by = "Debra J. Fisher"
How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?
CREATE TABLE table_28037619_2 (us_viewers__million_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT name FROM table_name_72 WHERE position < 2
Which Name has a Position smaller than 2?
CREATE TABLE table_name_72 (name VARCHAR, position INTEGER)
SELECT date FROM table_name_46 WHERE competition = "2011 lg cup"
On what Date was the 2011 LG Cup Competittion?
CREATE TABLE table_name_46 (date VARCHAR, competition VARCHAR)
SELECT years_as_tallest FROM table_name_81 WHERE street_address = "01.0 10 light street"
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?
CREATE TABLE table_name_81 (years_as_tallest VARCHAR, street_address VARCHAR)
SELECT 2 AS __f_ FROM table_name_7 WHERE verb = "chena"
What is the 2nd verb for chena?
CREATE TABLE table_name_7 (verb VARCHAR)
SELECT MIN(week) FROM table_23624542_4 WHERE attendance = 10402
What week has an attendance of 10402
CREATE TABLE table_23624542_4 (week INTEGER, attendance VARCHAR)
SELECT college FROM table_name_63 WHERE pick > 7 AND name = "dave adams"
What is the college of dave adams, who has a pick greater than 7?
CREATE TABLE table_name_63 (college VARCHAR, pick VARCHAR, name VARCHAR)
SELECT title FROM table_name_23 WHERE recorded = "1959-09-15" AND track = 7
Which track 7 title was recorded in 1959-09-15?
CREATE TABLE table_name_23 (title VARCHAR, recorded VARCHAR, track VARCHAR)
SELECT date FROM table_name_37 WHERE final_score = "30-17" AND stadium = "gillette stadium"
When was the game at Gillette Stadium that ended in a final score of 30-17?
CREATE TABLE table_name_37 (date VARCHAR, final_score VARCHAR, stadium VARCHAR)
SELECT junctions FROM table_name_98 WHERE termini = "aguilares, texas us 59"
What are the junctions of the route with termini aguilares, texas us 59?
CREATE TABLE table_name_98 (junctions VARCHAR, termini VARCHAR)
SELECT MAX(crowd) FROM table_name_36 WHERE venue = "junction oval"
What's the largest crowd that attended a game at junction oval?
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)
SELECT MAX(mccain_number) FROM table_name_47 WHERE others_percentage = "1.6%" AND mccain_percentage = "40.5%" AND obama_number < 256 OFFSET 299
What is the highest number of votes for McCain in a county that voted 1.6% for other, 40.5% for McCain, and fewer than 256,299 votes for Obama?
CREATE TABLE table_name_47 (mccain_number INTEGER, obama_number VARCHAR, others_percentage VARCHAR, mccain_percentage VARCHAR)
SELECT result FROM table_name_42 WHERE opponent = "zab judah"
What is the result of the match with Zab Judah as the opponent?
CREATE TABLE table_name_42 (result VARCHAR, opponent VARCHAR)
SELECT 2009 FROM table_name_5 WHERE 2012 = "1r"
What shows for 2009 when the 2012 is 1R?
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT MAX(afc_championships) FROM table_1952057_5
What is the maximum number of AFC championships?
CREATE TABLE table_1952057_5 (afc_championships INTEGER)
SELECT tie_no FROM table_name_96 WHERE away_team = "bradford park avenue"
What was the tie number when bradford park avenue was the away team?
CREATE TABLE table_name_96 (tie_no VARCHAR, away_team VARCHAR)
SELECT MIN(feature) FROM table_name_32 WHERE wins = 2 AND sprint = 2
What is the lowest feature with 2 wins and 2 sprints?
CREATE TABLE table_name_32 (feature INTEGER, wins VARCHAR, sprint VARCHAR)
SELECT location FROM table_1974545_2 WHERE institution = "Westfield State University"
Where is the Westfield State University located?
CREATE TABLE table_1974545_2 (location VARCHAR, institution VARCHAR)
SELECT year__ceremony_ FROM table_name_26 WHERE category = "best actress" AND actor_actress = "sigourney weaver"
What is the year when sigourney weaver was nominated for best actress?
CREATE TABLE table_name_26 (year__ceremony_ VARCHAR, category VARCHAR, actor_actress VARCHAR)
SELECT bluetooth FROM table_name_31 WHERE model = "s90i"
Does the S90i model have bluetooth?
CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)
SELECT city FROM table_name_83 WHERE stadium = "telstra dome"
What is the city where the Telstra Dome is?
CREATE TABLE table_name_83 (city VARCHAR, stadium VARCHAR)
SELECT COUNT(game) FROM table_30054758_3 WHERE location_attendance = "Phog Allen Fieldhouse , Lawrence, KS (16,300)"
How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)?
CREATE TABLE table_30054758_3 (game VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_8 WHERE record = "33-15"
Who was the Blue Jays' opponent when their record was 33-15?
CREATE TABLE table_name_8 (opponent VARCHAR, record VARCHAR)
SELECT MIN(no) FROM table_1949994_8 WHERE start_date = "June 6"
What series number started production on June 6?
CREATE TABLE table_1949994_8 (no INTEGER, start_date VARCHAR)
SELECT portuguese_title FROM table_22118197_1 WHERE english_title = "Belle Toujours"
What is the Portuguese name of the film who's English title is, Belle Toujours?
CREATE TABLE table_22118197_1 (portuguese_title VARCHAR, english_title VARCHAR)
SELECT ship FROM table_name_89 WHERE hull_no = "aor-6"
Name the ship with hull number of aor-6
CREATE TABLE table_name_89 (ship VARCHAR, hull_no VARCHAR)
SELECT constructor FROM table_name_65 WHERE race = "united states grand prix"
What is the constructor at the United States Grand Prix?
CREATE TABLE table_name_65 (constructor VARCHAR, race VARCHAR)
SELECT COUNT(gb) FROM table_254234_1 WHERE iso_№ = "CN-65"
How many gb's have an iso number of cn-65?
CREATE TABLE table_254234_1 (gb VARCHAR, iso_№ VARCHAR)
SELECT title FROM table_2866514_1 WHERE us_viewers__million_ = "5.66"
What are the titles of episodes with 5.66 million US viewers?
CREATE TABLE table_2866514_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT grid FROM table_name_97 WHERE laps = 35
I want the Grid for Laps of 35
CREATE TABLE table_name_97 (grid VARCHAR, laps VARCHAR)
SELECT surface FROM table_23385853_1 WHERE round = 8
Name surface for 8 round
CREATE TABLE table_23385853_1 (surface VARCHAR, round VARCHAR)
SELECT final_four FROM table_name_1 WHERE conference = "big 12"
How many Big 12 teams made it to the Final Four?
CREATE TABLE table_name_1 (final_four VARCHAR, conference VARCHAR)
SELECT date FROM table_name_26 WHERE week > 3 AND result = "w 28-27"
Tell me the date that has a week larger than 3 and a result of w 28-27
CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT rank FROM table_name_64 WHERE laps > 40 AND finish = "23"
What is the rank with more than 40 laps and a 23 finish?
CREATE TABLE table_name_64 (rank VARCHAR, laps VARCHAR, finish VARCHAR)
SELECT MAX(round) FROM table_name_63 WHERE pick > 179
Which Round has a Pick larger than 179?
CREATE TABLE table_name_63 (round INTEGER, pick INTEGER)
SELECT score FROM table_name_1 WHERE player = "tom lehman"
What is Score, when Player is "Tom Lehman"?
CREATE TABLE table_name_1 (score VARCHAR, player VARCHAR)
SELECT COUNT(draws) FROM table_name_26 WHERE goals_for < 56 AND position = 10 AND goals_against < 45
How many draws have goals for less than 56, 10 as the postion, with goals against less than 45?
CREATE TABLE table_name_26 (draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, position VARCHAR)
SELECT venue FROM table_name_16 WHERE season = 1963 AND date = "17 november 1963"
What venue had an event on 17 November 1963?
CREATE TABLE table_name_16 (venue VARCHAR, season VARCHAR, date VARCHAR)
SELECT remixed_by FROM table_name_22 WHERE year = 1985 AND version = "music video"
Who remixed a music video in 1985?
CREATE TABLE table_name_22 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
SELECT longitude FROM table_name_98 WHERE latitude = "71°18′n"
If the latitude is 71°18′n, what is the longitude?
CREATE TABLE table_name_98 (longitude VARCHAR, latitude VARCHAR)
SELECT ended_time_as_senior_g8_leader FROM table_10026563_1 WHERE person = "Jacques Chirac"
When did Jacques Chirac stop being a G8 leader?
CREATE TABLE table_10026563_1 (ended_time_as_senior_g8_leader VARCHAR, person VARCHAR)
SELECT COUNT(station) FROM table_1353096_1 WHERE primary_affiliation = "Fox" AND owned_since = "1986"
How many stations have fox as the primary affiliation and have been owned since 1986?
CREATE TABLE table_1353096_1 (station VARCHAR, primary_affiliation VARCHAR, owned_since VARCHAR)
SELECT MAX(age__years_) FROM table_name_45 WHERE place = "1st" AND performance = "62.20m"
What is the highest age (years) that the 1st place had a performance of 62.20m?
CREATE TABLE table_name_45 (age__years_ INTEGER, place VARCHAR, performance VARCHAR)
SELECT date_of_election FROM table_1329532_2 WHERE appointed_successor = "H. Brent Coles"
What was the election date for H. Brent Coles?
CREATE TABLE table_1329532_2 (date_of_election VARCHAR, appointed_successor VARCHAR)
SELECT indigenous_mining_production_2006 FROM table_15624586_2 WHERE _percentage_of_world_demand = "3.4%"
What is the indigenous mining production of the country that uses 3.4% of the world demand?
CREATE TABLE table_15624586_2 (indigenous_mining_production_2006 VARCHAR, _percentage_of_world_demand VARCHAR)
SELECT poison_klesha FROM table_name_29 WHERE pali = "moha avijja"
What is the poison/klesha word for moha avijja in pali?
CREATE TABLE table_name_29 (poison_klesha VARCHAR, pali VARCHAR)
SELECT AVG(touchdowns) FROM table_name_8 WHERE extra_points < 5 AND player = "clark" AND field_goals > 0
Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0?
CREATE TABLE table_name_8 (touchdowns INTEGER, field_goals VARCHAR, extra_points VARCHAR, player VARCHAR)
SELECT position FROM table_name_28 WHERE weight > 220 AND player = "travis knight"
What is Postion, when Weight is greater than 220, and when Player is "Travis Knight"?
CREATE TABLE table_name_28 (position VARCHAR, weight VARCHAR, player VARCHAR)
SELECT MIN(bronze) FROM table_name_34 WHERE silver < 0
What is the least bronze number when the silver is less than 0?
CREATE TABLE table_name_34 (bronze INTEGER, silver INTEGER)
SELECT mascot FROM table_name_10 WHERE ihsaa_class = "aa" AND enrollment > 369
Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?
CREATE TABLE table_name_10 (mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT party FROM table_1341897_23 WHERE district = "Massachusetts 3"
Name the party for massachusetts 3
CREATE TABLE table_1341897_23 (party VARCHAR, district VARCHAR)
SELECT village__slovenian_ FROM table_10797463_1 WHERE percent_of_slovenes_1951 = "65.9%"
What are the slovenian names of the villages that had 65.9% of slovenes in 1951?
CREATE TABLE table_10797463_1 (village__slovenian_ VARCHAR, percent_of_slovenes_1951 VARCHAR)
SELECT SUM(total_games) FROM table_name_34 WHERE number_of_seasons < 2 AND draw > 7
What is the number of games for less than 2 seasons and more than 7 draws?
CREATE TABLE table_name_34 (total_games INTEGER, number_of_seasons VARCHAR, draw VARCHAR)
SELECT venue FROM table_name_14 WHERE away_team = "north melbourne"
In which venue was North Melbourne the Away team?
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
SELECT MAX(round) FROM table_name_42 WHERE date = "5 april"
What is the highest round on 5 april?
CREATE TABLE table_name_42 (round INTEGER, date VARCHAR)
SELECT MAX(inns) FROM table_name_64 WHERE seasons = "1987–2007" AND runs > 11622
Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?
CREATE TABLE table_name_64 (inns INTEGER, seasons VARCHAR, runs VARCHAR)
SELECT conference_joined FROM table_name_5 WHERE city = "valparaiso"
What conference did the city of Valparaiso join?
CREATE TABLE table_name_5 (conference_joined VARCHAR, city VARCHAR)
SELECT episode_title FROM table_12146637_1 WHERE us_viewers__millions_ = "8.92"
What is the title of the episode that was watched by 8.92 million viewers?
CREATE TABLE table_12146637_1 (episode_title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT winner FROM table_name_9 WHERE year = "2000"
What's the Winner in the Year of 2000?
CREATE TABLE table_name_9 (winner VARCHAR, year VARCHAR)
SELECT order__number FROM table_name_97 WHERE original_artist = "aretha franklin"
What is the order number that has Aretha Franklin as the original artist?
CREATE TABLE table_name_97 (order__number VARCHAR, original_artist VARCHAR)
SELECT host_city FROM table_name_24 WHERE venue = "singapore indoor stadium" AND theme = "valentine's day"
What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?
CREATE TABLE table_name_24 (host_city VARCHAR, venue VARCHAR, theme VARCHAR)
SELECT away_team FROM table_name_2 WHERE home_team = "blackpool"
Who played Blackpool when Blackpool was at home?
CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(bronze) FROM table_name_83 WHERE rank = "1" AND total > 34
What is the lowest bronze total that has a rank of 1 and more than 34 total medals?
CREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "23' 18.82 97.102mph"
What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?
CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, tues_25_aug VARCHAR)
SELECT SUM(silver) FROM table_name_19 WHERE bronze < 1
COunt the silver that has a Bronze smaller than 1?
CREATE TABLE table_name_19 (silver INTEGER, bronze INTEGER)
SELECT SUM(episodes) FROM table_name_53 WHERE first_aired = "april 8, 2011"
Of the series that first aired April 8, 2011, what is the total number of episodes?
CREATE TABLE table_name_53 (episodes INTEGER, first_aired VARCHAR)
SELECT record FROM table_name_6 WHERE loss = "lilly (0-1)"
What was their record when they lost with Lilly (0-1) pitching?
CREATE TABLE table_name_6 (record VARCHAR, loss VARCHAR)
SELECT home_team FROM table_name_40 WHERE score = "1–0"
What is the Home team in the Game with a Score of 1–0?
CREATE TABLE table_name_40 (home_team VARCHAR, score VARCHAR)
SELECT province FROM table_name_66 WHERE city = "hamilton"
What province is Hamilton part of?
CREATE TABLE table_name_66 (province VARCHAR, city VARCHAR)
SELECT rowers FROM table_name_14 WHERE notes = "r" AND country = "portugal"
Which rowers represented portugal and had notes of r?
CREATE TABLE table_name_14 (rowers VARCHAR, notes VARCHAR, country VARCHAR)
SELECT november_3 FROM table_25216791_3 WHERE january_15_16 = "January 15, 2010"
What was the data on November 3, if the data on January 15-16 is January 15, 2010?
CREATE TABLE table_25216791_3 (november_3 VARCHAR, january_15_16 VARCHAR)
SELECT team FROM table_name_76 WHERE high_assists = "brad miller (8)"
What team has brad miller (8) as the high assists?
CREATE TABLE table_name_76 (team VARCHAR, high_assists VARCHAR)
SELECT constructor FROM table_name_52 WHERE laps < 17 AND grid > 11 AND driver = "alan jones"
Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones
CREATE TABLE table_name_52 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT away_team AS score FROM table_name_91 WHERE home_team = "north melbourne"
What was the away score when North Melbourne was played?
CREATE TABLE table_name_91 (away_team VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_71 WHERE year = "1992"
What the score of the 1992 game?
CREATE TABLE table_name_71 (score VARCHAR, year VARCHAR)
SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum"
Which Entrepreneur(s) have mixalbum?
CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR)
SELECT film FROM table_name_98 WHERE award = "£3,740"
Name the film for award of £3,740
CREATE TABLE table_name_98 (film VARCHAR, award VARCHAR)
SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2
How many silver medals when the bronze is more than 2 and having a rank more than 5?
CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT high_assists FROM table_17340355_6 WHERE score = "W 106–104 (OT)"
Who made high points on games of score w 106–104 (ot)
CREATE TABLE table_17340355_6 (high_assists VARCHAR, score VARCHAR)
SELECT score FROM table_name_63 WHERE partnering = "dmitry tursunov"
which Score has a Partnering of dmitry tursunov?
CREATE TABLE table_name_63 (score VARCHAR, partnering VARCHAR)
SELECT SUM(games) FROM table_name_94 WHERE years_at_club = "1971–1974" AND debut_year > 1971
How many Games have Years at club of 1971–1974, and a Debut year larger than 1971?
CREATE TABLE table_name_94 (games INTEGER, years_at_club VARCHAR, debut_year VARCHAR)
SELECT result FROM table_name_81 WHERE date = "september 3, 2000"
Which Result has a Date of september 3, 2000?
CREATE TABLE table_name_81 (result VARCHAR, date VARCHAR)
SELECT other__percentage FROM table_13625792_1 WHERE bush__number = 4333
In the country where Bush won 4333 votes, what percentage did other receive?
CREATE TABLE table_13625792_1 (other__percentage VARCHAR, bush__number VARCHAR)
SELECT season FROM table_19061741_1 WHERE duration = "Day 8-36"
When day 8-36 is the duration what is the season?
CREATE TABLE table_19061741_1 (season VARCHAR, duration VARCHAR)
SELECT round FROM table_name_54 WHERE name = "greg huntington"
Round that greg huntington went in?
CREATE TABLE table_name_54 (round VARCHAR, name VARCHAR)
SELECT born_state FROM head GROUP BY born_state HAVING COUNT(*) >= 3
What are the names of the states where at least 3 heads were born?
CREATE TABLE head (born_state VARCHAR)
SELECT MAX(age) FROM Dogs
What is the age of the oldest dog?
CREATE TABLE Dogs (age INTEGER)
SELECT date FROM table_17118657_10 WHERE high_assists = "Dupree (6)"
On which date is high assists Dupree (6)?
CREATE TABLE table_17118657_10 (date VARCHAR, high_assists VARCHAR)