answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT Name FROM HOST WHERE NOT Host_ID IN (SELECT Host_ID FROM party_host)
List the names of hosts who did not serve as a host of any party in our record.
CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Name VARCHAR, Host_ID VARCHAR)
SELECT AVG(losses) FROM table_name_2 WHERE golden_rivers = "hay"
How many losses did the Golden rivers of hay have?
CREATE TABLE table_name_2 (losses INTEGER, golden_rivers VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "beohari"
What is Beohari's reserved for (SC/ST/None)?
CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT platform FROM table_name_55 WHERE current_version = "0.6.2"
What Platform has a Current Version 0.6.2?
CREATE TABLE table_name_55 (platform VARCHAR, current_version VARCHAR)
SELECT foreign_players__max_2_ FROM table_14015965_1 WHERE town = "Ekaterinburg"
Who are the foreign players representing Ekaterinburg?
CREATE TABLE table_14015965_1 (foreign_players__max_2_ VARCHAR, town VARCHAR)
SELECT COUNT(commander) FROM table_2596811_12 WHERE killed = "0 off 63 men"
What is the number of commanders that had 0 off 63 men killed?
CREATE TABLE table_2596811_12 (commander VARCHAR, killed VARCHAR)
SELECT venue FROM table_name_67 WHERE home_team = "melbourne"
what is the venue when the home team is melbourne?
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)
SELECT original_air_date FROM table_24648983_1 WHERE us_viewers__million_ = "8.61"
What date did the episode with 8.61 million U.S. viewers originally air?
CREATE TABLE table_24648983_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT pick__number FROM table_name_7 WHERE position = "wide receiver" AND college = "michigan state"
What was the pick number for the wide receiver drafted from Michigan State?
CREATE TABLE table_name_7 (pick__number VARCHAR, position VARCHAR, college VARCHAR)
SELECT film_name FROM table_name_50 WHERE year > 1972 AND language = "hindi" AND lyricist = "ravindra jain" AND music_director = "ravindra jain"
What 1972 Hindi film had Ravindra Jain directing the music?
CREATE TABLE table_name_50 (film_name VARCHAR, music_director VARCHAR, lyricist VARCHAR, year VARCHAR, language VARCHAR)
SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 24
What league is entering this round with 24 clubs remaining?
CREATE TABLE table_name_39 (leagues_entering_at_this_round VARCHAR, clubs_remaining VARCHAR)
SELECT COUNT(music_genre_style) FROM table_10416547_1 WHERE lyrics_theme_style = "Detective story"
What is the total number of music genre/style in which the lyrics are a detective story?
CREATE TABLE table_10416547_1 (music_genre_style VARCHAR, lyrics_theme_style VARCHAR)
SELECT date FROM table_29127804_3 WHERE location = "Bangalore , Karnataka, India"
what is the date of the game played in the bangalore , karnataka, india location
CREATE TABLE table_29127804_3 (date VARCHAR, location VARCHAR)
SELECT wind__m_s_ FROM table_1231316_6 WHERE fastest_time__s_ = "10.25" AND athlete = "Jeff Demps"
Name the wind m/s and fastest time of 10.25 and jeff demps
CREATE TABLE table_1231316_6 (wind__m_s_ VARCHAR, fastest_time__s_ VARCHAR, athlete VARCHAR)
SELECT label FROM table_name_16 WHERE release = "liebesgrüsse aus ost-berlin"
Which Label has a Release of liebesgrüsse aus ost-berlin?
CREATE TABLE table_name_16 (label VARCHAR, release VARCHAR)
SELECT MAX(lane) FROM table_name_16 WHERE name = "nisha millet"
What is the highest lane for nisha millet?
CREATE TABLE table_name_16 (lane INTEGER, name VARCHAR)
SELECT player FROM table_name_80 WHERE pick = "3" AND position = "defense" AND year < 2010
What is Player, when Pick is "3", when Position is "Defense", and when Year is less than 2010?
CREATE TABLE table_name_80 (player VARCHAR, year VARCHAR, pick VARCHAR, position VARCHAR)
SELECT COUNT(outcome) FROM table_18183850_12 WHERE opponent = "Aleksandra Wozniak"
How many outcomes were there when the opponent was Aleksandra Wozniak?
CREATE TABLE table_18183850_12 (outcome VARCHAR, opponent VARCHAR)
SELECT london_, _great_britain FROM table_23619492_3 WHERE world_record = "Championship record"
Name the london great britain for championship record
CREATE TABLE table_23619492_3 (london_ VARCHAR, _great_britain VARCHAR, world_record VARCHAR)
SELECT COUNT(_number_of_cosponsors) FROM table_name_15 WHERE date_introduced = "may 22, 2008"
How many cosponsors have a Date introduced of may 22, 2008?
CREATE TABLE table_name_15 (_number_of_cosponsors VARCHAR, date_introduced VARCHAR)
SELECT injunctive FROM table_name_99 WHERE simple_past = "गरुँला garũlā 'i will (probably) do'"
What is the injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'?
CREATE TABLE table_name_99 (injunctive VARCHAR, simple_past VARCHAR)
SELECT COUNT(no_in_series) FROM table_27437601_2 WHERE no_in_season = 12
List the series number for season 12.
CREATE TABLE table_27437601_2 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT round FROM table_name_31 WHERE fixtures = 2
What is the Round when the value for Fixtures is 2?
CREATE TABLE table_name_31 (round VARCHAR, fixtures VARCHAR)
SELECT away_team FROM table_name_75 WHERE venue = "western oval"
What away team played at Western Oval?
CREATE TABLE table_name_75 (away_team VARCHAR, venue VARCHAR)
SELECT high_points FROM table_23274514_5 WHERE score = "L 109–112 (OT)"
Name the high points for l 109–112 (ot)
CREATE TABLE table_23274514_5 (high_points VARCHAR, score VARCHAR)
SELECT AVG(floors) FROM table_name_9 WHERE pinnacle_height_ft__m_ = "1,136 (346)" AND pinn_rank > 4
Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4?
CREATE TABLE table_name_9 (floors INTEGER, pinnacle_height_ft__m_ VARCHAR, pinn_rank VARCHAR)
SELECT res FROM table_name_34 WHERE opponent = "ryan scheepe"
Which of the Res., has Ryan Scheepe as an opponent?
CREATE TABLE table_name_34 (res VARCHAR, opponent VARCHAR)
SELECT COUNT(DISTINCT Status) FROM city
How many different statuses do cities have?
CREATE TABLE city (Status VARCHAR)
SELECT position FROM table_1213511_6 WHERE player = "Jim Johnston"
What position does Jim Johnston play?
CREATE TABLE table_1213511_6 (position VARCHAR, player VARCHAR)
SELECT standings FROM table_name_28 WHERE champions = "eintracht braunschweig"
What is the Standings of Eintracht Braunschweig?
CREATE TABLE table_name_28 (standings VARCHAR, champions VARCHAR)
SELECT entrant FROM table_name_2 WHERE points = 0 AND year > 1961 AND chassis = "ferrari 156"
In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?
CREATE TABLE table_name_2 (entrant VARCHAR, chassis VARCHAR, points VARCHAR, year VARCHAR)
SELECT segment_a FROM table_15187735_8 WHERE series_ep = "8-08"
Name the segment a for 8-08
CREATE TABLE table_15187735_8 (segment_a VARCHAR, series_ep VARCHAR)
SELECT building FROM table_name_42 WHERE storeys = 26
Which building has 26 storeys?
CREATE TABLE table_name_42 (building VARCHAR, storeys VARCHAR)
SELECT MAX(grid) FROM table_name_70 WHERE time_retired = "gearbox" AND laps > 67
What is the highest grid when the race was retired due to the gearbox after 67 laps?
CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT date_of_vacancy FROM table_11190568_7 WHERE outgoing_manager = "Damien Fox"
When are the vacancy dates for outgoing manager Damien Fox?
CREATE TABLE table_11190568_7 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT home FROM table_name_79 WHERE season = "1949-50"
What was the home for season 1949-50?
CREATE TABLE table_name_79 (home VARCHAR, season VARCHAR)
SELECT MAX(scored) FROM table_name_59 WHERE result = "1–1" AND date = "4 march 2001"
What is the highest score with a Result of 1–1 on 4 march 2001?
CREATE TABLE table_name_59 (scored INTEGER, result VARCHAR, date VARCHAR)
SELECT location FROM table_name_65 WHERE round = 3 AND method = "decision"
Where was the fight that lasted 3 rounds and was won or loss by a decision?
CREATE TABLE table_name_65 (location VARCHAR, round VARCHAR, method VARCHAR)
SELECT ship_size FROM table_name_89 WHERE 2006 = "$46,000"
What ship size had a cargo value of $46,000 in 2006?
CREATE TABLE table_name_89 (ship_size VARCHAR)
SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 2011"
Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green?
CREATE TABLE table_name_96 (polling_firm VARCHAR, date_of_polling VARCHAR, green VARCHAR, link VARCHAR, liberal VARCHAR)
SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = "USA"
List all airline names and their abbreviations in "USA".
CREATE TABLE AIRLINES (Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR)
SELECT 2003 FROM table_name_99 WHERE 2013 = "1r" AND 2007 = "2r"
Which 2003 has a 2013 of 1r, and a 2007 of 2r?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT MAX(population) FROM table_1300525_1 WHERE simplified = "铅山县"
How many people live in 铅山县?
CREATE TABLE table_1300525_1 (population INTEGER, simplified VARCHAR)
SELECT pinyin FROM table_name_78 WHERE chinese_title = "直感一笔"
What is the pinyin for the Chinese title 直感一笔?
CREATE TABLE table_name_78 (pinyin VARCHAR, chinese_title VARCHAR)
SELECT name FROM table_name_2 WHERE ends = "30 june 2010" AND nat = "eng" AND since > 2007
Which Name has Ends of 30 june 2010, and a Nation of eng, and Since larger than 2007?
CREATE TABLE table_name_2 (name VARCHAR, since VARCHAR, ends VARCHAR, nat VARCHAR)
SELECT country FROM table_name_93 WHERE rank = 2
Which country has a rank of 2?
CREATE TABLE table_name_93 (country VARCHAR, rank VARCHAR)
SELECT original_nfl_team FROM table_name_31 WHERE pos = "cb"
What is the Original NFL team of the CB Player?
CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR)
SELECT weeks_3_4 FROM table_name_11 WHERE name = "zach"
what week had a player named zach
CREATE TABLE table_name_11 (weeks_3_4 VARCHAR, name VARCHAR)
SELECT MAX(2000) FROM table_name_78 WHERE 1950 = 3.5 AND 1970 > 3.4
What is the highest value for 2000, when the value for 1950 is 3.5, and when the value for 1970 is greater than 3.4?
CREATE TABLE table_name_78 (Id VARCHAR)
SELECT capacity FROM table_14003108_1 WHERE team = "Berwick Rangers"
what's the capacity with team being berwick rangers
CREATE TABLE table_14003108_1 (capacity VARCHAR, team VARCHAR)
SELECT MIN(round) FROM table_10361230_1 WHERE position = "Defensive Back"
Where does the defensive back position appear first?
CREATE TABLE table_10361230_1 (round INTEGER, position VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE venue = "lake oval"
Who was the away team at the game at Lake Oval?
CREATE TABLE table_name_57 (away_team VARCHAR, venue VARCHAR)
SELECT t20_matches FROM table_name_18 WHERE total = "23"
What T20 Match has a total of 23?
CREATE TABLE table_name_18 (t20_matches VARCHAR, total VARCHAR)
SELECT score FROM table_name_14 WHERE tie_no = "3"
What is the score of the game with a tie no of 3?
CREATE TABLE table_name_14 (score VARCHAR, tie_no VARCHAR)
SELECT music___director FROM table_name_69 WHERE co___singer = "hemachandra" AND film = "khaleja"
Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?
CREATE TABLE table_name_69 (music___director VARCHAR, co___singer VARCHAR, film VARCHAR)
SELECT east FROM table_name_83 WHERE west = "ev landsberg"
What is the east with ev landsberg as the west?
CREATE TABLE table_name_83 (east VARCHAR, west VARCHAR)
SELECT home_team AS score FROM table_name_22 WHERE home_team = "footscray"
What is the home team score for Footscray?
CREATE TABLE table_name_22 (home_team VARCHAR)
SELECT MAX(attendance) FROM table_name_45 WHERE date = "december 9, 1973" AND week < 13
What is the highest attendance for the game before week 13 on December 9, 1973?
CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MAX(population) FROM table_name_22 WHERE county = "deuel" AND number_of_households < 1 OFFSET 819
What is the highest population of Deuel county's 1,819 households?
CREATE TABLE table_name_22 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
SELECT directed_by FROM table_22181917_2 WHERE us_viewers__millions_ = "6.62"
Who directed the episode that was watched by 6.62 million U.S. viewers?
CREATE TABLE table_22181917_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT party FROM table_name_97 WHERE name = "marie-dominique simonet"
What party is Marie-Dominique Simonet part of?
CREATE TABLE table_name_97 (party VARCHAR, name VARCHAR)
SELECT 2002 FROM table_name_46 WHERE 1991 = "w"
What shows for 2002 when the 1991 is w?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT SUM(draft) FROM table_name_56 WHERE round > 9
What is the sum of Draft, when Round is greater than 9?
CREATE TABLE table_name_56 (draft INTEGER, round INTEGER)
SELECT location FROM table_name_21 WHERE _number___county = "68 randolph" AND enrollment = 316
What is the location with enrollment of 316 and county is 68 Randolph?
CREATE TABLE table_name_21 (location VARCHAR, _number___county VARCHAR, enrollment VARCHAR)
SELECT party FROM table_name_20 WHERE election > 2012 AND inhabitants > 241 OFFSET 310
What party has more than 241,310 inhabitants after 2012?
CREATE TABLE table_name_20 (party VARCHAR, election VARCHAR, inhabitants VARCHAR)
SELECT MIN(first_elected) FROM table_name_86 WHERE incumbent = "dave reichert"
When was the earliest incumbent dave reichert was first elected?
CREATE TABLE table_name_86 (first_elected INTEGER, incumbent VARCHAR)
SELECT AVG(no_of_villages) FROM table_name_86 WHERE name_of_janapada = "punia"
What is the average number of villages with a name of janapada of Punia?
CREATE TABLE table_name_86 (no_of_villages INTEGER, name_of_janapada VARCHAR)
SELECT series FROM table_name_47 WHERE released_by = "itv studios" AND release_date = "august 15, 2012"
WHAT SERIES WAS RELEASED BY ITV STUDIOS AND A RELEASE DATE OF AUGUST 15, 2012?
CREATE TABLE table_name_47 (series VARCHAR, released_by VARCHAR, release_date VARCHAR)
SELECT MAX(year_joined) FROM table_name_35 WHERE previous_conference = "mid-indiana" AND location = "converse"
What is the most current year with a previous conference of Mid-Indiana in Converse?
CREATE TABLE table_name_35 (year_joined INTEGER, previous_conference VARCHAR, location VARCHAR)
SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b"
What was marlboro brm's lowest points by using brm p160b?
CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
SELECT exited FROM table_name_53 WHERE finished = "12th"
What day did the person who finished in 12th place leave on?
CREATE TABLE table_name_53 (exited VARCHAR, finished VARCHAR)
SELECT attendance FROM table_name_88 WHERE week = 7
What was the attendance during week 7?
CREATE TABLE table_name_88 (attendance VARCHAR, week VARCHAR)
SELECT nominated_work FROM table_name_85 WHERE year < 2003
What was the Nominated Work earlier than 2003?
CREATE TABLE table_name_85 (nominated_work VARCHAR, year INTEGER)
SELECT SUM(heat) FROM table_name_78 WHERE nationality = "guinea-bissau" AND rank < 33
How many heats did Runners from Guinea-Bissau run, with rank higher than 33?
CREATE TABLE table_name_78 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd"
What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd?
CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)
SELECT date FROM table_name_67 WHERE winner = "new york jets" AND result = "30–28"
What date was the winner the new york jets and a Result of 30–28?
CREATE TABLE table_name_67 (date VARCHAR, winner VARCHAR, result VARCHAR)
SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = "Long Beach State University"
What is the number of faculty lines in campus "Long Beach State University" in 2002?
CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)
SELECT notes FROM table_name_50 WHERE year < 2010
What notes are for years earlier than 2010?
CREATE TABLE table_name_50 (notes VARCHAR, year INTEGER)
SELECT MIN(preliminaries) FROM table_name_94 WHERE evening_gown = 8.472
What is the lowest Preliminary score of a contestant that has an Evening Gown score of 8.472?
CREATE TABLE table_name_94 (preliminaries INTEGER, evening_gown VARCHAR)
SELECT country FROM table_name_70 WHERE launched = "april 3, 1990"
What is the Country with a Launched that is april 3, 1990?
CREATE TABLE table_name_70 (country VARCHAR, launched VARCHAR)
SELECT season FROM table_name_75 WHERE team = "harrisburg lunatics"
Which season was harrisburg lunatics in?
CREATE TABLE table_name_75 (season VARCHAR, team VARCHAR)
SELECT band FROM table_name_52 WHERE callsign = "4cca"
What band does 4cca use?
CREATE TABLE table_name_52 (band VARCHAR, callsign VARCHAR)
SELECT college_junior_club_team FROM table_1213511_5 WHERE nhl_team = "Chicago Black Hawks"
what college has nhl team chicago black hawks?
CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT SUM(drawn) FROM table_name_41 WHERE games < 7
Which Drawn has Games smaller than 7?
CREATE TABLE table_name_41 (drawn INTEGER, games INTEGER)
SELECT date FROM table_name_15 WHERE athlete = "yussuf alli"
What is Date, when Athlete is "Yussuf Alli"?
CREATE TABLE table_name_15 (date VARCHAR, athlete VARCHAR)
SELECT distance FROM table_name_71 WHERE year = 1997
What was the distance in 1997?
CREATE TABLE table_name_71 (distance VARCHAR, year VARCHAR)
SELECT date FROM table_name_40 WHERE round = "r3"
What is the date where the round is R3?
CREATE TABLE table_name_40 (date VARCHAR, round VARCHAR)
SELECT MAX(rank) FROM table_name_83 WHERE silver = 5 AND gold < 5 AND total < 7
What is the highest rank that has 5 silvers, less than 5 golds, and less than 7 total medals?
CREATE TABLE table_name_83 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(episode) FROM table_2102945_1 WHERE viewers__in_millions_ = "7.4"
When there are 7.4 million viewers how many episodes are there?
CREATE TABLE table_2102945_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1
List the writers who have written more than one book.
CREATE TABLE book (Writer VARCHAR)
SELECT hanzi FROM table_name_4 WHERE hanyu_pinyin = "píngfáng qū"
What is the Hanzi for píngfáng qū?
CREATE TABLE table_name_4 (hanzi VARCHAR, hanyu_pinyin VARCHAR)
SELECT school FROM table_name_78 WHERE previous_conference = "none (new school)" AND year_joined > 1960 AND location = "versailles"
Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles?
CREATE TABLE table_name_78 (school VARCHAR, location VARCHAR, previous_conference VARCHAR, year_joined VARCHAR)
SELECT MIN(began) FROM table_14903081_1 WHERE country = "Italy"
What year was the tournament first held in Italy?
CREATE TABLE table_14903081_1 (began INTEGER, country VARCHAR)
SELECT air_date FROM table_name_31 WHERE test_taker = "robert"
On which air date was Robert the test-taker?
CREATE TABLE table_name_31 (air_date VARCHAR, test_taker VARCHAR)
SELECT nominee FROM table_name_86 WHERE category = "best director"
Who is the nominee for best director?
CREATE TABLE table_name_86 (nominee VARCHAR, category VARCHAR)
SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = "Derrick Favors (8)"
In how many games were the high rebounds made by Derrick Favors (8)?
CREATE TABLE table_27700375_6 (game VARCHAR, high_rebounds VARCHAR)
SELECT distribution FROM table_1357052_6 WHERE grsecurity = "Optional" AND compile_time_buffer_checks = "Yes"
what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes
CREATE TABLE table_1357052_6 (distribution VARCHAR, grsecurity VARCHAR, compile_time_buffer_checks VARCHAR)
SELECT 2011 FROM table_name_64 WHERE 2010 = "olympic games"
Name the 2011 for 2010 of olympic games
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT AVG(points) FROM table_name_71 WHERE score = "4–1" AND record = "18–10–8–1" AND january > 2
Which Points have a Score of 4–1, and a Record of 18–10–8–1, and a January larger than 2?
CREATE TABLE table_name_71 (points INTEGER, january VARCHAR, score VARCHAR, record VARCHAR)
SELECT nation FROM table_name_67 WHERE date = "2004-07-22"
What is Nation, when Date is "2004-07-22"?
CREATE TABLE table_name_67 (nation VARCHAR, date VARCHAR)