question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the name of the club where drawn is 1 and lost is 10?
CREATE TABLE table_13564637_3 (club VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT club FROM table_13564637_3 WHERE drawn = "1" AND lost = "10"
Find the names of the trains that do not pass any station located in London.
CREATE TABLE station (station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR); CREATE TABLE train_station (train_id VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR)
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London")
What date final has 1989 as the year?
CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR)
SELECT date_final FROM table_name_90 WHERE year = "1989"
How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?
CREATE TABLE table_24291077_4 (sydney VARCHAR, melbourne VARCHAR)
SELECT sydney FROM table_24291077_4 WHERE melbourne = 334000
WHAT IS THE HOME TEAM, RESULT 99-112?
CREATE TABLE table_name_21 (home_team VARCHAR, result VARCHAR)
SELECT home_team FROM table_name_21 WHERE result = "99-112"
What is the Source with a Norris that is 7%?
CREATE TABLE table_name_45 (source VARCHAR, norris VARCHAR)
SELECT source FROM table_name_45 WHERE norris = "7%"
On what Date is Sheffield Wednesday the Home team?
CREATE TABLE table_name_61 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_61 WHERE home_team = "sheffield wednesday"
What is the torque of the xdrive20d model, which has a power of ps (kw; hp)@4000?
CREATE TABLE table_name_60 (torque VARCHAR, power VARCHAR, model VARCHAR)
SELECT torque FROM table_name_60 WHERE power = "ps (kw; hp)@4000" AND model = "xdrive20d"
Name the original title directed by luis buñuel
CREATE TABLE table_name_85 (original_title VARCHAR, director VARCHAR)
SELECT original_title FROM table_name_85 WHERE director = "luis buñuel"
While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast?
CREATE TABLE table_24353141_1 (original_1st_us_tour_cast VARCHAR, original_tokyo___seoul_tour_cast VARCHAR)
SELECT original_1st_us_tour_cast FROM table_24353141_1 WHERE original_tokyo___seoul_tour_cast = "Thomas Hettrick"
What is the total number of McCain vote totals where Obama percentages was 17.34%?
CREATE TABLE table_20684390_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
SELECT COUNT(mccain_number) FROM table_20684390_1 WHERE obama_percentage = "17.34%"
What's the location attendance of the @ portland team?
CREATE TABLE table_27734286_1 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_27734286_1 WHERE team = "@ Portland"
What's the report for the mexican grand prix?
CREATE TABLE table_name_92 (report VARCHAR, race VARCHAR)
SELECT report FROM table_name_92 WHERE race = "mexican grand prix"
What City/State did the Atlanta Hawks (retired) team play for?
CREATE TABLE table_name_24 (city_state VARCHAR, team VARCHAR)
SELECT city_state FROM table_name_24 WHERE team = "atlanta hawks (retired)"
What season has 2 as a rank?
CREATE TABLE table_name_18 (season VARCHAR, rank VARCHAR)
SELECT season FROM table_name_18 WHERE rank = "2"
Which award-winning film has a screening number of 50 films 50 televised?
CREATE TABLE table_18220102_1 (award_winning_film VARCHAR, number_of_screening VARCHAR)
SELECT award_winning_film FROM table_18220102_1 WHERE number_of_screening = "50 films 50 televised"
How many matches ended with more than 22 points?
CREATE TABLE table_name_83 (match INTEGER, points INTEGER)
SELECT SUM(match) FROM table_name_83 WHERE points > 22
What is Rovigo's Club?
CREATE TABLE table_name_91 (club VARCHAR, city VARCHAR)
SELECT club FROM table_name_91 WHERE city = "rovigo"
What is Team 1 when Team 2 is Jac Port-Gentil?
CREATE TABLE table_name_77 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_77 WHERE team_2 = "jac port-gentil"
What is Team (B), when S No is greater than 17?
CREATE TABLE table_name_10 (team__b_ VARCHAR, s_no INTEGER)
SELECT team__b_ FROM table_name_10 WHERE s_no > 17
What was the 2002 dominant religion when the largest ethnic group (2002) was slovaks and type is village?
CREATE TABLE table_2562572_43 (dominant_religion__2002_ VARCHAR, largest_ethnic_group__2002_ VARCHAR, type VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_43 WHERE largest_ethnic_group__2002_ = "Slovaks" AND type = "village"
Which Bleeding has a Condition of congenital afibrinogenemia?
CREATE TABLE table_name_75 (bleeding_time VARCHAR, condition VARCHAR)
SELECT bleeding_time FROM table_name_75 WHERE condition = "congenital afibrinogenemia"
NHL team player San Jose Sharks is United States nationally.
CREATE TABLE table_1013129_10 (player VARCHAR, nhl_team VARCHAR, nationality VARCHAR)
SELECT player FROM table_1013129_10 WHERE nhl_team = "San Jose Sharks" AND nationality = "United States"
What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?
CREATE TABLE table_name_85 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city"
Which winning driver of the Roussillon Grand Prix had an Alfa Romeo?
CREATE TABLE table_name_53 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_53 WHERE winning_constructor = "alfa romeo" AND name = "roussillon grand prix"
What was the quantity preserved for quantity made of 15?
CREATE TABLE table_name_17 (quantity_preserved VARCHAR, quantity_made VARCHAR)
SELECT quantity_preserved FROM table_name_17 WHERE quantity_made = "15"
Name the most poles for 64 points
CREATE TABLE table_25794532_1 (poles INTEGER, points VARCHAR)
SELECT MAX(poles) FROM table_25794532_1 WHERE points = "64"
What is total number of years that has genre of first-person shooter?
CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR)
SELECT SUM(year) FROM table_name_50 WHERE genre = "first-person shooter"
What team drafted steve scifres?
CREATE TABLE table_13758243_1 (nfl_team VARCHAR, player VARCHAR)
SELECT nfl_team FROM table_13758243_1 WHERE player = "Steve Scifres"
how many formats of books authored by day, martin martin day
CREATE TABLE table_20174050_24 (format VARCHAR, author VARCHAR)
SELECT COUNT(format) FROM table_20174050_24 WHERE author = "Day, Martin Martin Day"
What is the production code for episode 26 in the series?
CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_1876825_3 WHERE no_in_series = 26
When was the game played at Moorabbin Oval?
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_59 WHERE venue = "moorabbin oval"
What candidates were in the election when james patrick sutton was incumbent?
CREATE TABLE table_1342013_41 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342013_41 WHERE incumbent = "James Patrick Sutton"
What was the method for opponent of Ivan Serati?
CREATE TABLE table_name_94 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_94 WHERE opponent = "ivan serati"
How many captains with younger than 50 are in each rank?
CREATE TABLE captain (rank VARCHAR, age INTEGER)
SELECT COUNT(*), rank FROM captain WHERE age < 50 GROUP BY rank
When was there a game at Arden Street Oval?
CREATE TABLE table_name_21 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_21 WHERE venue = "arden street oval"
What was the date in which Chic won at CHS?
CREATE TABLE table_name_50 (date VARCHAR, beat_by VARCHAR, location VARCHAR)
SELECT date FROM table_name_50 WHERE beat_by = "won" AND location = "chs"
On what date was the record 2–1?
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_53 WHERE record = "2–1"
Which 2008-12 has a 2007 of A, and a Tournament of us open?
CREATE TABLE table_name_80 (tournament VARCHAR)
SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = "a" AND tournament = "us open"
who is the the player where pick # is 64
CREATE TABLE table_14655985_1 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_14655985_1 WHERE pick__number = 64
Name the total number of player for 51 points
CREATE TABLE table_22824319_3 (player VARCHAR, points VARCHAR)
SELECT COUNT(player) FROM table_22824319_3 WHERE points = 51
Tell me the launched for august 31, 1964
CREATE TABLE table_name_23 (launched VARCHAR, commissioned VARCHAR)
SELECT launched FROM table_name_23 WHERE commissioned = "august 31, 1964"
how many runners-up with nation being india
CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR)
SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India"
What is the record for January 19?
CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_37 WHERE date = "january 19"
What is the Time of Driver Jan Heylen (r)?
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_44 WHERE driver = "jan heylen (r)"
What is the mean amount of staying councilors with an election result amounting to less than 10 with the Green party, and a new council bigger than 0?
CREATE TABLE table_name_76 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)
SELECT AVG(staying_councillors) FROM table_name_76 WHERE election_result < 10 AND party = "green" AND new_council > 0
What is 2009, when 2011 is "Q2"?
CREATE TABLE table_name_62 (Id VARCHAR)
SELECT 2009 FROM table_name_62 WHERE 2011 = "q2"
Which Returned On has a Year of 2011?
CREATE TABLE table_name_87 (returned_on VARCHAR, year VARCHAR)
SELECT returned_on FROM table_name_87 WHERE year = 2011
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 MAX(2000) FROM table_name_78 WHERE 1950 = 3.5 AND 1970 > 3.4
What distance did the winning horse run in the Summer Doldrums.
CREATE TABLE table_name_7 (distance VARCHAR, winning_horse VARCHAR)
SELECT distance FROM table_name_7 WHERE winning_horse = "summer doldrums"
What is the COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket?
CREATE TABLE table_name_69 (cospar_id VARCHAR, carrier_rocket VARCHAR, satellite VARCHAR)
SELECT cospar_id FROM table_name_69 WHERE carrier_rocket = "scout" AND satellite = "ariel 4"
When was the earliest with 4 seasons?
CREATE TABLE table_name_81 (year_s_ INTEGER, season VARCHAR)
SELECT MIN(year_s_) FROM table_name_81 WHERE season = 4
Name the simplified characters for wade giles is ch'ing-yüan … i-ma
CREATE TABLE table_16162581_1 (simplified_characters VARCHAR, wade_giles VARCHAR)
SELECT simplified_characters FROM table_16162581_1 WHERE wade_giles = "ch'ing-yüan … i-ma"
On what date did Limerick play in the All-Ireland Final game?
CREATE TABLE table_name_38 (date VARCHAR, opposition VARCHAR, game VARCHAR)
SELECT date FROM table_name_38 WHERE opposition = "limerick" AND game = "all-ireland final"
How many gold medals did the team that won a total of 10 medals and 3 silver medals win?
CREATE TABLE table_name_44 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT gold FROM table_name_44 WHERE silver = 3 AND total = 10
What are the market city/market(s) for Rapid City Alternative format?
CREATE TABLE table_134987_3 (target_city__market VARCHAR, city_of_license VARCHAR, format VARCHAR)
SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative"
What is the average where the swimsuit is larger than 9.437?
CREATE TABLE table_name_24 (average INTEGER, swimsuit INTEGER)
SELECT MAX(average) FROM table_name_24 WHERE swimsuit > 9.437
What is the identifying number for a description of Stanier (Period III) full brake?
CREATE TABLE table_name_57 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
SELECT number_ & _name FROM table_name_57 WHERE description = "stanier (period iii) full brake"
In which city is the ICAO gvma?
CREATE TABLE table_name_36 (city___town VARCHAR, icao VARCHAR)
SELECT city___town FROM table_name_36 WHERE icao = "gvma"
WHAT OPPONENT HAD A KICKOFF OF 2007-03-06, 20:45?
CREATE TABLE table_name_2 (opponents VARCHAR, kick_off VARCHAR)
SELECT opponents FROM table_name_2 WHERE kick_off = "2007-03-06, 20:45"
What was the overall record for the Pandas in the 2003-04 season?
CREATE TABLE table_27069503_2 (overall VARCHAR, season VARCHAR)
SELECT overall FROM table_27069503_2 WHERE season = "2003-04"
Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?
CREATE TABLE table_name_25 (pick__number INTEGER, overall VARCHAR, round VARCHAR)
SELECT MAX(pick__number) FROM table_name_25 WHERE overall = 184 AND round > 6
Name the position for british columbia
CREATE TABLE table_28059992_2 (position VARCHAR, college VARCHAR)
SELECT position FROM table_28059992_2 WHERE college = "British Columbia"
How many companies are there?
CREATE TABLE Companies (Id VARCHAR)
SELECT COUNT(*) FROM Companies
the sum of 2009 with rank of 5 and 2010 less than 76.5 is what?
CREATE TABLE table_name_70 (rank VARCHAR)
SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.5
What was the Sat 21 Aug time for the driver whose Thurs 26 Aug time was 20' 56.01 108.143mph?
CREATE TABLE table_26986076_6 (sat_21_aug VARCHAR, thurs_26_aug VARCHAR)
SELECT sat_21_aug FROM table_26986076_6 WHERE thurs_26_aug = "20' 56.01 108.143mph"
What is listed under L when the stolen ends is 1?
CREATE TABLE table_29565858_2 (l VARCHAR, stolen_ends VARCHAR)
SELECT l FROM table_29565858_2 WHERE stolen_ends = 1
Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?
CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR)
SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships"
What's the number of seasons i which USC Bassam lost to eventual runner-up?
CREATE TABLE table_12444503_1 (season VARCHAR, lost_to_eventual_runner_up VARCHAR)
SELECT COUNT(season) FROM table_12444503_1 WHERE lost_to_eventual_runner_up = "USC Bassam"
What civil paris appears when Ballynamona is the townland with 126 acres?
CREATE TABLE table_30120556_1 (civil_parish VARCHAR, townland VARCHAR, area__acres__ VARCHAR)
SELECT civil_parish FROM table_30120556_1 WHERE townland = "Ballynamona" AND area__acres__ = 126
What batting partners played in sydney?
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)
SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney"
Name the total number of ground for essendon
CREATE TABLE table_16388439_1 (ground VARCHAR, home_team VARCHAR)
SELECT COUNT(ground) FROM table_16388439_1 WHERE home_team = "Essendon"
Which venue has a Away team of hawthorn?
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_76 WHERE away_team = "hawthorn"
Away result of 1-2 has what season?
CREATE TABLE table_name_95 (season VARCHAR, away_result VARCHAR)
SELECT season FROM table_name_95 WHERE away_result = "1-2"
Name the result for wesley moodie
CREATE TABLE table_22853654_9 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_22853654_9 WHERE opponent = "Wesley Moodie"
What was the score of the game on September 14, 2008?
CREATE TABLE table_name_88 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_88 WHERE date = "september 14, 2008"
What was the manner of depature of the manager with a date of appointment on 23 November 2008?
CREATE TABLE table_name_9 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT manner_of_departure FROM table_name_9 WHERE date_of_appointment = "23 november 2008"
What school is the player who has a hometown of Chicago, IL from?
CREATE TABLE table_name_45 (school VARCHAR, hometown VARCHAR)
SELECT school FROM table_name_45 WHERE hometown = "chicago, il"
What the summary of episode 15?
CREATE TABLE table_2140071_7 (episode VARCHAR)
SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 15
What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?
CREATE TABLE table_name_12 (release_date VARCHAR, company VARCHAR, writer VARCHAR)
SELECT release_date FROM table_name_12 WHERE company = "bbc audio" AND writer = "ford, phil phil ford"
Name the averae top 25 with events less than 0
CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER)
SELECT AVG(top_25) FROM table_name_31 WHERE events < 0
What is the length of the First Union six hours at the Glen?
CREATE TABLE table_name_95 (length VARCHAR, race VARCHAR)
SELECT length FROM table_name_95 WHERE race = "first union six hours at the glen"
If the call sign is DXYR, what is the branding?
CREATE TABLE table_19874169_3 (branding VARCHAR, callsign VARCHAR)
SELECT branding FROM table_19874169_3 WHERE callsign = "DXYR"
What were the remarks for Dutch Antilles Express?
CREATE TABLE table_name_74 (remarks VARCHAR, airline VARCHAR)
SELECT remarks FROM table_name_74 WHERE airline = "dutch antilles express"
Name the visitor for home of dallas
CREATE TABLE table_name_37 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_37 WHERE home = "dallas"
How many times was leather introduced before pedal steel guitars in episode 111?
CREATE TABLE table_15187735_9 (segment_c VARCHAR, segment_d VARCHAR)
SELECT COUNT(segment_c) FROM table_15187735_9 WHERE segment_d = "Pedal Steel Guitars"
What number corresponds to the quantity of 24?
CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR)
SELECT number_s_ FROM table_name_50 WHERE quantity = "24"
Which Date has a Visitor of boston?
CREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_76 WHERE visitor = "boston"
How did the game end against the New Orleans Saints?
CREATE TABLE table_16729071_1 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_16729071_1 WHERE opponent = "New Orleans Saints"
What bowl game was played on Dec. 26, 2007?
CREATE TABLE table_name_79 (bowl_game VARCHAR, date VARCHAR)
SELECT bowl_game FROM table_name_79 WHERE date = "dec. 26, 2007"
What edition of congress for member-elect richard p. giles?
CREATE TABLE table_14158567_1 (congress VARCHAR, member_elect VARCHAR)
SELECT congress FROM table_14158567_1 WHERE member_elect = "Richard P. Giles"
How many First Pref votes have Seats of 1?
CREATE TABLE table_name_45 (first_pref_votes VARCHAR, seats VARCHAR)
SELECT COUNT(first_pref_votes) FROM table_name_45 WHERE seats = "1"
What is the Home team of Tie no 11?
CREATE TABLE table_name_19 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_19 WHERE tie_no = "11"
What was the foursome's record in 2002?
CREATE TABLE table_1628607_5 (foursomes_w_l_h VARCHAR, year VARCHAR)
SELECT foursomes_w_l_h FROM table_1628607_5 WHERE year = "2002"
What is the address of the restaurant Subway?
CREATE TABLE Restaurant (Address VARCHAR, ResName VARCHAR)
SELECT Address FROM Restaurant WHERE ResName = "Subway"
List the name and residence for players whose occupation is not "Researcher".
CREATE TABLE player (Player_name VARCHAR, residence VARCHAR, Occupation VARCHAR)
SELECT Player_name, residence FROM player WHERE Occupation <> "Researcher"
List the total points of gymnasts in descending order of floor exercise points.
CREATE TABLE gymnast (Total_Points VARCHAR, Floor_Exercise_Points VARCHAR)
SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
What is the smallest decile with an Area of otumoetai?
CREATE TABLE table_name_60 (decile INTEGER, area VARCHAR)
SELECT MIN(decile) FROM table_name_60 WHERE area = "otumoetai"
What was the team's position in table when Danny OST was the outgoing manager?
CREATE TABLE table_27374004_4 (position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT position_in_table FROM table_27374004_4 WHERE outgoing_manager = "Danny Ost"
Who is the manager whose rank is 16?
CREATE TABLE table_1218784_1 (manager VARCHAR, rank VARCHAR)
SELECT manager FROM table_1218784_1 WHERE rank = 16