answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT colors FROM table_15873547_1 WHERE residence_hall = "Howard Hall"
What are the colors of Howard Hall?
CREATE TABLE table_15873547_1 (colors VARCHAR, residence_hall VARCHAR)
SELECT player FROM table_name_50 WHERE country = "united states" AND year_s__won = "1962"
Which player from the United States won in 1962?
CREATE TABLE table_name_50 (player VARCHAR, country VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_20850339_1 WHERE opponent = "West Virginia"
When did they play against West Virginia?
CREATE TABLE table_20850339_1 (date VARCHAR, opponent VARCHAR)
SELECT location_attendance FROM table_27700530_15 WHERE game = 2
What was the location and attendance for game 2?
CREATE TABLE table_27700530_15 (location_attendance VARCHAR, game VARCHAR)
SELECT COUNT(total) FROM table_name_77 WHERE club = "leeds united" AND league_goals = "13"
What is the total number of Total, when Club is Leeds United, and when League Goals is 13?
CREATE TABLE table_name_77 (total VARCHAR, club VARCHAR, league_goals VARCHAR)
SELECT years_at_club FROM table_name_61 WHERE goals < 62 AND debut_year = 1981 AND games = 28
What are the years for the player with fewer than 62 goals, debut year of 1981 and 28 games?
CREATE TABLE table_name_61 (years_at_club VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)
SELECT tie_no FROM table_24887326_6 WHERE home_team = "Stoke City"
What is the tie when the home team is Stoke City?
CREATE TABLE table_24887326_6 (tie_no VARCHAR, home_team VARCHAR)
SELECT record FROM table_name_25 WHERE opponent = "los angeles rams"
What was the record at the game against the Los Angeles Rams?
CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR)
SELECT SUM(points) FROM table_name_12 WHERE goals_conceded < 51 AND position > 1 AND draws = 7 AND loses > 5
What is the sum of the points with less goals conceded than 51, larger than position 1, has a draw of 7, and more losses than 5?
CREATE TABLE table_name_12 (points INTEGER, loses VARCHAR, draws VARCHAR, goals_conceded VARCHAR, position VARCHAR)
SELECT team FROM table_22297140_3 WHERE outgoing_manager = "Behtash Fariba"
Which team had an outgoing manager of Behtash Fariba?
CREATE TABLE table_22297140_3 (team VARCHAR, outgoing_manager VARCHAR)
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING COUNT(*) >= 1
Find the names and number of works of all artists who have at least one English songs.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
SELECT score FROM table_name_79 WHERE game = "5"
What's the score of Game 5?
CREATE TABLE table_name_79 (score VARCHAR, game VARCHAR)
SELECT home_team FROM table_name_80 WHERE tie_no = 23
Who was the Home team in Tie #23?
CREATE TABLE table_name_80 (home_team VARCHAR, tie_no VARCHAR)
SELECT MIN(no_in_series) FROM table_23483182_1 WHERE original_air_date = "March 25, 2010"
What is the series number of the episode that aired March 25, 2010?
CREATE TABLE table_23483182_1 (no_in_series INTEGER, original_air_date VARCHAR)
SELECT tries_against FROM table_name_83 WHERE tries_for = "67"
How many tries against for the team with 67 tries for?
CREATE TABLE table_name_83 (tries_against VARCHAR, tries_for VARCHAR)
SELECT MIN(game) FROM table_name_5 WHERE location = "shibe park" AND date = "october 10"
Name the least game for october 10 at shibe park
CREATE TABLE table_name_5 (game INTEGER, location VARCHAR, date VARCHAR)
SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5
How many part 6 parts are there in the episode number 5?
CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)
SELECT home_captain FROM table_name_81 WHERE venue = "adelaide oval"
Who is the home captain when the venue is adelaide oval?
CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR)
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1
Which customer status code has least number of customers?
CREATE TABLE Customers (customer_status_code VARCHAR)
SELECT MIN(year) FROM table_name_86 WHERE manager = "art griggs"
Manager of art griggs had what lowest year?
CREATE TABLE table_name_86 (year INTEGER, manager VARCHAR)
SELECT result FROM table_name_3 WHERE opponent = "minnesota vikings"
What was the game result against the minnesota vikings?
CREATE TABLE table_name_3 (result VARCHAR, opponent VARCHAR)
SELECT outgoing_manager FROM table_22297140_3 WHERE replaced_by = "Jafar Fatahi"
Which outgoing manager was replaced by Jafar Fatahi?
CREATE TABLE table_22297140_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT Attendance FROM performance WHERE LOCATION = "TD Garden" OR LOCATION = "Bell Centre"
Show the attendances of the performances at location "TD Garden" or "Bell Centre"
CREATE TABLE performance (Attendance VARCHAR, LOCATION VARCHAR)
SELECT T2.roomName, COUNT(*), T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room
Return the name and number of reservations made for each of the rooms.
CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)
SELECT COUNT(*) FROM follows
How many followers does each user have?
CREATE TABLE follows (Id VARCHAR)
SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = "zhangjiajie" AND county = "sangzhi"
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
CREATE TABLE table_name_20 (tujia_population INTEGER, prefecture VARCHAR, county VARCHAR)
SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"
What Semimajor axis (AU) has a Companion (in order from star) of g?
CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE venue = "corio oval"
What was the home team's score at Corio Oval?
CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR)
SELECT school FROM table_name_65 WHERE height = "6-4"
Which school did the player have a height of 6-4?
CREATE TABLE table_name_65 (school VARCHAR, height VARCHAR)
SELECT MIN(total) FROM table_name_26 WHERE new_south_wales = 42 AND victoria < 68
Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes?
CREATE TABLE table_name_26 (total INTEGER, new_south_wales VARCHAR, victoria VARCHAR)
SELECT chassis FROM table_name_68 WHERE engine = "honda" AND year = 2008
What is the chassis of the Honda Engine from 2008?
CREATE TABLE table_name_68 (chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT MIN(finish) FROM table_name_61 WHERE start = 14
For any races with a start of 14 what was the lowest finish?
CREATE TABLE table_name_61 (finish INTEGER, start VARCHAR)
SELECT 2009 FROM table_name_83 WHERE 2006 = "a" AND 2011 = "sf"
Which 2009 has a 2006 of A, and a 2011 of sf?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT MIN(races) FROM table_name_31 WHERE points < 0
What is the least number of Races for a Racer with less than 0 Points?
CREATE TABLE table_name_31 (races INTEGER, points INTEGER)
SELECT away_team FROM table_name_36 WHERE home_team = "new zealand breakers"
Who was the away team during the game when the home team was the new zealand breakers?
CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR)
SELECT pages_per_minute__color_ FROM table_name_31 WHERE max_page_size = "a4" AND dimensions__mm_ = "303 x 94 x 60"
What is the pages per minute (color) of the machine that has a max page size of a4 and dimensions (mm) of 303 x 94 x 60?
CREATE TABLE table_name_31 (pages_per_minute__color_ VARCHAR, max_page_size VARCHAR, dimensions__mm_ VARCHAR)
SELECT MIN(merconorte) FROM table_name_92 WHERE interliga = 2 AND matches > 260 AND superliga > 7
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7
CREATE TABLE table_name_92 (merconorte INTEGER, superliga VARCHAR, interliga VARCHAR, matches VARCHAR)
SELECT COUNT(weight) FROM table_name_26 WHERE block = 300
What is the total number of Weight(s), when Block is 300?
CREATE TABLE table_name_26 (weight VARCHAR, block VARCHAR)
SELECT COUNT(*) FROM Ref_locations
Show the number of locations.
CREATE TABLE Ref_locations (Id VARCHAR)
SELECT opponent FROM table_name_63 WHERE record = "52-52"
Which opponent has a record of 52-52?
CREATE TABLE table_name_63 (opponent VARCHAR, record VARCHAR)
SELECT original_air_date FROM table_15431251_1 WHERE directed_by = "Peter Woeste"
What is the original air date for the episode directed by Peter Woeste?
CREATE TABLE table_15431251_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT 2006 FROM table_name_22 WHERE 2008 = "1r" AND 2004 = "1r"
Name the 2006 with 2008 of 1r and 2004 of 1r
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT COUNT(overall) FROM table_name_97 WHERE college = "notre dame" AND round > 2
How many overall values have a college of Notre Dame and rounds over 2?
CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR)
SELECT COUNT(1969) FROM table_name_18 WHERE 1967 < 0.73 AND 1964 > 0.07
How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT AVG(place) FROM table_name_86 WHERE units_sold_in_the_uk = "321,000"
Of the games that sold 321,000 units in the UK, what is their average place?
CREATE TABLE table_name_86 (place INTEGER, units_sold_in_the_uk VARCHAR)
SELECT COUNT(nhl_team) FROM table_2897457_8 WHERE position = "Center"
How many figures are provided for the team when the position drafted is center?
CREATE TABLE table_2897457_8 (nhl_team VARCHAR, position VARCHAR)
SELECT date FROM table_name_6 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "carole charbonnier"
On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?
CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT hometown FROM table_name_67 WHERE delegate = "rachel muyot soriano"
What's the hometown of rachel muyot soriano?
CREATE TABLE table_name_67 (hometown VARCHAR, delegate VARCHAR)
SELECT SUM(laps) FROM table_name_53 WHERE grid = 20
What is the sum of laps for grid 20?
CREATE TABLE table_name_53 (laps INTEGER, grid VARCHAR)
SELECT goals FROM table_name_69 WHERE club_apps = "229"
How many goals did the player with 229 club apps have?
CREATE TABLE table_name_69 (goals VARCHAR, club_apps VARCHAR)
SELECT label FROM table_name_80 WHERE date_of_release = 1991
WHAT LABEL HAD A RELEASE DATE OF 1991?
CREATE TABLE table_name_80 (label VARCHAR, date_of_release VARCHAR)
SELECT score FROM table_name_33 WHERE attendance = "gund arena 20,562" AND date = "january 27"
What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
CREATE TABLE table_name_33 (score VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT COUNT(club) FROM table_2429942_2 WHERE third_place = "Drnovice"
how many times was third place held by drnovice?
CREATE TABLE table_2429942_2 (club VARCHAR, third_place VARCHAR)
SELECT date FROM table_name_93 WHERE road_team = "boston" AND game = "game 3"
On what Date is Game 3 with Boston Road Team?
CREATE TABLE table_name_93 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT result FROM table_name_26 WHERE venue = "home"
What is the result with a home venue?
CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_7 WHERE round > 4 AND position = "lw" AND player = "mark miller"
What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?
CREATE TABLE table_name_7 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR)
SELECT AVG(attendance) FROM table_name_11 WHERE date = "october 9, 1983"
What is the average attendance on October 9, 1983?
CREATE TABLE table_name_11 (attendance INTEGER, date VARCHAR)
SELECT result FROM table_name_53 WHERE first_elected = "1898"
When someone was first elected in 1898 what was the result?
CREATE TABLE table_name_53 (result VARCHAR, first_elected VARCHAR)
SELECT AVG(goals_for) FROM table_name_19 WHERE drawn > 7 AND goals_against < 86 AND lost > 11 AND played > 42
What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played?
CREATE TABLE table_name_19 (goals_for INTEGER, played VARCHAR, lost VARCHAR, drawn VARCHAR, goals_against VARCHAR)
SELECT MIN(top_25) FROM table_name_31 WHERE cuts_made > 13
What is the fewest number of top-25s for events with more than 13 cuts made?
CREATE TABLE table_name_31 (top_25 INTEGER, cuts_made INTEGER)
SELECT MAX(obama_number) FROM table_20688030_1 WHERE county = "Wayne"
What is the maximum Obama supporters in Wayne county?
CREATE TABLE table_20688030_1 (obama_number INTEGER, county VARCHAR)
SELECT COUNT(rank) FROM table_2527063_3 WHERE district = "East Midnapore"
Name the total number of rank for east midnapore
CREATE TABLE table_2527063_3 (rank VARCHAR, district VARCHAR)
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford"
Who belong to the institution "University of Oxford"? Show the first names and last names.
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)
SELECT vote FROM table_28742659_2 WHERE immunity = "David" AND reward = "None"
What is the vote number when immunity listed as David and reward is listed as none?
CREATE TABLE table_28742659_2 (vote VARCHAR, immunity VARCHAR, reward VARCHAR)
SELECT opponent FROM table_name_17 WHERE year = "1992"
Who is the opponent in 1992?
CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR)
SELECT MAX(goals) FROM table_name_5 WHERE tries < 1 AND position = "fullback"
Tell me the highest goals with tries less than 1 and fullback position
CREATE TABLE table_name_5 (goals INTEGER, tries VARCHAR, position VARCHAR)
SELECT opponent FROM table_name_51 WHERE surface = "hardcourt" AND outcome = "runner-up" AND tournament = "honolulu"
Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?
CREATE TABLE table_name_51 (opponent VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT source FROM table_name_88 WHERE country = "eng" AND transfer_fee = "£1.5m"
What was the source of an ENG transfer that paid a £1.5m transfer fee?
CREATE TABLE table_name_88 (source VARCHAR, country VARCHAR, transfer_fee VARCHAR)
SELECT doctor FROM table_name_40 WHERE published = "june 2003"
What doctor published on June 2003?
CREATE TABLE table_name_40 (doctor VARCHAR, published VARCHAR)
SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507"
How many people wrote the episode with a production code of 2j5507?
CREATE TABLE table_27450976_1 (written_by VARCHAR, production_code VARCHAR)
SELECT writer FROM table_26866233_1 WHERE director = "Gene Reynolds"
The episode where the director is Gene Reynolds has who as the writer?
CREATE TABLE table_26866233_1 (writer VARCHAR, director VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = "156.640"
What is the per-capita GDP for the country with an overall GDP of 156.640?
CREATE TABLE table_name_90 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR)
SELECT score FROM table_name_77 WHERE money___$__ > 100 AND player = "ralph guldahl"
What is the score of Ralph Guldahl, who has more than $100?
CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_40 WHERE date = "december 6, 1964"
What opponent has December 6, 1964 as the date?
CREATE TABLE table_name_40 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_70 WHERE venue = "gold coast convention centre"
what is the date when the venue is gold coast convention centre?
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)
SELECT area___ha__ FROM table_name_31 WHERE height__m_ > 7 AND island = "linga holm"
What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?
CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR)
SELECT width_feet__m_ FROM table_name_8 WHERE source__year_ = "zacher (1994)"
What is the width for hte truss with a source of zacher (1994)?
CREATE TABLE table_name_8 (width_feet__m_ VARCHAR, source__year_ VARCHAR)
SELECT round FROM table_name_16 WHERE result = "6-0, 6-1, 6-2"
What round resulted in 6-0, 6-1, 6-2?
CREATE TABLE table_name_16 (round VARCHAR, result VARCHAR)
SELECT MIN(march) FROM table_name_32 WHERE record = "25-29-10"
When was the earliest game date in March where the match ended with a record of 25-29-10?
CREATE TABLE table_name_32 (march INTEGER, record VARCHAR)
SELECT MAX(top_10) FROM table_name_13 WHERE top_5 = 3 AND cuts_made < 22
How many top 10s associated with 3 top 5s and under 22 cuts made?
CREATE TABLE table_name_13 (top_10 INTEGER, top_5 VARCHAR, cuts_made VARCHAR)
SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961
What is the least points for class 125cc with 1 win earlier than 1961?
CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
SELECT launched FROM table_name_45 WHERE country = "spain"
What is the Launched from a Country that is spain?
CREATE TABLE table_name_45 (launched VARCHAR, country VARCHAR)
SELECT years_in_toronto FROM table_10015132_3 WHERE player = "Dell Curry"
During what period did Dell Curry play for Toronto?
CREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, player VARCHAR)
SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = "Beacon Falls , Naugatuck , Middlebury , Prospect"
Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?
CREATE TABLE table_26758262_1 (judges_residence VARCHAR, municipalities_served VARCHAR)
SELECT 2 AS nd_day FROM table_name_4 WHERE year < 2009
Which 2nd day has a year prior to 2009?
CREATE TABLE table_name_4 (year INTEGER)
SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič"
For what tournament was Blaž Kavčič the opponent in the final?
CREATE TABLE table_name_16 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_27 WHERE attendance = "76,518"
Which date had an attendance of 76,518?
CREATE TABLE table_name_27 (date VARCHAR, attendance VARCHAR)
SELECT final FROM table_name_73 WHERE event = "63.5 kg"
What is the final result for the 63.5 kg?
CREATE TABLE table_name_73 (final VARCHAR, event VARCHAR)
SELECT team FROM table_name_27 WHERE make = "dodge"
What team drove a Dodge vehicle?
CREATE TABLE table_name_27 (team VARCHAR, make VARCHAR)
SELECT COUNT(match) FROM table_name_63 WHERE city_country = "karachi, pakistan" AND year > 1996
How many matches have a City/Country of karachi, pakistan, and a Year larger than 1996?
CREATE TABLE table_name_63 (match VARCHAR, city_country VARCHAR, year VARCHAR)
SELECT name FROM table_name_21 WHERE location = "ljubljana" AND year_proposed = "2010" AND floors = "15"
What building is in ljubljana, proposed in 2010, and has 15 floors?
CREATE TABLE table_name_21 (name VARCHAR, floors VARCHAR, location VARCHAR, year_proposed VARCHAR)
SELECT to_par FROM table_name_89 WHERE score = 73 - 67 - 68 = 208
What is the To par of the Player with a Score of 73-67-68=208?
CREATE TABLE table_name_89 (to_par VARCHAR, score VARCHAR)
SELECT set_3 FROM table_name_33 WHERE date = "04 oct" AND set_2 = "15–5"
What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5?
CREATE TABLE table_name_33 (set_3 VARCHAR, date VARCHAR, set_2 VARCHAR)
SELECT category FROM table_name_14 WHERE year = 1964
What category was in 1964?
CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR)
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "carlton"
What was the largest crowd where Carlton was the away team?
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(obama_number) FROM table_20799905_1 WHERE county = "LAKE"
How many votes did Obama get in Lake County?
CREATE TABLE table_20799905_1 (obama_number INTEGER, county VARCHAR)
SELECT score FROM table_name_49 WHERE save = "||25,354||63–43"
What was the score when a save of ||25,354||63–43 occurred?
CREATE TABLE table_name_49 (score VARCHAR, save VARCHAR)
SELECT COUNT(player) FROM table_14342592_4 WHERE starter = "No" AND touchdowns = 1 AND position = "Right halfback"
Name the number of players when starter is no and touchdowns is 1 for right halfback
CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR)
SELECT COUNT(house_mascot) FROM table_1942683_1 WHERE house_colour = "Yellow"
How many house mascots are associated with yellow house colours?
CREATE TABLE table_1942683_1 (house_mascot VARCHAR, house_colour 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)