answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT title FROM table_name_31 WHERE year < 2008 AND platform = "xbox 360"
Which title has a year prior to 2008 and xbox 360 as the platform?
CREATE TABLE table_name_31 (title VARCHAR, year VARCHAR, platform VARCHAR)
SELECT playoffs FROM table_1214035_1 WHERE regular_season = "7th, Southeast"
What was the result of the playoffs when the regular season was 7th, southeast
CREATE TABLE table_1214035_1 (playoffs VARCHAR, regular_season VARCHAR)
SELECT marriage FROM table_name_68 WHERE became_duchess = "12 december 1666"
Which Marriage has a Became Duchess of 12 december 1666?
CREATE TABLE table_name_68 (marriage VARCHAR, became_duchess VARCHAR)
SELECT SUM(against) FROM table_name_35 WHERE drawn < 2 AND position > 8 AND lost > 6
What is the sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6.
CREATE TABLE table_name_35 (against INTEGER, lost VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT owner FROM table_name_73 WHERE name = "mrt 1 hd"
Which owner had MRT 1 HD?
CREATE TABLE table_name_73 (owner VARCHAR, name VARCHAR)
SELECT to_par FROM table_name_45 WHERE place = "t5" AND player = "ed sneed"
What is the to par of player ed sneed, who has a t5 place?
CREATE TABLE table_name_45 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)
Find the name of accounts whose checking balance is below the average checking balance.
CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)
SELECT AVG(gross_tonnage) FROM table_name_57 WHERE entered_service = "april 1919"
Tell me the average gross tonnage for april 1919 entered service
CREATE TABLE table_name_57 (gross_tonnage INTEGER, entered_service VARCHAR)
SELECT hometown FROM table_name_43 WHERE college = "wisconsin"
What is the hometown for a college in Wisconsin?
CREATE TABLE table_name_43 (hometown VARCHAR, college VARCHAR)
SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative"
What are the market city/market(s) for Rapid City Alternative format?
CREATE TABLE table_134987_3 (target_city__market VARCHAR, city_of_license VARCHAR, format VARCHAR)
SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY COUNT(*) DESC LIMIT 1
What is the area of the appelation that produces the highest number of wines before the year of 2010?
CREATE TABLE WINE (Appelation VARCHAR, year VARCHAR); CREATE TABLE APPELLATIONS (Area VARCHAR, Appelation VARCHAR)
SELECT Vice AS president FROM table_name_29 WHERE president = "daniel masny" AND treasurer = "rebecca t. altmann"
Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann?
CREATE TABLE table_name_29 (Vice VARCHAR, president VARCHAR, treasurer VARCHAR)
SELECT company, headquarters FROM company ORDER BY market_value DESC
Show all company names and headquarters in the descending order of market value.
CREATE TABLE company (company VARCHAR, headquarters VARCHAR, market_value VARCHAR)
SELECT stations FROM table_2093995_1 WHERE city__neighborhood = "Tarzana"
What are the stations in Tarzana?
CREATE TABLE table_2093995_1 (stations VARCHAR, city__neighborhood VARCHAR)
SELECT production_code FROM table_23242950_1 WHERE us_viewers__millions_ = "7.49"
What's the production code of the episode seen by 7.49 million people in the US?
CREATE TABLE table_23242950_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT high_points FROM table_11963601_11 WHERE date = "May 3"
Who was the high scorer and how much did they score in the game on May 3?
CREATE TABLE table_11963601_11 (high_points VARCHAR, date VARCHAR)
SELECT home_team FROM table_24887326_8 WHERE away_team = "Plymouth Argyle"
Who was the home team who played plymouth argyle?
CREATE TABLE table_24887326_8 (home_team VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_68 WHERE november = 24
who is the opponent on november 24?
CREATE TABLE table_name_68 (opponent VARCHAR, november VARCHAR)
SELECT team FROM table_name_81 WHERE country = "france" AND uci_points = "15"
What team in France had 15 UCi points?
CREATE TABLE table_name_81 (team VARCHAR, country VARCHAR, uci_points VARCHAR)
SELECT circuit FROM table_name_21 WHERE winning_driver = "rupert keegan" AND round = 8
What circuit did Rupert Keegan win in round 8?
CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)
SELECT drafting_team FROM table_name_44 WHERE graduated > 2010 AND college_prior = "michigan"
Who drafted the player from Michigan after 2010?
CREATE TABLE table_name_44 (drafting_team VARCHAR, graduated VARCHAR, college_prior VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = "brett sonne"
Which college/junior/club team (league) did Brett Sonne play in?
CREATE TABLE table_name_45 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT moto2_winner FROM table_26781017_1 WHERE grand_prix = "Shell Advance Malaysian grand_prix"
Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix?
CREATE TABLE table_26781017_1 (moto2_winner VARCHAR, grand_prix VARCHAR)
SELECT home FROM table_name_14 WHERE country = "sweden"
Where in Sweden is the home of the Swedish team?
CREATE TABLE table_name_14 (home VARCHAR, country VARCHAR)
SELECT 2012 FROM table_name_16 WHERE 2011 = "1r" AND 2007 = "a" AND 2010 = "1r" AND 2009 = "a"
What is the 2012 value with 1r in 2011, 2007 of A, 2010 of 1r, and 2009 of A?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT points_against FROM table_name_67 WHERE losing_bonus = "1" AND club = "blaenavon rfc"
How many points were scored against with a losing bonus of 1 for Blaenavon RFC?
CREATE TABLE table_name_67 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR)
SELECT air_date FROM table_name_95 WHERE episode = "gary tries to do it all"
What was the air date of 'Gary tries to do it all'?
CREATE TABLE table_name_95 (air_date VARCHAR, episode VARCHAR)
SELECT COUNT(total) FROM table_name_34 WHERE bronze = 2 AND gold > 3
how many times is bronze 2 and gold more than 3?
CREATE TABLE table_name_34 (total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(position) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"
What's the number of positions of the player playing in Minnesota North Stars?
CREATE TABLE table_1965650_4 (position VARCHAR, nhl_team VARCHAR)
SELECT date FROM table_name_54 WHERE region = "united kingdom"
Which date has a region of united kingdom?
CREATE TABLE table_name_54 (date VARCHAR, region VARCHAR)
SELECT COUNT(total) FROM table_name_68 WHERE gold < 1 AND silver > 0 AND rank = "14" AND nation = "afghanistan"
What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?
CREATE TABLE table_name_68 (total VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT party FROM table_1341738_34 WHERE incumbent = "Lawrence H. Fountain"
Which party is Lawrence H. Fountain part of?
CREATE TABLE table_1341738_34 (party VARCHAR, incumbent VARCHAR)
SELECT distance FROM table_name_73 WHERE time = "2:20.00"
Which Distance has a Time of 2:20.00?
CREATE TABLE table_name_73 (distance VARCHAR, time VARCHAR)
SELECT to_par FROM table_name_53 WHERE year_s__won > 1999
What is the to par when the year(s) won is larger than 1999?
CREATE TABLE table_name_53 (to_par VARCHAR, year_s__won INTEGER)
SELECT AVG(losses) FROM table_name_77 WHERE club = "cobden" AND against > 1487
Cobden has more than 1487 against and what average of losses?
CREATE TABLE table_name_77 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127
Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?
CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT SUM(laps) FROM table_name_65 WHERE grid < 15 AND time_retired = "transmission"
What is the lap total for the grid under 15 that retired due to transmission?
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT MIN(lost) FROM table_name_3 WHERE points_difference = "40 - 17" AND games > 6
What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games?
CREATE TABLE table_name_3 (lost INTEGER, points_difference VARCHAR, games VARCHAR)
SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30
Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.
CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)
SELECT week_6 FROM table_name_80 WHERE week_2 = "see notes 2 , 3 , 4"
What kind of Week 6 has a Week 2 of see notes 2 , 3 , 4?
CREATE TABLE table_name_80 (week_6 VARCHAR, week_2 VARCHAR)
SELECT round FROM table_name_24 WHERE position = "goaltender"
In what Round is the Position Goaltender?
CREATE TABLE table_name_24 (round VARCHAR, position VARCHAR)
SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–1997"
What is the name of the building that was the tallest from 1990–1997 in Frankfurt?
CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR)
SELECT player FROM table_name_41 WHERE to_par = "–4"
What is the name of the player with a To par of –4?
CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR)
SELECT trial_phase FROM table_name_59 WHERE expected_end_date = "june 2007"
What is Trial Phase, when Expected End Date is June 2007?
CREATE TABLE table_name_59 (trial_phase VARCHAR, expected_end_date VARCHAR)
SELECT date FROM table_name_40 WHERE venue = "junction oval"
On which date was a game played at Junction Oval?
CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR)
SELECT COUNT(points) FROM table_name_38 WHERE visitor = "pittsburgh" AND home = "philadelphia"
How many points have pittsburgh as the visitor, and philadelphia as the home?
CREATE TABLE table_name_38 (points VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT name FROM table_25762852_1 WHERE lifts = 30
if there are 30 lifts, what is the name of the ski resort?
CREATE TABLE table_25762852_1 (name VARCHAR, lifts VARCHAR)
SELECT score FROM table_name_57 WHERE goal = 6
What was the score for a goal of 6?
CREATE TABLE table_name_57 (score VARCHAR, goal VARCHAR)
SELECT episode_number FROM table_name_1 WHERE name = "vibhav gautam"
Which episode number was associated with Vibhav Gautam?
CREATE TABLE table_name_1 (episode_number VARCHAR, name VARCHAR)
SELECT venue FROM table_name_53 WHERE scored = 1 AND competition = "2006 fifa world cup qualification"
At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition?
CREATE TABLE table_name_53 (venue VARCHAR, scored VARCHAR, competition VARCHAR)
SELECT result FROM table_name_2 WHERE venue = "kyiv, ukraine"
What is the result of the game at kyiv, ukraine?
CREATE TABLE table_name_2 (result VARCHAR, venue VARCHAR)
SELECT opponent FROM table_19778010_5 WHERE game = 8
Who was game number 8 played against?
CREATE TABLE table_19778010_5 (opponent VARCHAR, game VARCHAR)
SELECT date_of_vacancy FROM table_18522916_5 WHERE date_of_appointment = "29 December 2008"
Name the date of vacancy for 29 december 2008 being date of appointment
CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR)
SELECT MIN(gold) FROM table_name_47 WHERE nation = "malaysia" AND silver < 0
Which Gold has a Nation of malaysia, and a Silver smaller than 0?
CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT title FROM table_22347090_6 WHERE no_in_series = 41
What is the name of episode number 41 in the series?
CREATE TABLE table_22347090_6 (title VARCHAR, no_in_series VARCHAR)
SELECT decision FROM table_name_4 WHERE visitor = "vancouver" AND score = "5 – 4"
Which Decision has a Visitor of vancouver, and a Score of 5 – 4?
CREATE TABLE table_name_4 (decision VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT original_nonequity_tour_cast FROM table_name_49 WHERE original_broadway_cast = "kevin chamberlin"
What was the original nonequity tour when the original broadway was Kevin Chamberlin?
CREATE TABLE table_name_49 (original_nonequity_tour_cast VARCHAR, original_broadway_cast VARCHAR)
SELECT position FROM table_name_48 WHERE year = "sophomore" AND name = "darnell jackson"
What Position did the sophomore Darnell Jackson play?
CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_63 WHERE venue = "junction oval"
Who was the away team at Junction Oval?
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(date_of_appointment) FROM table_27057070_3 WHERE team = "Khazar Lankaran"
How many date of appointment entries are there when the team is khazar lankaran?
CREATE TABLE table_27057070_3 (date_of_appointment VARCHAR, team VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_56 WHERE to_par = "–1" AND score = 73 - 70 - 73 - 71 = 287
Which money is the highest one that has a To par of –1, and a Score of 73-70-73-71=287?
CREATE TABLE table_name_56 (money___ INTEGER, to_par VARCHAR, score VARCHAR)
SELECT MAX(top_5) FROM table_name_47 WHERE wins = 0 AND events > 6
Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?
CREATE TABLE table_name_47 (top_5 INTEGER, wins VARCHAR, events VARCHAR)
SELECT division_east FROM table_17881033_1 WHERE division_north = "Milano"
what is the division east when division north was milano
CREATE TABLE table_17881033_1 (division_east VARCHAR, division_north VARCHAR)
SELECT date FROM table_name_76 WHERE week = 4
What is the date of the week 4 game?
CREATE TABLE table_name_76 (date VARCHAR, week VARCHAR)
SELECT player FROM table_name_93 WHERE country = "united states" AND score = 71 - 73 = 144
who is the player when the country is united states and the score is 71-73=144?
CREATE TABLE table_name_93 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT national_league FROM table_name_80 WHERE club = "limoges csp" AND national_cup = "french basketball cup"
What national league has limoges csp, and french basketball cup?
CREATE TABLE table_name_80 (national_league VARCHAR, club VARCHAR, national_cup VARCHAR)
SELECT SUM(city_population) FROM district ORDER BY city_area DESC LIMIT 3
Find the total population of the top 3 districts with the largest area.
CREATE TABLE district (city_population INTEGER, city_area VARCHAR)
SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = "Cheung, Raymond Man-to"
The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to?
CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR)
SELECT entrant FROM table_name_65 WHERE rounds = "all" AND chassis = "jh24 jh25" AND driver = "gabriele tarquini"
Who was the entrant for Gabriele Tarquini with all rounds and a JH24 JH25 Chassis?
CREATE TABLE table_name_65 (entrant VARCHAR, driver VARCHAR, rounds VARCHAR, chassis VARCHAR)
SELECT height FROM table_11677760_31 WHERE college = "Ohio State"
What is the height of the player that went to ohio state?
CREATE TABLE table_11677760_31 (height VARCHAR, college VARCHAR)
SELECT theme FROM table_name_38 WHERE week = "week 3"
What was the theme for week 3?
CREATE TABLE table_name_38 (theme VARCHAR, week VARCHAR)
SELECT track FROM table_name_69 WHERE race = "fountain of youth stakes"
What track did they race on at the Fountain of Youth Stakes?
CREATE TABLE table_name_69 (track VARCHAR, race VARCHAR)
SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0"
Which score has an Opponent of white sox, and a Record of 2-0?
CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT time FROM table_name_35 WHERE away = "high park demons"
What time was the away game played against the High Park Demons?
CREATE TABLE table_name_35 (time VARCHAR, away VARCHAR)
SELECT name FROM table_name_49 WHERE works_number = "809"
Who is the name with a works number of 809?
CREATE TABLE table_name_49 (name VARCHAR, works_number VARCHAR)
SELECT school_club_team FROM table_name_15 WHERE player = "jeremy evans"
Who does jeremy evans play for?
CREATE TABLE table_name_15 (school_club_team VARCHAR, player VARCHAR)
SELECT AVG(opened) FROM table_name_19 WHERE manufacturer = "vekoma"
Which average Opened has a Manufacturer of vekoma?
CREATE TABLE table_name_19 (opened INTEGER, manufacturer VARCHAR)
SELECT country FROM table_name_10 WHERE music = "nino oliviero"
What country is the film that has music of nino oliviero?
CREATE TABLE table_name_10 (country VARCHAR, music VARCHAR)
SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240
Name the least indian tamil for population density being 240
CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR)
SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1
What is the ERP W number where the frequency is smaller than 91.1?
CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER)
SELECT partner FROM table_name_64 WHERE score = "6–3, 7–6 (7–3)"
Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)?
CREATE TABLE table_name_64 (partner VARCHAR, score VARCHAR)
SELECT date FROM table_name_23 WHERE visitor = "detroit"
What is the date of the game with Detroit as the visitor team?
CREATE TABLE table_name_23 (date VARCHAR, visitor VARCHAR)
SELECT COUNT(gold) FROM table_name_56 WHERE rank = "1" AND total > 16
How many gold are a rank 1 and larger than 16?
CREATE TABLE table_name_56 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT player FROM table_26847237_2 WHERE weight = "76kg"
Which player weighs 76kg?
CREATE TABLE table_26847237_2 (player VARCHAR, weight VARCHAR)
SELECT finish FROM table_name_29 WHERE year = "1957"
What place did Jimmy Reece finish in 1957?
CREATE TABLE table_name_29 (finish VARCHAR, year VARCHAR)
SELECT polyunsaturated_fat FROM table_name_31 WHERE saturated_fat = "25g"
Name the polyunsaturated fat with a saturated fat of 25g
CREATE TABLE table_name_31 (polyunsaturated_fat VARCHAR, saturated_fat VARCHAR)
SELECT home FROM table_name_68 WHERE date = "february 3"
Who was the home team on February 3?
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR)
SELECT MIN(average) FROM table_name_38 WHERE total < 134 AND number_of_dances < 3 AND rank_by_average < 12
Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12?
CREATE TABLE table_name_38 (average INTEGER, rank_by_average VARCHAR, total VARCHAR, number_of_dances VARCHAR)
SELECT date FROM table_name_7 WHERE opponent_in_the_final = "andrey golubev"
When did Mathieu play against Andrey Golubev?
CREATE TABLE table_name_7 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT location FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"
Where was the home match against FK Rudar Ugljevik played?
CREATE TABLE table_29728596_1 (location VARCHAR, away_team VARCHAR)
SELECT MIN(points) FROM table_name_7 WHERE entrant = "officine alfieri maserati"
Name the lowest points for officine alfieri maserati
CREATE TABLE table_name_7 (points INTEGER, entrant VARCHAR)
SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14
How many receptions for players with over 647 yards and an under 14 yard average?
CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR)
SELECT school FROM table_name_83 WHERE county = "46 laporte"
County of 46 laporte is what school?
CREATE TABLE table_name_83 (school VARCHAR, county VARCHAR)
SELECT frequency FROM table_name_26 WHERE branding = "country 600"
Which Frequency has a Branding of country 600?
CREATE TABLE table_name_26 (frequency VARCHAR, branding VARCHAR)
SELECT attendance FROM table_name_4 WHERE visitor = "warriors" AND date = "2007-04-07"
What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team?
CREATE TABLE table_name_4 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT 2 AS nd_leg FROM table_name_18 WHERE team__number2 = "junior"
What is the 2nd leg for the team #2 junior?
CREATE TABLE table_name_18 (team__number2 VARCHAR)
SELECT outcome FROM table_19047_2 WHERE opponent_in_the_final = "Jennifer Capriati"
What is the result in the final versos Jennifer Capriati?
CREATE TABLE table_19047_2 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT award_description_s_ FROM table_name_84 WHERE format_s_ = "album"
What are the award description with Format album?
CREATE TABLE table_name_84 (award_description_s_ VARCHAR, format_s_ VARCHAR)
SELECT loss FROM table_name_61 WHERE record = "27-17"
What was the loss of the game when the record was 27-17?
CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR)
SELECT points FROM table_25561038_1 WHERE position = "1st"
List the total points for the 1st place team.
CREATE TABLE table_25561038_1 (points VARCHAR, position VARCHAR)