answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT college FROM table_name_20 WHERE pick__number < 98 AND round = "round 4"
What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?
CREATE TABLE table_name_20 (college VARCHAR, pick__number VARCHAR, round VARCHAR)
SELECT school_club_team FROM table_10015132_21 WHERE player = "Herb Williams"
Which school did Herb Williams go to?
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, player VARCHAR)
SELECT type FROM table_name_47 WHERE rank > 6 AND number_of_bearers_2008 > 13.815 AND surname = "eriksen"
What is Type, when Rank is greater than 6, when Number of Bearers 2008 is greater than 13.815, and when Surname is Eriksen?
CREATE TABLE table_name_47 (type VARCHAR, surname VARCHAR, rank VARCHAR, number_of_bearers_2008 VARCHAR)
SELECT SUM(position) FROM table_name_28 WHERE goals_against < 43 AND wins > 14 AND played > 38
Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?
CREATE TABLE table_name_28 (position INTEGER, played VARCHAR, goals_against VARCHAR, wins VARCHAR)
SELECT club FROM table_name_41 WHERE bowling_style = "right arm medium pace" AND name = "r. h. c. human"
What club is R. H. C. Human who has a right arm medium pace bowling style a member of?
CREATE TABLE table_name_41 (club VARCHAR, bowling_style VARCHAR, name VARCHAR)
SELECT date FROM table_21761882_4 WHERE week = 3
What was the date of the game in week 3?
CREATE TABLE table_21761882_4 (date VARCHAR, week VARCHAR)
SELECT SUM(score) FROM table_name_96 WHERE to_par = "e" AND country = "united states"
What was the score of the golfer from the united states who had a To par of e?
CREATE TABLE table_name_96 (score INTEGER, to_par VARCHAR, country VARCHAR)
SELECT competition FROM table_name_34 WHERE result = "lost 1-2"
What Competition had a Result of lost 1-2?
CREATE TABLE table_name_34 (competition VARCHAR, result VARCHAR)
SELECT to_par FROM table_21469545_2 WHERE date = "20 Feb 2005"
Name the to par for 20 feb 2005
CREATE TABLE table_21469545_2 (to_par VARCHAR, date VARCHAR)
SELECT pct FROM table_name_86 WHERE years = "1905"
What was the winning percent of Notre Dame in 1905?
CREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE capital = "Tarnopol"
Name the population when the capital is tarnopol
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, capital VARCHAR)
SELECT MAX(height) FROM table_name_19 WHERE position = "c" AND current_club = "unicaja malaga"
What's the tallest height for c position in current club unicaja malaga?
CREATE TABLE table_name_19 (height INTEGER, position VARCHAR, current_club VARCHAR)
SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = "$16,330"
What is the lowest Population, when Per Capita Income is "$16,330"?
CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR)
SELECT name FROM table_name_55 WHERE constituency_number = "214"
What is the name for the assembly segment with a constituency number of 214?
CREATE TABLE table_name_55 (name VARCHAR, constituency_number VARCHAR)
SELECT AVG(grid) FROM table_name_2 WHERE manufacturer = "aprilia" AND laps > 16
What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?
CREATE TABLE table_name_2 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR)
SELECT conference_record FROM table_name_7 WHERE year = "1971"
What is the conference record for the year of 1971?
CREATE TABLE table_name_7 (conference_record VARCHAR, year VARCHAR)
SELECT champion_s_ FROM table_1272033_1 WHERE location = "Aguas Buenas, Puerto Rico"
Who are the champions that have won at Aguas Buenas, Puerto Rico?
CREATE TABLE table_1272033_1 (champion_s_ VARCHAR, location VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE nation = "west germany" AND gold > 2
What is the sum of Total, when Nation is West Germany, and when Gold is greater than 2?
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT COUNT(fin_pos) FROM table_17330069_1 WHERE points = "15"
If the points is 15, what is the fin. pos?
CREATE TABLE table_17330069_1 (fin_pos VARCHAR, points VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE venue = "lake oval"
What team was the away team when they played at lake oval?
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0
What is the total medals for nation with more than 0 silvers and more than 0 golds?
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT director FROM table_1439096_1 WHERE original_air_date__atv_ = "26 October 1969"
Who was the director of the episode originally aired on 26 October 1969?
CREATE TABLE table_1439096_1 (director VARCHAR, original_air_date__atv_ VARCHAR)
SELECT 2009 FROM table_name_5 WHERE 2004 = "107"
what is 2009 when 2004 is 107?
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT AVG(attendance) FROM table_name_18 WHERE loss = "stoneman (0-2)"
Which average attendance has stoneman (0-2) as the loss?
CREATE TABLE table_name_18 (attendance INTEGER, loss VARCHAR)
SELECT COUNT(printing_process) FROM table_25468520_1 WHERE theme = "Rotary International : 100 Years in Canada"
How many time is the theme rotary international : 100 years in canada?
CREATE TABLE table_25468520_1 (printing_process VARCHAR, theme VARCHAR)
SELECT SUM(1989) FROM table_name_41 WHERE 2000 < 52.8 AND location = "arizona, new mexico, and utah"
What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah
CREATE TABLE table_name_41 (location VARCHAR)
SELECT MIN(pick) FROM table_name_99 WHERE position = "defensive back" AND school = "drake"
What's the lowest pick for a defensive back at Drake?
CREATE TABLE table_name_99 (pick INTEGER, position VARCHAR, school VARCHAR)
SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5
What is the time for the rank after 5 with sc/d notes?
CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT notes FROM table_1181375_1 WHERE withdrawn = "1956–57"
what's the notes where withdrawn is 1956–57
CREATE TABLE table_1181375_1 (notes VARCHAR, withdrawn VARCHAR)
SELECT player FROM table_name_6 WHERE round > 1 AND nationality = "austria"
What player has a round larger than 1 in Austria?
CREATE TABLE table_name_6 (player VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT game_modes FROM table_1616608_2 WHERE released_date = "2007"
What are the game modes for the game released in 2007?
CREATE TABLE table_1616608_2 (game_modes VARCHAR, released_date VARCHAR)
SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?
CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
SELECT result FROM table_name_60 WHERE choreographer_s_ = "bjørn holthe"
What is the result of choreographer bjørn holthe?
CREATE TABLE table_name_60 (result VARCHAR, choreographer_s_ VARCHAR)
SELECT MIN(decile) FROM table_name_71 WHERE authority = "state" AND name = "midhirst school"
What is the lowest decile with a state authority and Midhirst school?
CREATE TABLE table_name_71 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT record FROM table_name_24 WHERE location = "boston garden" AND date = "fri. nov. 9"
What is Record, when Location is "Boston Garden", and when Date is "Fri. Nov. 9"?
CREATE TABLE table_name_24 (record VARCHAR, location VARCHAR, date VARCHAR)
SELECT MIN(san_jose_goals) FROM table_name_28 WHERE san_jose_wins < 0
Which San Jose goals have a San Jose wins smaller than 0?
CREATE TABLE table_name_28 (san_jose_goals INTEGER, san_jose_wins INTEGER)
SELECT country FROM table_name_93 WHERE transfer_window = "summer"
WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?
CREATE TABLE table_name_93 (country VARCHAR, transfer_window VARCHAR)
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 4
What is the Clubs when there are 4 for the number of fixtures?
CREATE TABLE table_name_3 (clubs VARCHAR, number_of_fixtures VARCHAR)
SELECT pole_position FROM table_name_82 WHERE race_name = "2006 gehl championship finale"
What pole position did 2006 gehl championship finale have?
CREATE TABLE table_name_82 (pole_position VARCHAR, race_name VARCHAR)
SELECT playoffs FROM table_name_83 WHERE year < 2012 AND open_cup = "did not enter"
Which Playoffs have a Year smaller than 2012, and an Open Cup of did not enter?
CREATE TABLE table_name_83 (playoffs VARCHAR, year VARCHAR, open_cup VARCHAR)
SELECT winner FROM table_name_4 WHERE last_16 = "£400"
Which Winner has a Last 16 of £400?
CREATE TABLE table_name_4 (winner VARCHAR, last_16 VARCHAR)
SELECT mens_nickname FROM table_10577579_2 WHERE location = "Jacksonville, Florida"
What is the Mens Nickname for the member location of Jacksonville, florida?
CREATE TABLE table_10577579_2 (mens_nickname VARCHAR, location VARCHAR)
SELECT catalog FROM table_name_34 WHERE region = "world"
Which catalog value has a region of world?
CREATE TABLE table_name_34 (catalog VARCHAR, region VARCHAR)
SELECT AVG(round) FROM table_name_1 WHERE overall > 310 AND name = "billy hicks"
What is the average number of rounds for billy hicks who had an overall pick number bigger than 310?
CREATE TABLE table_name_1 (round INTEGER, overall VARCHAR, name VARCHAR)
SELECT city FROM table_name_29 WHERE abbr = "mub"
In which city is MUB located?
CREATE TABLE table_name_29 (city VARCHAR, abbr VARCHAR)
SELECT entrant FROM table_name_17 WHERE chassis = "maserati 250f" AND year < 1957 AND points < 6
What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?
CREATE TABLE table_name_17 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT AVG(egypt_cup) FROM table_name_93 WHERE caf_champions_league = 0 AND egyptian_premier_league = 6 AND total < 6
What is the aveage Egypt Cup value for players with 0 CAF Champions League goals, 6 Egyptian Premier League goals, and totals under 6?
CREATE TABLE table_name_93 (egypt_cup INTEGER, total VARCHAR, caf_champions_league VARCHAR, egyptian_premier_league VARCHAR)
SELECT deaths_per_year FROM table_23423_2 WHERE life_expectancy_females = "66.3"
How many deaths per year have 66.3 as the life expectancy females?
CREATE TABLE table_23423_2 (deaths_per_year VARCHAR, life_expectancy_females VARCHAR)
SELECT local_title FROM table_13779832_1 WHERE seasons_and_winners = "Series 1, 2006: Lucy Benjamin"
what's the local title with seasons and winners being series 1, 2006: lucy benjamin
CREATE TABLE table_13779832_1 (local_title VARCHAR, seasons_and_winners VARCHAR)
SELECT written_by FROM table_11075747_4 WHERE series__number = 38
Who wrote Series 38?
CREATE TABLE table_11075747_4 (written_by VARCHAR, series__number VARCHAR)
SELECT COUNT(horizontal_0_a) FROM table_25519358_1 WHERE number = 10
Name the horizontal number for number 10
CREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, number VARCHAR)
SELECT home FROM table_name_96 WHERE score = "122-28"
What home has 122-28 as the score?
CREATE TABLE table_name_96 (home VARCHAR, score VARCHAR)
SELECT 1997 FROM table_name_23 WHERE 1999 = "grand slams"
What 1997 has grand slams for the 1999?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT village__slovenian_ FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "16.7%"
What are the slovenian names of the villages that had 16.7% of slovenes in 1991?
CREATE TABLE table_10797463_1 (village__slovenian_ VARCHAR, percent_of_slovenes_1991 VARCHAR)
SELECT MAX(week) FROM table_name_9 WHERE date = "october 27, 1968"
What was the attendance on October 27, 1968?
CREATE TABLE table_name_9 (week INTEGER, date VARCHAR)
SELECT album FROM table_name_45 WHERE year > 2007
Name the album for years after 2007
CREATE TABLE table_name_45 (album VARCHAR, year INTEGER)
SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies"
How many laps did ben spies do on the grid less than 7?
CREATE TABLE table_name_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT date FROM table_name_75 WHERE home = "phoenix"
What is the date of the match when Phoenix is the home team?
CREATE TABLE table_name_75 (date VARCHAR, home VARCHAR)
SELECT score FROM table_name_69 WHERE outcome = "runner-up" AND tournament = "johannesburg"
Which Score has an Outcome of runner-up, and a Tournament of johannesburg?
CREATE TABLE table_name_69 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)
SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)
SELECT year FROM table_name_82 WHERE role_episode = "david duchovny"
what is the year when the role/episode is david duchovny?
CREATE TABLE table_name_82 (year VARCHAR, role_episode VARCHAR)
SELECT COUNT(population_density) FROM table_name_6 WHERE name = "siglunes" AND change___percentage_ < -8.1
What is the population density of Siglunes when the change was smaller than -8.1 percent?
CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR)
SELECT AVG(grid) FROM table_name_33 WHERE manufacturer = "aprilia" AND rider = "bradley smith"
Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?
CREATE TABLE table_name_33 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR)
SELECT high_points FROM table_17060277_10 WHERE date = "April 12"
Who did the high points in the game played on April 12?
CREATE TABLE table_17060277_10 (high_points VARCHAR, date VARCHAR)
SELECT week FROM table_name_42 WHERE date = "november 10, 1996"
What is the Week on November 10, 1996?
CREATE TABLE table_name_42 (week VARCHAR, date VARCHAR)
SELECT points_for FROM table_name_78 WHERE points_against = "678"
What were the points for that had a game where there was 678 against?
CREATE TABLE table_name_78 (points_for VARCHAR, points_against VARCHAR)
SELECT name, address_road, city FROM branch ORDER BY open_year
Show name, address road, and city for all branches sorted by open year.
CREATE TABLE branch (name VARCHAR, address_road VARCHAR, city VARCHAR, open_year VARCHAR)
SELECT COUNT(no_in_season) FROM table_21312959_1 WHERE us_viewers__millions_ = "5.0"
How many episodes had the us viewers (millions) figure of 5.0?
CREATE TABLE table_21312959_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT money_requested__£_ FROM table_name_10 WHERE company_or_product_name = "basstoneslap"
How much Money is requested by BassToneSlap?
CREATE TABLE table_name_10 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
SELECT visitor FROM table_name_33 WHERE home = "chicago"
what team was the visitor in the chicago game
CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR)
SELECT nation FROM table_name_62 WHERE total < 27 AND gold < 1 AND bronze > 1
What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1?
CREATE TABLE table_name_62 (nation VARCHAR, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT song_choice FROM table_23871828_1 WHERE result = "Safe" AND order__number = 8
Name the song for safe result #8.
CREATE TABLE table_23871828_1 (song_choice VARCHAR, result VARCHAR, order__number VARCHAR)
SELECT losses FROM table_14389782_2 WHERE jersey_no = "2" AND games_started < 7.0
How many lost games for jersey number 2 and games started is less than 7.0?
CREATE TABLE table_14389782_2 (losses VARCHAR, jersey_no VARCHAR, games_started VARCHAR)
SELECT set_2 FROM table_name_74 WHERE set_4 = "21-25"
What set 2 has a set 4 of 21-25?
CREATE TABLE table_name_74 (set_2 VARCHAR, set_4 VARCHAR)
SELECT time___et__ FROM table_name_3 WHERE opponent = "new england patriots"
When is the Opponent of new england patriots?
CREATE TABLE table_name_3 (time___et__ VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_51 WHERE player = "matt brait"
What round was matt brait?
CREATE TABLE table_name_51 (round VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_32 WHERE week > 6 AND result = "l 30–24"
Who did they play against in a week after 6 and the result was l 30–24?
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT name FROM table_name_32 WHERE left_office = "january 9, 1893"
Who left office on January 9, 1893
CREATE TABLE table_name_32 (name VARCHAR, left_office VARCHAR)
SELECT date FROM table_name_83 WHERE venue = "princes park"
What was the date of the game at Princes Park?
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
SELECT rider_names FROM table_27833186_1 WHERE best_conditioned_horse = "Basia"
What are all the Riders whose best-conditioned horse is Basia?
CREATE TABLE table_27833186_1 (rider_names VARCHAR, best_conditioned_horse VARCHAR)
SELECT date FROM table_name_53 WHERE team = "detroit" AND game > 3
Tell me the date for detroit and game more than 3
CREATE TABLE table_name_53 (date VARCHAR, team VARCHAR, game VARCHAR)
SELECT score FROM table_name_29 WHERE date = "29 november" AND venue = "state sports centre"
What is the score of the game that was played on 29 November at State Sports Centre?
CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR, venue VARCHAR)
SELECT AVG(date) FROM table_name_13 WHERE u_boats_destroyed__kuk_ = "2" AND tonnage = "1,514,050"
What is listed as the average Date that has U-boats destroyed (KuK) of 2 with Tonnage of 1,514,050?
CREATE TABLE table_name_13 (date INTEGER, u_boats_destroyed__kuk_ VARCHAR, tonnage VARCHAR)
SELECT COUNT(location_attendance) FROM table_20010140_10 WHERE record = "15–10 (5–7)"
state the number of location attendance where record is 15–10 (5–7)
CREATE TABLE table_20010140_10 (location_attendance VARCHAR, record VARCHAR)
SELECT high_assists FROM table_name_31 WHERE location_attendance = "uic pavilion 3,520"
What high assists have uic pavilion 3,520 as the location/attendance?
CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47
Name the maximum kerry # for where others is 47
CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR)
SELECT SUM(game) FROM table_name_27 WHERE record = "17-29"
What is the score of the scores when Game had a Record of 17-29?
CREATE TABLE table_name_27 (game INTEGER, record VARCHAR)
SELECT median_family_income FROM table_1356555_2 WHERE county = "Riverside"
Name the median family income for riverside
CREATE TABLE table_1356555_2 (median_family_income VARCHAR, county VARCHAR)
SELECT team FROM table_name_8 WHERE driver_s_ = "tom sneva" AND rounds = "1-9"
What team was Tom Sneva on in rounds 1-9?
CREATE TABLE table_name_8 (team VARCHAR, driver_s_ VARCHAR, rounds 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 COUNT(roll) FROM table_name_12 WHERE name = "te hapua school"
What is the total number of roll for Te Hapua school?
CREATE TABLE table_name_12 (roll VARCHAR, name VARCHAR)
SELECT college FROM table_2508633_6 WHERE nfl_team = "Houston Oilers"
Name the college for houston oilers
CREATE TABLE table_2508633_6 (college VARCHAR, nfl_team VARCHAR)
SELECT result FROM table_2668243_19 WHERE first_elected = "1820"
What was the result for the candidate first elected in 1820?
CREATE TABLE table_2668243_19 (result VARCHAR, first_elected VARCHAR)
SELECT type FROM table_name_54 WHERE incorporated_in = "netherlands" AND principal_activities = "airline" AND company = "transavia.com"
Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?
CREATE TABLE table_name_54 (type VARCHAR, company VARCHAR, incorporated_in VARCHAR, principal_activities VARCHAR)
SELECT iata FROM table_name_8 WHERE icao = "vhhh"
What is IATA, when ICAO is "VHHH"?
CREATE TABLE table_name_8 (iata VARCHAR, icao VARCHAR)
SELECT pick FROM table_name_93 WHERE round = "compensation-a" AND player = "frank catalanotto"
What was the pick number for the compensation-a round, for player Frank Catalanotto?
CREATE TABLE table_name_93 (pick VARCHAR, round VARCHAR, player VARCHAR)
SELECT SUM(game) FROM table_name_42 WHERE opponent = "@ st. louis hawks"
How many total games were played against @ St. Louis Hawks this season?
CREATE TABLE table_name_42 (game INTEGER, opponent VARCHAR)
SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES
Show the minimum, average, maximum order quantity of all invoices.
CREATE TABLE INVOICES (Order_Quantity INTEGER)
SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077
Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077?
CREATE TABLE table_name_74 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005
What is the number of games played in the season before 2005?
CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER)