answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT hometown FROM table_11677691_8 WHERE school = "Longview High school"
Where is longview high school
CREATE TABLE table_11677691_8 (hometown VARCHAR, school VARCHAR)
SELECT date FROM table_name_81 WHERE original_week < 16 AND result = "l 23–22"
Tell me the date for original week less than 16 and result of l 23–22
CREATE TABLE table_name_81 (date VARCHAR, original_week VARCHAR, result VARCHAR)
SELECT venue FROM table_name_63 WHERE year < 2003 AND notes = "57.73 m"
What is the Venue before 2003 with Notes of 57.73 m?
CREATE TABLE table_name_63 (venue VARCHAR, year VARCHAR, notes VARCHAR)
SELECT COUNT(track_no) FROM table_28715942_3 WHERE track = "Song 2"
How many track numbers were called song 2?
CREATE TABLE table_28715942_3 (track_no VARCHAR, track VARCHAR)
SELECT area__km²_ FROM table_269888_1 WHERE population__2010_ = 53542
Name the area for population of 53542
CREATE TABLE table_269888_1 (area__km²_ VARCHAR, population__2010_ VARCHAR)
SELECT MIN(pick__number) FROM table_1473672_2
Lorne Henning has the lowest pick# of?
CREATE TABLE table_1473672_2 (pick__number INTEGER)
SELECT score FROM table_name_87 WHERE attendance = "32,036"
What was the score of the game that had an attendance of 32,036?
CREATE TABLE table_name_87 (score VARCHAR, attendance VARCHAR)
SELECT touchdowns FROM table_25730123_2 WHERE extra_points > 1.0
How many touchdowns were the when there was more than 1.0 extra point?
CREATE TABLE table_25730123_2 (touchdowns VARCHAR, extra_points INTEGER)
SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_27 WHERE club = "cruz azul"
What is the highest Number of seasons in Liga MX for Club cruz azul?
CREATE TABLE table_name_27 (number_of_seasons_in_liga_mx INTEGER, club VARCHAR)
SELECT date FROM table_name_79 WHERE week < 12 AND opponent = "houston oilers"
On what date did the Bills play the Houston Oilers before week 12?
CREATE TABLE table_name_79 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT COUNT(final_position___giro) FROM table_name_45 WHERE year = 1971 AND final_position___tour > 50
How many Giro positions are associated with the year 1971 and Tour final positions over 50?
CREATE TABLE table_name_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR)
SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0
what is the total sack for mike green when fumr is less than 0?
CREATE TABLE table_name_40 (sack INTEGER, player VARCHAR, fumr VARCHAR)
SELECT country FROM table_name_71 WHERE player = "fred couples"
Where is Fred Couples from?
CREATE TABLE table_name_71 (country VARCHAR, player VARCHAR)
SELECT tennis FROM table_name_29 WHERE school_year = "2004-05"
What is Tennis, when School Year is 2004-05?
CREATE TABLE table_name_29 (tennis VARCHAR, school_year VARCHAR)
SELECT SUM(population) FROM table_name_45 WHERE country_region = "hong kong" AND rank < 2
Can you tell me the sun of Population that has the Country/Region of hong kong, and the Rank smaller than 2?
CREATE TABLE table_name_45 (population INTEGER, country_region VARCHAR, rank VARCHAR)
SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007"
What is Runner(s)-up, when Date is 21 Jan 2007?
CREATE TABLE table_name_47 (runner_s__up VARCHAR, date VARCHAR)
SELECT model_no FROM table_21530474_1 WHERE chassis_code = "USF46"
Name the model number for usf46
CREATE TABLE table_21530474_1 (model_no VARCHAR, chassis_code VARCHAR)
SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20
Show the hometowns shared by people older than 23 and younger than 20.
CREATE TABLE people (Hometown VARCHAR, Age INTEGER)
SELECT name FROM table_26387382_1 WHERE capacity__mw_ = "70" AND status = "Operational"
What farm has a capacity of 70 and is operational?
CREATE TABLE table_26387382_1 (name VARCHAR, capacity__mw_ VARCHAR, status VARCHAR)
SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15
how many country has moto3/125cc with 15
CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)
SELECT replaced_by FROM table_name_97 WHERE team = "port vale"
who is the replacement when the team is port vale?
CREATE TABLE table_name_97 (replaced_by VARCHAR, team VARCHAR)
SELECT AVG(drawn) FROM table_name_13 WHERE points = 12 AND played < 10
What was the drawn amount for teams with points of 12 and played smaller than 10?
CREATE TABLE table_name_13 (drawn INTEGER, points VARCHAR, played VARCHAR)
SELECT cargo FROM table_name_40 WHERE ship_size = "aframax"
What cargo was contained in a ship size of aframax?
CREATE TABLE table_name_40 (cargo VARCHAR, ship_size VARCHAR)
SELECT rnag__mhz_ FROM table_18475946_2 WHERE lyric_fm__mhz_ = "98.7"
What is the rnag for lyric fm 98.7?
CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR, lyric_fm__mhz_ VARCHAR)
SELECT model_number FROM table_name_32 WHERE order_part_number = "tmdml44bkx5ld"
Which model number has an order part number of TMDML44BKX5LD?
CREATE TABLE table_name_32 (model_number VARCHAR, order_part_number VARCHAR)
SELECT college_junior_club_team FROM table_2850912_4 WHERE nhl_team = "Buffalo Sabres"
Which junior team is associated with an NHL pick by the Buffalo Sabres?
CREATE TABLE table_2850912_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT MAX(rank) FROM table_name_92 WHERE matches = 362
What is the Rank of the player with 362 Matches?
CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR)
SELECT original_airing FROM table_name_60 WHERE audience_share__average_ = "8%"
Where the audience share is 8%, what is the original airing?
CREATE TABLE table_name_60 (original_airing VARCHAR, audience_share__average_ VARCHAR)
SELECT score FROM table_name_91 WHERE home_team = "sunderland"
what is the score when the home team is sunderland?
CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR)
SELECT date FROM table_14945608_1 WHERE opponent = "New York Jets"
What date did the Colts play New York Jets?
CREATE TABLE table_14945608_1 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM Templates WHERE template_type_code = "CV"
How many templates have template type code CV?
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT MIN(lane) FROM table_name_75 WHERE name = "natalie coughlin" AND rank > 1
What is the least lane number that Natalie Coughlin was in when she was ranked greater than 1?
CREATE TABLE table_name_75 (lane INTEGER, name VARCHAR, rank VARCHAR)
SELECT special_edition FROM table_25173505_13 WHERE english_version = "James Baskett"
what is the special edition for the english version of james baskett?
CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)
SELECT MIN(losses) FROM table_name_8 WHERE draws > 0 AND byes > 0
What is the lowest draw that is greater than 0 and byes greater than 0?
CREATE TABLE table_name_8 (losses INTEGER, draws VARCHAR, byes VARCHAR)
SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises"
What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?
CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR)
SELECT location FROM table_name_14 WHERE silver = "sohn bong-gak"
Where did sohn bong-gak win silver?
CREATE TABLE table_name_14 (location VARCHAR, silver VARCHAR)
SELECT MAX(age) FROM table_197638_6 WHERE player = "Roy Emerson"
At what age did Roy Emerson complete the Grand Slam?
CREATE TABLE table_197638_6 (age INTEGER, player VARCHAR)
SELECT COUNT(county) FROM table_20799587_1 WHERE mccain_percentage = "65.72%"
In how many counties did McCain get 65.72% of the votes?
CREATE TABLE table_20799587_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT county FROM table_name_4 WHERE latitude < 46.935364 AND geo_id = 3801700500
In what county is the latitude less than 46.935364 and GEO ID is 3801700500?
CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR)
SELECT winnings FROM table_2012187_1 WHERE poles = 0 AND team_s_ = "Yates Racing Front Row Motorsports"
state the winnings of yates racing front row motorsports where poles were 0
CREATE TABLE table_2012187_1 (winnings VARCHAR, poles VARCHAR, team_s_ VARCHAR)
SELECT team FROM table_name_82 WHERE qual_2 = "1:44.027"
what team had the 1:44.027 qual 2?
CREATE TABLE table_name_82 (team VARCHAR, qual_2 VARCHAR)
SELECT County_name, Population FROM county
Show the county name and population of all counties.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT opponent FROM table_name_24 WHERE round = "3" AND venue = "home"
What is the Opponent with a Round with 3, and a Venue of home?
CREATE TABLE table_name_24 (opponent VARCHAR, round VARCHAR, venue VARCHAR)
SELECT MAX(year_built) FROM table_178399_1 WHERE church_name = "Holmedal kyrkje"
Name the maximum year built for holmedal kyrkje
CREATE TABLE table_178399_1 (year_built INTEGER, church_name VARCHAR)
SELECT pilot FROM table_name_42 WHERE date = "september 27, 1972"
Who is the pilot on September 27, 1972?
CREATE TABLE table_name_42 (pilot VARCHAR, date VARCHAR)
SELECT 110 AS _m_h FROM table_name_85 WHERE overall_points = "7835 (sb)"
What is the 110m H number when the overall points are 7835 (sb)?
CREATE TABLE table_name_85 (overall_points VARCHAR)
SELECT MIN(position) FROM table_name_6 WHERE bike_no > 10 AND driver___passenger = "nicky pulinx / ondrej cermak" AND points > 244
What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?
CREATE TABLE table_name_6 (position INTEGER, points VARCHAR, bike_no VARCHAR, driver___passenger VARCHAR)
SELECT team__number1 FROM table_name_76 WHERE time___cest__ < 18
What id the team with a smaller Time than 18?
CREATE TABLE table_name_76 (team__number1 VARCHAR, time___cest__ INTEGER)
SELECT airport FROM table_name_75 WHERE country = "angola" AND icao = "fnsa"
What is Angola's airport and ICAO of fnsa?
CREATE TABLE table_name_75 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT top_10 FROM table_2333416_2 WHERE winnings = "$17,695"
How many top 10 finishes did Ken Bouchard get in the year he won $17,695?
CREATE TABLE table_2333416_2 (top_10 VARCHAR, winnings VARCHAR)
SELECT country FROM table_name_8 WHERE money___$__ = "playoff" AND score = 72 - 69 - 73 - 73 = 287
What Country has a Player with Playoff Money with a Score of 72-69-73-73=287?
CREATE TABLE table_name_8 (country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT COUNT(founded) FROM table_10082596_1 WHERE location = "Bloomington, IN"
How many schools are in Bloomington, IN?
CREATE TABLE table_10082596_1 (founded VARCHAR, location VARCHAR)
SELECT engine FROM table_name_53 WHERE chassis_code = "w123.026"
What Engine does the w123.026 chassis have?
CREATE TABLE table_name_53 (engine VARCHAR, chassis_code VARCHAR)
SELECT overall FROM table_name_48 WHERE nationality = "united states" AND player = "doug sproule"
What was the overall pick for Doug Sproule of the United States?
CREATE TABLE table_name_48 (overall VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT MAX(christer_tornell) FROM table_28677723_8 WHERE trine_dehli_cleve = 9
What was the maximum value that Christer Tornell gave when Trine Dehli Cleve gave a 9?
CREATE TABLE table_28677723_8 (christer_tornell INTEGER, trine_dehli_cleve VARCHAR)
SELECT COUNT(*) FROM DEPARTMENT WHERE Division = "AS"
What is the number of departments in Division "AS"?
CREATE TABLE DEPARTMENT (Division VARCHAR)
SELECT nationality FROM table_name_13 WHERE pick__number < 130 AND player = "tyler bunz"
Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1
CREATE TABLE table_name_13 (nationality VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 1
What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?
CREATE TABLE table_name_91 (rank__night_ INTEGER, episode VARCHAR, rating VARCHAR)
SELECT home_team FROM table_name_99 WHERE venue = "arden street oval"
Who played home team at the Arden Street Oval game?
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)
SELECT softball_stadium FROM table_1974545_3 WHERE school = "Rhode Island College"
What is the name of Rhode Island College's softball stadium?
CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)
SELECT SUM(2000) FROM table_name_88 WHERE 1969 = 54.3 AND 1979 < 48.4
What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4?
CREATE TABLE table_name_88 (Id VARCHAR)
SELECT Name FROM pilot WHERE Age >= 25
What are the name of pilots aged 25 or older?
CREATE TABLE pilot (Name VARCHAR, Age VARCHAR)
SELECT label FROM table_1893815_1 WHERE chinese__traditional_ = "情歌沒有告訴你"
Name the label for traditional chinese 情歌沒有告訴你
CREATE TABLE table_1893815_1 (label VARCHAR, chinese__traditional_ VARCHAR)
SELECT chassis FROM table_name_53 WHERE year > 1972 AND pts > 0
Which chassis is more recent than 1972 and has more than 0 Pts. ?
CREATE TABLE table_name_53 (chassis VARCHAR, year VARCHAR, pts VARCHAR)
SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton"
Who did Clinton appoint as a Chief Judge?
CREATE TABLE table_name_2 (chief_judge VARCHAR, appointed_by VARCHAR)
SELECT metro_vincity FROM table_name_84 WHERE opened = "1999"
What metro vincity has the venue that opened in 1999?
CREATE TABLE table_name_84 (metro_vincity VARCHAR, opened VARCHAR)
SELECT COUNT(location) FROM table_11604804_5 WHERE nickname = "CBSUA formerly known CSSAC"
What was the number of location of nickname cbsua formerly known cssac?
CREATE TABLE table_11604804_5 (location VARCHAR, nickname VARCHAR)
SELECT 2009 FROM table_name_39 WHERE 2013 = "4th"
What is the 2009 when the 2013 is 4th?
CREATE TABLE table_name_39 (Id VARCHAR)
SELECT school FROM table_name_30 WHERE position = "p" AND team = "kansas city royals" AND player = "jay gehrke"
What school did P Jay Gehrke of the Kansas City Royals attend?
CREATE TABLE table_name_30 (school VARCHAR, player VARCHAR, position VARCHAR, team VARCHAR)
SELECT MAX(year) FROM table_name_81 WHERE result = "16-14"
In what Year was the Result of the game 16-14?
CREATE TABLE table_name_81 (year INTEGER, result VARCHAR)
SELECT wins FROM table_name_15 WHERE podiums = "5"
How many wins did the team with 5 podiums have?
CREATE TABLE table_name_15 (wins VARCHAR, podiums VARCHAR)
SELECT date FROM table_12262182_2 WHERE titles = "Lineal Super lightweight (140)"
What is the date of the match for the lineal super lightweight (140)?
CREATE TABLE table_12262182_2 (date VARCHAR, titles VARCHAR)
SELECT player_name FROM table_name_93 WHERE position = "defensive end" AND college = "california"
Who was a defensive end at California?
CREATE TABLE table_name_93 (player_name VARCHAR, position VARCHAR, college VARCHAR)
SELECT set_2 FROM table_name_70 WHERE set_3 = "20–25"
Which Set 2 has a Set 3 of 20–25?
CREATE TABLE table_name_70 (set_2 VARCHAR, set_3 VARCHAR)
SELECT name FROM table_name_12 WHERE lane < 3 AND heat > 4 AND time = "2:00.80"
Which name has a Lane smaller than 3, a Heat larger than 4, and a Time of 2:00.80?
CREATE TABLE table_name_12 (name VARCHAR, time VARCHAR, lane VARCHAR, heat 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 result FROM table_name_25 WHERE attendance = "64,104"
What is the Result of the game with an Attendance of 64,104?
CREATE TABLE table_name_25 (result VARCHAR, attendance VARCHAR)
SELECT original_air_date FROM table_21550870_1 WHERE us_viewers__million_ = "9.16"
Name the original air date for 9.16 viewers
CREATE TABLE table_21550870_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_28967275_2 WHERE episode__number = 31
What is the original airdate of episode #31?
CREATE TABLE table_28967275_2 (original_air_date VARCHAR, episode__number VARCHAR)
SELECT AVG(grid) FROM table_name_27 WHERE rider = "shinya nakano" AND laps < 21
What is the average Grid, when Rider is Shinya Nakano, and when Laps is less than 21?
CREATE TABLE table_name_27 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT rebounds FROM table_26360571_2 WHERE _number = 2
List the number of recovers for player #2.
CREATE TABLE table_26360571_2 (rebounds VARCHAR, _number VARCHAR)
SELECT DISTINCT premises_type FROM premises
What are all the distinct premise types?
CREATE TABLE premises (premises_type VARCHAR)
SELECT official_name FROM table_176521_2 WHERE area_km_2 = "304.06"
What are the official name(s) of places with an area of 304.06 km2?
CREATE TABLE table_176521_2 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT name, born_state, age FROM head ORDER BY age
List the name, born state and age of the heads of departments ordered by age.
CREATE TABLE head (name VARCHAR, born_state VARCHAR, age VARCHAR)
SELECT MIN(points) FROM table_name_43 WHERE lost < 4 AND against < 16
What is the least amount of points when there were less than 4 losses and less than 16 against?
CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR)
SELECT T2.title, T1.stars, T2.director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director
Find the title and score of the movie with the lowest rating among all movies directed by each director.
CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)
SELECT cyl FROM table_name_1 WHERE engine = "2.3 16v"
Engine 2.3 16v has how many cylinders?
CREATE TABLE table_name_1 (cyl VARCHAR, engine VARCHAR)
SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the program that is broadcast most frequently.
CREATE TABLE program (name VARCHAR, program_id VARCHAR); CREATE TABLE broadcast (program_id VARCHAR)
SELECT grid FROM table_name_22 WHERE manufacturer = "honda" AND laps = "24" AND time_retired = "+13.997"
WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?
CREATE TABLE table_name_22 (grid VARCHAR, time_retired VARCHAR, manufacturer VARCHAR, laps VARCHAR)
SELECT MAX(production_code) FROM table_27988281_1 WHERE written_by = "Jeff Filgo"
What is the production code of the episode written by Jeff Filgo?
CREATE TABLE table_27988281_1 (production_code INTEGER, written_by VARCHAR)
SELECT call_sign FROM table_name_60 WHERE branding = "cbc radio one"
Which Call sign has a Branding of cbc radio one?
CREATE TABLE table_name_60 (call_sign VARCHAR, branding VARCHAR)
SELECT round FROM table_name_67 WHERE opponent = "cska sofia" AND venue = "a"
What is the round for the opponent CSKA Sofia in Venue A?
CREATE TABLE table_name_67 (round VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_97 WHERE away_team = "south melbourne"
What is the away team score for South Melbourne?
CREATE TABLE table_name_97 (away_team VARCHAR)
SELECT group_b FROM table_name_17 WHERE group_e = "georgia"
What is the group B region with a Group E region of Georgia?
CREATE TABLE table_name_17 (group_b VARCHAR, group_e VARCHAR)
SELECT year FROM table_20774360_2 WHERE standing = "9th"
Name the year for standing 9th
CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR)
SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schuster"
Find the texts of assessment notes for teachers with last name "Schuster".
CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)
SELECT MAX(year) FROM table_name_37 WHERE time = 10.56
What is the most recent year with a time of 10.56?
CREATE TABLE table_name_37 (year INTEGER, time VARCHAR)
SELECT league FROM table_name_3 WHERE year = "1915/16"
Tell me the league for year of 1915/16
CREATE TABLE table_name_3 (league VARCHAR, year VARCHAR)
SELECT margin FROM table_13026799_1 WHERE championship = "Masters Tournament"
What was the margin of the Masters Tournament?
CREATE TABLE table_13026799_1 (margin VARCHAR, championship VARCHAR)
SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"
In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?
CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)