answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT chassis FROM table_name_2 WHERE year = 1989 AND engine = "cosworth"
What chassis is used in 1989 with a cosworth engine?
CREATE TABLE table_name_2 (chassis VARCHAR, year VARCHAR, engine VARCHAR)
SELECT MIN(week) FROM table_24136814_3
What is he smallest numbered week?
CREATE TABLE table_24136814_3 (week INTEGER)
SELECT SUM(november) FROM table_name_89 WHERE game < 16 AND points > 22
Which November has a Game smaller than 16, and Points larger than 22?
CREATE TABLE table_name_89 (november INTEGER, game VARCHAR, points VARCHAR)
SELECT city FROM table_name_50 WHERE iata = "kul"
Which city's IATA is KUL?
CREATE TABLE table_name_50 (city VARCHAR, iata VARCHAR)
SELECT candidates FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 5"
What candidate was re-elected in the Louisiana 5 district?
CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR)
SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway"
What was the length for GT class at Portland International Raceway?
CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)
SELECT MAX(byes) FROM table_name_88 WHERE losses > 7 AND wins < 6 AND draws < 0
Which byes are high when losses are larger than 7, wins smaller than 6, and draws are smaller than 0?
CREATE TABLE table_name_88 (byes INTEGER, draws VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT outcome_of_election FROM table_name_31 WHERE candidate = "edward mahama" AND number_of_votes = "73,494"
What is the outcome of the election with edward mahama as a candidate and 73,494 votes?
CREATE TABLE table_name_31 (outcome_of_election VARCHAR, candidate VARCHAR, number_of_votes VARCHAR)
SELECT COUNT(goals_for) FROM table_name_48 WHERE ties > 0 AND goals_against > 35 AND wins < 2
what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?
CREATE TABLE table_name_48 (goals_for VARCHAR, wins VARCHAR, ties VARCHAR, goals_against VARCHAR)
SELECT MIN(enrollment) FROM table_27961684_1 WHERE team_name = "Pioneers"
How many people enrolled for the institute with the Pioneers?
CREATE TABLE table_27961684_1 (enrollment INTEGER, team_name VARCHAR)
SELECT 2001 FROM table_name_83 WHERE 2005 = "4r"
What is the 2001 tournament with a 2005 4r?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT COUNT(enrollment) FROM table_27361255_1 WHERE team_nickname = "RedHawks"
What is the enrollment for the Redhawks?
CREATE TABLE table_27361255_1 (enrollment VARCHAR, team_nickname VARCHAR)
SELECT rider FROM table_name_59 WHERE time = "+19.751"
Which rider has time of +19.751?
CREATE TABLE table_name_59 (rider VARCHAR, time VARCHAR)
SELECT COUNT(artist) FROM table_21378339_5 WHERE televote_points = 7
Name the artist for 7 points
CREATE TABLE table_21378339_5 (artist VARCHAR, televote_points VARCHAR)
SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990"
Which To par has a Country of australia, and a Year(s) won of 1990?
CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)
SELECT time_retired FROM table_name_16 WHERE grid < 9 AND constructor = "ferrari" AND driver = "rubens barrichello"
Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?
CREATE TABLE table_name_16 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT location FROM table_18893428_1 WHERE driver = "Pierre de Caters"
What is the location that had a driver named Pierre de Caters?
CREATE TABLE table_18893428_1 (location VARCHAR, driver VARCHAR)
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)
SELECT customer_name, customer_phone, customer_email FROM Customers ORDER BY date_became_customer
List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.
CREATE TABLE Customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, date_became_customer VARCHAR)
SELECT COUNT(round) FROM table_name_64 WHERE college = "appalachian state" AND overall < 156
Which Round has a College of appalachian state, and an Overall smaller than 156?
CREATE TABLE table_name_64 (round VARCHAR, college VARCHAR, overall VARCHAR)
SELECT title FROM table_29747178_2 WHERE series__number = 7
What is the title when the series # is 7?
CREATE TABLE table_29747178_2 (title VARCHAR, series__number VARCHAR)
SELECT party FROM table_name_47 WHERE left_office = "january 12, 1857"
What is the party of the politician who left office on January 12, 1857
CREATE TABLE table_name_47 (party VARCHAR, left_office VARCHAR)
SELECT name FROM table_name_27 WHERE place_of_birth = "porsgrunn"
Who was born in Porsgrunn?
CREATE TABLE table_name_27 (name VARCHAR, place_of_birth VARCHAR)
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"
What is the Akira when Tiger Mask IV is Akira (10:05)?
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR)
SELECT tyre FROM table_name_93 WHERE entrant = "team lotus" AND driver = "mika salo"
What tyre did Mika Salo use for team Lotus?
CREATE TABLE table_name_93 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT position FROM table_26996293_2 WHERE player = "Jim Henshall"
player is jim henshall what are all the position
CREATE TABLE table_26996293_2 (position VARCHAR, player VARCHAR)
SELECT 2008 FROM table_name_94 WHERE 2010 = "7"
What is the 2008 value with a 7 in 2010?
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT MIN(points) FROM table_name_92 WHERE against = 20 AND lost < 1
What is the lowest Points with an against of 20 and less than 1 lost?
CREATE TABLE table_name_92 (points INTEGER, against VARCHAR, lost VARCHAR)
SELECT 2 AS nd_party FROM table_name_14 WHERE election = "1857"
Which 2nd Party has a Election of 1857?
CREATE TABLE table_name_14 (election VARCHAR)
SELECT COUNT(record) FROM table_13619135_5 WHERE date = "January 14"
How many records are there for the games that took place on January 14.
CREATE TABLE table_13619135_5 (record VARCHAR, date VARCHAR)
SELECT win_lose FROM table_24074130_5 WHERE against = "Sweden"
What is every entry in the win/lose against Sweden?
CREATE TABLE table_24074130_5 (win_lose VARCHAR, against VARCHAR)
SELECT city FROM table_name_55 WHERE rank < 8 AND first < 1980 AND last > 1960 AND school = "highland"
What city is the School, Highland, in that ranks less than 8 and had its first title before 1980 and its last title later than 1960?
CREATE TABLE table_name_55 (city VARCHAR, school VARCHAR, last VARCHAR, rank VARCHAR, first VARCHAR)
SELECT position FROM table_name_85 WHERE affiliation = "ucla"
Which position did the drafted player affiliated with UCLA play?
CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR)
SELECT district FROM table_2668347_22 WHERE candidates = "William A. Burwell (DR)"
Which district did William A. Burwell (Dr) belong to?
CREATE TABLE table_2668347_22 (district VARCHAR, candidates VARCHAR)
SELECT event FROM table_name_54 WHERE method = "submission (armbar)" AND opponent = "jason st. louis"
What is Event, when Method is "Submission (Armbar)", and when Opponent is "Jason St. Louis"?
CREATE TABLE table_name_54 (event VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_41 WHERE date = "07/06/1997"
Which player played on 07/06/1997?
CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR)
SELECT MIN(T2.HS), T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos
What is minimum hours of the students playing in different position?
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR)
SELECT type_of_game FROM table_name_17 WHERE results¹ = "0:0"
What type of game had a 0:0 result?
CREATE TABLE table_name_17 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 1
What is the highest React that has a 7.61 Mark and a heat bigger than 1?
CREATE TABLE table_name_84 (react INTEGER, mark VARCHAR, heat VARCHAR)
SELECT MAX(top_10) FROM table_1637041_2 WHERE position = "63rd"
What is the maximum number of top 10s when he finished in 63rd?
CREATE TABLE table_1637041_2 (top_10 INTEGER, position VARCHAR)
SELECT MIN(week) FROM table_name_6 WHERE transition = "pat mccready"
What was the first week that had a transition with Pat Mccready?
CREATE TABLE table_name_6 (week INTEGER, transition VARCHAR)
SELECT to_par FROM table_name_71 WHERE place = "t3" AND country = "united states" AND player = "steve flesch"
what was steve flesch's to par when he was placed at t3 in the united states?
CREATE TABLE table_name_71 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
SELECT result FROM table_name_17 WHERE award = "drama desk award" AND nominee = "patricia mcgourty"
What is the result of nominee, Patricia McGourty, for the drama desk award?
CREATE TABLE table_name_17 (result VARCHAR, award VARCHAR, nominee VARCHAR)
SELECT date_won FROM table_name_10 WHERE championship = "wwe intercontinental championship"
Name the date won for wwe intercontinental championship
CREATE TABLE table_name_10 (date_won VARCHAR, championship VARCHAR)
SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = "17" AND nation = "china"
Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?
CREATE TABLE table_name_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = "1/2"
Name the original air date of 1/2 in season
CREATE TABLE table_16951593_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT mixed_doubles FROM table_15002265_1 WHERE mens_singles = "Peter Moritz"
who is the the mixed doubles with mens singles being peter moritz
CREATE TABLE table_15002265_1 (mixed_doubles VARCHAR, mens_singles VARCHAR)
SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000
List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?
CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER)
SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958"
What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships?
CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR)
SELECT record FROM table_name_16 WHERE score = "113–103"
What was the Record during the game with a Score of 113–103?
CREATE TABLE table_name_16 (record VARCHAR, score VARCHAR)
SELECT incumbent FROM table_1341577_10 WHERE district = "Florida 5"
what's incumbent with district being florida 5
CREATE TABLE table_1341577_10 (incumbent VARCHAR, district VARCHAR)
SELECT attendance FROM table_name_21 WHERE game_site = "the kingdome"
How many people were at the game that took place at the Kingdome?
CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR)
SELECT COUNT(directed_by) FROM table_165732_2 WHERE episode__number = 3
How many directors did Episode #3 have
CREATE TABLE table_165732_2 (directed_by VARCHAR, episode__number VARCHAR)
SELECT COUNT(shader_model) FROM table_25839957_5 WHERE core_clock___mhz__ = "900"
How many shader models have a 900 core clock ( mhz )?
CREATE TABLE table_25839957_5 (shader_model VARCHAR, core_clock___mhz__ VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_81 WHERE constituency_number = "203"
What is the Reserved for (SC / ST /None) when the constituency number is 203?
CREATE TABLE table_name_81 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT reg_season FROM table_name_7 WHERE record = "16-12"
What regular season had a record of 16-12?
CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR)
SELECT candidates FROM table_1341577_36 WHERE incumbent = "Ralph Regula"
Who are all the candidates who ran in the district where Ralph Regula is the incumbent?
CREATE TABLE table_1341577_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT MIN(attendance) FROM table_name_73 WHERE h___a = "h" AND round = "semi-finals second leg"
What is the lowest attendance when the h/A is H in the Semi-Finals Second Leg?
CREATE TABLE table_name_73 (attendance INTEGER, h___a VARCHAR, round VARCHAR)
SELECT SUM(february) FROM table_name_57 WHERE opponent = "@ colorado rockies"
What day in February had an opponent of @ Colorado Rockies?
CREATE TABLE table_name_57 (february INTEGER, opponent VARCHAR)
SELECT us_viewers__millions_ FROM table_25246990_2 WHERE written_by = "Jed Spingarn" AND no_in_series = "7"
How many U.S. viewers in millions watched the number 7 episode in the series that was written by Jed Spingarn?
CREATE TABLE table_25246990_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR, no_in_series VARCHAR)
SELECT race FROM table_name_99 WHERE tyre = "p" AND winning_driver = "juan manuel fangio"
What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?
CREATE TABLE table_name_99 (race VARCHAR, tyre VARCHAR, winning_driver VARCHAR)
SELECT program FROM table_12591022_2 WHERE focus = "General Management"
What is the program where the focus is general management?
CREATE TABLE table_12591022_2 (program VARCHAR, focus VARCHAR)
SELECT MIN(goals_for) FROM table_name_20 WHERE goal_difference = "+10" AND goals_against > 61
What is the fewest goals for when goal difference is +10 and goals against is more than 61?
CREATE TABLE table_name_20 (goals_for INTEGER, goal_difference VARCHAR, goals_against VARCHAR)
SELECT series FROM table_name_16 WHERE date = "may 27"
What was the series on may 27?
CREATE TABLE table_name_16 (series VARCHAR, date VARCHAR)
SELECT attendance FROM table_14656147_2 WHERE opponent = "Tampa Bay Buccaneers"
type the attendance for playing with tampa bay buccaneers?
CREATE TABLE table_14656147_2 (attendance VARCHAR, opponent VARCHAR)
SELECT status FROM table_170969_2 WHERE official_name = "Saint George"
What is the status for Saint George?
CREATE TABLE table_170969_2 (status VARCHAR, official_name VARCHAR)
SELECT SUM(gold) FROM table_name_32 WHERE bronze < 2 AND silver = 1 AND total > 4
What is the total gold that has bronze less than 2, a silver of 1 and total more than 4?
CREATE TABLE table_name_32 (gold INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT time FROM table_name_98 WHERE record = "15-7"
What is the Time with a Record that is 15-7?
CREATE TABLE table_name_98 (time VARCHAR, record VARCHAR)
SELECT AVG(poles) FROM table_name_71 WHERE points = "n/a"
WHAT IS THE AVERAGE POLES WITH POINTS N/A?
CREATE TABLE table_name_71 (poles INTEGER, points VARCHAR)
SELECT candidates FROM table_1342218_43 WHERE result = "Retired to run for U.S. Senate Democratic hold"
When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?
CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR)
SELECT conductor FROM table_29728787_1 WHERE olivier = "Dietrich Fischer-Dieskau"
When dietrich fischer-dieskau is the olivier who is the conductor?
CREATE TABLE table_29728787_1 (conductor VARCHAR, olivier VARCHAR)
SELECT MIN(join_date) FROM table_26466528_1
Name the least join date
CREATE TABLE table_26466528_1 (join_date INTEGER)
SELECT MIN(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "She Jiang"
Which place in the order is the Pinyin transcription She Jiang?
CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR)
SELECT country FROM table_name_12 WHERE language = "italian english" AND television_service = "disney xd +1"
What is the Country when the language is italian english, and the television service is disney xd +1?
CREATE TABLE table_name_12 (country VARCHAR, language VARCHAR, television_service VARCHAR)
SELECT MIN(pick__number) FROM table_16441561_5 WHERE position = "LB"
Who was the lowest picked LB
CREATE TABLE table_16441561_5 (pick__number INTEGER, position VARCHAR)
SELECT MIN(crowd) FROM table_name_36 WHERE venue = "kardinia park"
What is the fewest number of attendees at Kardinia Park?
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)
SELECT type_of_game FROM table_name_7 WHERE results¹ = "1:2"
What type of game had a result of 1:2?
CREATE TABLE table_name_7 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT record FROM table_name_96 WHERE method = "submission (triangle choke)" AND time = "0:48"
What is Record, when Method is "submission (triangle choke)", and when Time is 0:48?
CREATE TABLE table_name_96 (record VARCHAR, method VARCHAR, time VARCHAR)
SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = "craig slike"
Which # of Episodes has a Mole of craig slike?
CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR)
SELECT high_points FROM table_17325580_6 WHERE team = "Washington"
What is every high point when the team is Washington?
CREATE TABLE table_17325580_6 (high_points VARCHAR, team VARCHAR)
SELECT broadcast FROM table_26842217_18 WHERE site = "Davis-Wade Stadium • Starkville MS"
Name the broadcast for davis-wade stadium • starkville ms
CREATE TABLE table_26842217_18 (broadcast VARCHAR, site VARCHAR)
SELECT stadium FROM table_24949975_1 WHERE home_team = "Shamrock Rovers" AND result = "3–0"
What was the stadium for the home team of shamrock rovers and result of 3–0?
CREATE TABLE table_24949975_1 (stadium VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT notes FROM table_name_57 WHERE distance = "men's speed skating"
What were the notes during the distance of Men's Speed Skating?
CREATE TABLE table_name_57 (notes VARCHAR, distance VARCHAR)
SELECT score FROM table_name_59 WHERE date = "17/03/1956"
What's the score on 17/03/1956?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT SUM(height__m_) FROM table_name_22 WHERE height__ft_ < 380.6
What is the total height in meters for the building that has a less than 380.6 feet height?
CREATE TABLE table_name_22 (height__m_ INTEGER, height__ft_ INTEGER)
SELECT to_par FROM table_name_4 WHERE year_s__won = "1993"
What was the winning to par score of the 1993 PGA Championship?
CREATE TABLE table_name_4 (to_par VARCHAR, year_s__won VARCHAR)
SELECT skip FROM table_name_92 WHERE nation = "spain"
What is Spain's skip?
CREATE TABLE table_name_92 (skip VARCHAR, nation VARCHAR)
SELECT result FROM table_name_84 WHERE date = "10/18/1947"
What was the result of 10/18/1947?
CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)
SELECT second FROM table_name_56 WHERE third = "athanassios pantios"
Which Second has a Third of athanassios pantios?
CREATE TABLE table_name_56 (second VARCHAR, third VARCHAR)
SELECT result FROM table_name_99 WHERE score = "3-2"
What was the result of the game with a score of 3-2?
CREATE TABLE table_name_99 (result VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_22822559_8 WHERE record = "23-47"
Who had the highest rebounds during the game with a record of 23-47?
CREATE TABLE table_22822559_8 (high_rebounds VARCHAR, record VARCHAR)
SELECT score FROM table_name_73 WHERE record = "50-85"
What was the score of the game when the record was 50-85?
CREATE TABLE table_name_73 (score VARCHAR, record VARCHAR)
SELECT COUNT(us_air_date) FROM table_22353769_3 WHERE episode__number = 11
How many episodes have episode #11?
CREATE TABLE table_22353769_3 (us_air_date VARCHAR, episode__number VARCHAR)
SELECT MIN(pop_density__per_km2_) FROM table_name_12 WHERE district = "santa cruz" AND s_barangay > 82
What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82?
CREATE TABLE table_name_12 (pop_density__per_km2_ INTEGER, district VARCHAR, s_barangay VARCHAR)
SELECT time FROM table_name_14 WHERE team_s_ = "minnesota vikings" AND artist_s_ = "xxx"
How long is the XXX track used by the Minnesota Vikings?
CREATE TABLE table_name_14 (time VARCHAR, team_s_ VARCHAR, artist_s_ VARCHAR)
SELECT city_of_license__market FROM table_1353096_1 WHERE channel_tv___dt__ = "25 (31)"
What city has channel tv (dt) 25 (31)?
CREATE TABLE table_1353096_1 (city_of_license__market VARCHAR, channel_tv___dt__ VARCHAR)
SELECT agency FROM table_27515452_3 WHERE sizes = "33-23-36"
which company has a person that can wear clothing in 33-23-36
CREATE TABLE table_27515452_3 (agency VARCHAR, sizes VARCHAR)
SELECT doctor FROM table_name_69 WHERE title = "city of death"
Which Doctor is featured in City of Death?
CREATE TABLE table_name_69 (doctor VARCHAR, title VARCHAR)
SELECT shooter FROM table_name_7 WHERE event = "wc rio de janeiro" AND rank_points = "10"
Who is the shooter at the WC Rio De Janeiro event with 10 rank points?
CREATE TABLE table_name_7 (shooter VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT COUNT(total) FROM table_name_18 WHERE silver = 1 AND rank < 2
How many medals were won total for the country that won 1 silver and was ranked 2 or lower?
CREATE TABLE table_name_18 (total VARCHAR, silver VARCHAR, rank VARCHAR)