question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Witch opponent has a loss of Glynn (0-2)?
CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)"
How many Barangays lived in the municipality with area coordinator of 110.95?
CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, area_coordinator VARCHAR)
SELECT no_of_barangays FROM table_2402209_1 WHERE area_coordinator = "110.95"
What is the competition that took place on October 1, 1994?
CREATE TABLE table_name_45 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_45 WHERE date = "october 1, 1994"
Name the incumbent for matthew lyon (dr) anthony new (dr)
CREATE TABLE table_2668378_5 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_2668378_5 WHERE candidates = "Matthew Lyon (DR) Anthony New (DR)"
what is the highest ngc number when the declination (j2000) is °25′26″?
CREATE TABLE table_name_51 (ngc_number INTEGER, declination___j2000__ VARCHAR)
SELECT MAX(ngc_number) FROM table_name_51 WHERE declination___j2000__ = "°25′26″"
Who wrote the song that runs for 2:22?
CREATE TABLE table_name_35 (author_s_ VARCHAR, time VARCHAR)
SELECT author_s_ FROM table_name_35 WHERE time = "2:22"
What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?
CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)
SELECT airing_date FROM table_name_50 WHERE official_website = "official website" AND number_of_episodes = 20 AND genre = "modern action" AND english_title__chinese_title_ = "armed reaction 陀槍師姐"
Against what team did the Islanders have a 5-18-5 record?
CREATE TABLE table_27539535_5 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_27539535_5 WHERE record = "5-18-5"
Which country has an abbreviation of kia?
CREATE TABLE table_name_61 (country VARCHAR, abbreviation VARCHAR)
SELECT country FROM table_name_61 WHERE abbreviation = "kia"
What is the to par when the total is larger than 288?
CREATE TABLE table_name_97 (to_par VARCHAR, total INTEGER)
SELECT to_par FROM table_name_97 WHERE total > 288
What is the outcome of the election with 43.3% share of votes?
CREATE TABLE table_name_26 (outcome_of_election VARCHAR, share_of_votes VARCHAR)
SELECT outcome_of_election FROM table_name_26 WHERE share_of_votes = "43.3%"
How many weeks have a Date of december 4, 1976, and an Attendance larger than 57,366?
CREATE TABLE table_name_30 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT SUM(week) FROM table_name_30 WHERE date = "december 4, 1976" AND attendance > 57 OFFSET 366
Who was the away team for the game played in front of more than 41,402 fans?
CREATE TABLE table_name_46 (away_team VARCHAR, crowd INTEGER)
SELECT away_team FROM table_name_46 WHERE crowd > 41 OFFSET 402
What is the aircraft name for the flight with number 99
CREATE TABLE Flight (aid VARCHAR, flno VARCHAR); CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR)
SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99
Which strain has 1,312 genes?
CREATE TABLE table_name_50 (strain VARCHAR, genes VARCHAR)
SELECT strain FROM table_name_50 WHERE genes = "1,312"
What is the other abbreviation of the constellation that has β trianguli as its brightest star?
CREATE TABLE table_287159_1 (other_abbreviation VARCHAR, brightest_star VARCHAR)
SELECT other_abbreviation FROM table_287159_1 WHERE brightest_star = "β Trianguli"
In which round was Jerry Butler chosen?
CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_58 WHERE player = "jerry butler"
What was the Outcome of the Danish Open in 1985?
CREATE TABLE table_name_21 (outcome VARCHAR, venue VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_21 WHERE venue = "danish open" AND year = "1985"
Where is David Frost from?
CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_38 WHERE player = "david frost"
What is the original air date for no. 2?
CREATE TABLE table_12722302_2 (original_air_date VARCHAR, no VARCHAR)
SELECT original_air_date FROM table_12722302_2 WHERE no = 2
what is the country for fabiana beltrame?
CREATE TABLE table_name_56 (country VARCHAR, athlete VARCHAR)
SELECT country FROM table_name_56 WHERE athlete = "fabiana beltrame"
List pairs of the owner's first name and the dogs's name.
CREATE TABLE Dogs (name VARCHAR, owner_id VARCHAR); CREATE TABLE Owners (first_name VARCHAR, owner_id VARCHAR)
SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id
At which event was Ken Schrader the Race Winner at the Toledo Speedway?
CREATE TABLE table_name_38 (event_name VARCHAR, race_winner VARCHAR, track VARCHAR)
SELECT event_name FROM table_name_38 WHERE race_winner = "ken schrader" AND track = "toledo speedway"
Which Title has a Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen?
CREATE TABLE table_name_91 (title VARCHAR, length VARCHAR, producer_s_ VARCHAR)
SELECT title FROM table_name_91 WHERE length = "3:32" AND producer_s_ = "hadise açıkgöz, yves jongen"
Which athlete from Germany has 2.20 of O and a 2.25 of O?
CREATE TABLE table_name_68 (athlete VARCHAR, nationality VARCHAR)
SELECT athlete FROM table_name_68 WHERE 220 = "o" AND 225 = "o" AND nationality = "germany"
What was the Record on Week 13 at the Hoosier Dome?
CREATE TABLE table_name_97 (record VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT record FROM table_name_97 WHERE game_site = "hoosier dome" AND week = 13
What is the highest tie that had 19129 attendance?
CREATE TABLE table_24887326_6 (tie_no INTEGER, attendance VARCHAR)
SELECT MAX(tie_no) FROM table_24887326_6 WHERE attendance = 19129
What is Zimbabwe's rank?
CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR)
SELECT rank FROM table_name_33 WHERE nationality = "zimbabwe"
What position does the player from kent state play?
CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR)
SELECT position FROM table_24540893_6 WHERE school = "Kent State"
Which rank has a s wicket at 40 and 28.42 is the average?
CREATE TABLE table_name_66 (rank VARCHAR, s_wicket VARCHAR, average VARCHAR)
SELECT rank FROM table_name_66 WHERE s_wicket = "40" AND average = "28.42"
Find the city with the most number of stores.
CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR)
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY COUNT(*) DESC LIMIT 1
What are the distinct billing countries of the invoices?
CREATE TABLE INVOICE (BillingCountry VARCHAR)
SELECT DISTINCT (BillingCountry) FROM INVOICE
What is the song choice where the episode is Live Show 1?
CREATE TABLE table_25374338_1 (song_choice VARCHAR, episode VARCHAR)
SELECT song_choice FROM table_25374338_1 WHERE episode = "Live Show 1"
What is the elevator when elevated is May 16, 1288, and cardinalatial title shows Deacon of S. Adriano?
CREATE TABLE table_name_21 (elevator VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT elevator FROM table_name_21 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. adriano"
What are the names of the directors who made exactly one movie?
CREATE TABLE Movie (director VARCHAR)
SELECT director FROM Movie GROUP BY director HAVING COUNT(*) = 1
If the year is 2001, what are the non qatari female?
CREATE TABLE table_26214389_3 (Non VARCHAR, year VARCHAR)
SELECT Non AS qatari_female FROM table_26214389_3 WHERE year = 2001
What was the surface of the match when the score was akgul amanmuradova chuang chia-jung?
CREATE TABLE table_name_60 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_60 WHERE score = "akgul amanmuradova chuang chia-jung"
Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals?
CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR, points VARCHAR, october VARCHAR)
SELECT SUM(game) FROM table_name_5 WHERE points < 10 AND october > 12 AND opponent = "@ washington capitals"
Who received the gold at the tournament at bratislava where the Czech Republic received the silver?
CREATE TABLE table_name_58 (gold VARCHAR, silver VARCHAR, venue VARCHAR)
SELECT gold FROM table_name_58 WHERE silver = "czech republic" AND venue = "bratislava"
What is the name of the winning driver where the circuit name is posillipo?
CREATE TABLE table_1140105_6 (winning_driver VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_1140105_6 WHERE circuit = "Posillipo"
Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?
CREATE TABLE table_name_56 (winner VARCHAR, runner_up VARCHAR, title VARCHAR)
SELECT winner FROM table_name_56 WHERE runner_up = "waseda" AND title = "32nd"
Which part fault requires the most number of skills to fix? List part id and name.
CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)
SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1
Name the least year for evonne goolagong helen gourlay
CREATE TABLE table_2009095_2 (year INTEGER, opponents VARCHAR)
SELECT MIN(year) FROM table_2009095_2 WHERE opponents = "Evonne Goolagong Helen Gourlay"
Name the lowest first elected for chester w. taylor
CREATE TABLE table_1342426_5 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1342426_5 WHERE incumbent = "Chester W. Taylor"
If the winnings was $250,667, what is the top 5 total number?
CREATE TABLE table_2190919_3 (top_5 VARCHAR, winnings VARCHAR)
SELECT COUNT(top_5) FROM table_2190919_3 WHERE winnings = "$250,667"
Where is the longest arch with a length in meters of 63?
CREATE TABLE table_name_47 (location VARCHAR, length___m__ VARCHAR)
SELECT location FROM table_name_47 WHERE length___m__ = "63"
What is the status of the ship INS Ranvir?
CREATE TABLE table_name_95 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_95 WHERE name = "ins ranvir"
What is the score of player mark hayes?
CREATE TABLE table_name_14 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_14 WHERE player = "mark hayes"
What is the Date of the at&t pebble beach national pro-am Tournament?
CREATE TABLE table_name_91 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_91 WHERE tournament = "at&t pebble beach national pro-am"
What is the earnings per share when the net profit is 16.2 million dollars?
CREATE TABLE table_18077713_1 (earnings_per_share__¢_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "16.2"
What is the club for Sam Magri?
CREATE TABLE table_name_9 (current_club VARCHAR, player VARCHAR)
SELECT current_club FROM table_name_9 WHERE player = "sam magri"
List the id, genre and artist name of English songs ordered by rating.
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, artist_name VARCHAR, languages VARCHAR, rating VARCHAR)
SELECT f_id, genre_is, artist_name FROM song WHERE languages = "english" ORDER BY rating
What was the result of nomination for Season 6 after 1995?
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, episode VARCHAR)
SELECT result FROM table_name_49 WHERE year > 1995 AND episode = "season 6"
What was the away team score at western oval?
CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_46 WHERE venue = "western oval"
Who won at the Barbagallo Raceway circuit?
CREATE TABLE table_name_49 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_49 WHERE circuit = "barbagallo raceway"
Find the number of users who posted some tweets.
CREATE TABLE tweets (UID VARCHAR)
SELECT COUNT(DISTINCT UID) FROM tweets
For the race Champion Spark Plug 300, what is the report?
CREATE TABLE table_name_78 (report VARCHAR, race_name VARCHAR)
SELECT report FROM table_name_78 WHERE race_name = "champion spark plug 300"
What is the seat of the RCM in the county that has a density of 9.7?
CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR)
SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7"
List the names of orchestras that have no performance.
CREATE TABLE orchestra (Orchestra VARCHAR, Orchestra_ID VARCHAR); CREATE TABLE performance (Orchestra VARCHAR, Orchestra_ID VARCHAR)
SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)
What is the average February that has 56 as the game?
CREATE TABLE table_name_77 (february INTEGER, game VARCHAR)
SELECT AVG(february) FROM table_name_77 WHERE game = 56
Which college have both players with position midfielder and players with position defender?
CREATE TABLE match_season (College VARCHAR, POSITION VARCHAR)
SELECT College FROM match_season WHERE POSITION = "Midfielder" INTERSECT SELECT College FROM match_season WHERE POSITION = "Defender"
What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?
CREATE TABLE table_name_2 (name VARCHAR, rocket VARCHAR, block VARCHAR)
SELECT name FROM table_name_2 WHERE rocket = "titan iv(401)b" AND block = "block i/ii hybrid"
List all the image name and URLs in the order of their names.
CREATE TABLE images (image_name VARCHAR, image_url VARCHAR)
SELECT image_name, image_url FROM images ORDER BY image_name
What is the region for Catalog amlh 66078 in stereo lp format?
CREATE TABLE table_name_68 (region VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_68 WHERE format = "stereo lp" AND catalog = "amlh 66078"
Which driver has a grid of 3?
CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_59 WHERE grid = 3
What is the team name from Hammond Bishop Noll?
CREATE TABLE table_name_42 (team_name VARCHAR, school VARCHAR)
SELECT team_name FROM table_name_42 WHERE school = "hammond bishop noll"
What is the Panthers' Division Record?
CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_48 WHERE team = "panthers"
When the grid number is 10, what is the total number of laps?
CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_39 WHERE grid = 10
Name the year for donlavey racing bill davis racing
CREATE TABLE table_2181798_1 (year VARCHAR, team_s_ VARCHAR)
SELECT year FROM table_2181798_1 WHERE team_s_ = "Donlavey Racing Bill Davis Racing"
How many regions had 153 women prison inmates?
CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, prison_inmates_women VARCHAR)
SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE prison_inmates_women = 153
What year is Winter Olympics when Holmenkollen is 1957, 1960?
CREATE TABLE table_174491_2 (winter_olympics VARCHAR, holmenkollen VARCHAR)
SELECT winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960"
What was week 17's date?
CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_21 WHERE week = 17
How many clubs have tries for count of 50?
CREATE TABLE table_12886178_5 (played VARCHAR, tries_for VARCHAR)
SELECT COUNT(played) FROM table_12886178_5 WHERE tries_for = "50"
What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?
CREATE TABLE table_name_50 (career VARCHAR)
SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12"
How many total goals were made at the game on 15 November 1989?
CREATE TABLE table_name_81 (goal VARCHAR, date VARCHAR)
SELECT COUNT(goal) FROM table_name_81 WHERE date = "15 november 1989"
What is the lowest position of pilot mario kiessling from Germany?
CREATE TABLE table_name_23 (position INTEGER, country VARCHAR, pilot VARCHAR)
SELECT MIN(position) FROM table_name_23 WHERE country = "germany" AND pilot = "mario kiessling"
What June 10-11 is is that corresponds to March 28, 1968?
CREATE TABLE table_25284864_3 (june_10_11 VARCHAR, march_27_29 VARCHAR)
SELECT june_10_11 FROM table_25284864_3 WHERE march_27_29 = "March 28, 1968"
what is the to par when the player is jack nicklaus?
CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_29 WHERE player = "jack nicklaus"
What is the other is the city is Los Gatos?
CREATE TABLE table_25200461_9 (other VARCHAR, city VARCHAR)
SELECT other FROM table_25200461_9 WHERE city = "Los Gatos"
What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9?
CREATE TABLE table_2597876_2 (top_10 VARCHAR, team_s_ VARCHAR, avg_finish VARCHAR)
SELECT top_10 FROM table_2597876_2 WHERE team_s_ = "#10 Phil Parsons Racing" AND avg_finish = "22.9"
What was the result of the election featuring incumbent norman sisisky?
CREATE TABLE table_1341423_46 (results VARCHAR, incumbent VARCHAR)
SELECT results FROM table_1341423_46 WHERE incumbent = "Norman Sisisky"
What Championship has a Score in the final of 2–6, 6–2, 7–5?
CREATE TABLE table_name_16 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT championship FROM table_name_16 WHERE score_in_the_final = "2–6, 6–2, 7–5"
What year did the San Agustin gym open?
CREATE TABLE table_name_44 (year_opened VARCHAR, arena_venue VARCHAR)
SELECT year_opened FROM table_name_44 WHERE arena_venue = "san agustin gym"
Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?
CREATE TABLE table_name_40 (away VARCHAR, home VARCHAR, league VARCHAR)
SELECT away FROM table_name_40 WHERE home = "1-2" AND league = "bundesliga"
What is the lowest defense a champion with 345 days held has?
CREATE TABLE table_name_46 (defenses INTEGER, days_held VARCHAR)
SELECT MIN(defenses) FROM table_name_46 WHERE days_held = "345"
What is the Type, when Callsign is "Xetam"?
CREATE TABLE table_name_50 (type VARCHAR, callsign VARCHAR)
SELECT type FROM table_name_50 WHERE callsign = "xetam"
which episode was Transmitted on wednesday if the episode of "438 magic: the gathering mini masters tournament" was transmitted on thursday?
CREATE TABLE table_18173916_8 (wednesday VARCHAR, thursday VARCHAR)
SELECT wednesday FROM table_18173916_8 WHERE thursday = "438 Magic: The Gathering Mini Masters Tournament"
What is the lowest rank (night) for having viewers (millions) 5.25?
CREATE TABLE table_11253290_2 (rank__night_ INTEGER, viewers__millions_ VARCHAR)
SELECT MIN(rank__night_) FROM table_11253290_2 WHERE viewers__millions_ = "5.25"
Name the written by for prod code being 206
CREATE TABLE table_2322716_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT written_by FROM table_2322716_2 WHERE prod_code = 206
How many owners temporarily do not have any dogs?
CREATE TABLE Dogs (owner_id VARCHAR); CREATE TABLE Owners (owner_id VARCHAR)
SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)
When the mark is 7.35, what's the lowest Lane found?
CREATE TABLE table_name_32 (lane INTEGER, mark VARCHAR)
SELECT MIN(lane) FROM table_name_32 WHERE mark = "7.35"
What is the median income for a family whose per capita income is $18,296?
CREATE TABLE table_name_14 (median_family_income VARCHAR, per_capita_income VARCHAR)
SELECT median_family_income FROM table_name_14 WHERE per_capita_income = "$18,296"
What is the Age of f/c Posiiton?
CREATE TABLE table_name_85 (year_born__age_ VARCHAR, position VARCHAR)
SELECT year_born__age_ FROM table_name_85 WHERE position = "f/c"
What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name?
CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR)
SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul"
What is the total amount of money that the United States one with a To par of –2?
CREATE TABLE table_name_93 (money___ VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_93 WHERE country = "united states" AND to_par = "–2"
What is the Result of Week larger than 3 on 1971-11-07?
CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_94 WHERE week > 3 AND date = "1971-11-07"
Which Supplier has a Year of 2006-2008?
CREATE TABLE table_name_83 (supplier VARCHAR, year VARCHAR)
SELECT supplier FROM table_name_83 WHERE year = "2006-2008"
Name the least weeks at number 1 for 1988
CREATE TABLE table_27441210_5 (weeks_at__number1 INTEGER, year VARCHAR)
SELECT MIN(weeks_at__number1) FROM table_27441210_5 WHERE year = 1988
What was the attendance at the Billericay Town home game?
CREATE TABLE table_name_34 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_34 WHERE home_team = "billericay town"
Find all the customer last names that do not have invoice totals larger than 20.
CREATE TABLE CUSTOMER (LastName VARCHAR); CREATE TABLE CUSTOMER (LastName VARCHAR, CustomerId VARCHAR); CREATE TABLE Invoice (CustomerId VARCHAR, total INTEGER)
SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20