question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the team for school of milford
CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_44 WHERE school = "milford"
Find the id of routes whose source and destination airports are in the United States.
CREATE TABLE routes (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE airports (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)
SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
On what dates were episodes written by Robert Carlock aired?
CREATE TABLE table_14889988_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_14889988_1 WHERE written_by = "Robert Carlock"
What was the surface for the game that had a partner of vania king?
CREATE TABLE table_name_85 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_85 WHERE partner = "vania king"
Where is Terre Haute North located?
CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR)
SELECT location FROM table_name_35 WHERE school = "terre haute north"
What team does Jimmy Frazelle play on?
CREATE TABLE table_name_41 (mls_team VARCHAR, player VARCHAR)
SELECT mls_team FROM table_name_41 WHERE player = "jimmy frazelle"
What is raymond floyd's lowest $?
CREATE TABLE table_name_77 (money___ INTEGER, player VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_77 WHERE player = "raymond floyd"
What is the date of tie no. 34?
CREATE TABLE table_name_37 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_37 WHERE tie_no = "34"
When theora is 2.3, how much is the h.264?
CREATE TABLE table_26099252_1 (h264 VARCHAR, theora VARCHAR)
SELECT h264 FROM table_26099252_1 WHERE theora = "2.3"
Which state is Tehachapi Pass Wind Farm located in?
CREATE TABLE table_name_72 (state_province VARCHAR, wind_farm VARCHAR)
SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm"
What are the first names and date of birth of professors teaching course ACCT-211?
CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_DOB VARCHAR, EMP_NUM VARCHAR)
SELECT DISTINCT T1.EMP_FNAME, T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211"
On what date was there an International Friendly competition?
CREATE TABLE table_name_2 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_2 WHERE competition = "international friendly"
Who is every main presenter for the year 2011?
CREATE TABLE table_24224647_2 (main_presenter VARCHAR, year_premiered VARCHAR)
SELECT main_presenter FROM table_24224647_2 WHERE year_premiered = 2011
What is the average event for the Open Championship Tournament, and a Top-5 less than 1?
CREATE TABLE table_name_18 (events INTEGER, tournament VARCHAR, top_5 VARCHAR)
SELECT AVG(events) FROM table_name_18 WHERE tournament = "the open championship" AND top_5 < 1
What is the lowest value for Draws, when South West DFL is "Tyrendarra", and when Byes is greater than 0?
CREATE TABLE table_name_68 (draws INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
SELECT MIN(draws) FROM table_name_68 WHERE south_west_dfl = "tyrendarra" AND byes > 0
What was the time of the driver on grid 3?
CREATE TABLE table_name_15 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_15 WHERE grid = 3
What result has a goal of 5?
CREATE TABLE table_name_80 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_80 WHERE goal = 5
Who had notes of Prizzi's Honor?
CREATE TABLE table_name_72 (director VARCHAR, notes VARCHAR)
SELECT director FROM table_name_72 WHERE notes = "prizzi's honor"
How many churches opened before 1850 are there?
CREATE TABLE Church (Open_Date INTEGER)
SELECT COUNT(*) FROM Church WHERE Open_Date < 1850
In 2004, what is the Dance?
CREATE TABLE table_name_55 (dance VARCHAR, year VARCHAR)
SELECT dance FROM table_name_55 WHERE year = 2004
What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?
CREATE TABLE table_name_53 (yards INTEGER, attempts VARCHAR, average VARCHAR, long VARCHAR)
SELECT AVG(yards) FROM table_name_53 WHERE average < 4 AND long = 12 AND attempts < 29
Which home team plays at victoria park?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_40 WHERE venue = "victoria park"
What is the low lap total for henri pescarolo with a grad larger than 6?
CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT MIN(laps) FROM table_name_20 WHERE grid > 6 AND driver = "henri pescarolo"
What is the model number for the GPU and 320 mhz?
CREATE TABLE table_name_98 (model_number VARCHAR, gpu_frequency VARCHAR)
SELECT model_number FROM table_name_98 WHERE gpu_frequency = "320 mhz"
Who was drafted by the Kansas City Chiefs?
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR)
SELECT player FROM table_2508633_3 WHERE nfl_team = "Kansas City Chiefs"
Which Grid has a Driver of cristiano da matta, and Points smaller than 33?
CREATE TABLE table_name_98 (grid INTEGER, driver VARCHAR, points VARCHAR)
SELECT SUM(grid) FROM table_name_98 WHERE driver = "cristiano da matta" AND points < 33
In what location were the fatalities unknown for the Ju-52 aircraft?
CREATE TABLE table_name_12 (location VARCHAR, fatalities VARCHAR, aircraft VARCHAR)
SELECT location FROM table_name_12 WHERE fatalities = "unknown" AND aircraft = "ju-52"
What are all the states (class) when the successor was Joseph Anderson ( DR )?
CREATE TABLE table_224839_3 (state__class_ VARCHAR, successor VARCHAR)
SELECT state__class_ FROM table_224839_3 WHERE successor = "Joseph Anderson ( DR )"
What is Film title used in nomination, when Year (Ceremony) is 1968 (41st)?
CREATE TABLE table_name_47 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_47 WHERE year__ceremony_ = "1968 (41st)"
What is the lowest number of points of the team with 2 losses and a lower than 1 position?
CREATE TABLE table_name_73 (points INTEGER, losses VARCHAR, position VARCHAR)
SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1
What is the minimum number for the half marathon (womens)?
CREATE TABLE table_11391954_3 (Half INTEGER)
SELECT MIN(Half) AS marathon__womens_ FROM table_11391954_3
What Time/Retired has a Laps of 86 and the Team of HVM Racing?
CREATE TABLE table_name_73 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)
SELECT time_retired FROM table_name_73 WHERE laps = 86 AND team = "hvm racing"
What is the byes for Woorineen when losses are more than 13?
CREATE TABLE table_name_27 (byes INTEGER, central_murray VARCHAR, losses VARCHAR)
SELECT SUM(byes) FROM table_name_27 WHERE central_murray = "woorineen" AND losses > 13
How many people does the KRF Party preside over?
CREATE TABLE table_name_51 (innhabitants INTEGER, party VARCHAR)
SELECT AVG(innhabitants) FROM table_name_51 WHERE party = "krf"
What s the format for the catalog nebcd058?
CREATE TABLE table_name_3 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_3 WHERE catalog = "nebcd058"
How did he win with a time of 0:38?
CREATE TABLE table_name_41 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_41 WHERE time = "0:38"
What is the figure for La Canada Flintridge when Pasadena is 34?
CREATE TABLE table_name_65 (la_cañada_flintridge VARCHAR, pasadena VARCHAR)
SELECT la_cañada_flintridge FROM table_name_65 WHERE pasadena = "34"
What is the record of the game on March 18?
CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_20 WHERE date = "march 18"
What district is incumbent elmer j. holland from?
CREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341865_40 WHERE incumbent = "Elmer J. Holland"
What is the score points when the rank points is 3?
CREATE TABLE table_name_53 (score_points VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_53 WHERE rank_points = "3"
What's the total number of episodes with production code 2T6705?
CREATE TABLE table_12159115_2 (title VARCHAR, production_code VARCHAR)
SELECT COUNT(title) FROM table_12159115_2 WHERE production_code = "2T6705"
What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?
CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR, date VARCHAR, championship VARCHAR)
SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = "melbourne indoor, australia" AND score = "2–6, 6–2, 6–2"
What is the combined of the 14 Super G?
CREATE TABLE table_name_60 (combined VARCHAR, super_g VARCHAR)
SELECT combined FROM table_name_60 WHERE super_g = 14
What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?
CREATE TABLE table_name_71 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_71 WHERE time_retired = "+1:03.741" AND laps > 44
What year did Japan form a label?
CREATE TABLE table_name_79 (year VARCHAR, region VARCHAR)
SELECT year FROM table_name_79 WHERE region = "japan"
Who was the Producer/Director of Fear Beneath?
CREATE TABLE table_name_40 (producer_director VARCHAR, film VARCHAR)
SELECT producer_director FROM table_name_40 WHERE film = "fear beneath"
When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?
CREATE TABLE table_name_77 (year INTEGER, rank VARCHAR, floors VARCHAR, height_ft__m_ VARCHAR)
SELECT AVG(year) FROM table_name_77 WHERE floors < 23 AND height_ft__m_ = "292 (89)" AND rank < 14
What team does Carlsberg sponsor?
CREATE TABLE table_name_52 (team VARCHAR, shirt_sponsor VARCHAR)
SELECT team FROM table_name_52 WHERE shirt_sponsor = "carlsberg"
what is the previous conference when the year joined is 1932 and the mascot is tigers?
CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT previous_conference FROM table_name_46 WHERE year_joined = "1932" AND mascot = "tigers"
List the rider for the doncaster handicap compeition.
CREATE TABLE table_30098144_2 (jockey VARCHAR, race VARCHAR)
SELECT jockey FROM table_30098144_2 WHERE race = "Doncaster Handicap"
Which party had a person who has been in the seat since 1914?
CREATE TABLE table_1342013_10 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_1342013_10 WHERE first_elected = 1914
What is Player, when Pick is "26"?
CREATE TABLE table_name_48 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_48 WHERE pick = 26
If the time/retired is +1 lap, what is the amount of maximum laps?
CREATE TABLE table_17693171_1 (laps INTEGER, time_retired VARCHAR)
SELECT MAX(laps) FROM table_17693171_1 WHERE time_retired = "+1 lap"
What is the Competition with a Score of 1–0, and a Result with 3–0?
CREATE TABLE table_name_17 (competition VARCHAR, score VARCHAR, result VARCHAR)
SELECT competition FROM table_name_17 WHERE score = "1–0" AND result = "3–0"
Name the naming for fluent and poor comprehension
CREATE TABLE table_2088_1 (naming VARCHAR, fluency VARCHAR, auditory_comprehension VARCHAR)
SELECT naming FROM table_2088_1 WHERE fluency = "fluent" AND auditory_comprehension = "poor"
What were the number of completions for James Vanderberg on Iowa when his yards were 45?
CREATE TABLE table_name_72 (completions VARCHAR, team VARCHAR, yards VARCHAR)
SELECT completions FROM table_name_72 WHERE team = "iowa" AND yards = "45"
What is the record after the April 6 game?
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_14 WHERE date = "april 6"
Which Altitude (mslm) is the highest one that has a City of legnano, and a Population larger than 59492?
CREATE TABLE table_name_47 (altitude__mslm_ INTEGER, city VARCHAR, population VARCHAR)
SELECT MAX(altitude__mslm_) FROM table_name_47 WHERE city = "legnano" AND population > 59492
For the race called by Marshall Cassidy, who was the host?
CREATE TABLE table_22583466_5 (s_host VARCHAR, race_caller VARCHAR)
SELECT s_host FROM table_22583466_5 WHERE race_caller = "Marshall Cassidy"
What's the least amount of wins for Germany in the 1999 season having 0 points?
CREATE TABLE table_name_30 (wins INTEGER, seasons VARCHAR, points VARCHAR, country VARCHAR)
SELECT MIN(wins) FROM table_name_30 WHERE points = "0" AND country = "germany" AND seasons = "1999"
Name the player with tries of 02 2 and points of 008 8
CREATE TABLE table_name_83 (player VARCHAR, tries VARCHAR, points VARCHAR)
SELECT player FROM table_name_83 WHERE tries = "02 2" AND points = "008 8"
what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd?
CREATE TABLE table_name_51 (record VARCHAR, finish VARCHAR, year VARCHAR, manager VARCHAR)
SELECT record FROM table_name_51 WHERE year > 1992 AND manager = "tom kotchman" AND finish = "2nd"
Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?
CREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR)
SELECT performer_4 FROM table_name_76 WHERE performer_1 = "greg proops" AND date = "25 august 1995"
What is CFL Team, when Pick # is greater than 34, and when College is Boise State?
CREATE TABLE table_name_86 (cfl_team VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT cfl_team FROM table_name_86 WHERE pick__number > 34 AND college = "boise state"
What is Television Service, when Content is Presentazione?
CREATE TABLE table_name_90 (television_service VARCHAR, content VARCHAR)
SELECT television_service FROM table_name_90 WHERE content = "presentazione"
What is the status of the independent station KPFB?
CREATE TABLE table_name_60 (status VARCHAR, network_affiliation VARCHAR, station VARCHAR)
SELECT status FROM table_name_60 WHERE network_affiliation = "independent" AND station = "kpfb"
Tell me the 2008 of 2001 olympic games
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT 2008 FROM table_name_69 WHERE 2011 = "olympic games"
What was the time for the event in which Tony Mendoza was the opponent?
CREATE TABLE table_name_22 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_22 WHERE opponent = "tony mendoza"
What is the format in the region of Europe with an XLCD369 and a label of XL?
CREATE TABLE table_name_36 (format VARCHAR, region VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_36 WHERE label = "xl" AND catalog = "xlcd369" AND region = "europe"
What is the highest games Played where the Place is 10 and Points are less than 17?
CREATE TABLE table_name_56 (played INTEGER, place VARCHAR, points VARCHAR)
SELECT MAX(played) FROM table_name_56 WHERE place = 10 AND points < 17
Who played over 46 games and allowed less than 195 goals?
CREATE TABLE table_name_50 (player VARCHAR, games_played VARCHAR, goals_allowed VARCHAR)
SELECT player FROM table_name_50 WHERE games_played > 46 AND goals_allowed < 195
If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10?
CREATE TABLE table_18047346_4 (_percentage_chg_2009_10 VARCHAR, passengers VARCHAR)
SELECT _percentage_chg_2009_10 FROM table_18047346_4 WHERE passengers = "15,505,566"
Find the names of artists that do not have any albums.
CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)
SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId
What nationality is Rod Langway?
CREATE TABLE table_name_79 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_79 WHERE player = "rod langway"
What is the all games for Maryland?
CREATE TABLE table_16372244_1 (all_games VARCHAR, team VARCHAR)
SELECT all_games FROM table_16372244_1 WHERE team = "Maryland"
What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?
CREATE TABLE table_name_15 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_15 WHERE bronze = 1 AND total = 1 AND rank = "17" AND gold < 0
What School/Club Team is Player Aaron Williams from?
CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams"
What is the description of document status code 'working'?
CREATE TABLE Ref_Document_Status (document_status_description VARCHAR, document_status_code VARCHAR)
SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = "working"
What year did Ken Bouchard finish in 78th place?
CREATE TABLE table_2333416_2 (year VARCHAR, position VARCHAR)
SELECT year FROM table_2333416_2 WHERE position = "78th"
What's the approximate number of HUs when there are more than 2 digits, and 6 levels?
CREATE TABLE table_name_66 (number_of_hus__approximate_ VARCHAR, digits VARCHAR, level VARCHAR)
SELECT COUNT(number_of_hus__approximate_) FROM table_name_66 WHERE digits > 2 AND level = 6
What is the Money ($) when the Place is t6, and Player is chris dimarco?
CREATE TABLE table_name_40 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_40 WHERE place = "t6" AND player = "chris dimarco"
How many shared titles does the club whose last final was 2012 have?
CREATE TABLE table_2869837_1 (Shared VARCHAR, last_final VARCHAR)
SELECT Shared AS titles FROM table_2869837_1 WHERE last_final = 2012
Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz
CREATE TABLE table_19598014_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR)
SELECT lmp1_winning_team FROM table_19598014_2 WHERE rnd = 2 AND lmp2_winning_team = "Adrian Fernández Luis Díaz"
What is the average number of entries driver Mark Webber, who has more than 1014.5 points, has?
CREATE TABLE table_name_27 (entries INTEGER, driver VARCHAR, points VARCHAR)
SELECT AVG(entries) FROM table_name_27 WHERE driver = "mark webber" AND points > 1014.5
What city was located in the Netherlands?
CREATE TABLE table_name_50 (city VARCHAR, location VARCHAR)
SELECT city FROM table_name_50 WHERE location = "netherlands"
Where was the former private member that was founded in 1891 and left in 1975?
CREATE TABLE table_name_98 (location VARCHAR, founded VARCHAR, left VARCHAR, type VARCHAR)
SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891
How many Laps have a Driver of david coulthard, and a Grid smaller than 14?
CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_70 WHERE driver = "david coulthard" AND grid < 14
Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1?
CREATE TABLE table_name_68 (total INTEGER, league_cup_goals VARCHAR, club VARCHAR, league_goals VARCHAR)
SELECT SUM(total) FROM table_name_68 WHERE club = "darlington" AND league_goals = "13" AND league_cup_goals = "1"
On what date did the Brisbane Lions (1) win?
CREATE TABLE table_name_44 (cup_finaldate VARCHAR, winningteam VARCHAR)
SELECT cup_finaldate FROM table_name_44 WHERE winningteam = "brisbane lions (1)"
Name the season for august 16, 2010
CREATE TABLE table_2140071_10 (season VARCHAR, premier_date VARCHAR)
SELECT season FROM table_2140071_10 WHERE premier_date = "August 16, 2010"
When was Glassfish released?
CREATE TABLE table_name_15 (release_date VARCHAR, product VARCHAR)
SELECT release_date FROM table_name_15 WHERE product = "glassfish"
WHich province has an IATA of UYN?
CREATE TABLE table_name_12 (province VARCHAR, iata VARCHAR)
SELECT province FROM table_name_12 WHERE iata = "uyn"
What club is associated with draft number 155?
CREATE TABLE table_2679061_8 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT nhl_team FROM table_2679061_8 WHERE pick__number = 155
In 2012 what was the average finish?
CREATE TABLE table_1012730_1 (avg_finish VARCHAR, year VARCHAR)
SELECT avg_finish FROM table_1012730_1 WHERE year = 2012
what team visited chicago
CREATE TABLE table_name_14 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_14 WHERE visitor = "chicago"
Who took first place in week 6?
CREATE TABLE table_2054561_2 (first_place VARCHAR, no_of_weeks VARCHAR)
SELECT COUNT(first_place) FROM table_2054561_2 WHERE no_of_weeks = 6
Name the womens doubles when tour is malaysia super series
CREATE TABLE table_14496232_2 (womens_doubles VARCHAR, tour VARCHAR)
SELECT womens_doubles FROM table_14496232_2 WHERE tour = "Malaysia Super Series"
What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?
CREATE TABLE table_name_29 (bronze INTEGER, silver VARCHAR, sport VARCHAR)
SELECT MIN(bronze) FROM table_name_29 WHERE "total" > 18 AND sport = "total" AND silver < 143
What's the Proto-Germanic when the Old English is /d/?
CREATE TABLE table_name_3 (proto_germanic VARCHAR, old_english VARCHAR)
SELECT proto_germanic FROM table_name_3 WHERE old_english = "/d/"
Name the venue for collingwood home team
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "collingwood"