question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What party is incumbent virgil chapman from?
CREATE TABLE table_1342233_17 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342233_17 WHERE incumbent = "Virgil Chapman"
Who is the player in t8 place with a 75-71=146 score?
CREATE TABLE table_name_68 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_68 WHERE place = "t8" AND score = 75 - 71 = 146
which gender got the highest average uncertain ratio.
CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR)
SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1
Which Opponent has a Round larger than 4 and the Event, Draka V?
CREATE TABLE table_name_78 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_78 WHERE round > 4 AND event = "draka v"
What's the lowest grid with and entrant of fred saunders?
CREATE TABLE table_name_47 (grid INTEGER, entrant VARCHAR)
SELECT MIN(grid) FROM table_name_47 WHERE entrant = "fred saunders"
When the venue is victoria park, what's the largest Crowd that attended?
CREATE TABLE table_name_64 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_64 WHERE venue = "victoria park"
what's the team with stadium being glebe park
CREATE TABLE table_14003020_5 (team VARCHAR, stadium VARCHAR)
SELECT team FROM table_14003020_5 WHERE stadium = "Glebe Park"
What is the score of T5 place in the United States?
CREATE TABLE table_name_67 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_67 WHERE country = "united states" AND place = "t5"
Which Area (km²) is the lowest one that has a Population of 17,089?
CREATE TABLE table_name_39 (area__km²_ INTEGER, pop VARCHAR)
SELECT MIN(area__km²_) FROM table_name_39 WHERE pop = 17 OFFSET 089
Which Year(s) of manufacture has an Axle arrangement of 2′b n2?
CREATE TABLE table_name_92 (year_s__of_manufacture VARCHAR, axle_arrangement VARCHAR)
SELECT year_s__of_manufacture FROM table_name_92 WHERE axle_arrangement = "2′b n2"
How many yes votes did the measure that got 60.39% yes votes get?
CREATE TABLE table_256286_23 (yes_votes VARCHAR, _percentage_yes VARCHAR)
SELECT yes_votes FROM table_256286_23 WHERE _percentage_yes = "60.39%"
Which event has Philadelphia, PA as the location and 41 days held?
CREATE TABLE table_name_39 (event VARCHAR, location VARCHAR, days_held VARCHAR)
SELECT event FROM table_name_39 WHERE location = "philadelphia, pa" AND days_held = 41
who is third place when the tournament is delray beach?
CREATE TABLE table_name_77 (third_place VARCHAR, tournament VARCHAR)
SELECT third_place FROM table_name_77 WHERE tournament = "delray beach"
What was the result of the game against Luxembourg?
CREATE TABLE table_name_97 (results¹ VARCHAR, opponent VARCHAR)
SELECT results¹ FROM table_name_97 WHERE opponent = "luxembourg"
Which active services years ended in death and had senior status in 1972–2005?
CREATE TABLE table_name_72 (active_service VARCHAR, reason_for_termination VARCHAR, senior_status VARCHAR)
SELECT active_service FROM table_name_72 WHERE reason_for_termination = "death" AND senior_status = "1972–2005"
What race did Bobby Unser win?
CREATE TABLE table_name_72 (name VARCHAR, winning_driver VARCHAR)
SELECT name FROM table_name_72 WHERE winning_driver = "bobby unser"
Name the rank world for 7 rank subcontinent
CREATE TABLE table_2248784_3 (rank_world VARCHAR, rank_subcontinent VARCHAR)
SELECT rank_world FROM table_2248784_3 WHERE rank_subcontinent = 7
What was the Time when Set 3 was 25–14?
CREATE TABLE table_name_70 (time VARCHAR, set_3 VARCHAR)
SELECT time FROM table_name_70 WHERE set_3 = "25–14"
What is the Venue when the result was 88–87?
CREATE TABLE table_name_78 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_78 WHERE result = "88–87"
What is the name of the architecture version of the MIPS-III 64-bit, and model 2b?
CREATE TABLE table_name_90 (name___generation VARCHAR, architecture_version VARCHAR, model VARCHAR)
SELECT name___generation FROM table_name_90 WHERE architecture_version = "mips-iii 64-bit" AND model = "2b"
When was the first UK broadcast for episode 9?
CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, episode VARCHAR)
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE episode = 9
What is the maximum in 2004 when 2009 is higher than 26.1?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT MAX(2004) FROM table_name_86 WHERE 2009 > 26.1
Who was the away team at Arden Street Oval?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_24 WHERE venue = "arden street oval"
What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012?
CREATE TABLE table_name_25 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_25 WHERE partner = "jürgen melzer" AND date = "january 7, 2012"
What was the start with a rank of 3 in 1936?
CREATE TABLE table_name_12 (start VARCHAR, rank VARCHAR, year VARCHAR)
SELECT start FROM table_name_12 WHERE rank = "3" AND year = "1936"
What is the Area KM 2 of Rothesay?
CREATE TABLE table_171236_2 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT COUNT(area_km_2) FROM table_171236_2 WHERE official_name = "Rothesay"
Which date was corio oval the venue?
CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_12 WHERE venue = "corio oval"
Who was nominated for best supporting actor in the movie Going My Way?
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR, category VARCHAR)
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Going My Way" AND category = "Best Supporting Actor"
What Passenger has 16 Wins?
CREATE TABLE table_name_94 (passenger VARCHAR, wins VARCHAR)
SELECT passenger FROM table_name_94 WHERE wins = "16"
Who has rank 5?
CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR)
SELECT name FROM table_name_23 WHERE rank = 5
What is the chambering for the 8339 f bolt ( kgf )?
CREATE TABLE table_26967904_2 (chambering VARCHAR, f_bolt___kgf__ VARCHAR)
SELECT chambering FROM table_26967904_2 WHERE f_bolt___kgf__ = 8339
What is the position in the 2004 season?
CREATE TABLE table_name_62 (position VARCHAR, season INTEGER)
SELECT position FROM table_name_62 WHERE season > 2004
Which visitor has a record of 2-4?
CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_39 WHERE record = "2-4"
What Captain has Lost 13?
CREATE TABLE table_name_28 (captain VARCHAR, lost VARCHAR)
SELECT captain FROM table_name_28 WHERE lost = 13
What's the post code of the county with the Chinese name 潜山县 / 潛山縣?
CREATE TABLE table_1976898_1 (post_code INTEGER, chinese_name__simplified___traditional_ VARCHAR)
SELECT MIN(post_code) FROM table_1976898_1 WHERE chinese_name__simplified___traditional_ = "潜山县 / 潛山縣"
Who was the entrant before 1988?
CREATE TABLE table_name_41 (entrant VARCHAR, year INTEGER)
SELECT entrant FROM table_name_41 WHERE year < 1988
Which Country has a Score of 79-68-74=212?
CREATE TABLE table_name_49 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_49 WHERE score = 79 - 68 - 74 = 212
Which episode had Hoagy carmichael safe with an order of 5?
CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR)
SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"
What is the highest run 2 of athlete eric neilson, who has a run 3 larger than 55.97?
CREATE TABLE table_name_54 (run_2 INTEGER, athlete VARCHAR, run_3 VARCHAR)
SELECT MAX(run_2) FROM table_name_54 WHERE athlete = "eric neilson" AND run_3 > 55.97
Which player was picked in round 15 with a pick smaller than 13?
CREATE TABLE table_name_76 (name VARCHAR, pick__number VARCHAR, round VARCHAR)
SELECT name FROM table_name_76 WHERE pick__number < 13 AND round = 15
Name the score for philadelphia flyers
CREATE TABLE table_16864968_9 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_16864968_9 WHERE opponent = "Philadelphia Flyers"
Which Losses has an Against of 1101, and a Byes smaller than 0?
CREATE TABLE table_name_52 (losses VARCHAR, against VARCHAR, byes VARCHAR)
SELECT COUNT(losses) FROM table_name_52 WHERE against = 1101 AND byes < 0
what's the minimum species in the peruvian amazon with peru vs. world (percent) value of 7
CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon INTEGER, peru_vs_world__percent_ VARCHAR)
SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE peru_vs_world__percent_ = 7
What's the type for the brand herceptin with an approval date of before 2006?
CREATE TABLE table_name_5 (type VARCHAR, approval_date VARCHAR, brand_name VARCHAR)
SELECT type FROM table_name_5 WHERE approval_date < 2006 AND brand_name = "herceptin"
Show the most common nationality of hosts.
CREATE TABLE HOST (Nationality VARCHAR)
SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
What is the smallest positioned with more than 9 played?
CREATE TABLE table_name_4 (position INTEGER, played INTEGER)
SELECT MIN(position) FROM table_name_4 WHERE played > 9
Which home team has an Away team of essendon?
CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_76 WHERE away_team = "essendon"
Who is the director of the best foreign film?
CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_name_14 WHERE original_title = "best foreign film"
What is the name(s) of the place(s) with a population of less than 1,429?
CREATE TABLE table_name_38 (official_name VARCHAR, population INTEGER)
SELECT official_name FROM table_name_38 WHERE population < 1 OFFSET 429
What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap?
CREATE TABLE table_name_54 (report VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT report FROM table_name_54 WHERE pole_position = "mario andretti" AND fastest_lap = "jean-pierre jarier"
what are all the circuit for 9 september and gt3 winner hector lester allan simonsen
CREATE TABLE table_13079788_3 (circuit VARCHAR, date VARCHAR, gt3_winner VARCHAR)
SELECT circuit FROM table_13079788_3 WHERE date = "9 September" AND gt3_winner = "Hector Lester Allan Simonsen"
Which Record has a Team of philadelphia?
CREATE TABLE table_name_66 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_66 WHERE team = "philadelphia"
Which major has least number of students? List the major and the number of students.
CREATE TABLE Student (Major VARCHAR)
SELECT Major, COUNT(*) FROM Student GROUP BY Major ORDER BY COUNT(Major) LIMIT 1
Name the fastest lap for the brazilian grand prix
CREATE TABLE table_name_39 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT fastest_lap FROM table_name_39 WHERE grand_prix = "brazilian grand prix"
Which Position has a Player of patrick macdonald?
CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_35 WHERE player = "patrick macdonald"
What is the total when the set 1 is 21–25?
CREATE TABLE table_name_95 (total VARCHAR, set_1 VARCHAR)
SELECT total FROM table_name_95 WHERE set_1 = "21–25"
What is the lowest number pick from san diego chargers?
CREATE TABLE table_name_3 (pick INTEGER, team VARCHAR)
SELECT MIN(pick) FROM table_name_3 WHERE team = "san diego chargers"
How many values for Macedonian correspond to Slovianski value of Veliki?
CREATE TABLE table_25008327_8 (macedonian VARCHAR, slovianski VARCHAR)
SELECT COUNT(macedonian) FROM table_25008327_8 WHERE slovianski = "veliki"
display those employees who joined after 7th September, 1987.
CREATE TABLE employees (hire_date INTEGER)
SELECT * FROM employees WHERE hire_date > '1987-09-07'
What is the Old Galician for cantaste in Portuguese?
CREATE TABLE table_26614365_1 (old_galician__13th_15th_c_ VARCHAR, portuguese VARCHAR)
SELECT old_galician__13th_15th_c_ FROM table_26614365_1 WHERE portuguese = "cantaste"
What is the total number of points team Alfa Romeo 184T won?
CREATE TABLE table_name_56 (points INTEGER, team_chassis VARCHAR)
SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t"
What is the Date of the Int'l Debut of 1967?
CREATE TABLE table_name_66 (date VARCHAR, year VARCHAR)
SELECT date FROM table_name_66 WHERE year = "1967"
Name the number of sement d for solar water heaters
CREATE TABLE table_15187735_18 (segment_d VARCHAR, segment_b VARCHAR)
SELECT COUNT(segment_d) FROM table_15187735_18 WHERE segment_b = "Solar Water Heaters"
With less than 1 Championship, what es the Established date of the Niagara Rugby Union League?
CREATE TABLE table_name_40 (established INTEGER, championships VARCHAR, league VARCHAR)
SELECT SUM(established) FROM table_name_40 WHERE championships < 1 AND league = "niagara rugby union"
Which Year has a Date of 14 February?
CREATE TABLE table_name_11 (year INTEGER, date VARCHAR)
SELECT MIN(year) FROM table_name_11 WHERE date = "14 february"
What is the affiliation of the University called Explorers?
CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR)
SELECT affiliation FROM table_19210115_1 WHERE nickname = "Explorers"
What is the maturity that has a coupon of exactly 0.726?
CREATE TABLE table_21692771_1 (maturity VARCHAR, coupon VARCHAR)
SELECT maturity FROM table_21692771_1 WHERE coupon = "0.726"
What was the attendance on October 17?
CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_76 WHERE date = "october 17"
What was the Score on September 29, 2003?
CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_64 WHERE date = "september 29, 2003"
What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?
CREATE TABLE table_name_42 (engine_name VARCHAR, max_torque_at_rpm VARCHAR)
SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = "n·m ( lbf·ft ) @ 3,800"
Which Cup Apps (sub) had 2 goals?
CREATE TABLE table_name_59 (cup_apps__sub_ VARCHAR, cup_goals VARCHAR)
SELECT cup_apps__sub_ FROM table_name_59 WHERE cup_goals = "2"
What is the average Round, when Player is "Gurnest Brown", and when Pick # is greater than 180?
CREATE TABLE table_name_84 (round INTEGER, player VARCHAR, pick__number VARCHAR)
SELECT AVG(round) FROM table_name_84 WHERE player = "gurnest brown" AND pick__number > 180
What is the nationality of the player on the Jazz from 1974-79?
CREATE TABLE table_name_73 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT nationality FROM table_name_73 WHERE years_for_jazz = "1974-79"
List all vehicle id
CREATE TABLE Vehicles (vehicle_id VARCHAR)
SELECT vehicle_id FROM Vehicles
When did the term began when the date of election is N/A?
CREATE TABLE table_224672_2 (term_began VARCHAR, elected VARCHAR)
SELECT term_began FROM table_224672_2 WHERE elected = "N/A"
Which party has Ken Cuccinelli as an incumbent?
CREATE TABLE table_name_34 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_34 WHERE incumbent = "ken cuccinelli"
Show the id and builder of the railway that are associated with the most trains.
CREATE TABLE train (Railway_ID VARCHAR); CREATE TABLE railway (Builder VARCHAR, Railway_ID VARCHAR)
SELECT T2.Railway_ID, T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1
What is the Series for the uefa cup, in the 2006–07 season, and a Round of group, and an opponent of az?
CREATE TABLE table_name_35 (series VARCHAR, opponent VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
SELECT series FROM table_name_35 WHERE competition = "uefa cup" AND season = "2006–07" AND round = "group" AND opponent = "az"
Which image is of the woman married to william iv?
CREATE TABLE table_name_86 (image VARCHAR, husband VARCHAR)
SELECT image FROM table_name_86 WHERE husband = "william iv"
What is the socket for Order Part Number TMDTL68HAX5DM?
CREATE TABLE table_name_67 (socket VARCHAR, order_part_number VARCHAR)
SELECT socket FROM table_name_67 WHERE order_part_number = "tmdtl68hax5dm"
If the Representative is Barbara sears, what is the district number?
CREATE TABLE table_26131768_4 (district INTEGER, representative VARCHAR)
SELECT MAX(district) FROM table_26131768_4 WHERE representative = "Barbara Sears"
What is every game on November 21?
CREATE TABLE table_27539535_4 (game VARCHAR, november VARCHAR)
SELECT game FROM table_27539535_4 WHERE november = 21
In which state did Marquis Li rule?
CREATE TABLE table_name_43 (state VARCHAR, name VARCHAR, title VARCHAR)
SELECT state FROM table_name_43 WHERE name = "li" AND title = "marquis"
How many games were played where the height of the player is 1.92m?
CREATE TABLE table_26847237_2 (games VARCHAR, height VARCHAR)
SELECT COUNT(games) FROM table_26847237_2 WHERE height = "1.92m"
Who has a reported age of 111 years, 66 days?
CREATE TABLE table_name_38 (name VARCHAR, reported_age VARCHAR)
SELECT name FROM table_name_38 WHERE reported_age = "111 years, 66 days"
What is the highest Average, when Goals is "34", and when Matches is less than 37?
CREATE TABLE table_name_41 (average INTEGER, goals VARCHAR, matches VARCHAR)
SELECT MAX(average) FROM table_name_41 WHERE goals = 34 AND matches < 37
What engines have the year 1992?
CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR)
SELECT engine_s_ FROM table_name_7 WHERE year = 1992
What is the 1st leg for Instituto?
CREATE TABLE table_name_45 (home__2nd_leg_ VARCHAR)
SELECT 1 AS st_leg FROM table_name_45 WHERE home__2nd_leg_ = "instituto"
What is the Date of the Everton Away game?
CREATE TABLE table_name_95 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_95 WHERE away_team = "everton"
Name the country for 11,891 area
CREATE TABLE table_160510_5 (country VARCHAR, area VARCHAR)
SELECT country FROM table_160510_5 WHERE area = "11,891"
What is the nationality of the person drafted to Position F from Kentucky State?
CREATE TABLE table_name_7 (nationality VARCHAR, position VARCHAR, college_high_school_club VARCHAR)
SELECT nationality FROM table_name_7 WHERE position = "f" AND college_high_school_club = "kentucky state"
How much is the net profit when the revenue is 150.6 million dollars?
CREATE TABLE table_18077713_1 (net_profit__us_$m_ VARCHAR, revenue__us_$million_ VARCHAR)
SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = "150.6"
Which Entrant has an Engine of climax straight-4, and Points larger than 0?
CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0
Who constructed the car that retired due to brakes with a grid larger than 17?
CREATE TABLE table_name_58 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_58 WHERE grid > 17 AND time_retired = "brakes"
What is the Format with a Catalog that is vcrd 103?
CREATE TABLE table_name_78 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_78 WHERE catalog = "vcrd 103"
What year was the composition by Mejo Joseph?
CREATE TABLE table_name_7 (year VARCHAR, composer VARCHAR)
SELECT COUNT(year) FROM table_name_7 WHERE composer = "mejo joseph"
What's the world ranking in 2011 having more than 142 countries sampled, and more than a 3 for ranking in Latin America?
CREATE TABLE table_name_87 (world_ranking__1_ VARCHAR, countries_sampled VARCHAR, year_of_publication VARCHAR, ranking_in_latin_america__2_ VARCHAR)
SELECT world_ranking__1_ FROM table_name_87 WHERE year_of_publication = "2011" AND ranking_in_latin_america__2_ > 3 AND countries_sampled > 142
What was the production company for the film directed by Daniel Cormack?
CREATE TABLE table_name_54 (production_company VARCHAR, director_s_ VARCHAR)
SELECT production_company FROM table_name_54 WHERE director_s_ = "daniel cormack"
What is the takeover date of the FA division mitre?
CREATE TABLE table_name_19 (takeover_date VARCHAR, fa_division_s_ VARCHAR)
SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = "mitre"
Which Club has a League goals of 21?
CREATE TABLE table_name_66 (club VARCHAR, league_goals VARCHAR)
SELECT club FROM table_name_66 WHERE league_goals = "21"