question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
show all train numbers and names ordered by their time from early to late.
CREATE TABLE train (train_number VARCHAR, name VARCHAR, TIME VARCHAR)
SELECT train_number, name FROM train ORDER BY TIME
which is the maximun serie episode number when the millions of North American spectators is 3.14?
CREATE TABLE table_22580855_1 (series_no INTEGER, us_viewers__millions_ VARCHAR)
SELECT MAX(series_no) FROM table_22580855_1 WHERE us_viewers__millions_ = "3.14"
What was the drawn when the tries against was 89?
CREATE TABLE table_12792876_3 (drawn VARCHAR, tries_against VARCHAR)
SELECT drawn FROM table_12792876_3 WHERE tries_against = "89"
How many titles had production code 1040?
CREATE TABLE table_25662434_1 (title VARCHAR, production_code VARCHAR)
SELECT COUNT(title) FROM table_25662434_1 WHERE production_code = 1040
What is the average Total with a Bronze that is larger than 1?
CREATE TABLE table_name_46 (total INTEGER, bronze INTEGER)
SELECT AVG(total) FROM table_name_46 WHERE bronze > 1
What is the crowd with Away team of hawthorn?
CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_94 WHERE away_team = "hawthorn"
What's the sum of tie no for home team burgess hill town?
CREATE TABLE table_name_76 (tie_no INTEGER, home_team VARCHAR)
SELECT SUM(tie_no) FROM table_name_76 WHERE home_team = "burgess hill town"
How much Rank has a Bronze of 21, and a Silver larger than 10?
CREATE TABLE table_name_41 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(rank) FROM table_name_41 WHERE bronze = 21 AND silver > 10
What manner of departure was Dick Advocaat replaced by?
CREATE TABLE table_name_47 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT manner_of_departure FROM table_name_47 WHERE replaced_by = "dick advocaat"
What event was Sun Yue the alternate and wang bingyu(3rd) the skip?
CREATE TABLE table_name_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)
SELECT event FROM table_name_75 WHERE alternate = "sun yue" AND skip = "wang bingyu(3rd)"
What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2?
CREATE TABLE table_name_45 (livery VARCHAR, wheel_arrangement VARCHAR, locomotive_type VARCHAR, year_built VARCHAR)
SELECT livery FROM table_name_45 WHERE locomotive_type = "steam" AND year_built > 1950 AND wheel_arrangement = "2-6-2"
How many different production codes are there for the episode with 4.69 million US viewers?
CREATE TABLE table_26429543_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(production_code) FROM table_26429543_1 WHERE us_viewers__millions_ = "4.69"
What is the highest numbered episode in the series?
CREATE TABLE table_28019988_5 (series__number INTEGER)
SELECT MAX(series__number) FROM table_28019988_5
I want the lowest Grid for David Coulthard
CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR)
SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard"
What is the sum of enrollments for schools located in Culver?
CREATE TABLE table_name_28 (enrollment INTEGER, location VARCHAR)
SELECT SUM(enrollment) FROM table_name_28 WHERE location = "culver"
What position did the player whose highlights were 5 career INTs play?
CREATE TABLE table_22982552_9 (position VARCHAR, highlight_s_ VARCHAR)
SELECT position FROM table_22982552_9 WHERE highlight_s_ = "5 career INTs"
What is the highest Population, when % LDS is 0.54%, and when Total Congregations is greater than 2?
CREATE TABLE table_name_13 (population INTEGER, _percentage_lds VARCHAR, total_congregations VARCHAR)
SELECT MAX(population) FROM table_name_13 WHERE _percentage_lds = "0.54%" AND total_congregations > 2
Who was the player with a bowling best of 2/43?
CREATE TABLE table_15893020_2 (player VARCHAR, best_bowling VARCHAR)
SELECT player FROM table_15893020_2 WHERE best_bowling = "2/43"
Which Status has a Co-contestant (Yaar vs. Pyaar) of tina parekh?
CREATE TABLE table_name_29 (status VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT status FROM table_name_29 WHERE co_contestant__yaar_vs_pyaar_ = "tina parekh"
What dates was champion masahiro kawamura at the ibaraki country club tournament?
CREATE TABLE table_name_6 (dates VARCHAR, tournament_location VARCHAR, champion VARCHAR)
SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura"
Which college has a defensive end with a round less than 6?
CREATE TABLE table_name_84 (college VARCHAR, round VARCHAR, position VARCHAR)
SELECT college FROM table_name_84 WHERE round > 6 AND position = "defensive end"
What kind of North Marquesan has a Takuu of /ɾani/?
CREATE TABLE table_name_2 (north_marquesan VARCHAR, takuu VARCHAR)
SELECT north_marquesan FROM table_name_2 WHERE takuu = "/ɾani/"
What is the rate limit when budget plans (£m) is limit agreed?
CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, budget_plans__£m_ VARCHAR)
SELECT rate_limit__p_ FROM table_25316812_1 WHERE budget_plans__£m_ = "limit agreed"
How many schools left in 2002-03?
CREATE TABLE table_262560_2 (location VARCHAR, left VARCHAR)
SELECT COUNT(location) FROM table_262560_2 WHERE left = "2002-03"
Name the average cuts for top-25 more than 13 and top-5 less than 11
CREATE TABLE table_name_5 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR)
SELECT AVG(cuts_made) FROM table_name_5 WHERE top_25 > 13 AND top_5 < 11
What is the name of call sign that uses a Frequency MHz of 91.1 fm?
CREATE TABLE table_name_33 (call_sign VARCHAR, frequency_mhz VARCHAR)
SELECT call_sign FROM table_name_33 WHERE frequency_mhz = "91.1 fm"
List all info about all people.
CREATE TABLE people (Id VARCHAR)
SELECT * FROM people
Which season did not qualify for UEFA competitions?
CREATE TABLE table_name_70 (season VARCHAR, against VARCHAR)
SELECT season FROM table_name_70 WHERE against = "did not qualify for uefa competitions"
What's the frequency when the identifier is cbf-fm-14 having a class of A?
CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"
On what date was the record 21-26?
CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_79 WHERE record = "21-26"
When 43.048° n is the latitude what is the magnitude?
CREATE TABLE table_24192190_1 (magnitude VARCHAR, latitude VARCHAR)
SELECT magnitude FROM table_24192190_1 WHERE latitude = "43.048° N"
What is 2004, when 2005 is "2R", and when 2006 is "1R"
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT 2004 FROM table_name_74 WHERE 2005 = "2r" AND 2006 = "1r"
What is every company with an index weighting % of 1 and the city of Dimitrovgrad?
CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR)
SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad"
Who won the 17 staged event in 1987?
CREATE TABLE table_name_83 (winner VARCHAR, stages VARCHAR, year VARCHAR)
SELECT winner FROM table_name_83 WHERE stages = "17" AND year = "1987"
What was the score for the game that kicked off at 6:00 p.m.?
CREATE TABLE table_24918268_2 (final_score VARCHAR, kickoff VARCHAR)
SELECT final_score FROM table_24918268_2 WHERE kickoff = "6:00 p.m."
If the rings is 58.975, what is the number for the horizontal bar?
CREATE TABLE table_18662026_1 (horizontal_bar VARCHAR, rings VARCHAR)
SELECT horizontal_bar FROM table_18662026_1 WHERE rings = "58.975"
Which Built has a Builder of brel crewe?
CREATE TABLE table_name_74 (built INTEGER, builder VARCHAR)
SELECT AVG(built) FROM table_name_74 WHERE builder = "brel crewe"
Which Round has a College of stanford, and an Overall smaller than 8?
CREATE TABLE table_name_57 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT AVG(round) FROM table_name_57 WHERE college = "stanford" AND overall < 8
What was john huston's score?
CREATE TABLE table_name_56 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_56 WHERE player = "john huston"
Which station has park & ride lot parking?
CREATE TABLE table_2093995_1 (stations VARCHAR, parking VARCHAR)
SELECT stations FROM table_2093995_1 WHERE parking = "Park & Ride Lot"
What is the 2009 when the 2013 is 4th?
CREATE TABLE table_name_39 (Id VARCHAR)
SELECT 2009 FROM table_name_39 WHERE 2013 = "4th"
Who was the back player with a pick less than 183 from the round greater than 12?
CREATE TABLE table_name_41 (player VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT player FROM table_name_41 WHERE pick < 183 AND position = "back" AND round > 12
What is the maximum week that 69,372 people attended the game?
CREATE TABLE table_name_13 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_13 WHERE attendance = "69,372"
Which venue was used for the game whose score was 2:3?
CREATE TABLE table_name_25 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_25 WHERE score = "2:3"
What is every total for the University of the Cordilleras UC Dance Squad?
CREATE TABLE table_21995420_6 (total VARCHAR, school VARCHAR)
SELECT total FROM table_21995420_6 WHERE school = "University of the Cordilleras UC Dance Squad"
What Competition has a Result of Draw?
CREATE TABLE table_name_50 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_50 WHERE result = "draw"
Name the became consort for ceased to be consort of 4 april 1588 husband's death
CREATE TABLE table_name_14 (became_consort VARCHAR, ceased_to_be_consort VARCHAR)
SELECT became_consort FROM table_name_14 WHERE ceased_to_be_consort = "4 april 1588 husband's death"
What team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds?
CREATE TABLE table_name_57 (team VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_name_57 WHERE high_assists = "tony parker (10)" AND high_rebounds = "kurt thomas (12)"
Name the reidsville for enrollment
CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR)
SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment"
What is the torque of the 1.6 petrol with daewoo power?
CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR, power VARCHAR)
SELECT torque FROM table_name_49 WHERE name = "1.6 petrol" AND power = "daewoo"
What are the most losses when there are 5 wins and draws less than 0?
CREATE TABLE table_name_7 (losses INTEGER, wins VARCHAR, draws VARCHAR)
SELECT MAX(losses) FROM table_name_7 WHERE wins = 5 AND draws < 0
Name the sum of draws when the position is less than 17 and wins is less than 11
CREATE TABLE table_name_82 (draws INTEGER, position VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11
What is the sum of cuts made when the top-5 is 2, and there are 12 events?
CREATE TABLE table_name_45 (cuts_made VARCHAR, top_5 VARCHAR, events VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_45 WHERE top_5 = 2 AND events = 12
What pick number was the Boston Bruins selection for defence?
CREATE TABLE table_2897457_8 (pick__number VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT pick__number FROM table_2897457_8 WHERE position = "Defence" AND nhl_team = "Boston Bruins"
Who is the Runner-up in Tournament of seiersberg
CREATE TABLE table_name_95 (runner_up VARCHAR, tournament VARCHAR)
SELECT runner_up FROM table_name_95 WHERE tournament = "seiersberg"
For natives of St. Louis, Missouri, what was listed under education?
CREATE TABLE table_name_47 (education VARCHAR, hometown VARCHAR)
SELECT education FROM table_name_47 WHERE hometown = "st. louis, missouri"
How many institutions are there?
CREATE TABLE inst (Id VARCHAR)
SELECT COUNT(*) FROM inst
List the names of editors who are older than 25.
CREATE TABLE editor (Name VARCHAR, Age INTEGER)
SELECT Name FROM editor WHERE Age > 25
WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?
CREATE TABLE table_name_44 (time_retired VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_44 WHERE manufacturer = "honda" AND grid = "8"
How many awards did milagros gutierrez win?
CREATE TABLE table_1825751_14 (other_awards VARCHAR, delegate VARCHAR)
SELECT other_awards FROM table_1825751_14 WHERE delegate = "Milagros Gutierrez"
What was the first episode in the season directed by nelson mccormick?
CREATE TABLE table_26565936_2 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MIN(no_in_season) FROM table_26565936_2 WHERE directed_by = "Nelson McCormick"
When was Alexey Kuleshov born?
CREATE TABLE table_19900792_1 (birth_date VARCHAR, player VARCHAR)
SELECT birth_date FROM table_19900792_1 WHERE player = "Alexey Kuleshov"
Which film had Charles Bickford as supporting actor?
CREATE TABLE table_24225238_1 (film VARCHAR, supporting_actor VARCHAR)
SELECT film FROM table_24225238_1 WHERE supporting_actor = "Charles Bickford"
Who was the home team when the away team was Hawthorn?
CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_15 WHERE away_team = "hawthorn"
Which College has a Pick # larger than 30, and a Position of ol?
CREATE TABLE table_name_22 (college VARCHAR, pick__number VARCHAR, position VARCHAR)
SELECT college FROM table_name_22 WHERE pick__number > 30 AND position = "ol"
What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?
CREATE TABLE table_name_1 (week_8_oct_26 VARCHAR, week_12_nov_23 VARCHAR)
SELECT week_8_oct_26 FROM table_name_1 WHERE week_12_nov_23 = "georgia tech (8-2)"
What are the names of parties that have both delegates on "Appropriations" committee and
CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"
How did the season with 7-2 conference record ed?
CREATE TABLE table_20319085_2 (result VARCHAR, conference_record VARCHAR)
SELECT result FROM table_20319085_2 WHERE conference_record = "7-2"
WHAT IS THE ENROLLMENT FOR école saint-therèse AFTER 1954?
CREATE TABLE table_name_5 (school_name VARCHAR, year_open VARCHAR)
SELECT MIN(2012 AS _enrolment) FROM table_name_5 WHERE school_name = "école saint-therèse" AND year_open > 1954
Find the number of professors with a Ph.D. degree in each department.
CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR)
SELECT COUNT(*), dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code
What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?
CREATE TABLE table_name_64 (most_recent_cap VARCHAR, goals VARCHAR, name VARCHAR)
SELECT most_recent_cap FROM table_name_64 WHERE goals > 17 AND name = "brian turner"
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 SUM(winter_olympics) FROM table_name_5 WHERE country = "soviet union" AND holmenkollen = "1970, 1979"
What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)?
CREATE TABLE table_name_2 (shuji_kondo VARCHAR, pepe_michinoku VARCHAR)
SELECT shuji_kondo FROM table_name_2 WHERE pepe_michinoku = "sabin (14:43)"
What is the total number of Year, when Wins is less than 0?
CREATE TABLE table_name_70 (year VARCHAR, wins INTEGER)
SELECT COUNT(year) FROM table_name_70 WHERE wins < 0
What ship type was from SE?
CREATE TABLE table_name_86 (ship_type VARCHAR, nat VARCHAR)
SELECT ship_type FROM table_name_86 WHERE nat = "se"
Which 2005 has a Tournament of grand slam tournaments?
CREATE TABLE table_name_52 (tournament VARCHAR)
SELECT 2005 FROM table_name_52 WHERE tournament = "grand slam tournaments"
Name the most goals for 56 points
CREATE TABLE table_2509505_1 (goals_for INTEGER, points VARCHAR)
SELECT MAX(goals_for) FROM table_2509505_1 WHERE points = 56
What is the magnitude of the earthquake with an epicenter in biskra province?
CREATE TABLE table_name_6 (magnitude VARCHAR, epicenter VARCHAR)
SELECT magnitude FROM table_name_6 WHERE epicenter = "biskra province"
How many draws were there when there were 30 tries against?
CREATE TABLE table_12792876_2 (drawn VARCHAR, tries_against VARCHAR)
SELECT drawn FROM table_12792876_2 WHERE tries_against = "30"
What is the candidates for first elected 1914
CREATE TABLE table_1342393_16 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1342393_16 WHERE first_elected = 1914
What is the format of code 9 40231-2 (us only)?
CREATE TABLE table_name_83 (format VARCHAR, code VARCHAR)
SELECT format FROM table_name_83 WHERE code = "9 40231-2 (us only)"
Show the movie titles and book titles for all companies in China.
CREATE TABLE movie (title VARCHAR, movie_id VARCHAR); CREATE TABLE culture_company (movie_id VARCHAR, book_club_id VARCHAR, incorporated_in VARCHAR); CREATE TABLE book_club (book_title VARCHAR, book_club_id VARCHAR)
SELECT T1.title, T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'
Which modern house title translates to prison?
CREATE TABLE table_name_46 (modern_title_of_house VARCHAR, translation VARCHAR)
SELECT modern_title_of_house FROM table_name_46 WHERE translation = "prison"
What was the result of the game that was played on week 15?
CREATE TABLE table_name_95 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_95 WHERE week = 15
What is the number of the acquisition of import in the 2002 season?
CREATE TABLE table_name_19 (number VARCHAR, acquisition_via VARCHAR, season VARCHAR)
SELECT number FROM table_name_19 WHERE acquisition_via = "import" AND season = "2002"
What's the bronze medal count when the silver is less than 3 and the gold is 1?
CREATE TABLE table_name_63 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_63 WHERE gold = 1 AND silver < 3
Which DOB has a First of david, and Throws of l, and a Position of if?
CREATE TABLE table_name_56 (dob VARCHAR, position VARCHAR, first VARCHAR, throws VARCHAR)
SELECT dob FROM table_name_56 WHERE first = "david" AND throws = "l" AND position = "if"
Which Record has a Score of 0–2?
CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_38 WHERE score = "0–2"
What time/retired for grid 18?
CREATE TABLE table_name_49 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_49 WHERE grid = 18
When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1?
CREATE TABLE table_name_69 (week_1 VARCHAR, week_3 VARCHAR)
SELECT week_1 FROM table_name_69 WHERE week_3 = "alinna d penta"
At which race did reg parnell win the goodwood trophy?
CREATE TABLE table_name_47 (race VARCHAR, event VARCHAR, driver VARCHAR)
SELECT race FROM table_name_47 WHERE event = "goodwood trophy" AND driver = "reg parnell"
Show the institution type with the largest number of institutions.
CREATE TABLE institution (TYPE VARCHAR)
SELECT TYPE FROM institution GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
How many placed 4th on April 25?
CREATE TABLE table_19317584_2 (date VARCHAR)
SELECT COUNT(4 AS th_placed) FROM table_19317584_2 WHERE date = "April 25"
If the public is 4, what is the total?
CREATE TABLE table_26375386_17 (total VARCHAR, public VARCHAR)
SELECT total FROM table_26375386_17 WHERE public = 4
What is the total championships that the league cup is less than 0?
CREATE TABLE table_name_55 (championship INTEGER, league_cup INTEGER)
SELECT SUM(championship) FROM table_name_55 WHERE league_cup < 0
What is the Aspect of Channel 26.5?
CREATE TABLE table_name_23 (aspect VARCHAR, channel VARCHAR)
SELECT aspect FROM table_name_23 WHERE channel = 26.5
What is Mahu when pergi is pi?
CREATE TABLE table_name_80 (mahu VARCHAR, pergi VARCHAR)
SELECT mahu FROM table_name_80 WHERE pergi = "pi"
Name the military expenditures for 2011 for romania
CREATE TABLE table_17971449_2 (military_expenditures__2011 VARCHAR, _us$_millions_ VARCHAR, country VARCHAR)
SELECT military_expenditures__2011, _us$_millions_ FROM table_17971449_2 WHERE country = "Romania"
What is the place with the 68 score?
CREATE TABLE table_name_30 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_30 WHERE score = 68
Which colleges do the tryout players whose name starts with letter D go to?
CREATE TABLE tryout (cName VARCHAR, pID VARCHAR); CREATE TABLE player (pID VARCHAR, pName VARCHAR)
SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%'