answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = 54 AND staying_councillors > 36
What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36?
CREATE TABLE table_name_82 (new_council VARCHAR, previous_council VARCHAR, staying_councillors VARCHAR)
SELECT MIN(game) FROM table_name_10 WHERE march < 12 AND score = "10–1"
Which Game has a March smaller than 12, and a Score of 10–1?
CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR)
SELECT MAX(year) FROM table_name_16 WHERE departed_from = "tdb"
When did TDB depart?
CREATE TABLE table_name_16 (year INTEGER, departed_from VARCHAR)
SELECT SUM(points) FROM table_name_73 WHERE game < 8 AND record = "1–0–0"
Which Points have a Game smaller than 8, and a Record of 1–0–0?
CREATE TABLE table_name_73 (points INTEGER, game VARCHAR, record VARCHAR)
SELECT MAX(choice) FROM table_10361230_1
What is the highest choice?
CREATE TABLE table_10361230_1 (choice INTEGER)
SELECT SUM(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney"
What is the total quantity of products purchased by "Rodrick Heaney"?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT overall FROM table_10361625_1 WHERE college = "Rice"
What is Rice's collage score?
CREATE TABLE table_10361625_1 (overall VARCHAR, college VARCHAR)
SELECT COUNT(match) FROM table_name_32 WHERE lost = 0
How many matches have 0 as the lost?
CREATE TABLE table_name_32 (match VARCHAR, lost VARCHAR)
SELECT COUNT(original_air_date) FROM table_15472061_1 WHERE no_in_season = "10/11"
Name the number of original air date for when the number in season is 10/11
CREATE TABLE table_15472061_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT shirt_sponsor FROM table_name_59 WHERE team = "blackburn rovers"
Who was the shirt sponsor for the Blackburn Rovers?
CREATE TABLE table_name_59 (shirt_sponsor VARCHAR, team VARCHAR)
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg"
What is the crowd total at mcg?
CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR)
SELECT television_service FROM table_name_90 WHERE content = "presentazione"
What is Television Service, when Content is Presentazione?
CREATE TABLE table_name_90 (television_service VARCHAR, content VARCHAR)
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop"
what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR)
SELECT directed_by FROM table_24910733_1 WHERE written_by = "Andrea Newman"
Who is the director when the writter is Andrea Newman?
CREATE TABLE table_24910733_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT MAX(2 AS nd__m_) FROM table_name_78 WHERE nationality = "sui" AND rank < 3
Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?
CREATE TABLE table_name_78 (nationality VARCHAR, rank VARCHAR)
SELECT airdate FROM table_15739098_1 WHERE director = "George Spenton-Foster"
What is the airdate when the director is george spenton-foster
CREATE TABLE table_15739098_1 (airdate VARCHAR, director VARCHAR)
SELECT november FROM table_name_66 WHERE july = "hope marie carlton"
Who is the November playmate with the July playmate Hope Marie Carlton?
CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR)
SELECT MAX(game) FROM table_name_76 WHERE points < 92 AND score = "1–3"
Which Game is the highest one that has Points smaller than 92, and a Score of 1–3?
CREATE TABLE table_name_76 (game INTEGER, points VARCHAR, score VARCHAR)
SELECT COUNT(rank) FROM table_23938357_6 WHERE name = "Keauna McLaughlin / Rockne Brubaker"
How many times is keauna mclaughlin / rockne brubaker ranked?
CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR)
SELECT driver FROM table_20159025_1 WHERE grid = "01 1"
Who was the driver in grid 01 1?
CREATE TABLE table_20159025_1 (driver VARCHAR, grid VARCHAR)
SELECT margin_of_victory FROM table_name_65 WHERE winning_score = 68 - 67 - 69 - 65 = 269
What was the Margin of Victory of winning score 68-67-69-65=269?
CREATE TABLE table_name_65 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT score FROM table_name_86 WHERE date = "10 march 1984" AND home_team = "birmingham city"
What is the score for the game where Birmingham City was the home team on 10 March 1984?
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT school_club_team FROM table_name_51 WHERE nationality = "united states" AND years_for_grizzlies = "1995-1996"
What's the United States team that played for the Grizzlies in 1995-1996?
CREATE TABLE table_name_51 (school_club_team VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR)
SELECT wins FROM table_24998088_1 WHERE points = "112"
How many wins were listed when he had 112 points?
CREATE TABLE table_24998088_1 (wins VARCHAR, points VARCHAR)
SELECT race_1_winner FROM table_22905641_2 WHERE circuit = "Winton Motor Raceway"
Who was the race 1 winner at the race held at Winton Motor Raceway?
CREATE TABLE table_22905641_2 (race_1_winner VARCHAR, circuit VARCHAR)
SELECT station FROM table_3005450_1 WHERE metlink_code = "MATA"
what is the name of the station where the metlink code is mata?
CREATE TABLE table_3005450_1 (station VARCHAR, metlink_code VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE nationality = "united states" AND position = "rw"
What is the average round of the rw position player from the United States?
CREATE TABLE table_name_18 (round INTEGER, nationality VARCHAR, position VARCHAR)
SELECT mission_target FROM table_18933037_3 WHERE cause_of_loss = "Hit by SAM at 38,500 feet just after bomb release"
When hit by sam at 38,500 feet just after bomb release was the cause of loss what is the mission/target?
CREATE TABLE table_18933037_3 (mission_target VARCHAR, cause_of_loss VARCHAR)
SELECT athlete FROM table_name_50 WHERE nationality = "united states" AND wind = "1.7"
Who's the athlete with a wind of 1.7 and from the United States?
CREATE TABLE table_name_50 (athlete VARCHAR, nationality VARCHAR, wind VARCHAR)
SELECT date FROM table_name_63 WHERE score = "102–113"
Which Date has a Score of 102–113?
CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR)
SELECT train_name FROM table_23477312_1 WHERE destination = "Bhubaneswar"
What's the name of the train that goes to Bhubaneswar?
CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR)
SELECT home_team FROM table_name_30 WHERE date = "1 february 1984" AND tie_no = "5"
What is Home Team, when Date is "1 February 1984", and when Tie No is "5"?
CREATE TABLE table_name_30 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)"
If there is a VCPC of 75km/h (47mph) what is the VCA?
CREATE TABLE table_name_7 (vca_155 VARCHAR, vcpc VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27756314_11 WHERE game = 76
How many different results for high rebounds were there for game number 76?
CREATE TABLE table_27756314_11 (high_rebounds VARCHAR, game VARCHAR)
SELECT date FROM table_name_92 WHERE opposing_teams = "australia" AND against = 12
What day was Australia the opposing team and the against 12?
CREATE TABLE table_name_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR)
SELECT song FROM table_name_1 WHERE year < 1979 AND us_hot_100 = "8"
Which Song has a Year smaller than 1979, and a US Hot 100 of 8?
CREATE TABLE table_name_1 (song VARCHAR, year VARCHAR, us_hot_100 VARCHAR)
SELECT capital FROM table_160510_1 WHERE hanja = "尙州"
The hanja 尙州 is for what capital?
CREATE TABLE table_160510_1 (capital VARCHAR, hanja VARCHAR)
SELECT record FROM table_name_28 WHERE attendance = "49,222"
What's the record for the game with an attendance of 49,222?
CREATE TABLE table_name_28 (record VARCHAR, attendance VARCHAR)
SELECT polling_firm FROM table_name_42 WHERE dates = "august 2006"
Which firm conducted a poll in August 2006?
CREATE TABLE table_name_42 (polling_firm VARCHAR, dates VARCHAR)
SELECT away_team AS score FROM table_name_59 WHERE away_team = "st kilda"
What was St Kilda's score as the Away team?
CREATE TABLE table_name_59 (away_team VARCHAR)
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2"
What is the score for the game larger than 4 in series 3-2?
CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR)
SELECT games FROM table_name_88 WHERE name = "bud eley"
Which game did was Bud Eley a player in?
CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR)
SELECT high_assists FROM table_27744976_6 WHERE date = "November 17"
Who had the high assists on November 17?
CREATE TABLE table_27744976_6 (high_assists VARCHAR, date VARCHAR)
SELECT rank FROM table_name_90 WHERE title = "best friends"
What rank did Best Friends receive?
CREATE TABLE table_name_90 (rank VARCHAR, title VARCHAR)
SELECT title FROM table_14724369_1 WHERE production_code = "1ACX04"
Which title had the production code 1ACX04?
CREATE TABLE table_14724369_1 (title VARCHAR, production_code VARCHAR)
SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon"
What is the 1st leg with Team 2 Lyon?
CREATE TABLE table_name_98 (team_2 VARCHAR)
SELECT label FROM table_name_40 WHERE format = "cd" AND version = "original"
What is the Label of the Original CD release?
CREATE TABLE table_name_40 (label VARCHAR, format VARCHAR, version VARCHAR)
SELECT COUNT(name) FROM table_24055352_1 WHERE hometown = "Los Angeles"
How many players came from Los Angeles?
CREATE TABLE table_24055352_1 (name VARCHAR, hometown VARCHAR)
SELECT home FROM table_name_26 WHERE date = "november 8"
What's the stadium on November 8?
CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR)
SELECT district FROM table_1341423_32 WHERE incumbent = "Carolyn McCarthy"
Name the district for carolyn mccarthy
CREATE TABLE table_1341423_32 (district VARCHAR, incumbent VARCHAR)
SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = "dalian shide" AND fourth_placed = "chongqing longxin"
Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs?
CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR)
SELECT MAX(average_cards_a_game) FROM table_name_78 WHERE season = "1997/1998" AND games > 38
Which Average Cards a game has a Season of 1997/1998, and a Games larger than 38?
CREATE TABLE table_name_78 (average_cards_a_game INTEGER, season VARCHAR, games VARCHAR)
SELECT record FROM table_17104539_9 WHERE score = "W 76-67"
Name the record for score of w 76-67
CREATE TABLE table_17104539_9 (record VARCHAR, score VARCHAR)
SELECT SUM(points) FROM table_name_14 WHERE drawn < 1
What is the whole of Points that has a Drawn smaller than 1?
CREATE TABLE table_name_14 (points INTEGER, drawn INTEGER)
SELECT visitor FROM table_name_90 WHERE date = "december 17"
Who was the visiting team on December 17?
CREATE TABLE table_name_90 (visitor VARCHAR, date VARCHAR)
SELECT for___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "17,874 (33.2)"
When 17,874 (33.2) is the percentage against what is the percentage for?
CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, against___percentage_ VARCHAR)
SELECT MAX(preliminary) FROM table_name_63 WHERE state = "oklahoma" AND evening_gown < 8.853
What is the best preliminary score from a contestant from Oklahoma with evening gown less than 8.853?
CREATE TABLE table_name_63 (preliminary INTEGER, state VARCHAR, evening_gown VARCHAR)
SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f"
Which tournament had the result with 2009 was F and 2010 was F?
CREATE TABLE table_name_61 (tournament VARCHAR)
SELECT template_id, version_number, template_type_code FROM Templates
Show template ids, version numbers, and template type codes for all templates.
CREATE TABLE Templates (template_id VARCHAR, version_number VARCHAR, template_type_code VARCHAR)
SELECT points FROM table_name_95 WHERE goals_against = "260"
What are the points if the goals against were 260?
CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR)
SELECT year FROM table_name_5 WHERE tournament = "world half marathon championships" AND result = "3rd"
What was the year of the World Half Marathon Championships with a result of 3rd?
CREATE TABLE table_name_5 (year VARCHAR, tournament VARCHAR, result VARCHAR)
SELECT opponent FROM table_14608759_1 WHERE week = 9
In week 9 who were the opponent?
CREATE TABLE table_14608759_1 (opponent VARCHAR, week VARCHAR)
SELECT height FROM table_name_69 WHERE name = "dylan postl"
How tall is Dylan Postl?
CREATE TABLE table_name_69 (height VARCHAR, name VARCHAR)
SELECT price FROM table_name_64 WHERE upstream = "256 kbit"
What is the Price, when Upstream is "256 kbit"?
CREATE TABLE table_name_64 (price VARCHAR, upstream VARCHAR)
SELECT loss FROM table_name_98 WHERE record = "21-34"
What was the loss of the Mariners game when they had a record of 21-34?
CREATE TABLE table_name_98 (loss VARCHAR, record VARCHAR)
SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09
How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?
CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR)
SELECT AVG(total) FROM table_name_69 WHERE gold = 0 AND rank = "6"
What average total has 0 as the gold, with 6 as the rank?
CREATE TABLE table_name_69 (total INTEGER, gold VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_14 WHERE away_team = "collingwood"
What venue had collingwood as the away team?
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
SELECT away_team AS score FROM table_name_96 WHERE away_team = "richmond"
What is Richmond's away team score versus Geelong?
CREATE TABLE table_name_96 (away_team VARCHAR)
SELECT viewers FROM table_name_25 WHERE weekly_rank_for_living = "4"
How many viewers for the episode with the weekly rank for living of 4?
CREATE TABLE table_name_25 (viewers VARCHAR, weekly_rank_for_living VARCHAR)
SELECT english_title FROM table_name_90 WHERE original_title = "ansikte mot ansikte"
What is the English title for Ansikte Mot Ansikte?
CREATE TABLE table_name_90 (english_title VARCHAR, original_title VARCHAR)
SELECT MAX(game) FROM table_28768469_5
What is the most amount of games played this season?
CREATE TABLE table_28768469_5 (game INTEGER)
SELECT AVG(bronze) FROM table_name_96 WHERE nation = "romania" AND silver > 1
How many bronze medals for Romania when the silver count is more than 1?
CREATE TABLE table_name_96 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT interview FROM table_11690135_1 WHERE swimsuit = "9.72"
Who scored a 9.72 in the swimsuit?
CREATE TABLE table_11690135_1 (interview VARCHAR, swimsuit VARCHAR)
SELECT MIN(rank) FROM table_30058355_5
What's the best rank possible?
CREATE TABLE table_30058355_5 (rank INTEGER)
SELECT AVG(grid) FROM table_name_88 WHERE driver = "mario domínguez"
What is mario domínguez's average Grid?
CREATE TABLE table_name_88 (grid INTEGER, driver VARCHAR)
SELECT share_of_votes FROM table_name_99 WHERE election = "2008 (1)"
What is the share of votes in the 2008 (1) election?
CREATE TABLE table_name_99 (share_of_votes VARCHAR, election VARCHAR)
SELECT captain FROM table_name_30 WHERE kit_manufacturer = "fox leisure"
Who is the captain of the team that has a kit manufacturer of Fox Leisure?
CREATE TABLE table_name_30 (captain VARCHAR, kit_manufacturer VARCHAR)
SELECT winner FROM table_name_70 WHERE week_of = "8 may" AND semi_finalists = "helena suková mary pierce" AND runner_up = "conchita martínez patricia tarabini"
What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?
CREATE TABLE table_name_70 (winner VARCHAR, runner_up VARCHAR, week_of VARCHAR, semi_finalists VARCHAR)
SELECT monarch FROM table_name_7 WHERE left_office = "circa 1886"
Who is the monarch that left office circa 1886?
CREATE TABLE table_name_7 (monarch VARCHAR, left_office VARCHAR)
SELECT first_elected FROM table_2668347_14 WHERE candidates = "Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%"
when was the first elected when the candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?
CREATE TABLE table_2668347_14 (first_elected VARCHAR, candidates VARCHAR)
SELECT place FROM table_name_2 WHERE event = "4000 m individual pursuit"
what is the place when the event is 4000 m individual pursuit?
CREATE TABLE table_name_2 (place VARCHAR, event VARCHAR)
SELECT notes FROM table_name_56 WHERE time = "6:34.51"
What were the notes for the time of 6:34.51?
CREATE TABLE table_name_56 (notes VARCHAR, time VARCHAR)
SELECT SUM(season) FROM table_name_10 WHERE team = "penske racing" AND date = "october 3"
What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3?
CREATE TABLE table_name_10 (season INTEGER, team VARCHAR, date VARCHAR)
SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
Find the year that has the most number of matches.
CREATE TABLE matches (YEAR VARCHAR)
SELECT COUNT(team) FROM table_30054758_3 WHERE high_assists = "Inge – 6"
How many teams did inge – 6 have the high assists with?
CREATE TABLE table_30054758_3 (team VARCHAR, high_assists VARCHAR)
SELECT SUM(size) FROM table_name_76 WHERE ihsaa_class = "aa" AND location = "milan"
Which Size has an IHSAA Class of aa, and a Location of milan?
CREATE TABLE table_name_76 (size INTEGER, ihsaa_class VARCHAR, location VARCHAR)
SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1
What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?
CREATE TABLE table_name_35 (tournament VARCHAR, top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
SELECT 1990 FROM table_name_87 WHERE 1995 = "24"
What is the 1990 value with a 24 in 1995?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT opponent FROM table_22853654_9 WHERE result = "3–6, 4–6, 6–1, 6–7 (7–9)"
Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)
CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR)
SELECT name FROM table_name_56 WHERE pressure = "985hpa (29.09inhg)"
Which name has a pressure of 985hpa (29.09inhg)?
CREATE TABLE table_name_56 (name VARCHAR, pressure VARCHAR)
SELECT name FROM mill WHERE name LIKE '%Moulin%'
Which of the mill names contains the french word 'Moulin'?
CREATE TABLE mill (name VARCHAR)
SELECT loss FROM table_name_38 WHERE date = "may 28"
Who lost the game on May 28?
CREATE TABLE table_name_38 (loss VARCHAR, date VARCHAR)
SELECT rider FROM table_name_59 WHERE speed = "90.57mph"
Which rider had a speed of 90.57mph?
CREATE TABLE table_name_59 (rider VARCHAR, speed VARCHAR)
SELECT high_rebounds FROM table_27721131_10 WHERE team = "@ Detroit"
Who was the high rebounds of team @ Detroit?
CREATE TABLE table_27721131_10 (high_rebounds VARCHAR, team VARCHAR)
SELECT year_ceremony FROM table_name_53 WHERE english_title = "kelin"
What year was Kelin nominated?
CREATE TABLE table_name_53 (year_ceremony VARCHAR, english_title VARCHAR)
SELECT attendance FROM table_name_25 WHERE week = 15
What was the attendance for week 15?
CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR)
SELECT score FROM table_name_64 WHERE opponent = "hawthorn"
Name the score for hawthorn opponent
CREATE TABLE table_name_64 (score VARCHAR, opponent VARCHAR)
SELECT T2.title, MAX(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id
What are the title and maximum price of each film?
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE schedule (price INTEGER, film_id VARCHAR)
SELECT opera FROM table_name_48 WHERE firefox = "19.87%"
What opera has 19.87% as the firefox?
CREATE TABLE table_name_48 (opera VARCHAR, firefox VARCHAR)