answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_24732149_2 WHERE fastest_lap = "Mike Rockenfeller"
What date did Mike Rockenfeller have the fastest lap?
CREATE TABLE table_24732149_2 (date VARCHAR, fastest_lap VARCHAR)
SELECT visiting_team FROM table_name_90 WHERE stadium = "jack murphy stadium"
What was the name of the Visiting team at Jack Murphy Stadium?
CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)
SELECT opponent FROM table_name_82 WHERE event = "kotc 25: flaming fury"
Who was the opponent for the KOTC 25: Flaming Fury event?
CREATE TABLE table_name_82 (opponent VARCHAR, event VARCHAR)
SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code
Find the number of complaints with Product Failure type for each complaint status.
CREATE TABLE complaints (complaint_status_code VARCHAR, complaint_type_code VARCHAR)
SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = "top 5" AND performer_s_ = "taylor hicks"
What is the digital reaction for week of top 5 for Taylor Hicks?
CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR)
SELECT SUM(cuts_made) FROM table_name_80 WHERE wins < 2 AND top_25 > 7 AND top_10 < 2
Name the sum of cuts with wins less than 2, top-25 more than 7 and top-10 less than 2
CREATE TABLE table_name_80 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT AVG(wins) FROM table_name_86 WHERE top_25 = 3 AND top_5 > 1
What is the Wins with a Top-25 of 3, and a Top-5 larger than 1?
CREATE TABLE table_name_86 (wins INTEGER, top_25 VARCHAR, top_5 VARCHAR)
SELECT numer_of_jamaicans_granted_british_citizenship FROM table_11214212_1 WHERE naturalisation_by_residence = 927
what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927
CREATE TABLE table_11214212_1 (numer_of_jamaicans_granted_british_citizenship VARCHAR, naturalisation_by_residence VARCHAR)
SELECT nationality FROM table_name_1 WHERE player = "demetris nichols"
What nationality is Demetris Nichols?
CREATE TABLE table_name_1 (nationality VARCHAR, player VARCHAR)
SELECT directed_by FROM table_23242968_1 WHERE us_viewers__millions_ = "6.76"
Who directed the episode that had 6.76 million U.S. viewers?
CREATE TABLE table_23242968_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT SUM(pick) FROM table_name_32 WHERE name = "cecil martin" AND overall < 268
The player Cecil Martin with an overall less than 268 has what total pick?
CREATE TABLE table_name_32 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80
Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.
CREATE TABLE submission (College VARCHAR, Scores INTEGER)
SELECT country FROM table_name_2 WHERE place = "mänttä"
Name the country that has mänttä
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR)
SELECT score FROM table_name_72 WHERE competition = "world cup qualifier"
What was the score for the World Cup Qualifier?
CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR)
SELECT common_name FROM table_175442_1 WHERE scientific_name = "Furcifer pardalis"
Name the common name for furcifer pardalis
CREATE TABLE table_175442_1 (common_name VARCHAR, scientific_name VARCHAR)
SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = "inc" AND incumbent = "bjp"
What is the smallest number of seats with INC as an election winner and BJP incumbent?
CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR)
SELECT model FROM table_name_6 WHERE green_rating = "g" AND manufacturer = "chrysler jeep" AND l_100km_urban__cold_ < 18 AND mpg_uk_combined = 27.7
What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7?
CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR)
SELECT competition FROM table_name_11 WHERE result = "won" AND score = "8-0"
what is the competition when the result is won and the score is 8-0?
CREATE TABLE table_name_11 (competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT province, _community FROM table_name_81 WHERE contestant = "elixandra tobias carasco"
Which province has the contestant elixandra tobias carasco?
CREATE TABLE table_name_81 (province VARCHAR, _community VARCHAR, contestant VARCHAR)
SELECT lead FROM table_name_8 WHERE polling_firm = "election results" AND psoe = "39.6% 175"
What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?
CREATE TABLE table_name_8 (lead VARCHAR, polling_firm VARCHAR, psoe VARCHAR)
SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = "Czech Republic"
Name the most overall rank for czech republic
CREATE TABLE table_2701625_1 (overall_rank INTEGER, country VARCHAR)
SELECT social_software FROM table_name_18 WHERE discussion = "no" AND time_tracking = "no" AND charting = "no"
WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?
CREATE TABLE table_name_18 (social_software VARCHAR, charting VARCHAR, discussion VARCHAR, time_tracking VARCHAR)
SELECT MAX(lane) FROM table_name_87 WHERE time < 49.67 AND name = "michael klim" AND rank < 1
Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?
CREATE TABLE table_name_87 (lane INTEGER, rank VARCHAR, time VARCHAR, name VARCHAR)
SELECT COUNT(DISTINCT LOCATION) FROM perpetrator
How many distinct locations of perpetrators are there?
CREATE TABLE perpetrator (LOCATION VARCHAR)
SELECT skip FROM table_name_69 WHERE lead = "dominik greindl"
Who has the role of skip when the lead is Dominik Greindl?
CREATE TABLE table_name_69 (skip VARCHAR, lead VARCHAR)
SELECT administration FROM table_name_56 WHERE season = 2000
What Adminstration has a Season of 2000?
CREATE TABLE table_name_56 (administration VARCHAR, season VARCHAR)
SELECT AVG(december) FROM table_name_79 WHERE game = 30
What is average December when game is 30?
CREATE TABLE table_name_79 (december INTEGER, game VARCHAR)
SELECT position FROM table_name_7 WHERE pick > 80 AND player = "walt mainer"
Which position had a pick larger than 80 and Walt Mainer as a player?
CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR, player VARCHAR)
SELECT COUNT(immunity) FROM table_1272844_2 WHERE eliminated = "Wanda"
How many persons had immunity in the episode when Wanda was eliminated?
CREATE TABLE table_1272844_2 (immunity VARCHAR, eliminated VARCHAR)
SELECT thai_name FROM table_name_55 WHERE transcription = "wan phruehatsabodi"
WHich Thai name has a Transcription of wan phruehatsabodi?
CREATE TABLE table_name_55 (thai_name VARCHAR, transcription VARCHAR)
SELECT COUNT(week) FROM table_name_77 WHERE result = "l 31–28"
What is the Week number with a result of l 31–28?
CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR)
SELECT COUNT(overall) FROM table_name_47 WHERE name = "john cole"
What is John Cole's overall pick number?
CREATE TABLE table_name_47 (overall VARCHAR, name VARCHAR)
SELECT score FROM table_name_2 WHERE date = "july 20"
Which Score has a Date of july 20?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT date FROM table_name_55 WHERE tie_no = "29"
On what day was Tie #29 played?
CREATE TABLE table_name_55 (date VARCHAR, tie_no VARCHAR)
SELECT rider FROM table_26986076_7 WHERE tues_24_aug = "22' 09.44 93.840mph"
Who had the time of 22' 09.44 93.840mph on Tuesday August 24th?
CREATE TABLE table_26986076_7 (rider VARCHAR, tues_24_aug VARCHAR)
SELECT elector FROM table_name_86 WHERE cardinalatial_title = "priest of s. marco"
What is listed for the Elector that also has the Cardinalatial title of Priest of S. Marco?
CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR)
SELECT high_assists FROM table_27882867_9 WHERE team = "Indiana"
Who had the high assists when the opponent was Indiana?
CREATE TABLE table_27882867_9 (high_assists VARCHAR, team VARCHAR)
SELECT location FROM table_19215259_1 WHERE frequency = "92.3MHz"
Where is the frequency 92.3mhz?
CREATE TABLE table_19215259_1 (location VARCHAR, frequency VARCHAR)
SELECT liberal_ticket FROM table_name_21 WHERE free_libertarian_ticket = "jack a. martin"
The Liberal Ticket listed which candidate when Jack A. Martin was listed on the Free Libertarian Ticket?
CREATE TABLE table_name_21 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR)
SELECT COUNT(to_par) FROM table_name_47 WHERE place = "t1" AND score = 70 - 70 - 71 - 71 = 282
How much To par has a Place of t1, and a Score of 70-70-71-71=282?
CREATE TABLE table_name_47 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT nickname FROM table_262508_1 WHERE institution = "Concordia University, Nebraska"
What is the nickname of the institution from Concordia University, Nebraska?
CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR)
SELECT genre FROM table_1601792_3 WHERE station = "Hot FM"
What is the genre for the hot fm station?
CREATE TABLE table_1601792_3 (genre VARCHAR, station VARCHAR)
SELECT Name FROM people WHERE Age = 35 OR Age = 36
Show the names of people aged either 35 or 36.
CREATE TABLE people (Name VARCHAR, Age VARCHAR)
SELECT written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49
Who wrote the series number 49 with a season larger than 4?
CREATE TABLE table_name_27 (written_by VARCHAR, season_no VARCHAR, series_no VARCHAR)
SELECT kinka_pre_release FROM table_name_45 WHERE kinka_developer = "no"
What is the pre-release when the developer is no?
CREATE TABLE table_name_45 (kinka_pre_release VARCHAR, kinka_developer VARCHAR)
SELECT COUNT(e_score) FROM table_name_49 WHERE total = 19.7 AND a_score > 6
What is the total number of E scores when the total score was 19.7 and the A score was more than 6?
CREATE TABLE table_name_49 (e_score VARCHAR, total VARCHAR, a_score VARCHAR)
SELECT MIN(stavanger) FROM table_19439864_2 WHERE oslo = 48
When oslo is 48, what is stavanger?
CREATE TABLE table_19439864_2 (stavanger INTEGER, oslo VARCHAR)
SELECT result FROM table_name_66 WHERE competition = "1998 fifa world cup qualification" AND venue = "bangkok"
What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?
CREATE TABLE table_name_66 (result VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT COUNT(score) FROM table_name_87 WHERE player = "paul casey"
How many scores have paul casey as a player?
CREATE TABLE table_name_87 (score VARCHAR, player VARCHAR)
SELECT points FROM table_name_21 WHERE home = "detroit"
How many points were scored in the Detroit Home?
CREATE TABLE table_name_21 (points VARCHAR, home VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park"
What was the largest crowd at vfl park?
CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR)
SELECT score FROM table_name_29 WHERE date > 7 AND game = 82
What is Score, when Date is greater than 7, and when Game is "82"?
CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR, game VARCHAR)
SELECT country FROM table_name_77 WHERE series_premiere = "september 4, 2006"
Which country had a series that premiered on September 4, 2006?
CREATE TABLE table_name_77 (country VARCHAR, series_premiere VARCHAR)
SELECT AVG(kerry_number) FROM table_name_46 WHERE bush_number = 189 OFFSET 605
How many votes did Kerry get in the county that gave Bush 189,605 votes?
CREATE TABLE table_name_46 (kerry_number INTEGER, bush_number VARCHAR)
SELECT points FROM table_name_91 WHERE chassis = "lancia d50" AND year = 1954
What is the Point of Chassis of Lancia d50 in 1954
CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_72 WHERE races = 20 AND driver = "fernando alonso"
What is the number of points that driver fernando alonso has in the season he had 20 races?
CREATE TABLE table_name_72 (points INTEGER, races VARCHAR, driver VARCHAR)
SELECT SUM(seats_2001) FROM table_name_7 WHERE seats_2006 = 2 AND _percentage_2001 > 7.6
There are communities listed that a percentage larger than 7.6 in 2001, but none of them has 2 seats listed in 2006.
CREATE TABLE table_name_7 (seats_2001 INTEGER, seats_2006 VARCHAR, _percentage_2001 VARCHAR)
SELECT SUM(gold) FROM table_name_12 WHERE silver > 1 AND rank > 1 AND total > 4 AND bronze > 4
How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?
CREATE TABLE table_name_12 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township"
What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?
CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR)
SELECT COUNT(off_reb) FROM table_name_8 WHERE total_reb < 65 AND def_reb = 5 AND asst < 7
What is the total number of offensive rebounds for players with under 65 total rebounds, 5 defensive rebounds, and under 7 assists?
CREATE TABLE table_name_8 (off_reb VARCHAR, asst VARCHAR, total_reb VARCHAR, def_reb VARCHAR)
SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = "Bečej"
What is the number of 1991 populations named Bečej?
CREATE TABLE table_2562572_2 (population__1991_ VARCHAR, city___municipality VARCHAR)
SELECT COUNT(type) FROM table_2538117_2 WHERE founding_university = "San Diego State University"
how many types of organization were founded in san diego state university?
CREATE TABLE table_2538117_2 (type VARCHAR, founding_university VARCHAR)
SELECT title FROM table_name_81 WHERE director = "friz freleng" AND production_number = "443"
What is the name of the title that was directed by Friz Freleng and has a production number of 443?
CREATE TABLE table_name_81 (title VARCHAR, director VARCHAR, production_number VARCHAR)
SELECT nordbayern FROM table_name_92 WHERE year < 1932 AND württemberg = "union böckingen"
What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932?
CREATE TABLE table_name_92 (nordbayern VARCHAR, year VARCHAR, württemberg VARCHAR)
SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1
Find the name of the youngest organization.
CREATE TABLE organizations (organization_name VARCHAR, date_formed VARCHAR)
SELECT report FROM table_11056278_3 WHERE fastest_lap = "Paul Tracy"
What are all the reports where Paul Tracy had the fastest lap?
CREATE TABLE table_11056278_3 (report VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(position) FROM table_name_83 WHERE difference = "- 6" AND lost = 3 AND drawn > 4
What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws?
CREATE TABLE table_name_83 (position VARCHAR, drawn VARCHAR, difference VARCHAR, lost VARCHAR)
SELECT manufacturer FROM table_name_79 WHERE time_retired = "+0.122"
Who was the manufacter of the car with a time/retired of +0.122?
CREATE TABLE table_name_79 (manufacturer VARCHAR, time_retired VARCHAR)
SELECT tournament_venue FROM table_name_33 WHERE tournament_champion = "duke" AND record = "15–1"
WHich Tournament venue has a Tournament Champion of duke and a Record of 15–1?
CREATE TABLE table_name_33 (tournament_venue VARCHAR, tournament_champion VARCHAR, record VARCHAR)
SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza"
What race did Meo Constantini win at the circuit of monza ?
CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT MAX(rank) FROM table_name_69 WHERE year_opened > 2010 AND main_span_metres = "430"
What is the highest rank from the year greater than 2010 with 430 main span metres?
CREATE TABLE table_name_69 (rank INTEGER, year_opened VARCHAR, main_span_metres VARCHAR)
SELECT chassis FROM table_name_48 WHERE season = "1982"
What was the winning car's chassis for the 1982 season?
CREATE TABLE table_name_48 (chassis VARCHAR, season VARCHAR)
SELECT COUNT(highest) FROM table_11206916_1 WHERE team = "Elgin City"
What was the highest amount of people that attended the elgin city team?
CREATE TABLE table_11206916_1 (highest VARCHAR, team VARCHAR)
SELECT stage AS winner FROM table_27112708_2 WHERE team_classification = "LeTua Cycling Team" AND stage = 2
Who was the stage winner of the letua cycling team on stage 2?
CREATE TABLE table_27112708_2 (stage VARCHAR, team_classification VARCHAR)
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000
How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?
CREATE TABLE table_name_78 (allsvenskan_titles INTEGER, introduced VARCHAR, stars_symbolizes VARCHAR, club VARCHAR)
SELECT home_city FROM table_2522473_1 WHERE home_ground = "DnB Nor Arena"
What is the home city for the team whose home ground is dnb nor arena?
CREATE TABLE table_2522473_1 (home_city VARCHAR, home_ground VARCHAR)
SELECT SUM(gold) FROM table_name_88 WHERE nation = "guatemala" AND silver < 0
What is the total amount of Gold from guatemala and silver smaller than 0?
CREATE TABLE table_name_88 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT pennant FROM table_name_23 WHERE builder = "yarrow, scotstoun"
what is the pennant when the builder is yarrow, scotstoun?
CREATE TABLE table_name_23 (pennant VARCHAR, builder VARCHAR)
SELECT games FROM table_29743928_4 WHERE years = "2010"
When 2010 is the year what is the game?
CREATE TABLE table_29743928_4 (games VARCHAR, years VARCHAR)
SELECT 2 AS __f_ FROM table_name_34 WHERE verb = "khola"
What is the 2nd verb for Khola?
CREATE TABLE table_name_34 (verb VARCHAR)
SELECT SUM(gold) FROM table_name_36 WHERE rank = "6" AND total > 3
What is the sum of golds for ranks of 6 and totals over 3?
CREATE TABLE table_name_36 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_8 WHERE population_in_millions > 4.2 AND member_state = "czech republic"
What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic?
CREATE TABLE table_name_8 (area_km_2 VARCHAR, population_in_millions VARCHAR, member_state VARCHAR)
SELECT incumbent FROM table_1342331_5 WHERE candidates = "Ben Cravens (D) Unopposed"
who is the the incumbent with candidates being ben cravens (d) unopposed
CREATE TABLE table_1342331_5 (incumbent VARCHAR, candidates VARCHAR)
SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "25April1970"
On broadcast date is 25april1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT money___$__ FROM table_name_52 WHERE player = "sam snead"
What's the money that Sam Snead won?
CREATE TABLE table_name_52 (money___$__ VARCHAR, player VARCHAR)
SELECT area__km_2__ FROM table_261222_1 WHERE population__2010_ = 153085
What is the area (km2) for the place with a 2010 population of 153085?
CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, population__2010_ VARCHAR)
SELECT COUNT(*) FROM employee
Find the total number of employees.
CREATE TABLE employee (Id VARCHAR)
SELECT gdp__nominal_ FROM table_name_98 WHERE population = "5,550,239"
Which GDP (nominal) has a Population of 5,550,239?
CREATE TABLE table_name_98 (gdp__nominal_ VARCHAR, population VARCHAR)
SELECT time FROM table_name_24 WHERE heat > 3 AND lane < 5 AND rank = 5
What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT man_of_the_match FROM table_17120964_7 WHERE result = "Lost 2-4"
Who was the man of the match when they lost 2-4?
CREATE TABLE table_17120964_7 (man_of_the_match VARCHAR, result VARCHAR)
SELECT winnings FROM table_25146455_1 WHERE driver = "Jeff Burton"
How much did Jeff Burton win?
CREATE TABLE table_25146455_1 (winnings VARCHAR, driver VARCHAR)
SELECT team FROM table_name_98 WHERE score = "l 88–94 (ot)"
What team has a Score of l 88–94 (ot)?
CREATE TABLE table_name_98 (team VARCHAR, score VARCHAR)
SELECT title FROM table_name_5 WHERE riaa_sales_certification = "gold"
Which Title was awarded the gold RIAA Sales Certification?
CREATE TABLE table_name_5 (title VARCHAR, riaa_sales_certification VARCHAR)
SELECT score FROM table_name_27 WHERE location_attendance = "us airways center 18,422" AND game < 22
What is Score, when Location Attendance is "US Airways Center 18,422", and when Game is less than 22?
CREATE TABLE table_name_27 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT rank FROM table_name_55 WHERE player = "jason dunstall"
What is the rank of player Jason Dunstall?
CREATE TABLE table_name_55 (rank VARCHAR, player VARCHAR)
SELECT winning_score FROM table_name_73 WHERE tournament = "safeco classic"
what is the winning score when the tournament is safeco classic?
CREATE TABLE table_name_73 (winning_score VARCHAR, tournament VARCHAR)
SELECT fatalities FROM table_name_53 WHERE tail_number = "unknown" AND location = "kabul"
What is the Fatalities when the tail number was unknown and in Kabul>
CREATE TABLE table_name_53 (fatalities VARCHAR, tail_number VARCHAR, location VARCHAR)
SELECT Name FROM ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM mission)
List the name of ships that are not involved in any mission
CREATE TABLE mission (Name VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR)
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
find the id of tv channels that do not play any cartoon directed by Ben Jones.
CREATE TABLE TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR)
SELECT athlete FROM table_name_50 WHERE notes = "q" AND country = "egypt"
Who was the athlete from egypt with q in the notes?
CREATE TABLE table_name_50 (athlete VARCHAR, notes VARCHAR, country VARCHAR)