answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9
Show the names of all the donors except those whose donation amount less than 9.
CREATE TABLE endowment (donator_name VARCHAR, amount INTEGER)
SELECT lane FROM table_name_23 WHERE heat < 3 AND nationality = "barbados"
What lane did the barbados swimmer compete in before heat 3?
CREATE TABLE table_name_23 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT player FROM table_name_58 WHERE position = "g" AND team = "washington capitols"
What is the name of the player with position of G and the team was the Washington Capitols?
CREATE TABLE table_name_58 (player VARCHAR, position VARCHAR, team VARCHAR)
SELECT location FROM table_10568553_1 WHERE roads_intersected = "Route 24"
Where does Route 24 intersect?
CREATE TABLE table_10568553_1 (location VARCHAR, roads_intersected VARCHAR)
SELECT drawn FROM table_12828723_5 WHERE points_against = "416"
What were the drawn with points against at 416?
CREATE TABLE table_12828723_5 (drawn VARCHAR, points_against VARCHAR)
SELECT national_cup FROM table_19333752_1 WHERE championship = "21 app / 6 goals"
What is the national cup statistics when the Championship is 21 app / 6 goals?
CREATE TABLE table_19333752_1 (national_cup VARCHAR, championship VARCHAR)
SELECT date FROM table_name_63 WHERE tournament = "rodez, france"
What is the Date of the Rodez, France Tournament?
CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR)
SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée"
What is the team 2 with a team 1 us gorée?
CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR)
SELECT tie_no FROM table_name_96 WHERE home_team = "chelsea"
What's the tie number of Chelsea when they were home?
CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR)
SELECT final_score FROM table_name_9 WHERE visiting_team = "indianapolis colts" AND stadium = "giants stadium"
What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?
CREATE TABLE table_name_9 (final_score VARCHAR, visiting_team VARCHAR, stadium VARCHAR)
SELECT chassis FROM table_name_40 WHERE points > 0
What chassis has more than 0 points?
CREATE TABLE table_name_40 (chassis VARCHAR, points INTEGER)
SELECT team__number1 FROM table_21434618_1 WHERE team__number2 = "Chalkida"
which team #1 played again chalkida
CREATE TABLE table_21434618_1 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT year FROM table_name_63 WHERE league_position = "8/12"
What year had a league position of 8/12?
CREATE TABLE table_name_63 (year VARCHAR, league_position VARCHAR)
SELECT COUNT(poles) FROM table_25538763_1 WHERE season = 2012 AND points = "252"
How many pole data were given on season 2012 with 252 points?
CREATE TABLE table_25538763_1 (poles VARCHAR, season VARCHAR, points VARCHAR)
SELECT record FROM table_name_55 WHERE date = "may 31"
Which Record has a Date of may 31?
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_37 WHERE place = "t7" AND player = "bill britton"
What was the To par for bill britton when he placed t7?
CREATE TABLE table_name_37 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT MIN(population___2011_census__) FROM table_name_38 WHERE land_area__km²_ > 908 OFFSET 607.67
What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km²?
CREATE TABLE table_name_38 (population___2011_census__ INTEGER, land_area__km²_ INTEGER)
SELECT actor FROM table_name_31 WHERE soap_opera = "shortland street" AND years = "1993–1999, 2001–2003, 2007, 2009—"
who is the actor for shortland street for the years 1993–1999, 2001–2003, 2007, 2009—?
CREATE TABLE table_name_31 (actor VARCHAR, soap_opera VARCHAR, years VARCHAR)
SELECT home_away FROM table_name_19 WHERE date = "february 29, 2008"
What home/away game is on February 29, 2008?
CREATE TABLE table_name_19 (home_away VARCHAR, date VARCHAR)
SELECT MIN(08 AS _09_i_o_best) FROM table_23938357_6
What is the least 08-09 i/o best?
CREATE TABLE table_23938357_6 (Id VARCHAR)
SELECT COUNT(series__number) FROM table_27833469_1 WHERE us_viewers__millions_ = "15.8"
How many series numbers are there when there were 15.8 u.s. viewers (millions)?
CREATE TABLE table_27833469_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT race_winner FROM table_name_1 WHERE round = "europe"
Who won the round in Europe?
CREATE TABLE table_name_1 (race_winner VARCHAR, round VARCHAR)
SELECT 1 AS st_leg FROM table_name_52 WHERE competition = "uefa champions league" AND club = "skonto riga"
What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?
CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR)
SELECT wins FROM table_18018248_2 WHERE goals_scored = 58
How many wins had 58 goals scored?
CREATE TABLE table_18018248_2 (wins VARCHAR, goals_scored VARCHAR)
SELECT years FROM table_name_83 WHERE rank < 8 AND matches = 447
What years did the player ranked less than 8 and had 447 matches play?
CREATE TABLE table_name_83 (years VARCHAR, rank VARCHAR, matches VARCHAR)
SELECT october FROM table_name_17 WHERE november = "buffy tyler"
Name the october when november is buffy tyler
CREATE TABLE table_name_17 (october VARCHAR, november VARCHAR)
SELECT SUM(attendance) FROM table_name_23 WHERE home = "calgary"
What's the sum of the attendance for the calgary home team?
CREATE TABLE table_name_23 (attendance INTEGER, home VARCHAR)
SELECT college FROM table_26533354_8 WHERE player = "David Carter"
Name the college for david carter
CREATE TABLE table_26533354_8 (college VARCHAR, player VARCHAR)
SELECT record FROM table_name_89 WHERE game_site = "rich stadium" AND opponent = "new england patriots"
What is the record for the game against New England Patriots at the Rich Stadium?
CREATE TABLE table_name_89 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT loss FROM table_name_85 WHERE date = "may 29"
On May 29 which team had the loss?
CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_99 WHERE venue = "mcg"
When mcg is the Venue what's the Away team?
CREATE TABLE table_name_99 (away_team VARCHAR, venue VARCHAR)
SELECT series AS result FROM table_2554479_2 WHERE season = "1998"
Name the series result for season being 1998
CREATE TABLE table_2554479_2 (series VARCHAR, season VARCHAR)
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy" OR t1.policy_type_code = "Uniform"
Find the names of customers who either have an deputy policy or uniformed policy.
CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn"
What is the content of the television service ewtn in the United Kingdom?
CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)
SELECT MAX(fastest_laps) FROM table_name_9 WHERE poles = 0 AND races > 15 AND podiums > 2
What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?
CREATE TABLE table_name_9 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR)
SELECT notes FROM table_name_31 WHERE rank = 4
What is the Notes of the Country with a Rank of 4?
CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR)
SELECT league FROM table_name_70 WHERE sport = "arena football" AND club = "laredo lobos"
Which league has arena football in the club Laredo Lobos?
CREATE TABLE table_name_70 (league VARCHAR, sport VARCHAR, club VARCHAR)
SELECT MAX(points) FROM table_name_33 WHERE r_magjistari > 12
For R. Magjistari scores over 12, what is the highest number of points?
CREATE TABLE table_name_33 (points INTEGER, r_magjistari INTEGER)
SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE revenue_per_capita = "$6,126"
How many numbers were recorded under revenue when revenue per capita was $6,126?
CREATE TABLE table_14700336_1 (revenue__millions_ VARCHAR, revenue_per_capita VARCHAR)
SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0
What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?
CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(wins) FROM table_name_17 WHERE rank > 4
What is the low win total for players ranked below 4?
CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER)
SELECT notes FROM table_name_82 WHERE call_sign = "cbue-fm"
What is the Notes of the Frequency with a call sign of CBUE-FM?
CREATE TABLE table_name_82 (notes VARCHAR, call_sign VARCHAR)
SELECT name FROM city WHERE population BETWEEN 160000 AND 900000
Return the names of cities that have a population between 160000 and 900000 .
CREATE TABLE city (name VARCHAR, population INTEGER)
SELECT rider FROM table_name_18 WHERE grid = "14"
Who is the driver of the car that started in grid 14?
CREATE TABLE table_name_18 (rider VARCHAR, grid VARCHAR)
SELECT MIN(interview) FROM table_name_52 WHERE state = "south dakota" AND evening_gown < 8.513
Who had the lowest interview score from South Dakota with an evening gown less than 8.513?
CREATE TABLE table_name_52 (interview INTEGER, state VARCHAR, evening_gown VARCHAR)
SELECT SUM(game) FROM table_name_24 WHERE set_4 = "25-21" AND set_3 = "25-23"
What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?
CREATE TABLE table_name_24 (game INTEGER, set_4 VARCHAR, set_3 VARCHAR)
SELECT programming FROM table_name_16 WHERE channel < 63.2
For the channel smaller than 63.2, what was the programming?
CREATE TABLE table_name_16 (programming VARCHAR, channel INTEGER)
SELECT MAX(points) FROM table_name_41 WHERE chassis = "gordini t16" AND year < 1954
What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954?
CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(order_quantity) FROM order_items
What is the average amount of items ordered in each order?
CREATE TABLE order_items (order_quantity INTEGER)
SELECT MAX(rolex_ranking) FROM table_29506171_2 WHERE money_list_rank = "3"
What was Reid's rolex ranking in the year that her money list rank was 3?
CREATE TABLE table_29506171_2 (rolex_ranking INTEGER, money_list_rank VARCHAR)
SELECT Area, County FROM APPELLATIONS
List the area and county of all appelations.
CREATE TABLE APPELLATIONS (Area VARCHAR, County VARCHAR)
SELECT nationality FROM table_11803648_17 WHERE player = "Andre Petersson"
WHERE IS ANDRE PETERSSON FROM?
CREATE TABLE table_11803648_17 (nationality VARCHAR, player VARCHAR)
SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009"
What is the title that was first published in February 2009 and is still ongoing?
CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR)
SELECT floors FROM table_name_58 WHERE height_m___feet = "900 / 2,952"
How many floors have a Height m / feet of 900 / 2,952?
CREATE TABLE table_name_58 (floors VARCHAR, height_m___feet VARCHAR)
SELECT nationality FROM table_name_81 WHERE heat < 3 AND time = "2:35.31"
what is the nationality when the heat is less than 3 and the time is 2:35.31?
CREATE TABLE table_name_81 (nationality VARCHAR, heat VARCHAR, time VARCHAR)
SELECT category FROM table_2155350_2 WHERE cab_size = "Crew" AND sub_category = "Super tanker"
Name the category for cab size crew and super tanker
CREATE TABLE table_2155350_2 (category VARCHAR, cab_size VARCHAR, sub_category VARCHAR)
SELECT COUNT(year) FROM table_229059_2 WHERE champion = "Pat Bradley"
In how many years did Pat Bradley became the champion?
CREATE TABLE table_229059_2 (year VARCHAR, champion VARCHAR)
SELECT 4 AS wi FROM table_27268238_5 WHERE economy = "7.82"
What is the 4wi when the economy is 7.82?
CREATE TABLE table_27268238_5 (economy VARCHAR)
SELECT name FROM table_name_97 WHERE roll = 270
Which name has a Roll of 270?
CREATE TABLE table_name_97 (name VARCHAR, roll VARCHAR)
SELECT MAX(platforms) FROM table_name_15 WHERE stations = "centrale tram stop"
What would be the highest Platforms for the Centrale Tram Stop Stations?
CREATE TABLE table_name_15 (platforms INTEGER, stations VARCHAR)
SELECT player FROM table_23670057_5 WHERE year_born = 1983 AND position = "Forward"
Which players were born in 1983 and play as forward position?
CREATE TABLE table_23670057_5 (player VARCHAR, year_born VARCHAR, position VARCHAR)
SELECT builder FROM table_name_16 WHERE works_number = "2534"
Who is the builder with a works number of 2534?
CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)
SELECT tries_against FROM table_name_72 WHERE losing_bonus = "9"
How many tries against have a losing bonus of 9?
CREATE TABLE table_name_72 (tries_against VARCHAR, losing_bonus VARCHAR)
SELECT AVG(to_par) FROM table_name_2 WHERE score = 78 - 67 - 73 = 218
What is the average to par for a score of 78-67-73=218?
CREATE TABLE table_name_2 (to_par INTEGER, score VARCHAR)
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227424
who put on the show where the numbers were 227424
CREATE TABLE table_27716091_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT SUM(touchdowns) FROM table_name_44 WHERE extra_points > 0 AND field_goals < 0
What is the sum of all the touchdowns when the player had more than 0 extra points and less than 0 field goals?
CREATE TABLE table_name_44 (touchdowns INTEGER, extra_points VARCHAR, field_goals VARCHAR)
SELECT gold FROM table_name_88 WHERE bronze = "8"
What is the number of gold medals when the number of bronze medals is 8?
CREATE TABLE table_name_88 (gold VARCHAR, bronze VARCHAR)
SELECT AVG(num_of_staff), AVG(score) FROM shop
What are the average score and average staff number of all shops?
CREATE TABLE shop (num_of_staff INTEGER, score INTEGER)
SELECT airdate FROM table_name_54 WHERE length = "30 minutes"
The length of 30 minutes aired on what date?
CREATE TABLE table_name_54 (airdate VARCHAR, length VARCHAR)
SELECT constructor FROM table_name_64 WHERE grid < 21 AND time_retired = "engine"
What constructor has a grid less than 21, and time/retired of engine?
CREATE TABLE table_name_64 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT date FROM table_name_73 WHERE week = 8
When has a Week of 8?
CREATE TABLE table_name_73 (date VARCHAR, week VARCHAR)
SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = "herb graver" AND touchdowns < 15
When Herb Graver played, how many field goals were made when there were more than 50 points, less than 15 touchdowns, and more than 0 extra points?
CREATE TABLE table_name_87 (field_goals INTEGER, touchdowns VARCHAR, player VARCHAR, points VARCHAR, extra_points VARCHAR)
SELECT status FROM table_name_68 WHERE against > 22
What's the statue for an against above 22?
CREATE TABLE table_name_68 (status VARCHAR, against INTEGER)
SELECT location__transmitter_site_ FROM table_2610582_3 WHERE power_kw__erp_ = "5kW (10kW ERP)"
What is the location that has a power of 5kw (10kw ERP)?
CREATE TABLE table_2610582_3 (location__transmitter_site_ VARCHAR, power_kw__erp_ VARCHAR)
SELECT status FROM table_26416704_2 WHERE incumbent = "Margaret Kaiser"
What was the status of the election featuring incumbent margaret kaiser?
CREATE TABLE table_26416704_2 (status VARCHAR, incumbent VARCHAR)
SELECT junior_high_school__12_15_yrs_ FROM table_13555999_1 WHERE gender = "Male" AND specification = "Minimum diameter of sakigawa"
What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?
CREATE TABLE table_13555999_1 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR, specification VARCHAR)
SELECT COUNT(points) FROM table_name_93 WHERE artist = "joe o'meara"
How many points did Joe O'Meara have?
CREATE TABLE table_name_93 (points VARCHAR, artist VARCHAR)
SELECT MIN(year) FROM table_name_81 WHERE top_goalscorer = "ortiz" AND goals > 25
Name the least year for goalscore of ortiz and goals more than 25
CREATE TABLE table_name_81 (year INTEGER, top_goalscorer VARCHAR, goals VARCHAR)
SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17
When 17 is the number in series who is the director?
CREATE TABLE table_2409041_2 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT date FROM table_name_30 WHERE tournament = "orange"
When was the tournament at Orange?
CREATE TABLE table_name_30 (date VARCHAR, tournament VARCHAR)
SELECT record FROM table_name_48 WHERE week < 15 AND opponent = "at new york jets"
Which Record has a Week smaller than 15, and an Opponent of at new york jets?
CREATE TABLE table_name_48 (record VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT MIN(avg_g) FROM table_name_10 WHERE gp_gs = "12-12" AND gain < 16
What's the lowest avg/g for a GP-GS of 12-12 and a gain less than 16?
CREATE TABLE table_name_10 (avg_g INTEGER, gp_gs VARCHAR, gain VARCHAR)
SELECT set_4 FROM table_name_73 WHERE score = "2-3"
What is the set 4 with a 2-3 score?
CREATE TABLE table_name_73 (set_4 VARCHAR, score VARCHAR)
SELECT share___percentage_ FROM table_27319183_5 WHERE episode = "Semi-final 2"
What was the share (%) for the Semi-Final 2 episode?
CREATE TABLE table_27319183_5 (share___percentage_ VARCHAR, episode VARCHAR)
SELECT MAX(against) FROM table_name_35 WHERE status = "six nations" AND date = "02/03/2002"
Can you tell me the highest Against that has the Status of six nations, and the Date of 02/03/2002?
CREATE TABLE table_name_35 (against INTEGER, status VARCHAR, date VARCHAR)
SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison"
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT score FROM table_name_17 WHERE attendance = 2441
What was the score when 2441 people were in attendance?
CREATE TABLE table_name_17 (score VARCHAR, attendance VARCHAR)
SELECT name_of_king FROM table_name_54 WHERE sno > 1 AND no_of_villages = 600
What king has an S. number over 1 and a number of villages of 600?
CREATE TABLE table_name_54 (name_of_king VARCHAR, sno VARCHAR, no_of_villages VARCHAR)
SELECT college_junior_club_team FROM table_name_5 WHERE pick = "16"
Tell me the college/junior club team for pick of 16
CREATE TABLE table_name_5 (college_junior_club_team VARCHAR, pick VARCHAR)
SELECT motorcycle FROM table_name_23 WHERE rider = "anthony west"
Anthony West ride which Motorcyle?
CREATE TABLE table_name_23 (motorcycle VARCHAR, rider VARCHAR)
SELECT COUNT(year) FROM table_name_18 WHERE award = "vamsi berkley award" AND category = "best actor"
What is the total number of Year, when Award is "Vamsi Berkley Award", and when Category is "Best Actor"?
CREATE TABLE table_name_18 (year VARCHAR, award VARCHAR, category VARCHAR)
SELECT COUNT(broadcast_date) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4"
what is all the broadcast date when viewers were 8.4 millions
CREATE TABLE table_2112766_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT COUNT(metropolitan_borough_)[c_] FROM table_15366849_1 WHERE station = "Dorridge"
How many metropolitan boroughs have dorridge as a station?
CREATE TABLE table_15366849_1 (c_ VARCHAR, metropolitan_borough_ VARCHAR, station VARCHAR)
SELECT name AS origin FROM table_16799784_11 WHERE name = "Nike Fossae"
What is the name origin of Nike Fossae?
CREATE TABLE table_16799784_11 (name VARCHAR)
SELECT Box AS score FROM table_name_20 WHERE score = "86-96"
What was the box score during a game that had a score of 86-96?
CREATE TABLE table_name_20 (Box VARCHAR, score VARCHAR)
SELECT total__number FROM table_13625792_1 WHERE bush__percentage = "77.76%"
In the county where Bush won 77.76%, how many total votes were cast?
CREATE TABLE table_13625792_1 (total__number VARCHAR, bush__percentage VARCHAR)
SELECT rider FROM table_name_23 WHERE grid < 16 AND manufacturer = "aprilia" AND time = "+28.288"
What is the Rider, when Grid is less than 16, when Manufacturer is Aprilia, and when Time is +28.288?
CREATE TABLE table_name_23 (rider VARCHAR, time VARCHAR, grid VARCHAR, manufacturer VARCHAR)
SELECT AVG(area) FROM table_name_20 WHERE english_name = "xinluo district"
What's the average area for the xinluo district?
CREATE TABLE table_name_20 (area INTEGER, english_name VARCHAR)
SELECT sat_21_aug FROM table_26986076_6 WHERE tues_24_aug = "20' 38.40 109.680mph"
What was the Sat 21 Aug time for the rider whose Tues 24 Aug time was 20' 38.40 109.680mph?
CREATE TABLE table_26986076_6 (sat_21_aug VARCHAR, tues_24_aug VARCHAR)
SELECT home FROM table_name_28 WHERE result = "0:2" AND date = "21.10.07"
What is the home of the match with a 0:2 result on 21.10.07?
CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR)