answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT number_of_pnc_votes FROM table_name_39 WHERE election < 1996
How many PNC votes did the election before 1996 have?
CREATE TABLE table_name_39 (number_of_pnc_votes VARCHAR, election INTEGER)
SELECT college FROM table_name_95 WHERE pick > 130 AND team = "new york jets"
Which college did the player picked larger than 130 by the New York Jets go to?
CREATE TABLE table_name_95 (college VARCHAR, pick VARCHAR, team VARCHAR)
SELECT score FROM table_name_86 WHERE date = "12/1"
What score has 12/1 as the date?
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "south melbourne"
What was the away team when the home team was south melbourne?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT to_par FROM table_name_58 WHERE score < 68 AND country = "england"
What is Top Par, when Score is less than 68, and when Country is England?
CREATE TABLE table_name_58 (to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT grid FROM table_17304504_1 WHERE points = "14"
What is the grid for the driver who earned 14 points?
CREATE TABLE table_17304504_1 (grid VARCHAR, points VARCHAR)
SELECT res FROM table_name_91 WHERE method = "submission (armbar)"
What was the resolution for the match that ended by Submission (armbar)?
CREATE TABLE table_name_91 (res VARCHAR, method VARCHAR)
SELECT title FROM table_name_35 WHERE tv_companions_featured = "k-9"
What is Title, when TV Companions Featured is "K-9"?
CREATE TABLE table_name_35 (title VARCHAR, tv_companions_featured VARCHAR)
SELECT opponent FROM table_name_2 WHERE week > 15
Who did the Jets play in their post-week 15 game?
CREATE TABLE table_name_2 (opponent VARCHAR, week INTEGER)
SELECT home_team FROM table_name_12 WHERE away_team = "bolton wanderers"
who is the home team when the away team is bolton wanderers?
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
SELECT original_air_date FROM table_19897294_5 WHERE no_overall = "UK17"
Name the air date for uk17
CREATE TABLE table_19897294_5 (original_air_date VARCHAR, no_overall VARCHAR)
SELECT score FROM table_name_61 WHERE place = "t10" AND country = "australia"
What's the score of the t10 player from australia?
CREATE TABLE table_name_61 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT finish FROM table_name_9 WHERE start = "32"
What finish time started at 32?
CREATE TABLE table_name_9 (finish VARCHAR, start VARCHAR)
SELECT ihsaa_class FROM table_name_73 WHERE county = "10 clark" AND mascot = "mustangs"
What is the IHSAA class for the school in 10 Clark county with mascot of the Mustangs?
CREATE TABLE table_name_73 (ihsaa_class VARCHAR, county VARCHAR, mascot VARCHAR)
SELECT website FROM table_name_82 WHERE founded < 1897 AND suburb_town = "adaminaby"
Which website was founded before 1897, and is located in Adaminaby?
CREATE TABLE table_name_82 (website VARCHAR, founded VARCHAR, suburb_town VARCHAR)
SELECT date FROM table_name_63 WHERE week = "hof"
What's the date for HOF week?
CREATE TABLE table_name_63 (date VARCHAR, week VARCHAR)
SELECT elimination AS Move FROM table_name_25 WHERE team = "team orton" AND eliminated_by = "batista" AND elimination = "7"
Which Elimination move is listed against Team Orton, Eliminated by Batista against Elimination number 7?
CREATE TABLE table_name_25 (elimination VARCHAR, team VARCHAR, eliminated_by VARCHAR)
SELECT surface FROM table_name_77 WHERE score_in_the_final = "4–6, 3–6"
Which surface has a score in the final of 4–6, 3–6?
CREATE TABLE table_name_77 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT result FROM table_name_36 WHERE date = "7 june 2000"
Which Result has a Date of 7 june 2000?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT AVG(crowd) FROM table_name_8 WHERE away_team = "fitzroy"
What was the attendance when Fitzroy played as the away team?
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500"
What is the to par for the player with winnings of 49,500?
CREATE TABLE table_name_74 (to_par VARCHAR, money___£__ VARCHAR)
SELECT score FROM table_name_82 WHERE player = "seve ballesteros"
What Seve Ballesteros's score?
CREATE TABLE table_name_82 (score VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM Lessons WHERE lesson_status_code = "Cancelled"
How many lessons were in cancelled state?
CREATE TABLE Lessons (lesson_status_code VARCHAR)
SELECT school_club_team_country FROM table_name_53 WHERE no_s_ < 4
What school, club team, or country did the player with a number smaller than 4 come from?
CREATE TABLE table_name_53 (school_club_team_country VARCHAR, no_s_ INTEGER)
SELECT qual FROM table_name_51 WHERE year = "1932"
What was the qualification in 1932?
CREATE TABLE table_name_51 (qual VARCHAR, year VARCHAR)
SELECT COUNT(audition_city) FROM table_27455867_1 WHERE audition_venue = "Bridgestone Arena"
In how many different audition cities were the Bridgestone arena auditions held?
CREATE TABLE table_27455867_1 (audition_city VARCHAR, audition_venue VARCHAR)
SELECT opponent FROM table_name_52 WHERE result = "l 27–3"
Who was the opponent at the game with a result of l 27–3?
CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR)
SELECT name FROM table_20668268_1 WHERE starting_price = "11/1" AND jockey = "Garrett Cotter"
What was the name that had a starting price of 11/1 and a jockey named Garrett Cotter?
CREATE TABLE table_20668268_1 (name VARCHAR, starting_price VARCHAR, jockey VARCHAR)
SELECT chilean FROM table_name_78 WHERE castilian = "ordenador"
What Chilean word is used for the Castilian word ordenador?
CREATE TABLE table_name_78 (chilean VARCHAR, castilian VARCHAR)
SELECT date FROM table_name_67 WHERE latin_commander = "henry i" AND battle = "battle of boruy"
On what Date was Henry I Latin Commander of the Battle of Boruy?
CREATE TABLE table_name_67 (date VARCHAR, latin_commander VARCHAR, battle VARCHAR)
SELECT opponent FROM table_name_93 WHERE date = "april 2"
Which opponent has april 2 as the date?
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
SELECT song FROM table_name_65 WHERE draw > 4 AND place = "1st"
What song has a draw more than 4 in 1st place?
CREATE TABLE table_name_65 (song VARCHAR, draw VARCHAR, place VARCHAR)
SELECT week_3_sept_8 FROM table_name_51 WHERE week_2_sept_2 = "florida state (2-0) (4)"
What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?
CREATE TABLE table_name_51 (week_3_sept_8 VARCHAR, week_2_sept_2 VARCHAR)
SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
What was the stadium in Adelaide, South Australia built for?
CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)
SELECT network FROM table_name_36 WHERE play_by_play = "john wells"
Which network has a play-by-play announcer of John Wells?
CREATE TABLE table_name_36 (network VARCHAR, play_by_play VARCHAR)
SELECT route_name FROM Delivery_Routes ORDER BY route_name
List the names of all routes in alphabetic order.
CREATE TABLE Delivery_Routes (route_name VARCHAR)
SELECT venue FROM table_name_27 WHERE away_team = "north melbourne"
What venue featured north melbourne as the away side?
CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)
SELECT network FROM table_1601792_4 WHERE television_station = "TV1"
What are the network(s) for tv1?
CREATE TABLE table_1601792_4 (network VARCHAR, television_station VARCHAR)
SELECT position FROM table_name_57 WHERE b_score > 8.975 AND gymnast = "ekaterina kramarenko ( rus )"
What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )?
CREATE TABLE table_name_57 (position VARCHAR, b_score VARCHAR, gymnast VARCHAR)
SELECT score FROM table_name_12 WHERE time = "7:00pm" AND location = "scotiabank place" AND opponent = "philadelphia flyers"
What was the score of the 7:00pm game at Scotiabank Place against the Philadelphia Flyers?
CREATE TABLE table_name_12 (score VARCHAR, opponent VARCHAR, time VARCHAR, location VARCHAR)
SELECT SUM(week) FROM table_name_52 WHERE result = "l 17-14"
What Week has a Result of l 17-14?
CREATE TABLE table_name_52 (week INTEGER, result VARCHAR)
SELECT SUM(drew) FROM table_name_17 WHERE lost > 14
Which Drew has a Lost larger than 14?
CREATE TABLE table_name_17 (drew INTEGER, lost INTEGER)
SELECT score FROM table_name_32 WHERE to_par = "–7" AND player = "justin leonard"
What is Justin Leonard with a To par of –7's Score?
CREATE TABLE table_name_32 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT pick FROM table_name_68 WHERE nba_years_[a_] = "2" AND previous_team = "utah jazz"
What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?
CREATE TABLE table_name_68 (pick VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT COUNT(university_of_dublin) FROM table_name_94 WHERE agricultural_panel = 0 AND nominated_by_the_taoiseach > 0 AND industrial_and_commercial_panel < 0
What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?
CREATE TABLE table_name_94 (university_of_dublin VARCHAR, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)
SELECT date FROM table_name_48 WHERE away_team = "melbourne"
what is the date when the away team is melbourne?
CREATE TABLE table_name_48 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(left) FROM table_11658094_3 WHERE institution = "Anderson University"
How many times did anderson university leave?
CREATE TABLE table_11658094_3 (left VARCHAR, institution VARCHAR)
SELECT town FROM table_2803662_3 WHERE tournament = "Grand Prix De SAR La Princesse Lalla Meryem"
When grand prix de sar la princesse lalla meryem is the tournament what is the town?
CREATE TABLE table_2803662_3 (town VARCHAR, tournament VARCHAR)
SELECT contestant FROM table_18626383_2 WHERE hometown = "Johannesburg"
When johannesburg is the hometown who is the contestant?
CREATE TABLE table_18626383_2 (contestant VARCHAR, hometown VARCHAR)
SELECT year FROM table_name_63 WHERE crew = "varsity 8+" AND record = "7-3"
Which year's crew is varsity 8+ when the record is 7-3?
CREATE TABLE table_name_63 (year VARCHAR, crew VARCHAR, record VARCHAR)
SELECT lfn_support FROM table_name_68 WHERE name = "windows nt 3.1"
What is the LFN support on Windows NT 3.1?
CREATE TABLE table_name_68 (lfn_support VARCHAR, name VARCHAR)
SELECT hdtv FROM table_15887683_19 WHERE television_service = "PRIVÈ"
Was there HDTV when the service was Privè?
CREATE TABLE table_15887683_19 (hdtv VARCHAR, television_service VARCHAR)
SELECT abbr FROM table_name_70 WHERE votes__2011_ = "11.2%"
WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011?
CREATE TABLE table_name_70 (abbr VARCHAR, votes__2011_ VARCHAR)
SELECT yacht FROM table_14882588_3 WHERE sail_number = "6952"
What were all Yachts with a sail number of 6952?
CREATE TABLE table_14882588_3 (yacht VARCHAR, sail_number VARCHAR)
SELECT COUNT(class) FROM table_14139408_1 WHERE poles > 1.0
how many class with poles being bigger than 1.0
CREATE TABLE table_14139408_1 (class VARCHAR, poles INTEGER)
SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1
What is the color of the grape whose wine products has the highest average price?
CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR); CREATE TABLE WINE (Grape VARCHAR)
SELECT date_of_delivery FROM table_name_55 WHERE baby_gender = "boy" AND congresswoman = "kirsten gillibrand"
What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?
CREATE TABLE table_name_55 (date_of_delivery VARCHAR, baby_gender VARCHAR, congresswoman VARCHAR)
SELECT captain FROM table_18461635_1 WHERE team = "Gloucestershire Gladiators"
Who is the captain of the Gloucestershire Gladiators?
CREATE TABLE table_18461635_1 (captain VARCHAR, team VARCHAR)
SELECT reporters FROM table_22514845_5 WHERE s_analyst = "Howard Cosell"
Name the reporters for howard cosell
CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR)
SELECT COUNT(below_50_percentage_of_median_income) FROM table_25042332_16 WHERE below_40_percentage_of_median_income = "10.4%"
What percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income?
CREATE TABLE table_25042332_16 (below_50_percentage_of_median_income VARCHAR, below_40_percentage_of_median_income VARCHAR)
SELECT mintage FROM table_26336060_19 WHERE location = "Sion" AND denomination = "00500 500 francs"
What is the mintage for a location of Sion and a denomination of 00500 500 Francs?
CREATE TABLE table_26336060_19 (mintage VARCHAR, location VARCHAR, denomination VARCHAR)
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70
What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps?
CREATE TABLE table_name_27 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 1
How many bronze had a total less than 4 and gold bigger than 1?
CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT COUNT(population__2002_) FROM table_2562572_2 WHERE population__2011_ = 5399
What is the number of 2002 populations having a 2011 population of exactly 5399?
CREATE TABLE table_2562572_2 (population__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT drawn FROM table_12828723_4 WHERE won = "12"
what is the drawn when the won is 12?
CREATE TABLE table_12828723_4 (drawn VARCHAR, won VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_49 WHERE incumbent = "Ron Kind"
When was the first election in the district whose incumbent is Ron Kind?
CREATE TABLE table_1341423_49 (first_elected INTEGER, incumbent VARCHAR)
SELECT opponents_in_the_final FROM table_name_79 WHERE partner = "olga lugina"
Which Opponents in the final has a Partner of olga lugina?
CREATE TABLE table_name_79 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT result FROM table_name_80 WHERE date = "2003"
What is Result, when Date is 2003?
CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)
SELECT set_2 FROM table_name_73 WHERE score = "3-0" AND date = "may 11" AND set_1 = "25-20"
What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20?
CREATE TABLE table_name_73 (set_2 VARCHAR, set_1 VARCHAR, score VARCHAR, date VARCHAR)
SELECT date FROM table_name_36 WHERE tie_no = "19"
On what Date is Tie no 19?
CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR)
SELECT AVG(total) FROM table_name_39 WHERE finish = "t11"
What is the average of the total when t11 is the finish?
CREATE TABLE table_name_39 (total INTEGER, finish VARCHAR)
SELECT MAX(played) FROM table_17968282_1 WHERE points = 105
Name the most played when points is 105
CREATE TABLE table_17968282_1 (played INTEGER, points VARCHAR)
SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3
Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.
CREATE TABLE journalist (Nationality VARCHAR, Years_working INTEGER)
SELECT COUNT(no_in_series) FROM table_23242933_2 WHERE us_viewers__millions_ = "7.84"
How many different series numbers are there for the episode seen by 7.84 million people in the US?
CREATE TABLE table_23242933_2 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
SELECT SUM(pos) FROM table_name_23 WHERE driver = "brian scott (r)"
Which Pos has a Driver of brian scott (r)?
CREATE TABLE table_name_23 (pos INTEGER, driver VARCHAR)
SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney"
What is the transfer fee for the country that has the name McCartney listed?
CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR)
SELECT competition FROM table_name_59 WHERE score = "3–0" AND goal > 4
What is the Competition where the Score was 3–0, and the was Goal larger than 4?
CREATE TABLE table_name_59 (competition VARCHAR, score VARCHAR, goal VARCHAR)
SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = "drama desk award" AND category = "outstanding featured actor in a musical"
What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
SELECT manner_of_departure FROM table_name_34 WHERE replaced_by = "tita"
What was the manner of departure replaced by tita?
CREATE TABLE table_name_34 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT position FROM table_name_61 WHERE name = "moose goheen"
What is the Position of moose goheen?
CREATE TABLE table_name_61 (position VARCHAR, name VARCHAR)
SELECT film FROM table_name_47 WHERE ceremony = "19th" AND name = "jerome kern"
What is the Film with winner Jerome Kern in the 19th Ceremony?
CREATE TABLE table_name_47 (film VARCHAR, ceremony VARCHAR, name VARCHAR)
SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND platelet_count = "unaffected" AND bleeding_time = "prolonged"
Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged
CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
SELECT MAX(crowd) FROM table_name_98 WHERE home_team = "north melbourne"
What was the largest crowd for North Melbourne
CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(laps) FROM table_name_8 WHERE grid = 8
What is the mean number of laps when the grid was 8?
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27755603_7 WHERE date = "December 19"
For how many games on December 19 is there information on who scored the most rebounds?
CREATE TABLE table_27755603_7 (high_rebounds VARCHAR, date VARCHAR)
SELECT record FROM table_name_17 WHERE date = "april 3"
What record occurred on April 3?
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Marcy Kaptur (D) 75.3% Randy Whitman (R) 24.7%"
what's the party with opponent being marcy kaptur (d) 75.3% randy whitman (r) 24.7%
CREATE TABLE table_1341522_38 (party VARCHAR, opponent 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 qual FROM table_name_4 WHERE start = "15"
Whent he start was 15, what was the Qual?
CREATE TABLE table_name_4 (qual VARCHAR, start VARCHAR)
SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%"
What country had a 100% cut?
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_cut VARCHAR)
SELECT tournament FROM table_name_8 WHERE year > 2009
What tournament was after 2009?
CREATE TABLE table_name_8 (tournament VARCHAR, year INTEGER)
SELECT MIN(goals_against) FROM table_name_4 WHERE played > 38
Name the least goals against for played more than 38
CREATE TABLE table_name_4 (goals_against INTEGER, played INTEGER)
SELECT T2.date_moved_in, T1.customer_id, T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id
What is each customer's move in date, and the corresponding customer id and details?
CREATE TABLE Customer_Events (date_moved_in VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_details VARCHAR)
SELECT television_service FROM table_name_41 WHERE content = "programmi per adulti 24h/24" AND hdtv = "no"
Which television service has programmi per adulti 24h/24 content and no HDTV?
CREATE TABLE table_name_41 (television_service VARCHAR, content VARCHAR, hdtv VARCHAR)
SELECT AVG(bronze) FROM table_name_96 WHERE gold > 1 AND silver = 1
What is the average number of bronze of the nation with more than 1 gold and 1 silver medal?
CREATE TABLE table_name_96 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT writer FROM table_10470082_6 WHERE _number = 3
Who wrote Episode #3?
CREATE TABLE table_10470082_6 (writer VARCHAR, _number VARCHAR)
SELECT opposing_teams FROM table_name_35 WHERE against = 20 AND venue = "twickenham , london"
What is Opposing Teams, when Against is "20", and when Venue is "Twickenham , London"?
CREATE TABLE table_name_35 (opposing_teams VARCHAR, against VARCHAR, venue VARCHAR)
SELECT rank FROM table_name_38 WHERE gatchaman = "jinpei"
What is the rank of the gatchaman Jinpei?
CREATE TABLE table_name_38 (rank VARCHAR, gatchaman VARCHAR)
SELECT SUM(gold) FROM table_name_37 WHERE nation = "mongolia" AND total > 18
How much Gold has a Nation of mongolia, and a Total larger than 18?
CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT opponent FROM table_name_66 WHERE date = "september 19"
Which team did they play on September 19?
CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)