question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the total works number of the locomotive with 0-6-4t type after 1875?
CREATE TABLE table_name_78 (works_number INTEGER, type VARCHAR, date VARCHAR)
SELECT SUM(works_number) FROM table_name_78 WHERE type = "0-6-4t" AND date > 1875
What is the meaning of the constellation that has puppis /ˈpʌpɨs/ as genitive?
CREATE TABLE table_287159_1 (meaning VARCHAR, genitive VARCHAR)
SELECT meaning FROM table_287159_1 WHERE genitive = "Puppis /ˈpʌpɨs/"
Show all the faculty ranks and the number of students advised by each rank.
CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR)
SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank
What is the largest amount of ends won when stolen ends were 3?
CREATE TABLE table_25718552_2 (Ends INTEGER, stolen_ends VARCHAR)
SELECT MAX(Ends) AS won FROM table_25718552_2 WHERE stolen_ends = 3
What is the score of the team with the 14-9 record?
CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_43 WHERE record = "14-9"
How many draws correspond to more than 11 losses in a match less than 14?
CREATE TABLE table_name_36 (draw VARCHAR, lost VARCHAR, match VARCHAR)
SELECT COUNT(draw) FROM table_name_36 WHERE lost > 11 AND match < 14
What is the sum of Points, when Year is after 1959, and when Class is 250cc?
CREATE TABLE table_name_42 (points INTEGER, year VARCHAR, class VARCHAR)
SELECT SUM(points) FROM table_name_42 WHERE year > 1959 AND class = "250cc"
How many tournaments were held at Alabama?
CREATE TABLE table_21260421_1 (score VARCHAR, location VARCHAR)
SELECT COUNT(score) FROM table_21260421_1 WHERE location = "Alabama"
Name the region for february 14, 2002
CREATE TABLE table_name_6 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_6 WHERE date = "february 14, 2002"
Name the least number in season for brad markowitz, william n. fordes & rené balcer
CREATE TABLE table_2618102_1 (no_in_season INTEGER, written_by VARCHAR)
SELECT MIN(no_in_season) FROM table_2618102_1 WHERE written_by = "Brad Markowitz, William N. Fordes & René Balcer"
What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?
CREATE TABLE table_name_98 (title VARCHAR, episode__number VARCHAR, part_6 VARCHAR)
SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = "january 6, 2008"
What is the highest round that has an overall of 143 and a pick greater than 6?
CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick VARCHAR)
SELECT MAX(round) FROM table_name_36 WHERE overall = 143 AND pick > 6
How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?
CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR)
SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)"
What was the production code for episode #1?
CREATE TABLE table_20726262_2 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_20726262_2 WHERE no_in_series = 1
Which date has the record time of 3:01?
CREATE TABLE table_name_82 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_82 WHERE time = "3:01"
How many audition city's are there with an episode air date of June 24, 2010?
CREATE TABLE table_27615445_1 (audition_city VARCHAR, episode_air_date VARCHAR)
SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = "June 24, 2010"
What is the rating of the episode with 13.47 million viewers and overall rank larger than 6?
CREATE TABLE table_name_69 (rating INTEGER, viewers__m_ VARCHAR, overall_rank VARCHAR)
SELECT SUM(rating) FROM table_name_69 WHERE viewers__m_ = 13.47 AND overall_rank > 6
What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?
CREATE TABLE table_name_82 (time VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)
SELECT time FROM table_name_82 WHERE nfl_recap = "recap" AND game_site = "arrowhead stadium"
What skip has switzerland as the country?
CREATE TABLE table_name_15 (skip VARCHAR, country VARCHAR)
SELECT skip FROM table_name_15 WHERE country = "switzerland"
What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?
CREATE TABLE table_name_73 (average VARCHAR, attendance VARCHAR, sellouts VARCHAR, season VARCHAR)
SELECT COUNT(average) FROM table_name_73 WHERE sellouts < 14 AND season = "2011-12" AND attendance < 162 OFFSET 474
Which series airs Saturday on Channel 5?
CREATE TABLE table_name_20 (series VARCHAR, saturday VARCHAR)
SELECT series FROM table_name_20 WHERE saturday = "channel 5"
what is the highest gold count when total is more than 3, bronze less than 3, and nation of belarus with silver count more than 2?
CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MAX(gold) FROM table_name_28 WHERE total > 3 AND bronze < 3 AND nation = "belarus" AND silver > 2
What is the largest number of students?
CREATE TABLE table_142950_1 (total_number_of_students INTEGER)
SELECT MAX(total_number_of_students) FROM table_142950_1
What was the last year that they had less than 16 points in class 500cc?
CREATE TABLE table_name_11 (year INTEGER, points VARCHAR, class VARCHAR)
SELECT MAX(year) FROM table_name_11 WHERE points < 16 AND class = "500cc"
What is Set 1, when Set 3 is 22-25?
CREATE TABLE table_name_39 (set_1 VARCHAR, set_3 VARCHAR)
SELECT set_1 FROM table_name_39 WHERE set_3 = "22-25"
How many matched scored 3–6, 7–6(5), 6–3?
CREATE TABLE table_1028356_3 (surface VARCHAR, score VARCHAR)
SELECT COUNT(surface) FROM table_1028356_3 WHERE score = "3–6, 7–6(5), 6–3"
What is the height of the Tenth Presbyterian Church?
CREATE TABLE table_name_69 (height_ft__m_ VARCHAR, name VARCHAR)
SELECT height_ft__m_ FROM table_name_69 WHERE name = "tenth presbyterian church"
What is the status(es) of the place with an area of 304.06 km2?
CREATE TABLE table_176521_2 (status VARCHAR, area_km_2 VARCHAR)
SELECT status FROM table_176521_2 WHERE area_km_2 = "304.06"
On what Date was the Score in Final 6–3, 6–3?
CREATE TABLE table_name_70 (date VARCHAR, score_in_final VARCHAR)
SELECT date FROM table_name_70 WHERE score_in_final = "6–3, 6–3"
What was the outcome when the final score was 7–6(9), 7–6(1)?
CREATE TABLE table_2199290_2 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_2199290_2 WHERE score_in_the_final = "7–6(9), 7–6(1)"
What is the Place of the Player with a To par of –5?
CREATE TABLE table_name_43 (place VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_43 WHERE to_par = "–5"
What date has a result of win, in a friendly competition in Porto?
CREATE TABLE table_name_79 (date VARCHAR, location VARCHAR, result VARCHAR, competition VARCHAR)
SELECT date FROM table_name_79 WHERE result = "win" AND competition = "friendly" AND location = "porto"
Name the number of februaries
CREATE TABLE table_1539201_1 (february VARCHAR)
SELECT COUNT(february) FROM table_1539201_1
How many rounds were run in New South Wales?
CREATE TABLE table_name_84 (round VARCHAR, state VARCHAR)
SELECT COUNT(round) FROM table_name_84 WHERE state = "new south wales"
Which model has a maximum memory of 512 mb?
CREATE TABLE table_name_92 (model INTEGER, maximum_memory VARCHAR)
SELECT MAX(model) FROM table_name_92 WHERE maximum_memory = "512 mb"
Which episode number in season 5 was viewed by 3.00 million U.S. viziers?
CREATE TABLE table_11820086_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT MIN(no_in_season) FROM table_11820086_1 WHERE us_viewers__millions_ = "3.00"
Tell me the total number of years for lady cecily waynflete and opera house, kennedy center
CREATE TABLE table_name_51 (year VARCHAR, role VARCHAR, theatre VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE role = "lady cecily waynflete" AND theatre = "opera house, kennedy center"
What was Germany's lowest sales when the profit was smaller than 6.7 billion?
CREATE TABLE table_name_43 (sales__billion_ INTEGER, headquarters VARCHAR, profits__billion_$_ VARCHAR)
SELECT MIN(sales__billion_) AS $_ FROM table_name_43 WHERE headquarters = "germany" AND profits__billion_$_ < 6.7
What college received Pick 5?
CREATE TABLE table_name_93 (college VARCHAR, pick VARCHAR)
SELECT college FROM table_name_93 WHERE pick = 5
What was the score when 50,514 people were in attendance?
CREATE TABLE table_name_54 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_54 WHERE attendance = "50,514"
When was the song titled if you talk in your sleep released?
CREATE TABLE table_name_34 (release_date VARCHAR, song_title VARCHAR)
SELECT release_date FROM table_name_34 WHERE song_title = "if you talk in your sleep"
Which episode number drew in 3.84 million viewers in the U.S.?
CREATE TABLE table_14929574_3 (series__number INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.84"
What's the number of laps for 16 grids?
CREATE TABLE table_name_36 (laps INTEGER, grid VARCHAR)
SELECT SUM(laps) FROM table_name_36 WHERE grid = 16
What's the 2003 result for the falkirk council?
CREATE TABLE table_name_97 (council VARCHAR)
SELECT 2003 AS _result FROM table_name_97 WHERE council = "falkirk"
In what venue was the Batting team India who featured partners Sachin Tendulkar and Rahul Dravid?
CREATE TABLE table_name_15 (venue VARCHAR, batting_team VARCHAR, batting_partners VARCHAR)
SELECT venue FROM table_name_15 WHERE batting_team = "india" AND batting_partners = "sachin tendulkar and rahul dravid"
What is the notes for the rowers from denmark?
CREATE TABLE table_name_26 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_26 WHERE country = "denmark"
What' the series number of the episode with season number 13?
CREATE TABLE table_2226817_6 (no_in_series INTEGER, no_in_season VARCHAR)
SELECT MIN(no_in_series) FROM table_2226817_6 WHERE no_in_season = 13
What type of video coding has a format name of dvcam?
CREATE TABLE table_name_69 (video_coding VARCHAR, format_name VARCHAR)
SELECT video_coding FROM table_name_69 WHERE format_name = "dvcam"
What is the kickoff time for the game that was at Ralph Wilson Stadium?
CREATE TABLE table_name_92 (kickoff___et__ VARCHAR, game_site VARCHAR)
SELECT kickoff___et__ FROM table_name_92 WHERE game_site = "ralph wilson stadium"
How many runs were scored when the strike rate was 101.42?
CREATE TABLE table_name_75 (runs VARCHAR, strike_rate VARCHAR)
SELECT runs FROM table_name_75 WHERE strike_rate = "101.42"
How many years have a Player of joe durant, and Earnings ($) larger than 396,000?
CREATE TABLE table_name_50 (year VARCHAR, player VARCHAR, earnings__$_ VARCHAR)
SELECT COUNT(year) FROM table_name_50 WHERE player = "joe durant" AND earnings__$_ > 396 OFFSET 000
Name the southern lakota for wakȟáŋyeža
CREATE TABLE table_1499791_2 (southern_lakota VARCHAR, yankton_yanktonai VARCHAR)
SELECT southern_lakota FROM table_1499791_2 WHERE yankton_yanktonai = "wakȟáŋyeža"
What B Mountain Channel has station call letters of k41go?
CREATE TABLE table_name_75 (b_mountain_channel VARCHAR, station_call_letters VARCHAR)
SELECT b_mountain_channel FROM table_name_75 WHERE station_call_letters = "k41go"
Who played on waca ground and scored 79 points?
CREATE TABLE table_name_43 (opponent VARCHAR, ground VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_43 WHERE ground = "waca ground" AND score = "79"
who wrote the no 2?
CREATE TABLE table_21726793_1 (written_by VARCHAR, no VARCHAR)
SELECT written_by FROM table_21726793_1 WHERE no = 2
Name the Event which has a Winner (Title #) of parker bohn iii (31)?
CREATE TABLE table_name_90 (event VARCHAR, winner__title__number_ VARCHAR)
SELECT event FROM table_name_90 WHERE winner__title__number_ = "parker bohn iii (31)"
What is the street address of the van antwerp building?
CREATE TABLE table_name_9 (street_address VARCHAR, name VARCHAR)
SELECT street_address FROM table_name_9 WHERE name = "van antwerp building"
Name the result for barney frank
CREATE TABLE table_25030512_24 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_25030512_24 WHERE incumbent = "Barney Frank"
List the wheels and locations of the railways.
CREATE TABLE railway (Wheels VARCHAR, LOCATION VARCHAR)
SELECT Wheels, LOCATION FROM railway
Which Sail number has a Position smaller than 2?
CREATE TABLE table_name_47 (sail_number VARCHAR, position INTEGER)
SELECT sail_number FROM table_name_47 WHERE position < 2
Which Results have a Category of the best new actor in lead role(female)?
CREATE TABLE table_name_32 (results VARCHAR, category VARCHAR)
SELECT results FROM table_name_32 WHERE category = "best new actor in lead role(female)"
What is the highest 2010 that has a 2009 less than 6.5, 0.4 as the 2008, with a 2007 less than 0.5?
CREATE TABLE table_name_80 (Id VARCHAR)
SELECT MAX(2010) FROM table_name_80 WHERE 2009 < 6.5 AND 2008 = 0.4 AND 2007 < 0.5
What was the total number of votes in the 2005 elections?
CREATE TABLE table_19698421_1 (total_votes INTEGER, year VARCHAR)
SELECT MIN(total_votes) FROM table_19698421_1 WHERE year = "2005"
What number pick is Ray Hall?
CREATE TABLE table_name_91 (pick VARCHAR, player VARCHAR)
SELECT pick FROM table_name_91 WHERE player = "ray hall"
What is the 2009 value for the 2003 grand slam tournaments?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT 2009 FROM table_name_96 WHERE 2003 = "grand slam tournaments"
Tell me the position for pick of 146
CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_7 WHERE pick = "146"
Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?
CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR)
SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 0
What is 2001, when 1996 is "0 / 2"?
CREATE TABLE table_name_1 (Id VARCHAR)
SELECT 2001 FROM table_name_1 WHERE 1996 = "0 / 2"
How many gold medals does the Choctawhatchee High School have?
CREATE TABLE table_1305623_12 (gold_medals INTEGER, ensemble VARCHAR)
SELECT MAX(gold_medals) FROM table_1305623_12 WHERE ensemble = "Choctawhatchee High School"
Which actor won in 1966?
CREATE TABLE table_name_43 (actor VARCHAR, year VARCHAR)
SELECT actor FROM table_name_43 WHERE year = 1966
What is the method when the time is 5:00, and the record is 14–6–1?
CREATE TABLE table_name_3 (method VARCHAR, time VARCHAR, record VARCHAR)
SELECT method FROM table_name_3 WHERE time = "5:00" AND record = "14–6–1"
How many heights are listed for Jesse Holley in the WR position?
CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR)
SELECT COUNT(height) FROM table_22603701_1 WHERE position = "WR" AND name = "Jesse Holley"
what is the least total when the nation is canada (can) and bronze is less than 0?
CREATE TABLE table_name_78 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_78 WHERE nation = "canada (can)" AND bronze < 0
What is the match report for the game played at forthbank stadium against stirling albion?
CREATE TABLE table_name_29 (match_report VARCHAR, opponents VARCHAR, venue VARCHAR)
SELECT match_report FROM table_name_29 WHERE opponents = "stirling albion" AND venue = "forthbank stadium"
What is the famous for where the finished is 5th?
CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR)
SELECT famous_for FROM table_14345690_5 WHERE finished = "5th"
Name the most extra points for john heston
CREATE TABLE table_14341967_2 (extra_points INTEGER, player VARCHAR)
SELECT MAX(extra_points) FROM table_14341967_2 WHERE player = "John Heston"
Which Release date has a Required OS of windows, a Type of 2d, and a Developer(s) of zeonix?
CREATE TABLE table_name_59 (release_date VARCHAR, developer_s_ VARCHAR, required_os VARCHAR, type VARCHAR)
SELECT release_date FROM table_name_59 WHERE required_os = "windows" AND type = "2d" AND developer_s_ = "zeonix"
How many series had viewers totaling 23.93 million?
CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?
CREATE TABLE table_name_81 (losses VARCHAR, ties VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_81 WHERE ties = 2 AND wins > 8
What is the best top 10 when there are fewer than 0 wins?
CREATE TABLE table_name_30 (top_10s INTEGER, wins INTEGER)
SELECT MAX(top_10s) FROM table_name_30 WHERE wins < 0
What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals?
CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)
SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7
What is the rate limit when the desired rate change (%) is +40.4?
CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate_change___percentage_ VARCHAR)
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = "+40.4"
What is the debut year of Mark Eaves?
CREATE TABLE table_name_10 (debut_year INTEGER, player VARCHAR)
SELECT MIN(debut_year) FROM table_name_10 WHERE player = "mark eaves"
Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?
CREATE TABLE table_name_81 (semi_finalists VARCHAR, runner_up VARCHAR)
SELECT semi_finalists FROM table_name_81 WHERE runner_up = "alexia dechaume-balleret sandrine testud"
Name the airport for ICAO of flls
CREATE TABLE table_name_6 (airport VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_6 WHERE icao = "flls"
What is the Middle German (Luxemburgish) word for ein?
CREATE TABLE table_name_20 (middle_german___luxemburgish__ VARCHAR, ein VARCHAR, Limburgish VARCHAR)
SELECT middle_german___luxemburgish__ FROM table_name_20 WHERE DUTCH(Limburgish) = ein
What is the Score when the Player is toru taniguchi?
CREATE TABLE table_name_92 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_92 WHERE player = "toru taniguchi"
what are the original air dates with a production code of 2394087
CREATE TABLE table_10953197_3 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_10953197_3 WHERE production_code = "2394087"
Which Time/Retired has a Rider of daijiro kato?
CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR)
SELECT time_retired FROM table_name_43 WHERE rider = "daijiro kato"
Which New council has an Election result larger than 24?
CREATE TABLE table_name_33 (new_council INTEGER, election_result INTEGER)
SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 24
What was the score on April 21?
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_12 WHERE date = "april 21"
The 51 points against, how many are for?
CREATE TABLE table_name_36 (points_for VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_name_36 WHERE points_against = "51"
What is the minimum amount for wool for 2001-02?
CREATE TABLE table_1057262_1 (commodity VARCHAR)
SELECT MIN(2001 AS _02) FROM table_1057262_1 WHERE commodity = "Wool"
Which Name has a Round smaller than 5, and a Pick # larger than 13?
CREATE TABLE table_name_50 (name VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT name FROM table_name_50 WHERE round < 5 AND pick__number > 13
What is the largest Goals For by a team that has more than 0 ties?
CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER)
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0
What is the highest week that was played against the Minnesota Vikings?
CREATE TABLE table_name_5 (week INTEGER, opponent VARCHAR)
SELECT MAX(week) FROM table_name_5 WHERE opponent = "minnesota vikings"
What sport was played on February 25, 2011?
CREATE TABLE table_name_21 (sport VARCHAR, date VARCHAR)
SELECT sport FROM table_name_21 WHERE date = "february 25, 2011"
When 5 is the rank of 2011 what is the country?
CREATE TABLE table_293465_1 (country VARCHAR, rank_2011 VARCHAR)
SELECT country FROM table_293465_1 WHERE rank_2011 = 5
What was the tie number when peterborough united was the away team?
CREATE TABLE table_name_35 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_35 WHERE away_team = "peterborough united"
Game smaller than 34, and a December smaller than 14, and a Score of 10 - 6 has what opponent?
CREATE TABLE table_name_46 (opponent VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR)
SELECT opponent FROM table_name_46 WHERE game < 34 AND december < 14 AND score = "10 - 6"