answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT homeport__as_of_july_2013_ FROM table_name_73 WHERE laid_down = "14 december 1985"
What is the Homeport that has a Laid down on 14 december 1985?
CREATE TABLE table_name_73 (homeport__as_of_july_2013_ VARCHAR, laid_down VARCHAR)
SELECT position FROM table_name_67 WHERE pick < 33 AND player = "darrell arthur"
WHAT POSITION HAS A PICK SMALLER THAN 33, AND PLAYER BEING DARRELL ARTHUR?
CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, player VARCHAR)
SELECT COUNT(wins) FROM table_19864214_3 WHERE pitcher = "Jon Matlack Category:Articles with hCards"
how many wins did pitcher jon matlack category:articles with hcards achieve
CREATE TABLE table_19864214_3 (wins VARCHAR, pitcher VARCHAR)
SELECT location_attendance FROM table_28768469_7 WHERE date = "January 9"
Where is the location attendance when the date is January 9?
CREATE TABLE table_28768469_7 (location_attendance VARCHAR, date VARCHAR)
SELECT recorded FROM table_name_16 WHERE translation = "sleep my love, good night"
Name the recorded for translation of sleep my love, good night
CREATE TABLE table_name_16 (recorded VARCHAR, translation VARCHAR)
SELECT number_of_channels FROM table_233830_1 WHERE channels = "WXYZUV"
If the channels is wxyzuv, what is the number of channels?
CREATE TABLE table_233830_1 (number_of_channels VARCHAR, channels VARCHAR)
SELECT COUNT(score_in_final) FROM table_23197088_4 WHERE opponents_in_final = "Alexandra Fusai Nathalie Tauziat"
as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat
CREATE TABLE table_23197088_4 (score_in_final VARCHAR, opponents_in_final VARCHAR)
SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)"
When риба (ríba) is the macedonian what is the proto-slavic?
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, macedonian VARCHAR)
SELECT result FROM table_name_46 WHERE opponent = "pat lawlor"
What was the result of the match against Pat Lawlor?
CREATE TABLE table_name_46 (result VARCHAR, opponent VARCHAR)
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
Which chemical class uses the example Chloroethane (ethyl chloride)?
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR)
SELECT institution FROM table_261931_2 WHERE nickname = "Polar Bears"
Which institution's nickname is the Polar Bears?
CREATE TABLE table_261931_2 (institution VARCHAR, nickname VARCHAR)
SELECT new_adherents_per_year FROM table_28137918_5 WHERE religion = "Buddhism"
Name the new adherents per year for buddhism
CREATE TABLE table_28137918_5 (new_adherents_per_year VARCHAR, religion VARCHAR)
SELECT age__years, _days_ FROM table_name_66 WHERE begin_date = "may 7, 1886"
What was the age of the member of the United States House of Representatives that began their term on May 7, 1886?
CREATE TABLE table_name_66 (age__years VARCHAR, _days_ VARCHAR, begin_date VARCHAR)
SELECT SUM(weight) FROM table_name_78 WHERE year = "senior" AND height = "6–10"
What is the Weight of the Senior Player with a Height of 6–10?
CREATE TABLE table_name_78 (weight INTEGER, year VARCHAR, height VARCHAR)
SELECT AVG(capacity), MAX(capacity) FROM stadium
What is the average and maximum capacities for all stadiums ?
CREATE TABLE stadium (capacity INTEGER)
SELECT title FROM table_name_83 WHERE written_by = "robert haywood"
What was the title of the episode written by Robert Haywood?
CREATE TABLE table_name_83 (title VARCHAR, written_by VARCHAR)
SELECT character FROM table_name_48 WHERE italian_voice_actor = "emanuela damasio"
What character does Italian voice actor Emanuela Damasio play?
CREATE TABLE table_name_48 (character VARCHAR, italian_voice_actor VARCHAR)
SELECT MIN(total) FROM table_name_16 WHERE silver = 0 AND gold < 1 AND rank < 13
What is the fewest total when silver is 0, and gold is less than 1, and rank is less than 13?
CREATE TABLE table_name_16 (total INTEGER, rank VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT MIN(crowd) FROM table_name_35 WHERE away_team = "essendon"
What was the lowest Crowd total from a game in which Essendon was the Away team?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT james_e_holmes FROM table_25330991_3 WHERE rockingham_county = "Joe Baez"
Name the james e. holmes for joe baez
CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, rockingham_county VARCHAR)
SELECT round FROM table_20860739_1 WHERE college = "Virginia"
How many rounds did Virginia have?
CREATE TABLE table_20860739_1 (round VARCHAR, college VARCHAR)
SELECT COUNT(french_head_of_state) FROM table_29474481_4 WHERE head_of_mission = "Xavier Daufresne de la Chevalerie"
How many French heads of state have a head of mission of Xavier Daufresne de la Chevalerie?
CREATE TABLE table_29474481_4 (french_head_of_state VARCHAR, head_of_mission VARCHAR)
SELECT date_of_vacancy FROM table_10592536_8 WHERE team = "Manchester City" AND replaced_by = "Mark Hughes"
What is the date of vacancy when the team is manchester city and replaced by is mark hughes?
CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR)
SELECT MAX(pennant_number) FROM table_name_61 WHERE ships_in_class = "pori"
What is the highest pennant number with ships in pori class?
CREATE TABLE table_name_61 (pennant_number INTEGER, ships_in_class VARCHAR)
SELECT producer FROM table_name_79 WHERE power_plant = "chennai mohan"
What company is the producer in the chennai mohan power plant?
CREATE TABLE table_name_79 (producer VARCHAR, power_plant VARCHAR)
SELECT SUM(winter_olympics) FROM table_name_5 WHERE country = "soviet union" AND holmenkollen = "1970, 1979"
what is the winter olympics when the country is soviet union and holmenkollen is 1970, 1979?
CREATE TABLE table_name_5 (winter_olympics INTEGER, country VARCHAR, holmenkollen 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 winner FROM table_name_19 WHERE year = 2003
Who won in 2003?
CREATE TABLE table_name_19 (winner VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_66 WHERE score = "4 - 2"
Who did the Toronto Blue Jays play against where the score was 4 - 2?
CREATE TABLE table_name_66 (opponent VARCHAR, score VARCHAR)
SELECT hdtv FROM table_name_12 WHERE television_service = "r-light"
What is the HDTV status of the r-light television service?
CREATE TABLE table_name_12 (hdtv VARCHAR, television_service VARCHAR)
SELECT COUNT(points) FROM table_name_42 WHERE played < 30
What is the number of points when the played is less than 30?
CREATE TABLE table_name_42 (points VARCHAR, played INTEGER)
SELECT school FROM table_name_65 WHERE nationality = "united states" AND pick = "595"
Which school's nationality was United States when its pick was 595?
CREATE TABLE table_name_65 (school VARCHAR, nationality VARCHAR, pick VARCHAR)
SELECT borough_or_census_area FROM table_name_68 WHERE median_household_income = "$59,596"
Which borough or census area has a $59,596 median household income?
CREATE TABLE table_name_68 (borough_or_census_area VARCHAR, median_household_income VARCHAR)
SELECT MIN(laps) FROM table_name_85 WHERE rank = "30"
What is the lowest lap with a rank of 30?
CREATE TABLE table_name_85 (laps INTEGER, rank VARCHAR)
SELECT recurring_cast_seasons FROM table_12441518_1 WHERE character = "Kevin Lucas"
Kevin lucas appears in which seasons?
CREATE TABLE table_12441518_1 (recurring_cast_seasons VARCHAR, character VARCHAR)
SELECT party FROM table_name_4 WHERE incumbent = "charles van wyck"
What party is Charles Van Wyck part of?
CREATE TABLE table_name_4 (party VARCHAR, incumbent VARCHAR)
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12"
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?
CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT MAX(melamine_content_mg_kg_) FROM table_name_48 WHERE producer = "guangzhou jinding dairy products factory" AND samples_failed > 1
What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?
CREATE TABLE table_name_48 (melamine_content_mg_kg_ INTEGER, producer VARCHAR, samples_failed VARCHAR)
SELECT cover_model FROM table_name_96 WHERE date = "11-03"
Who was the Cover model on 11-03?
CREATE TABLE table_name_96 (cover_model VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_33 WHERE venue = "windy hill"
At the match in windy hill, how much did the home team score?
CREATE TABLE table_name_33 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(miss_united_continent) FROM table_17522854_6
What is the least number of miss united continents?
CREATE TABLE table_17522854_6 (miss_united_continent INTEGER)
SELECT away FROM table_name_68 WHERE round = "q3"
What away is there for the q3 round?
CREATE TABLE table_name_68 (away VARCHAR, round VARCHAR)
SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham"
Give me the maximum low temperature and average precipitation at the Amersham station.
CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR)
SELECT MAX(date_moved_in) FROM Residents
When is the last day any resident moved in?
CREATE TABLE Residents (date_moved_in INTEGER)
SELECT home FROM table_name_44 WHERE opponent = "slovan liberec"
Who was the home when the opponent was slovan liberec?
CREATE TABLE table_name_44 (home VARCHAR, opponent VARCHAR)
SELECT 1988 FROM table_name_54 WHERE 1985 = "2r"
Which 1988 has a 1985 of 2r?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT attendance FROM table_17779448_1 WHERE opponent = "Boston Patriots"
How many attended game(s) against the boston patriots?
CREATE TABLE table_17779448_1 (attendance VARCHAR, opponent VARCHAR)
SELECT publisher FROM book_club GROUP BY publisher ORDER BY COUNT(*) DESC LIMIT 1
What is the publisher with most number of books?
CREATE TABLE book_club (publisher VARCHAR)
SELECT COUNT(first_elected) FROM table_name_28 WHERE party = "democratic" AND district = "tennessee 5"
What is the total number of First Elected, when Party is "Democratic", and when District is "Tennessee 5"?
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, district VARCHAR)
SELECT field FROM table_name_63 WHERE result = "w 18-12"
What field had results of w 18-12?
CREATE TABLE table_name_63 (field VARCHAR, result VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE score = "59-32"
what is the year when the score is 59-32?
CREATE TABLE table_name_37 (year INTEGER, score VARCHAR)
SELECT ship FROM table_name_28 WHERE home_port = "oakland" AND nvr_page = "aor-3"
Name the ship for oakland home port and NVR page of aor-3
CREATE TABLE table_name_28 (ship VARCHAR, home_port VARCHAR, nvr_page VARCHAR)
SELECT mlb_draft FROM table_name_7 WHERE school = "green valley high school"
What MLB draft has a School of green valley high school?
CREATE TABLE table_name_7 (mlb_draft VARCHAR, school VARCHAR)
SELECT fastest_lap FROM table_name_8 WHERE winning_team = "team brm" AND race = 1 AND pole_position = "leanne tander" AND circuit = "phillip island"
What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?
CREATE TABLE table_name_8 (fastest_lap VARCHAR, circuit VARCHAR, pole_position VARCHAR, winning_team VARCHAR, race VARCHAR)
SELECT score FROM table_name_80 WHERE date = "17 december 1979"
Name the Score on 17 december 1979?
CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR)
SELECT COUNT(season) FROM table_10753917_1 WHERE driver = "Clay Regazzoni"
How many seasons was clay regazzoni the driver?
CREATE TABLE table_10753917_1 (season VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_89 WHERE grid = 18
What was the time recorded for grid 18?
CREATE TABLE table_name_89 (time_retired VARCHAR, grid VARCHAR)
SELECT MIN(rnd) FROM table_13643154_2 WHERE circuit = "Watkins Glen"
What is the most rnd for watkins glen?
CREATE TABLE table_13643154_2 (rnd INTEGER, circuit VARCHAR)
SELECT COUNT(term_ends) FROM table_1979619_3 WHERE residence = "Bethlehem"
Name the term ends for bethlehem
CREATE TABLE table_1979619_3 (term_ends VARCHAR, residence VARCHAR)
SELECT AVG(wins) FROM table_name_40 WHERE player = "bruce fleisher"
How many average wins does bruce fleisher have?
CREATE TABLE table_name_40 (wins INTEGER, player VARCHAR)
SELECT MIN(division) FROM table_2357201_1
What is the lowest numbered division Cleveland played in?
CREATE TABLE table_2357201_1 (division INTEGER)
SELECT COUNT(left) FROM table_11658094_3 WHERE institution = "Anderson University"
How many times did anderson university leave?
CREATE TABLE table_11658094_3 (left VARCHAR, institution VARCHAR)
SELECT commercial_operation FROM table_name_48 WHERE gross_capacity = "417 mw" AND electricity_grid = "27.12.1971"
Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971?
CREATE TABLE table_name_48 (commercial_operation VARCHAR, gross_capacity VARCHAR, electricity_grid VARCHAR)
SELECT episodes FROM table_11240028_1 WHERE portrayed_by = "Vanessa Ferlito"
How many episodes did actress Vanessa Ferlito appear in?
CREATE TABLE table_11240028_1 (episodes VARCHAR, portrayed_by VARCHAR)
SELECT COUNT(result) FROM table_1341604_10 WHERE district = "Florida 14"
how many result with district being florida 14
CREATE TABLE table_1341604_10 (result VARCHAR, district VARCHAR)
SELECT shropshire_senior_cup FROM table_name_44 WHERE points > 78 AND fa_cup = "pre"
What is the Shropshire Senior Cup when points are greater than 78 and FA Cup is pre?
CREATE TABLE table_name_44 (shropshire_senior_cup VARCHAR, points VARCHAR, fa_cup VARCHAR)
SELECT player FROM table_name_68 WHERE weight = 210 AND team = "reno bighorns"
Which player who weighs 210 plays for the Reno Bighorns?
CREATE TABLE table_name_68 (player VARCHAR, weight VARCHAR, team VARCHAR)
SELECT namesake FROM table_16768245_2 WHERE longitude = "189.5W"
What is the namesake of the feature found at 189.5w longitude?
CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR)
SELECT AVG(metropolitan_population__2006__millions) FROM table_name_38 WHERE metropolitan_area = "lima" AND gdp__ppp__us$_per_capita > 13 OFFSET 100
What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100?
CREATE TABLE table_name_38 (metropolitan_population__2006__millions INTEGER, metropolitan_area VARCHAR, gdp__ppp__us$_per_capita VARCHAR)
SELECT record FROM table_name_65 WHERE date = "july 10"
what's the record on july 10?
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT active FROM table_15905399_1 WHERE iin_ranges = "4"
Is the iin range 4 active?
CREATE TABLE table_15905399_1 (active VARCHAR, iin_ranges VARCHAR)
SELECT time FROM table_name_83 WHERE opponent = "jaime fletcher"
How long was the match with Jaime Fletcher?
CREATE TABLE table_name_83 (time VARCHAR, opponent VARCHAR)
SELECT SUM(attendance) FROM table_name_34 WHERE opponent = "rockies" AND record = "32-30"
How much Attendance has an Opponent of rockies, and a Record of 32-30?
CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT MAX(goals) FROM table_name_53 WHERE rank > 3 AND goal_ratio = 0.54
What is the largest value for goals in rank over 3 with goal ration of 0.54?
CREATE TABLE table_name_53 (goals INTEGER, rank VARCHAR, goal_ratio VARCHAR)
SELECT SUM(pick) FROM table_name_96 WHERE player = "joselito escobar"
What is Joselito Escobar's Pick number?
CREATE TABLE table_name_96 (pick INTEGER, player VARCHAR)
SELECT township FROM table_18600760_3 WHERE geo_id = 3807116660
What was the township with a geo ID of 3807116660?
CREATE TABLE table_18600760_3 (township VARCHAR, geo_id VARCHAR)
SELECT attendance FROM table_name_65 WHERE tie_no = "4"
How many attended the game when the score was tie at 4?
CREATE TABLE table_name_65 (attendance VARCHAR, tie_no VARCHAR)
SELECT region FROM table_name_16 WHERE city = "philadelphia"
What region is the city of Philadelphia located in?
CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR)
SELECT imperative FROM table_name_94 WHERE måcha = "3.sg"
What imperative has måcha as 3.sg?
CREATE TABLE table_name_94 (imperative VARCHAR, måcha VARCHAR)
SELECT competition FROM table_name_13 WHERE year < 2009 AND notes = "56.16 m"
Which Competition has a Year smaller than 2009, and Notes of 56.16 m?
CREATE TABLE table_name_13 (competition VARCHAR, year VARCHAR, notes VARCHAR)
SELECT MAX(game) FROM table_name_62 WHERE record = "24-23"
What is the highest game with a 24-23 record?
CREATE TABLE table_name_62 (game INTEGER, record VARCHAR)
SELECT COUNT(points) FROM table_name_47 WHERE year = 1974
What is the total points in 1974?
CREATE TABLE table_name_47 (points VARCHAR, year VARCHAR)
SELECT origin FROM table_name_57 WHERE versions = "mi-2"
Tell me the origin for mi-2
CREATE TABLE table_name_57 (origin VARCHAR, versions VARCHAR)
SELECT away_captain FROM table_name_81 WHERE venue = "kingsmead"
Who is the away captain for Kingsmead?
CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)
SELECT MAX(game) FROM table_13762472_3 WHERE record = "6-3"
What was the last game where the record was 6-3?
CREATE TABLE table_13762472_3 (game INTEGER, record VARCHAR)
SELECT venue FROM table_name_33 WHERE date = "27 april 1964"
What was the venue of the game on 27 April 1964?
CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR)
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE headquarters = "Truro"
What is their withdrawal rate for the school district with headquarters located in Truro?
CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, headquarters VARCHAR)
SELECT high_assists FROM table_name_12 WHERE date = "february 2"
What are the High assists for February 2?
CREATE TABLE table_name_12 (high_assists VARCHAR, date VARCHAR)
SELECT venue FROM table_name_60 WHERE year = 1994
WHich Venue is in 1994?
CREATE TABLE table_name_60 (venue VARCHAR, year VARCHAR)
SELECT rank FROM table_name_42 WHERE bronze = 1 AND nation = "czechoslovakia"
What was the rank for czechoslovakia with 1 bronze?
CREATE TABLE table_name_42 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT centerfold_model FROM table_name_72 WHERE interview_subject = "o.j. simpson"
Who was the Centerfold model when O.J. Simpson was the Interview Subject?
CREATE TABLE table_name_72 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT MIN(pick__number) FROM table_name_6 WHERE college = "louisville" AND round < 10
What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?
CREATE TABLE table_name_6 (pick__number INTEGER, college VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_39 WHERE date = "november 24, 1996"
Tell me the opponent for november 24, 1996
CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR)
SELECT MAX(overall) FROM table_name_26 WHERE name = "daimon shelton" AND round > 6
Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?
CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1
which country did participated in the most number of Tournament competitions?
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
SELECT opponent FROM table_name_23 WHERE date = "june 6"
Who is the opponent on June 6?
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
SELECT office FROM table_name_28 WHERE conservative_ticket = "kieran o'doherty"
Which office has kieran o'doherty as the conservative ticket?
CREATE TABLE table_name_28 (office VARCHAR, conservative_ticket VARCHAR)
SELECT duration FROM table_name_53 WHERE character = "witold latoszek"
How long did Witold Latoszek character lasted?
CREATE TABLE table_name_53 (duration VARCHAR, character VARCHAR)
SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000
Which college's enrollment is less than 1,000?
CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER)
SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014
List all singer names in concerts in year 2014.
CREATE TABLE singer_in_concert (singer_id VARCHAR, concert_id VARCHAR); CREATE TABLE concert (concert_id VARCHAR, year VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR)