answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT week FROM table_name_29 WHERE date = "bye"
Name the week for date of bye
CREATE TABLE table_name_29 (week VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_5 WHERE race_name = "i mexican grand prix"
On what circuit was the i mexican grand prix held?
CREATE TABLE table_name_5 (circuit VARCHAR, race_name VARCHAR)
SELECT finish FROM table_name_17 WHERE season = "playoffs"
What was the finish in the playoffs season?
CREATE TABLE table_name_17 (finish VARCHAR, season VARCHAR)
SELECT year FROM table_name_97 WHERE supplier = "kooga"
What is the Year for Supplier Kooga?
CREATE TABLE table_name_97 (year VARCHAR, supplier VARCHAR)
SELECT event FROM table_name_8 WHERE name = "rashid sidek"
What event did Rashid Sidek participate in?
CREATE TABLE table_name_8 (event VARCHAR, name VARCHAR)
SELECT centerfold_model FROM table_name_54 WHERE date = "3-01"
Which Centerfold model has a Date of 3-01?
CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR)
SELECT team_nickname FROM table_name_78 WHERE joined_tschl > 2010
what is the team nickname that joined tschl after 2010?
CREATE TABLE table_name_78 (team_nickname VARCHAR, joined_tschl INTEGER)
SELECT date FROM table_name_20 WHERE opponents_in_the_final = "claire de gubernatis alexandra dulgheru"
Which date has opponents, Claire De Gubernatis Alexandra Dulgheru, in the final?
CREATE TABLE table_name_20 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 71 = 281
What Country's Player scored 71-69-70-71=281?
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = "Heilo"
Find all the songs performed by artist with last name "Heilo"
CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, Lastname VARCHAR)
SELECT percentage___percentage_ FROM table_name_90 WHERE language = "russian"
What is the percentage for Russian?
CREATE TABLE table_name_90 (percentage___percentage_ VARCHAR, language VARCHAR)
SELECT nationality FROM table_name_72 WHERE position = "center"
What is the nationality of the center?
CREATE TABLE table_name_72 (nationality VARCHAR, position VARCHAR)
SELECT name FROM table_16799784_13 WHERE latitude = "23.9S"
What feature is at latitude 23.9S?
CREATE TABLE table_16799784_13 (name VARCHAR, latitude VARCHAR)
SELECT margin_of_victory FROM table_1514634_2 WHERE tournament = "Mercedes Championships"
What was the margin of victory at the Mercedes Championships?
CREATE TABLE table_1514634_2 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT 1999 FROM table_name_3 WHERE 2011 = "2r"
Name the 1999 with 2011 of 2r
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT COUNT(round) FROM table_name_59 WHERE school = "morris brown"
What is the total number of round picks from the Morris Brown School?
CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR)
SELECT outcome FROM table_2215159_2 WHERE partner = "Rafael Osuna"
What was the outcome of the game when the partner is Rafael Osuna?
CREATE TABLE table_2215159_2 (outcome VARCHAR, partner VARCHAR)
SELECT home FROM table_name_89 WHERE record = "2-0"
What is the home team of the game with a 2-0 record?
CREATE TABLE table_name_89 (home VARCHAR, record VARCHAR)
SELECT MAX(winners) FROM table_14573770_4 WHERE nation = "Argentina"
How many times did argentina win?
CREATE TABLE table_14573770_4 (winners INTEGER, nation VARCHAR)
SELECT division_north FROM table_17881033_1 WHERE season = "2007–08"
what is the division north in 2007–08
CREATE TABLE table_17881033_1 (division_north VARCHAR, season VARCHAR)
SELECT COUNT(title) FROM table_22904780_1 WHERE us_viewers__million_ = "12.04"
List the number of shows that had 12.04 million viewers in the united states
CREATE TABLE table_22904780_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT stadium FROM table_name_76 WHERE club = "west ham united"
What stadium has a club of west ham united?
CREATE TABLE table_name_76 (stadium VARCHAR, club VARCHAR)
SELECT MAX(season) FROM table_name_52 WHERE score = "3 – 3 aet , 4–3 pen"
Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?
CREATE TABLE table_name_52 (season INTEGER, score VARCHAR)
SELECT romaji_title FROM table_name_79 WHERE tv_station = "tbs" AND japanese_title = "around40〜注文の多いオンナたち〜"
What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?
CREATE TABLE table_name_79 (romaji_title VARCHAR, tv_station VARCHAR, japanese_title VARCHAR)
SELECT function FROM table_18138132_2 WHERE release_date = "2011-06-23"
What functions were released on 2011-06-23?
CREATE TABLE table_18138132_2 (function VARCHAR, release_date VARCHAR)
SELECT foursomes_w_l_h FROM table_1628607_5 WHERE year = "2002"
What was the foursome's record in 2002?
CREATE TABLE table_1628607_5 (foursomes_w_l_h VARCHAR, year VARCHAR)
SELECT episodes FROM table_14855908_3 WHERE region_1__us_ = "October 13, 2009"
How many episodes were released on DVD in the US on October 13, 2009?
CREATE TABLE table_14855908_3 (episodes VARCHAR, region_1__us_ VARCHAR)
SELECT player FROM table_20170644_5 WHERE college = "Montreal"
What player went to montreal college?
CREATE TABLE table_20170644_5 (player VARCHAR, college VARCHAR)
SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = "set" AND pdt___7_utc_ = "6:00 a.m."
What time is MDT when EDT is set and PDT is 6:00 a.m.?
CREATE TABLE table_name_58 (mdt___6_utc_ VARCHAR, edt___4_utc_ VARCHAR, pdt___7_utc_ VARCHAR)
SELECT time FROM table_name_42 WHERE laps = 18 AND grid > 15 AND rider = "russell holland"
What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland?
CREATE TABLE table_name_42 (time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT score FROM table_name_19 WHERE game > 47 AND january < 25
Which Score has a Game larger than 47, and a January smaller than 25?
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR, january VARCHAR)
SELECT streak FROM table_name_6 WHERE game = "2"
What is the streak for game 2?
CREATE TABLE table_name_6 (streak VARCHAR, game VARCHAR)
SELECT average FROM table_16390001_2 WHERE interview = "8.011"
What are the average scores of contestants whose interview score is 8.011?
CREATE TABLE table_16390001_2 (average VARCHAR, interview VARCHAR)
SELECT venue FROM table_name_79 WHERE home_team = "north melbourne"
What is the venue of North Melbourne?
CREATE TABLE table_name_79 (venue VARCHAR, home_team VARCHAR)
SELECT MAX(podiums) FROM table_name_60 WHERE stage_wins = 91 AND points < 140
what is the highest podiums when the stage wins is 91 and the points is less than 140?
CREATE TABLE table_name_60 (podiums INTEGER, stage_wins VARCHAR, points VARCHAR)
SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute"
Which captain has Gintare Karpaviciute as an alternate?
CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR)
SELECT location FROM table_name_24 WHERE opponent = "arturo segovia"
Where did arturo segovia compete?
CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR)
SELECT last_10_meetings FROM table_name_32 WHERE last_meeting = "11/26/1988"
What is the last 10 meetings that have 11/26/1988 as the lasr meeting?
CREATE TABLE table_name_32 (last_10_meetings VARCHAR, last_meeting VARCHAR)
SELECT date FROM table_name_72 WHERE venue = "the boulevard" AND score = "8-8"
When was the game at the boulevard that ended with an 8-8 score?
CREATE TABLE table_name_72 (date VARCHAR, venue VARCHAR, score VARCHAR)
SELECT school_club_team FROM table_name_50 WHERE round = 2 AND pick < 42
What school or team has round of 2 with less than 42 picks?
CREATE TABLE table_name_50 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)
SELECT player FROM table_name_52 WHERE score = 69
Which player has 69 as the score?
CREATE TABLE table_name_52 (player VARCHAR, score VARCHAR)
SELECT record FROM table_name_68 WHERE home = "pittsburgh"
What was their record when they were at Pittsburgh?
CREATE TABLE table_name_68 (record VARCHAR, home VARCHAR)
SELECT AVG(2 AS nd_pl) FROM table_name_16 WHERE years_active = "2000" AND titles > 0
What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
CREATE TABLE table_name_16 (years_active VARCHAR, titles VARCHAR)
SELECT fa_cup_goals FROM table_name_59 WHERE scorer = "george yardley"
How many FA Cup goals does George Yardley have?
CREATE TABLE table_name_59 (fa_cup_goals VARCHAR, scorer VARCHAR)
SELECT visitor FROM table_name_93 WHERE record = "9–5–2"
What visiting team has a record of 9–5–2?
CREATE TABLE table_name_93 (visitor VARCHAR, record VARCHAR)
SELECT player FROM table_2508633_2 WHERE nfl_team = "New Orleans Saints"
Name the player for new orleans saints
CREATE TABLE table_2508633_2 (player VARCHAR, nfl_team VARCHAR)
SELECT week_of FROM table_name_2 WHERE semi_finalists = "anke huber chanda rubin" AND runner_up = "meredith mcgrath larisa savchenko"
What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?
CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)
SELECT fate_and_location FROM table_name_3 WHERE ship = "ringstad"
What was the fate and location of the Ringstad?
CREATE TABLE table_name_3 (fate_and_location VARCHAR, ship VARCHAR)
SELECT COUNT(setting) FROM table_24463470_1 WHERE unlocked_by = "N/A"
How many instances is the unlocked n/a?
CREATE TABLE table_24463470_1 (setting VARCHAR, unlocked_by VARCHAR)
SELECT COUNT(founded) FROM table_name_73 WHERE final_af2_season < 2009 AND arena = "bi-lo center" AND first_af2_season < 2000
How many founded years had a final af2 season prior to 2009 where the arena was the bi-lo center and the first af2 season was prior to 2000?
CREATE TABLE table_name_73 (founded VARCHAR, first_af2_season VARCHAR, final_af2_season VARCHAR, arena VARCHAR)
SELECT pci_express FROM table_name_11 WHERE memory = "ddr 266/333/400 registered/ecc" AND sound = "enhanced ac'97 2.3"
Which PCI-Express has a DDR 266/333/400 Registered/ECC memory and Enhanced AC'97 2.3 sound?
CREATE TABLE table_name_11 (pci_express VARCHAR, memory VARCHAR, sound VARCHAR)
SELECT open_cup FROM table_1990460_1 WHERE year = 2006
What's the team's status in the Open Cup in 2006?
CREATE TABLE table_1990460_1 (open_cup VARCHAR, year VARCHAR)
SELECT day FROM table_21536557_2 WHERE stage = "SS11"
Which days have a stage of ss11?
CREATE TABLE table_21536557_2 (day VARCHAR, stage VARCHAR)
SELECT meet FROM table_name_22 WHERE event = "100m backstroke"
Which championship was the 100m backstroke performed?
CREATE TABLE table_name_22 (meet VARCHAR, event VARCHAR)
SELECT winning_driver FROM table_1137718_2 WHERE date = "13 August"
Who was the winning driver on 13 August?
CREATE TABLE table_1137718_2 (winning_driver VARCHAR, date VARCHAR)
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount)
List the name of all different customers who have some loan sorted by their total loan amount.
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007"
Name the average attendance with result of won 2-0 on 2 november 2007
CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR)
SELECT MIN(dma) FROM table_19131921_1
What is dma?
CREATE TABLE table_19131921_1 (dma INTEGER)
SELECT new_team FROM table_name_27 WHERE round = "compensation-a" AND player = "frank catalanotto"
Which new team has a compensation-a round, and Frank Catalanotto as a player?
CREATE TABLE table_name_27 (new_team VARCHAR, round VARCHAR, player VARCHAR)
SELECT score FROM table_name_6 WHERE tie_no = "15"
What was the score of tie number 15?
CREATE TABLE table_name_6 (score VARCHAR, tie_no VARCHAR)
SELECT year FROM table_2528382_2 WHERE co_stars = "Mala Sinha and Amitabh Bachchan"
In which years are co-stars mala sinha and amitabh bachchan?
CREATE TABLE table_2528382_2 (year VARCHAR, co_stars VARCHAR)
SELECT nationality FROM table_name_52 WHERE name = "jessica pengelly"
What nationality is Jessica Pengelly?
CREATE TABLE table_name_52 (nationality VARCHAR, name VARCHAR)
SELECT artist_s_ FROM table_name_80 WHERE book_title = "cyberella"
what artist has a book called cyberella
CREATE TABLE table_name_80 (artist_s_ VARCHAR, book_title VARCHAR)
SELECT team FROM table_2383498_4 WHERE location = "Port Moresby"
What is every team in the location of Port Moresby?
CREATE TABLE table_2383498_4 (team VARCHAR, location VARCHAR)
SELECT player FROM table_name_21 WHERE year_s__won = "1993"
Which player won in 1993?
CREATE TABLE table_name_21 (player VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_27734577_11 WHERE team = "Boston"
What date did the Hawks play against Boston?
CREATE TABLE table_27734577_11 (date VARCHAR, team VARCHAR)
SELECT winner FROM table_22577693_1 WHERE final_venue = "Kowloon Cricket Club"
Who was the winner if the final venue is Kowloon Cricket Club?
CREATE TABLE table_22577693_1 (winner VARCHAR, final_venue VARCHAR)
SELECT representative FROM table_name_83 WHERE title = "ambassador extraordinary and plenipotentiary" AND termination_of_mission = "september 20, 1996"
Which representative was the Ambassador Extraordinary and Plenipotentiary and had a Termination of Mission date September 20, 1996?
CREATE TABLE table_name_83 (representative VARCHAR, title VARCHAR, termination_of_mission VARCHAR)
SELECT playoff_result FROM table_name_45 WHERE winner = "alaska aces" AND win__number > 1 AND points < 106 AND year = "2011-12"
What is Playoff Result, when Winner is "Alaska Aces", when Win # is greater than 1, when Points is less than 106, and when Year is "2011-12"?
CREATE TABLE table_name_45 (playoff_result VARCHAR, year VARCHAR, points VARCHAR, winner VARCHAR, win__number VARCHAR)
SELECT MIN(draw) FROM table_name_99 WHERE lost > 9 AND goals_scored > 16
What is the fewest number of draws with more than 9 losts and more than 16 goals scored?
CREATE TABLE table_name_99 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR)
SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'
Find the titles of all movies not reviewed by Chris Jackson.
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
SELECT SUM(time) FROM table_name_48 WHERE reaction_time = 0.164
What is the Time of the Athlete with a Reaction time of 0.164?
CREATE TABLE table_name_48 (time INTEGER, reaction_time VARCHAR)
SELECT COUNT(avg) FROM table_name_25 WHERE long = 10
What is the total average for long 10?
CREATE TABLE table_name_25 (avg VARCHAR, long VARCHAR)
SELECT year FROM table_name_14 WHERE finish = "12th" AND record = "23-36"
Name the year with finish of 12th and record of 23-36
CREATE TABLE table_name_14 (year VARCHAR, finish VARCHAR, record VARCHAR)
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461"
Who had a qual 1 of 1:01.461?
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR)
SELECT episode FROM table_name_64 WHERE year < 2004 AND nominee_s_ = "john wells"
When the nominee(s) is john wells what is the episode for a year before 2004?
CREATE TABLE table_name_64 (episode VARCHAR, year VARCHAR, nominee_s_ VARCHAR)
SELECT COUNT(*) FROM catalog_contents
How many products are there in the records?
CREATE TABLE catalog_contents (Id VARCHAR)
SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'
What is the membership card held by both members living in Hartford and ones living in Waterbury address?
CREATE TABLE member (membership_card VARCHAR, address VARCHAR)
SELECT nationality FROM table_name_28 WHERE name = "hamzah idris"
What nationality is hamzah idris?
CREATE TABLE table_name_28 (nationality VARCHAR, name VARCHAR)
SELECT classroom, COUNT(*) FROM list WHERE grade = "4" GROUP BY classroom
Report the total number of students for each fourth-grade classroom.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT driver_s_ FROM table_name_34 WHERE crew_chief = "nick carlson"
Who was the driver for crew chief Nick Carlson?
CREATE TABLE table_name_34 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT segment_c FROM table_name_54 WHERE segment_b = "fish food"
Which Segment C has a Segment B of fish food?
CREATE TABLE table_name_54 (segment_c VARCHAR, segment_b VARCHAR)
SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = "lola lc89b"
Name the sumof points for year less than 1994 and chassis of lola lc89b
CREATE TABLE table_name_47 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT score FROM table_name_76 WHERE record = "9-3-0"
What is the Score when the record was 9-3-0?
CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR)
SELECT mens_doubles FROM table_28138035_4 WHERE mens_singles = "Dimitrij Ovtcharov"
Name the mens doubles for dimitrij ovtcharov
CREATE TABLE table_28138035_4 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT record FROM table_name_72 WHERE attendance = "4,516"
When the Attendance was 4,516, what was the Record?
CREATE TABLE table_name_72 (record VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_47 WHERE game > 58 AND february > 16 AND record = "40-20-4"
Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4?
CREATE TABLE table_name_47 (opponent VARCHAR, record VARCHAR, game VARCHAR, february VARCHAR)
SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25
Which Round has a Position of lb, and a Pick smaller than 25?
CREATE TABLE table_name_3 (round VARCHAR, position VARCHAR, pick VARCHAR)
SELECT laps FROM table_name_45 WHERE time_retired = "+14.403"
How many laps were there when the Time/Retired was +14.403?
CREATE TABLE table_name_45 (laps VARCHAR, time_retired VARCHAR)
SELECT surface FROM table_name_7 WHERE score = "2–6, 6–1, [10–5]"
What type of surface was played on when the score was 2–6, 6–1, [10–5]?
CREATE TABLE table_name_7 (surface VARCHAR, score VARCHAR)
SELECT state__class_ FROM table_1802760_3 WHERE date_of_successors_formal_installation = "December 3, 1858"
Where was the successor formally installed on December 3, 1858?
CREATE TABLE table_1802760_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT COUNT(方位_direction) FROM table_1912713_2 WHERE 性情_personality = "Gentle"
What is the total number of gentle personalities?
CREATE TABLE table_1912713_2 (方位_direction VARCHAR, 性情_personality VARCHAR)
SELECT sunk_by FROM table_name_67 WHERE flag = "norway"
Who sunk the ship with the flag of Norway?
CREATE TABLE table_name_67 (sunk_by VARCHAR, flag VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "as police"
What was the first leg score for the match that had AS Police as team 2?
CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT score FROM table_name_17 WHERE series = "flyers lead 3–2"
Which Score has a Series of flyers lead 3–2?
CREATE TABLE table_name_17 (score VARCHAR, series VARCHAR)
SELECT MAX(year) FROM table_name_44 WHERE result = "nominated"
What is the latest year they were nominated?
CREATE TABLE table_name_44 (year INTEGER, result VARCHAR)
SELECT time_retired FROM table_name_53 WHERE grid < 5 AND driver = "jean alesi"
How much time does it take for jean alesi and grids lesser than 5?
CREATE TABLE table_name_53 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT na__350_ FROM table_13663434_1 WHERE title_and_source = "Paper Wars: Cannon Fodder"
what's the na -350- with title and source being paper wars: cannon fodder
CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)
SELECT opponents FROM table_name_85 WHERE surface = "hard" AND date = "july 13, 2008"
Who were the opponents that played on a hard surface on July 13, 2008?
CREATE TABLE table_name_85 (opponents VARCHAR, surface VARCHAR, date VARCHAR)
SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1
Show the member names which are in both the party with id 3 and the party with id 1.
CREATE TABLE member (member_name VARCHAR, party_id VARCHAR)