answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT description FROM table_25474825_1 WHERE license = "GNU GPL v2 or Ruby license"
What is the description of the license for GNU GPL v2 or Ruby license?
CREATE TABLE table_25474825_1 (description VARCHAR, license VARCHAR)
SELECT score FROM table_name_17 WHERE player = "tom kite"
What is the score of Player Tom Kite?
CREATE TABLE table_name_17 (score VARCHAR, player VARCHAR)
SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017
What is the length when the expected start of revenue is more than 2017?
CREATE TABLE table_name_62 (length VARCHAR, expected_start_of_revenue_services INTEGER)
SELECT SUM(round) FROM table_name_93 WHERE pick = 138
In what Round was Pick 138?
CREATE TABLE table_name_93 (round INTEGER, pick VARCHAR)
SELECT college FROM table_name_87 WHERE overall > 158 AND name = "travian robertson"
Which college's overall number is more than 158 when Travian Robertson is the name?
CREATE TABLE table_name_87 (college VARCHAR, overall VARCHAR, name VARCHAR)
SELECT proto_oceanic FROM table_15568886_14 WHERE proto_polynesian = "*fafine"
Name the proto oceanic for *fafine
CREATE TABLE table_15568886_14 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
SELECT rules FROM table_name_2 WHERE event = "n/a" AND result = "loss" AND location = "winsford england"
Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?
CREATE TABLE table_name_2 (rules VARCHAR, location VARCHAR, event VARCHAR, result VARCHAR)
SELECT 1987 FROM table_name_47 WHERE 1995 = "1r" AND 1986 = "a" AND 1988 = "sf"
What shows for 1987 when 1995 shows 1r, 1986 is a, and 1998 is sf?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT MIN(year_drafted) FROM table_18373863_2 WHERE years_played = "2005"
When 2005 is the year played what is the lowest year drafted?
CREATE TABLE table_18373863_2 (year_drafted INTEGER, years_played VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_3 WHERE market_value__billion_$_ = "172.9"
What are the profits (in billions) of the company with a market value of 172.9 billion?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
SELECT chassis FROM table_name_65 WHERE points = 0 AND entrant = "automobiles gonfaronnaises sportives"
Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?
CREATE TABLE table_name_65 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT AVG(number) FROM table_name_63 WHERE name = "byron geis" AND weight < 195
Name of byron geis, and a Weight smaller than 195 involves what average number?
CREATE TABLE table_name_63 (number INTEGER, name VARCHAR, weight VARCHAR)
SELECT candidates FROM table_1342198_3 WHERE district = "Alabama 1"
Who ran for office in the Alabama 1 district?
CREATE TABLE table_1342198_3 (candidates VARCHAR, district VARCHAR)
SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = "i 1 @"
Name the D 49 √ for when D 46 √ of i 1 @
CREATE TABLE table_name_24 (d_49_√ VARCHAR, d_46_√ VARCHAR)
SELECT COUNT(bronze) FROM table_name_16 WHERE silver = 0 AND sport = "wrestling" AND total > 3
Tell me the total number of bronze for silver being 0 and sport of wrestling and total more than 3
CREATE TABLE table_name_16 (bronze VARCHAR, total VARCHAR, silver VARCHAR, sport VARCHAR)
SELECT name FROM ship ORDER BY built_year, CLASS
List all ship names in the order of built year and class.
CREATE TABLE ship (name VARCHAR, built_year VARCHAR, CLASS VARCHAR)
SELECT notes FROM table_name_74 WHERE country = "zimbabwe"
What are the notes for Zimbabwe?
CREATE TABLE table_name_74 (notes VARCHAR, country VARCHAR)
SELECT june_10_11 FROM table_25286976_2 WHERE march_27_29 = "129"
When 129 is on March 27th to 29th what is June 10th to 11th?
CREATE TABLE table_25286976_2 (june_10_11 VARCHAR, march_27_29 VARCHAR)
SELECT runner_up FROM table_name_18 WHERE third_place = "yevgeny kafelnikov" AND score = "3–6, 6–4, [10–3]"
What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?
CREATE TABLE table_name_18 (runner_up VARCHAR, third_place VARCHAR, score VARCHAR)
SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm"
Which state is Tehachapi Pass Wind Farm located in?
CREATE TABLE table_name_72 (state_province VARCHAR, wind_farm VARCHAR)
SELECT score FROM table_name_81 WHERE loss = "maholm (2–4)"
What was the score of the game with a loss of Maholm (2–4)?
CREATE TABLE table_name_81 (score VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_88 WHERE date = "november 20, 1966"
Who is the opponent on November 20, 1966?
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR)
SELECT role FROM table_name_18 WHERE actor = "kevin bishop"
What role is Kevin Bishop the actor?
CREATE TABLE table_name_18 (role VARCHAR, actor VARCHAR)
SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE vehicle = "BMW ActiveE"
When bmw activee is the vehicle type what is the u.s national average electric mix?
CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, vehicle VARCHAR)
SELECT sub_parish__sogn_ FROM table_178389_1 WHERE church_name = "Høyanger kyrkje"
What is the sub-parish for the church names Høyanger Kyrkje?
CREATE TABLE table_178389_1 (sub_parish__sogn_ VARCHAR, church_name VARCHAR)
SELECT listed FROM table_name_79 WHERE built = "1864"
What is the date Listed of the Bridge Built in 1864?
CREATE TABLE table_name_79 (listed VARCHAR, built VARCHAR)
SELECT nationality FROM table_name_85 WHERE pick = "153"
Tell me the nationality of pick of 153
CREATE TABLE table_name_85 (nationality VARCHAR, pick VARCHAR)
SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1
Which bike traveled the most often in zip code 94002?
CREATE TABLE trip (bike_id VARCHAR, zip_code VARCHAR)
SELECT team FROM table_26914854_3 WHERE incoming_manager = "Martin Allen"
What is the team when the incoming manager is martin allen?
CREATE TABLE table_26914854_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT team AS Captain FROM table_name_12 WHERE shirt_sponsor = "krombacher"
For the team whose shirt sponsor is Krombacher, who is the team captain?
CREATE TABLE table_name_12 (team VARCHAR, shirt_sponsor VARCHAR)
SELECT exit_date FROM table_name_9 WHERE to_club = "cardiff city"
What is the exit date of the player who transferred to Cardiff City?
CREATE TABLE table_name_9 (exit_date VARCHAR, to_club VARCHAR)
SELECT AVG(fa_cup_goals) FROM table_name_96 WHERE league_cup_apps = "2" AND fa_cup_apps = "3" AND league_goals = 3
what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?
CREATE TABLE table_name_96 (fa_cup_goals INTEGER, league_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_apps VARCHAR)
SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "2UR-FSE"
Name the drivetrain for 2ur-fse
CREATE TABLE table_21530474_1 (drivetrain VARCHAR, engine_code VARCHAR)
SELECT COUNT(post) FROM table_name_22 WHERE trainer = "steve asmussen" AND time__behind = "19 ½"
What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?
CREATE TABLE table_name_22 (post VARCHAR, trainer VARCHAR, time__behind VARCHAR)
SELECT gold FROM table_name_79 WHERE total = 6
What is Gold, when Total is 6?
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR)
SELECT outgoing_manager FROM table_27374004_4 WHERE manner_of_departure = "Sacked" AND position_in_table = "15th"
Who was the outgoing manager of the team in 15th position that was sacked?
CREATE TABLE table_27374004_4 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640
Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640
CREATE TABLE table_name_44 (numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR)
SELECT date FROM table_name_4 WHERE home_team = "philadelphia" AND result = "104–110"
Which Date has a Home team of philadelphia, and a Result of 104–110?
CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT no_range FROM table_name_36 WHERE type = "4vip"
Tell me the number range for 4vip
CREATE TABLE table_name_36 (no_range VARCHAR, type VARCHAR)
SELECT theme FROM table_15796100_1 WHERE original_artist = "Dolly Parton"
What theme name has the original artist of Dolly Parton?
CREATE TABLE table_15796100_1 (theme VARCHAR, original_artist VARCHAR)
SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania"
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?
CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR)
SELECT result FROM table_1341604_10 WHERE district = "Florida 7"
what's the result with district being florida 7
CREATE TABLE table_1341604_10 (result VARCHAR, district VARCHAR)
SELECT viewing_figures_millions FROM table_2501754_4 WHERE prod_code = "ICEC483X"
How many millions of people watched the episode with a production code of icec483x?
CREATE TABLE table_2501754_4 (viewing_figures_millions VARCHAR, prod_code VARCHAR)
SELECT home_team FROM table_name_46 WHERE away_team = "geelong"
In the match where geelong was the away team, who was the home team?
CREATE TABLE table_name_46 (home_team VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_72 WHERE rank = 14
What is the time when the rank is 14?
CREATE TABLE table_name_72 (time VARCHAR, rank VARCHAR)
SELECT championship FROM table_name_69 WHERE previous_champion_s_ = "defeated justin corino in tournament final"
In which championship had a previous champion of "defeated Justin Corino in tournament final"?
CREATE TABLE table_name_69 (championship VARCHAR, previous_champion_s_ VARCHAR)
SELECT country FROM table_name_19 WHERE supermarkets = "50"
What country has 50 supermarkets?
CREATE TABLE table_name_19 (country VARCHAR, supermarkets VARCHAR)
SELECT team FROM table_name_26 WHERE lost > 2 AND position < 7 AND drawn < 2 AND points = 22
Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?
CREATE TABLE table_name_26 (team VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR, position VARCHAR)
SELECT COUNT(rank) FROM table_29572583_19 WHERE new_points = 1155
How many rank entries are there when new points are 1155?
CREATE TABLE table_29572583_19 (rank VARCHAR, new_points VARCHAR)
SELECT title FROM table_29436059_1 WHERE no_in_season = 10
What is the title of episode 10?
CREATE TABLE table_29436059_1 (title VARCHAR, no_in_season VARCHAR)
SELECT location_code FROM Ref_locations WHERE location_name = "Canada"
What is the location code for the country "Canada"?
CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR)
SELECT COUNT(lane) FROM table_name_95 WHERE nationality = "great britain" AND time > 57.78
What lane is from Great Britain and a 57.78 time?
CREATE TABLE table_name_95 (lane VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT performer_1 FROM table_name_13 WHERE performer_3 = "sandi toksvig" AND performer_4 = "mike mcshane"
What was Performer 1's name who performed with Sandi Toksvig as Performer 3 and Mike McShane as Performer 4?
CREATE TABLE table_name_13 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)
SELECT nationality FROM table_name_22 WHERE player = "eugene mcdowell"
What country is Eugene McDowell from?
CREATE TABLE table_name_22 (nationality VARCHAR, player VARCHAR)
SELECT team FROM table_name_80 WHERE losses = "7" AND goals_for = 55
Which team had 7 losses and 55 goals?
CREATE TABLE table_name_80 (team VARCHAR, losses VARCHAR, goals_for VARCHAR)
SELECT losing_bonus FROM table_15467476_3 WHERE points_difference = "-99"
What is the losing bonus for the team with a point difference of -99?
CREATE TABLE table_15467476_3 (losing_bonus VARCHAR, points_difference VARCHAR)
SELECT pole_position FROM table_name_35 WHERE date = "8 september"
Name the pole position for 8 september
CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR)
SELECT result FROM table_19753079_36 WHERE district = "North Carolina 7"
Name the result for north carolina 7
CREATE TABLE table_19753079_36 (result VARCHAR, district VARCHAR)
SELECT davids_team FROM table_23575917_4 WHERE lees_team = "Jack Dee and Peter Serafinowicz"
Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz
CREATE TABLE table_23575917_4 (davids_team VARCHAR, lees_team VARCHAR)
SELECT province FROM table_2251578_4 WHERE district = "San Antonio de Chuca"
Which province is in the district of San Antonio de Chuca?
CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR)
SELECT opponent_number FROM table_name_25 WHERE site = "memorial stadium • minneapolis, mn" AND date = "10/20/1928"
What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928?
CREATE TABLE table_name_25 (opponent_number VARCHAR, site VARCHAR, date VARCHAR)
SELECT MIN(top_5) FROM table_name_90 WHERE wins > 1
What is the fewest number of top-5s for events with more than 1 win?
CREATE TABLE table_name_90 (top_5 INTEGER, wins INTEGER)
SELECT position FROM table_name_21 WHERE season > 2000 AND level = "tier 3"
What Position has a Season larger than 2000 with a Level of Tier 3?
CREATE TABLE table_name_21 (position VARCHAR, season VARCHAR, level VARCHAR)
SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak"
Which state is Mount Chiginagak located in?
CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR)
SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14
What is the amount of viewers if the series number is 14?
CREATE TABLE table_24639086_3 (viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT opponent FROM table_name_36 WHERE date = "january 7"
Who was the opponent on January 7?
CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(chapter) FROM table_name_74 WHERE chinese = "釋宮"
Name the total number of chapter for chinese of 釋宮
CREATE TABLE table_name_74 (chapter VARCHAR, chinese VARCHAR)
SELECT 2003 FROM table_27146868_1 WHERE 1999 = "2.1"
What is 2003 when 1999 is 2.1?
CREATE TABLE table_27146868_1 (Id VARCHAR)
SELECT partner FROM table_name_94 WHERE date = "14 april 2013"
Which partner was on 14 april 2013?
CREATE TABLE table_name_94 (partner VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_19 WHERE result = "d"
When the result is d, who are the opponents?
CREATE TABLE table_name_19 (opponents VARCHAR, result VARCHAR)
SELECT network FROM table_name_20 WHERE origin_of_programming = "india" AND genre = "general" AND language = "bengali"
What network has an origin in India, a genre of general, and broadcasts in Bengali?
CREATE TABLE table_name_20 (network VARCHAR, language VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)
SELECT rank FROM table_21109892_1 WHERE value_world_rank = "7"
When the value world rank is 7, what is the rank?
CREATE TABLE table_21109892_1 (rank VARCHAR, value_world_rank VARCHAR)
SELECT opponent FROM table_name_19 WHERE field = "bishop kearney field"
Who is the opponent at Bishop Kearney Field?
CREATE TABLE table_name_19 (opponent VARCHAR, field VARCHAR)
SELECT COUNT(points) FROM table_name_77 WHERE time_retired = "+10.131 secs"
How many points are associated with a Time/Retired of +10.131 secs?
CREATE TABLE table_name_77 (points VARCHAR, time_retired VARCHAR)
SELECT gt_winning_car FROM table_27965906_2 WHERE a_winning_car = "#88 Team Mitsubishi 88 Mitsubishi Starion"
Name the gt winning car for #88 team mitsubishi 88 mitsubishi starion
CREATE TABLE table_27965906_2 (gt_winning_car VARCHAR, a_winning_car VARCHAR)
SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5"
Name the operator with berths more than 1 and depth of 12.5-15.5
CREATE TABLE table_name_81 (operator VARCHAR, berths VARCHAR, depth__m_ VARCHAR)
SELECT train_number, name FROM train ORDER BY TIME
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 SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2
Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2?
CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR)
SELECT film FROM table_name_91 WHERE leading_man = "adolphe menjou" AND year = 1939
What film has a leading man of adolphe menjou in 1939?
CREATE TABLE table_name_91 (film VARCHAR, leading_man VARCHAR, year VARCHAR)
SELECT COUNT(episode) FROM table_23575917_8 WHERE davids_team = "Vernon Kay and Dara Ó Briain"
How many shows did team David consist of vernon kay and dara ó briain
CREATE TABLE table_23575917_8 (episode VARCHAR, davids_team VARCHAR)
SELECT periselene__km_ FROM table_206217_2 WHERE period__h_ = "4.947432"
What is every value for periselene if period is 4.947432?
CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, period__h_ VARCHAR)
SELECT 2008 FROM table_name_87 WHERE 2001 = "wta premier 5 tournaments"
Tell me the 2008 for when 2001 of wta premier 5 tournaments
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT new_entries_this_round FROM table_name_58 WHERE clubs = "2 → 1"
How many new entries this round have clubs 2 → 1?
CREATE TABLE table_name_58 (new_entries_this_round VARCHAR, clubs VARCHAR)
SELECT team FROM table_name_88 WHERE class = "500cc" AND rank = "16th"
Which team has a class of 500cc and rank of 16th?
CREATE TABLE table_name_88 (team VARCHAR, class VARCHAR, rank VARCHAR)
SELECT SUM(tied) FROM table_name_41 WHERE independent = "old dominion" AND years > 4
What is the total number of tied games when Old Dominion is the independent and the years is more than 4?
CREATE TABLE table_name_41 (tied INTEGER, independent VARCHAR, years VARCHAR)
SELECT games FROM table_name_91 WHERE drawn < 1 AND lost < 1
Which Games have a Drawn smaller than 1, and a Lost smaller than 1?
CREATE TABLE table_name_91 (games VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT death FROM table_name_82 WHERE image = "elisabeth of lorraine"
What is the death date of elisabeth of lorraine?
CREATE TABLE table_name_82 (death VARCHAR, image VARCHAR)
SELECT result FROM table_name_74 WHERE opponent = "dundee"
What was the result when Dundee was the opponent?
CREATE TABLE table_name_74 (result VARCHAR, opponent VARCHAR)
SELECT MIN(feet) FROM table_name_22 WHERE longitude__e_ = "76°34′06″" AND prominence__m_ < 1 OFFSET 701
What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701?
CREATE TABLE table_name_22 (feet INTEGER, longitude__e_ VARCHAR, prominence__m_ VARCHAR)
SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis"
Who was the clerk when the highway commissioner was Albert Lewis?
CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR)
SELECT diameter__km_ FROM table_16799784_7 WHERE longitude = "170.1E"
what is the diameter (km) of longitude 170.1e
CREATE TABLE table_16799784_7 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT venue FROM table_name_27 WHERE away_team = "north melbourne"
What venue featured north melbourne as the away side?
CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)
SELECT result FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
What was the result of the election featuring ike skelton?
CREATE TABLE table_1341604_26 (result VARCHAR, incumbent VARCHAR)
SELECT location FROM table_name_14 WHERE winner = "shocker"
What is the location where shocker was the winner?
CREATE TABLE table_name_14 (location VARCHAR, winner VARCHAR)
SELECT points_difference FROM table_name_39 WHERE points_against = "615"
What is the points difference for the team that has allowed 615 points against?
CREATE TABLE table_name_39 (points_difference VARCHAR, points_against VARCHAR)
SELECT country FROM table_name_84 WHERE edition = "20th"
What was the nationality of the winner for the 20th Edition?
CREATE TABLE table_name_84 (country VARCHAR, edition VARCHAR)
SELECT AVG(losses) FROM table_name_21 WHERE south_west_dfl = "branxholme-wallacedale" AND byes < 2
Which Losses have a South West DFL of branxholme-wallacedale, and less than 2 Byes?
CREATE TABLE table_name_21 (losses INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
SELECT MAX(run_2) FROM table_name_21 WHERE run_1 > 52.25 AND athlete = "john farrow"
What was john farrow's run 2 associated with a run 1 of greater than 52.25?
CREATE TABLE table_name_21 (run_2 INTEGER, run_1 VARCHAR, athlete VARCHAR)
SELECT record FROM table_name_43 WHERE date = "april 23"
What is the team's record on april 23?
CREATE TABLE table_name_43 (record VARCHAR, date VARCHAR)
SELECT MAX(round) FROM table_name_39 WHERE nationality = "canada" AND draft < 1973
What is Canada's highest round before 1973?
CREATE TABLE table_name_39 (round INTEGER, nationality VARCHAR, draft VARCHAR)