question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Jean Alesi, drives the Acer 01A engine for which team?
CREATE TABLE table_name_68 (team VARCHAR, driver VARCHAR, engine_† VARCHAR)
SELECT team FROM table_name_68 WHERE driver = "jean alesi" AND engine_† = "acer 01a"
What is the 2012 population for the state whose capital is Santa Fe?
CREATE TABLE table_name_61 (population_est__2012_ VARCHAR, capital VARCHAR)
SELECT population_est__2012_ FROM table_name_61 WHERE capital = "santa fe"
What is Phil Crane, democrat or republican
CREATE TABLE table_1341663_14 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341663_14 WHERE incumbent = "Phil Crane"
What episode had 10.14 million viewers (U.S.)?
CREATE TABLE table_21550897_1 (_number INTEGER, us_viewers__million_ VARCHAR)
SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.14"
What date was Ipswich Town the away team?
CREATE TABLE table_name_76 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_76 WHERE away_team = "ipswich town"
Which team has nc position for 2010 season?
CREATE TABLE table_23338693_1 (team VARCHAR, position VARCHAR, season VARCHAR)
SELECT team FROM table_23338693_1 WHERE position = "NC" AND season = 2010
What was the stadium past 2012?
CREATE TABLE table_name_31 (stadium VARCHAR, year INTEGER)
SELECT stadium FROM table_name_31 WHERE year > 2012
What district is tom j. murray from?
CREATE TABLE table_1342013_41 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342013_41 WHERE incumbent = "Tom J. Murray"
Which opponent had a result of 0:1?
CREATE TABLE table_name_27 (opponent VARCHAR, results¹ VARCHAR)
SELECT opponent FROM table_name_27 WHERE results¹ = "0:1"
What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)?
CREATE TABLE table_name_84 (senior_list VARCHAR, date_of_birth__age_when_delisted_ VARCHAR)
SELECT senior_list FROM table_name_84 WHERE date_of_birth__age_when_delisted_ = "5 june 1984 (aged 23)"
How many opengl have the ironlake ( clarkdale ) code name?
CREATE TABLE table_25839957_5 (opengl VARCHAR, code_name VARCHAR)
SELECT COUNT(opengl) FROM table_25839957_5 WHERE code_name = "Ironlake ( Clarkdale )"
what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%
CREATE TABLE table_1342292_2 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_1342292_2 WHERE candidates = "Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%"
What is the low FA cup goals for viduka with under 2 europe goals?
CREATE TABLE table_name_58 (fa_cup INTEGER, name VARCHAR, europe VARCHAR)
SELECT MIN(fa_cup) FROM table_name_58 WHERE name = "viduka" AND europe < 2
Which loss has a Record of 54-39?
CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_68 WHERE record = "54-39"
Who had the most points in game 81?
CREATE TABLE table_name_84 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_name_84 WHERE game = 81
What was the record on November 1?
CREATE TABLE table_17288869_5 (record VARCHAR, date VARCHAR)
SELECT record FROM table_17288869_5 WHERE date = "November 1"
What is the total number of people who has no friend living in the city of Austin.
CREATE TABLE person (name VARCHAR, friend VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, city VARCHAR)
SELECT COUNT(DISTINCT name) FROM PersonFriend WHERE NOT friend IN (SELECT name FROM person WHERE city = 'Austin')
What is the earliest year where the mintage (proof) is 25,000?
CREATE TABLE table_11916083_1 (year INTEGER, mintage__proof_ VARCHAR)
SELECT MIN(year) FROM table_11916083_1 WHERE mintage__proof_ = "25,000"
Which game did marc gasol (10) have the high rebounds?
CREATE TABLE table_27756474_2 (game VARCHAR, high_rebounds VARCHAR)
SELECT game FROM table_27756474_2 WHERE high_rebounds = "Marc Gasol (10)"
What is the front-side bus for the processor whose frequency is 733MHz?
CREATE TABLE table_name_95 (front_side_bus VARCHAR, frequency VARCHAR)
SELECT front_side_bus FROM table_name_95 WHERE frequency = "733mhz"
Where was match which had Joe Lauzon as an opponent?
CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon"
Which tournament had an opponent of petra krejsová tereza smitková?
CREATE TABLE table_name_59 (tournament VARCHAR, opponents VARCHAR)
SELECT tournament FROM table_name_59 WHERE opponents = "petra krejsová tereza smitková"
Date of sun. oct. 1 has what location?
CREATE TABLE table_name_29 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_29 WHERE date = "sun. oct. 1"
What digital channel corresponds to virtual channel 5.2?
CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR)
SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = "5.2"
What's the type that ends in 2009?
CREATE TABLE table_name_60 (type VARCHAR, ends VARCHAR)
SELECT type FROM table_name_60 WHERE ends = "2009"
what's the permanence of the body where purity is apprehension
CREATE TABLE table_11609814_1 (permanence_of_the_body VARCHAR, purity VARCHAR)
SELECT permanence_of_the_body FROM table_11609814_1 WHERE purity = "apprehension"
What year was there a Tony award category of Best Revival of a Musical?
CREATE TABLE table_name_72 (year VARCHAR, award VARCHAR, category VARCHAR)
SELECT year FROM table_name_72 WHERE award = "tony award" AND category = "best revival of a musical"
List the # for ships commissioned on december 18, 1965.
CREATE TABLE table_1014206_2 (_number VARCHAR, commissioned VARCHAR)
SELECT _number FROM table_1014206_2 WHERE commissioned = "December 18, 1965"
When 3 is the number what is the highest total?
CREATE TABLE table_24781886_3 (total INTEGER, _number VARCHAR)
SELECT MAX(total) FROM table_24781886_3 WHERE _number = 3
Which Time has a Round larger than 2, and an Opponent of jesse brock?
CREATE TABLE table_name_96 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_96 WHERE round > 2 AND opponent = "jesse brock"
WHich October has a Record of 1–0–0?
CREATE TABLE table_name_50 (october INTEGER, record VARCHAR)
SELECT MIN(october) FROM table_name_50 WHERE record = "1–0–0"
Which college did Leon Perry attend?
CREATE TABLE table_16376436_1 (college VARCHAR, player VARCHAR)
SELECT college FROM table_16376436_1 WHERE player = "Leon Perry"
What is the earliest week with a game attended by 60,233?
CREATE TABLE table_name_35 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_35 WHERE attendance = "60,233"
Date of january 11, 1998 has what surface?
CREATE TABLE table_name_55 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_55 WHERE date = "january 11, 1998"
Which Opposition has a Year smaller than 1977, and a City of manchester?
CREATE TABLE table_name_53 (opposition VARCHAR, year VARCHAR, city VARCHAR)
SELECT opposition FROM table_name_53 WHERE year < 1977 AND city = "manchester"
When has a TV Time of fox 12:00 pm cdt?
CREATE TABLE table_name_75 (date VARCHAR, tv_time VARCHAR)
SELECT date FROM table_name_75 WHERE tv_time = "fox 12:00 pm cdt"
for goals less than 48 and 8 games played what is the count of losses?
CREATE TABLE table_name_19 (losses INTEGER, games_played VARCHAR, goals_for VARCHAR)
SELECT MAX(losses) FROM table_name_19 WHERE games_played = 8 AND goals_for < 48
On what date was the venue of Glenferrie Oval?
CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_12 WHERE venue = "glenferrie oval"
Name the record for december 8
CREATE TABLE table_23248940_7 (record VARCHAR, date VARCHAR)
SELECT record FROM table_23248940_7 WHERE date = "December 8"
Who was in the East when TUS Geretsried II was in the South?
CREATE TABLE table_name_9 (east VARCHAR, south VARCHAR)
SELECT east FROM table_name_9 WHERE south = "tus geretsried ii"
Show different hometown of teachers and the number of teachers from each hometown.
CREATE TABLE teacher (Hometown VARCHAR)
SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown
Show the names of players and names of their coaches.
CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)
SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID
What competition has a result of W on June 30, 1966?
CREATE TABLE table_name_31 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT competition FROM table_name_31 WHERE result = "w" AND date = "june 30, 1966"
What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?
CREATE TABLE table_26614365_5 (galician___reintegrationist__ VARCHAR, galician___official__ VARCHAR)
SELECT galician___reintegrationist__ FROM table_26614365_5 WHERE galician___official__ = "Bo día / Bos días"
What is the name origin with a diameter of 220.0 kilometers?
CREATE TABLE table_16799784_14 (name VARCHAR, diameter__km_ VARCHAR)
SELECT name AS origin FROM table_16799784_14 WHERE diameter__km_ = "220.0"
How many budget types do we have?
CREATE TABLE Ref_budget_codes (Id VARCHAR)
SELECT COUNT(*) FROM Ref_budget_codes
What grid has 78 laps, and Ronnie Bremer as driver?
CREATE TABLE table_name_54 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_54 WHERE laps = 78 AND driver = "ronnie bremer"
What is the evening gown score for the contestant from Mississippi?
CREATE TABLE table_name_4 (evening_gown VARCHAR, state VARCHAR)
SELECT evening_gown FROM table_name_4 WHERE state = "mississippi"
Name the number for 1.96 height
CREATE TABLE table_23670057_1 (no VARCHAR, height__m_ VARCHAR)
SELECT no FROM table_23670057_1 WHERE height__m_ = "1.96"
Who attended the school in 2008, that Deandria Hill attended in 2005?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT 2008 FROM table_name_15 WHERE 2005 = "deandria hill"
Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_rank_points VARCHAR)
SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1
How big was the largest crowd recorded at the Arden Street Oval venue?
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_73 WHERE venue = "arden street oval"
What team played in the 1964 Tokyo Games?
CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR)
SELECT name FROM table_name_56 WHERE games = "1964 tokyo"
in what year were 2 points scored?
CREATE TABLE table_name_19 (year INTEGER, points VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE points = "2"
How many extra points did right halfback Roswell Wendell have?
CREATE TABLE table_name_12 (extra_points VARCHAR, position VARCHAR, player VARCHAR)
SELECT extra_points FROM table_name_12 WHERE position = "right halfback" AND player = "roswell wendell"
What is Package/Option, when Television Service is Sky Inside?
CREATE TABLE table_name_74 (package_option VARCHAR, television_service VARCHAR)
SELECT package_option FROM table_name_74 WHERE television_service = "sky inside"
What country is player ed sneed, who has a to par of +3, from?
CREATE TABLE table_name_70 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_70 WHERE to_par = "+3" AND player = "ed sneed"
Which Player has a Position of forward, and a School/Club Team of georgia tech?
CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_22 WHERE position = "forward" AND school_club_team = "georgia tech"
How many seasons have 1 goals and more than 11 apps?
CREATE TABLE table_name_89 (season VARCHAR, goals VARCHAR, apps VARCHAR)
SELECT COUNT(season) FROM table_name_89 WHERE goals = 1 AND apps > 11
Name the average total for tournament less than 0
CREATE TABLE table_name_82 (total INTEGER, tournament INTEGER)
SELECT AVG(total) FROM table_name_82 WHERE tournament < 0
Name the dar for 912
CREATE TABLE table_15887683_17 (dar VARCHAR, n° VARCHAR)
SELECT dar FROM table_15887683_17 WHERE n° = 912
display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.
CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, job_id VARCHAR, salary INTEGER)
SELECT employee_id, first_name, last_name, job_id FROM employees WHERE salary > (SELECT MAX(salary) FROM employees WHERE job_id = 'PU_MAN')
What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?
CREATE TABLE table_name_2 (years_in_competition VARCHAR, premiership_years VARCHAR)
SELECT years_in_competition FROM table_name_2 WHERE premiership_years = "1982, 1984, 1999, 2002-03, 2008-09-10"
Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?
CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
SELECT stage__winner_ FROM table_name_17 WHERE general_classification = "vladimir karpets" AND team_classification = "relax-gam" AND points_classification = "denis menchov"
What home team has a tie no of 20?
CREATE TABLE table_name_44 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_44 WHERE tie_no = "20"
What was the yield of the K-4 explosion?
CREATE TABLE table_148578_1 (yield__approximate_ VARCHAR, explosion VARCHAR)
SELECT yield__approximate_ FROM table_148578_1 WHERE explosion = "K-4"
What was the average T score when the E score was larger than 9.6 and the team was from Spain?
CREATE TABLE table_name_88 (t_score INTEGER, nation VARCHAR, e_score VARCHAR)
SELECT AVG(t_score) FROM table_name_88 WHERE nation = "spain" AND e_score > 9.6
What was the first leg score against Real Sociedad?
CREATE TABLE table_name_66 (first_leg VARCHAR, opposition VARCHAR)
SELECT first_leg FROM table_name_66 WHERE opposition = "real sociedad"
Name who wrote the episode directed by patrick duffy airing on november 7, 1997
CREATE TABLE table_2468961_8 (written_by VARCHAR, directed_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_2468961_8 WHERE directed_by = "Patrick Duffy" AND original_air_date = "November 7, 1997"
Which city is the address of the store named "FJA Filming" located in?
CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Store_Name VARCHAR)
SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = "FJA Filming"
Who was the writer for the episode with 2.15 million u.s.viewers?
CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
How many different civil parishes is Canrooska a part of?
CREATE TABLE table_30120555_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT COUNT(civil_parish) FROM table_30120555_1 WHERE townland = "Canrooska"
Which round has the mv agusta f4 1000 mt?
CREATE TABLE table_name_75 (rounds VARCHAR, motorcycle VARCHAR)
SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt"
How many towns exist on the government area with a surface of 110 square kilometers?
CREATE TABLE table_23685890_2 (towns INTEGER, land_area__km²_ VARCHAR)
SELECT MIN(towns) FROM table_23685890_2 WHERE land_area__km²_ = "110"
When is the earliest year opened for huff hall that was established after 1974?
CREATE TABLE table_name_20 (opened INTEGER, venue VARCHAR, established VARCHAR)
SELECT MIN(opened) FROM table_name_20 WHERE venue = "huff hall" AND established > 1974
What day was the record 14-27?
CREATE TABLE table_23274514_6 (date VARCHAR, record VARCHAR)
SELECT date FROM table_23274514_6 WHERE record = "14-27"
What is the Venue of the Friendly Competition with a Score of 1–4?
CREATE TABLE table_name_58 (venue VARCHAR, competition VARCHAR, score VARCHAR)
SELECT venue FROM table_name_58 WHERE competition = "friendly" AND score = "1–4"
Name the number of dates for alouettes
CREATE TABLE table_24126518_2 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(date) FROM table_24126518_2 WHERE opponent = "Alouettes"
What is the name of the engine in 1961?
CREATE TABLE table_name_83 (engine VARCHAR, year VARCHAR)
SELECT engine FROM table_name_83 WHERE year = 1961
What round has a pick less than 189, with arizona cardinals as the NFL club?
CREATE TABLE table_name_4 (round VARCHAR, pick VARCHAR, nfl_club VARCHAR)
SELECT round FROM table_name_4 WHERE pick < 189 AND nfl_club = "arizona cardinals"
Tell me the league with a regular 1st season
CREATE TABLE table_name_2 (league VARCHAR, reg_season VARCHAR)
SELECT league FROM table_name_2 WHERE reg_season = "1st"
Which election has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?
CREATE TABLE table_name_40 (election VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR)
SELECT election FROM table_name_40 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy"
Show the name, street address, and number of floors for all buildings ordered by the number of floors.
CREATE TABLE building (name VARCHAR, street_address VARCHAR, floors VARCHAR)
SELECT name, street_address, floors FROM building ORDER BY floors
What is the score of the competition of friendly, at match 7?
CREATE TABLE table_name_53 (score1 VARCHAR, competition_or_tour VARCHAR, match VARCHAR)
SELECT score1 FROM table_name_53 WHERE competition_or_tour = "friendly" AND match = 7
Name the district for spencer bachus
CREATE TABLE table_25030512_4 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_25030512_4 WHERE incumbent = "Spencer Bachus"
Who is the writer when the director is bob berlinger?
CREATE TABLE table_29747178_2 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_29747178_2 WHERE directed_by = "Bob Berlinger"
Show the name of the building that has the most company offices.
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
What is the result for the Toscane Horse in the freestyle test?
CREATE TABLE table_name_60 (result VARCHAR, horse VARCHAR, event VARCHAR)
SELECT result FROM table_name_60 WHERE horse = "toscane" AND event = "freestyle test"
What are the lowest wins for Australia?
CREATE TABLE table_name_45 (wins INTEGER, country VARCHAR)
SELECT MIN(wins) FROM table_name_45 WHERE country = "australia"
what is the least amount in the tournament?
CREATE TABLE table_12755786_8 (league INTEGER)
SELECT MIN(league) AS Cup FROM table_12755786_8
what is the college for the player who's school is camden high school?
CREATE TABLE table_11677760_1 (college VARCHAR, school VARCHAR)
SELECT college FROM table_11677760_1 WHERE school = "Camden High school"
How many no outs for an average of 56.38?
CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR)
SELECT COUNT(not_out) FROM table_20367820_16 WHERE average = "56.38"
Name the least goals for goal difference of 7 and losses more than 13
CREATE TABLE table_name_29 (goals_against INTEGER, goal_difference VARCHAR, losses VARCHAR)
SELECT MIN(goals_against) FROM table_name_29 WHERE goal_difference = 7 AND losses > 13
How many losses for the team atl. colegiales?
CREATE TABLE table_18594107_2 (losses INTEGER, team VARCHAR)
SELECT MAX(losses) FROM table_18594107_2 WHERE team = "Atl. Colegiales"
What mark has over 813 points in the United States, and a 0.152 react?
CREATE TABLE table_name_51 (mark VARCHAR, react VARCHAR, points VARCHAR, country VARCHAR)
SELECT mark FROM table_name_51 WHERE points > 813 AND country = "united states" AND react > 0.152
Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock
CREATE TABLE table_name_4 (date VARCHAR, event VARCHAR, acts VARCHAR, year VARCHAR)
SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > 1981 AND event = "monsters of rock"
Who is the visitor with a 14-10 record?
CREATE TABLE table_name_71 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_71 WHERE record = "14-10"
What pick number did the New York Rangers have?
CREATE TABLE table_2897457_8 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT pick__number FROM table_2897457_8 WHERE nhl_team = "New York Rangers"
What is the most recent year where team made it to 2nd round of the Open Cup?
CREATE TABLE table_1570003_2 (year INTEGER, open_cup VARCHAR)
SELECT MAX(year) FROM table_1570003_2 WHERE open_cup = "2nd Round"
What is the nationality if the appearance is 29?
CREATE TABLE table_24565004_8 (nationality² VARCHAR, appearances¹ VARCHAR)
SELECT nationality² FROM table_24565004_8 WHERE appearances¹ = 29