answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT average_speed__mph_ FROM table_2267465_1 WHERE year = "1964"
What's the average mph of 1964?
CREATE TABLE table_2267465_1 (average_speed__mph_ VARCHAR, year VARCHAR)
SELECT city FROM table_name_6 WHERE third = "lori olson-johns"
WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?
CREATE TABLE table_name_6 (city VARCHAR, third VARCHAR)
SELECT away_team FROM table_name_28 WHERE attendance = "7,891"
Who was the away team when the attendance was 7,891?
CREATE TABLE table_name_28 (away_team VARCHAR, attendance VARCHAR)
SELECT games FROM table_name_57 WHERE name = "terence morris"
How many Games for Terence Morris?
CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR)
SELECT engine_† FROM table_name_86 WHERE chassis = "mp4-13" AND driver = "david coulthard"
What engine did David Coulthard have in his mp4-13 chassis?
CREATE TABLE table_name_86 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT venue FROM table_name_95 WHERE away_team = "melbourne tigers"
What was the venue that featured the Melbourne Tigers as the away team?
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
SELECT weight FROM table_name_73 WHERE series = "ii series"
What does the ii Series weigh?
CREATE TABLE table_name_73 (weight VARCHAR, series VARCHAR)
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40
What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?
CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT nominee FROM table_name_17 WHERE category = "outstanding director of a musical"
Which nominee was nominated in the Outstanding Director of a Musical category?
CREATE TABLE table_name_17 (nominee VARCHAR, category VARCHAR)
SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY COUNT(*) DESC LIMIT 1
Find the most prominent max page size among all the products.
CREATE TABLE product (max_page_size VARCHAR)
SELECT SUM(points) FROM table_name_77 WHERE class = "500cc" AND wins > 0 AND year > 1974
How many points have 500cc for the class, a win greater than 0, with a year after 1974?
CREATE TABLE table_name_77 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
SELECT affected_area_codes FROM table_name_95 WHERE effective_date = "august 30, 2014"
Which Affected area codes have an Effective date of august 30, 2014?
CREATE TABLE table_name_95 (affected_area_codes VARCHAR, effective_date VARCHAR)
SELECT opponent FROM table_name_8 WHERE record = "7-7-1"
Can you tell me the Opponent that has the Record of 7-7-1?
CREATE TABLE table_name_8 (opponent VARCHAR, record VARCHAR)
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"
Which date was the x gran premio di napoli?
CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR)
SELECT attendance FROM table_name_3 WHERE date = "bye"
What was the attendance on the bye week?
CREATE TABLE table_name_3 (attendance VARCHAR, date VARCHAR)
SELECT player FROM table_name_24 WHERE nationality = "spain"
Which player has a nationality of spain?
CREATE TABLE table_name_24 (player VARCHAR, nationality VARCHAR)
SELECT title FROM table_name_61 WHERE first_year = "1950" AND publisher = "ec comics" AND last_year = "1953"
Which EC Comics title ran from 1950 to 1953?
CREATE TABLE table_name_61 (title VARCHAR, last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
SELECT position FROM table_name_15 WHERE team = "kr"
What position did the kr team player play?
CREATE TABLE table_name_15 (position VARCHAR, team VARCHAR)
SELECT away_team AS score FROM table_name_67 WHERE venue = "glenferrie oval"
What was the score of the away team at the the glenferrie oval?
CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR)
SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "2April1969"
what's the date of birth with end of term being 2april1969
CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)
SELECT COUNT(coach) FROM table_1165048_1 WHERE captain = "Grant Welsh" AND win_loss = "5-15"
what is the total number of coach where captain is grant welsh and win/loss is 5-15
CREATE TABLE table_1165048_1 (coach VARCHAR, captain VARCHAR, win_loss VARCHAR)
SELECT tie_no FROM table_name_12 WHERE home_team = "gillingham"
What is the tie number when the home team was gillingham?
CREATE TABLE table_name_12 (tie_no VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_2 WHERE home_team = "fitzroy"
What was the attendance when Fitzroy played as home team?
CREATE TABLE table_name_2 (crowd VARCHAR, home_team VARCHAR)
SELECT opponent FROM table_12206918_2 WHERE result = "UD 12/12" AND date = "1993-05-22"
Who was the opponent when the result was ud 12/12 and date was 1993-05-22?
CREATE TABLE table_12206918_2 (opponent VARCHAR, result VARCHAR, date VARCHAR)
SELECT date FROM table_name_88 WHERE tournament = "greater greensboro chrysler classic"
What is the date of the Greater Greensboro Chrysler Classic?
CREATE TABLE table_name_88 (date VARCHAR, tournament VARCHAR)
SELECT fastest_lap FROM table_name_87 WHERE race = "german grand prix"
Who had the fastest lap at the German Grand Prix?
CREATE TABLE table_name_87 (fastest_lap VARCHAR, race VARCHAR)
SELECT area_sq_mi__km_2____rank_ FROM table_14253123_1 WHERE county_seat = "Vincennes"
When Vincennes is the county seat what is the area sq mi (km 2 ) (rank) ?
CREATE TABLE table_14253123_1 (area_sq_mi__km_2____rank_ VARCHAR, county_seat VARCHAR)
SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp"
What venue did the partnership of herschelle gibbs / justin kemp happen?
CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR)
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "western oval"
What was the average crowd at Western Oval?
CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR)
SELECT opponent FROM table_name_46 WHERE week = 9
Which opponent was played on week 9?
CREATE TABLE table_name_46 (opponent VARCHAR, week VARCHAR)
SELECT incumbent FROM table_1434788_5 WHERE district = "Ohio 16"
Who was the incumbent in the Ohio 16 district?
CREATE TABLE table_1434788_5 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_1139087_2 WHERE grand_prix = "French grand_prix"
What day is the french grand prix
CREATE TABLE table_1139087_2 (date VARCHAR, grand_prix VARCHAR)
SELECT club_team FROM table_name_12 WHERE round < 4
Which club team was the player from who was selected in a round under 4?
CREATE TABLE table_name_12 (club_team VARCHAR, round INTEGER)
SELECT COUNT(first_broadcast) FROM table_23575917_7 WHERE episode = "6x03"
If the episode is 6x03, what is the first broadcast total number?
CREATE TABLE table_23575917_7 (first_broadcast VARCHAR, episode VARCHAR)
SELECT COUNT(attendance) FROM table_name_42 WHERE h___a = "a" AND opponents = "wolverhampton wanderers"
What's the total attendance for H/A of A and opponents of wolverhampton wanderers?
CREATE TABLE table_name_42 (attendance VARCHAR, h___a VARCHAR, opponents VARCHAR)
SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = "9.1"
If the rating is 9.1, what was the total viewers?
CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR)
SELECT dsl_type FROM table_1773908_3 WHERE provider = "M-net"
What are all the dsl type offered by the M-Net telecom company?
CREATE TABLE table_1773908_3 (dsl_type VARCHAR, provider VARCHAR)
SELECT MIN(league_cup) FROM table_name_71 WHERE premier_league = 1 AND total < 5
What is the lowest league cup with a premier League of 1, and the total is less than 5?
CREATE TABLE table_name_71 (league_cup INTEGER, premier_league VARCHAR, total VARCHAR)
SELECT earnings___$__ FROM table_name_40 WHERE player = "tiger woods"
What amount of earnings does Tiger Woods have?
CREATE TABLE table_name_40 (earnings___$__ VARCHAR, player VARCHAR)
SELECT player FROM table_name_68 WHERE tries = "11"
which player has 11 tries?
CREATE TABLE table_name_68 (player VARCHAR, tries VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_34 WHERE car_s_ = "ford fusion" AND crew_chief = "drew blickensderfer"
What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer?
CREATE TABLE table_name_34 (primary_sponsor_s_ VARCHAR, car_s_ VARCHAR, crew_chief VARCHAR)
SELECT player FROM table_11677691_12 WHERE school = "St. Thomas Aquinas High school"
who are all the players for st. thomas aquinas high school
CREATE TABLE table_11677691_12 (player VARCHAR, school VARCHAR)
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
What is the name of the body builder with the greatest body weight?
CREATE TABLE body_builder (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Weight VARCHAR)
SELECT COUNT(november) FROM table_name_50 WHERE game > 14 AND opponent = "minnesota wild"
How many Novembers have a Game larger than 14, and an Opponent of minnesota wild?
CREATE TABLE table_name_50 (november VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT home_team FROM table_name_3 WHERE venue = "mcg"
Who is the home team that played at venue MCG?
CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(total) FROM table_26375386_20 WHERE vote_percentage = "15.0%"
How many times was the vote percentage 15.0%?
CREATE TABLE table_26375386_20 (total VARCHAR, vote_percentage VARCHAR)
SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3
How many golds have a Total of 11, and a Bronze smaller than 3?
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT july FROM table_name_58 WHERE december = "morgan fox"
Who is the July playmate with a December playmate Morgan Fox?
CREATE TABLE table_name_58 (july VARCHAR, december VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_54 WHERE player = "tom weiskopf"
What is the average money ($) that Tom Weiskopf made?
CREATE TABLE table_name_54 (money___ INTEGER, player VARCHAR)
SELECT guest_host FROM table_name_19 WHERE episode_number = 7
What kind of Guest Host has a Episode Number of 7?
CREATE TABLE table_name_19 (guest_host VARCHAR, episode_number VARCHAR)
SELECT AVG(T1.salary), COUNT(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1
Find the number and averaged salary of all instructors who are in the department with the highest budget.
CREATE TABLE department (dept_name VARCHAR, budget VARCHAR); CREATE TABLE instructor (salary INTEGER, dept_name VARCHAR)
SELECT score FROM table_name_98 WHERE opponent = "brewers" AND attendance = "11,235"
Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235?
CREATE TABLE table_name_98 (score VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30"
What's the lowest capacity when the margin is 03:30?
CREATE TABLE table_name_77 (capacity INTEGER, margin VARCHAR)
SELECT MAX(floors) FROM table_name_52 WHERE street_address = "800 boylston street"
How many floors does the building on 800 Boylston Street have?
CREATE TABLE table_name_52 (floors INTEGER, street_address VARCHAR)
SELECT height FROM table_name_25 WHERE city = "des moines" AND name = "emc insurance building"
What is the height of the EMC Insurance Building in Des Moines?
CREATE TABLE table_name_25 (height VARCHAR, city VARCHAR, name VARCHAR)
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct"
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
SELECT name, date FROM races ORDER BY date DESC LIMIT 1
What is the name and date of the most recent race?
CREATE TABLE races (name VARCHAR, date VARCHAR)
SELECT cuts_made FROM table_28540609_2 WHERE earnings__€_ = 210408
How many cuts did the player who earned 210408 Euro make?
CREATE TABLE table_28540609_2 (cuts_made VARCHAR, earnings__€_ VARCHAR)
SELECT song_title FROM table_21500850_1 WHERE genre = "Rock" AND original_game = "Guitar Hero" AND artist = "Queens of the Stone Age"
What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?
CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)
SELECT title FROM table_29545336_2 WHERE featured_character_s_ = "Abbud Siddiqui"
What is the title of the episode that featured Abbud Siddiqui?
CREATE TABLE table_29545336_2 (title VARCHAR, featured_character_s_ VARCHAR)
SELECT written_by FROM table_27622417_1 WHERE prod_code = "411"
who were the writers in the episode whose production code was 411?
CREATE TABLE table_27622417_1 (written_by VARCHAR, prod_code VARCHAR)
SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat"
Find the different first names and cities of the students who have allergy to milk or cat.
CREATE TABLE Has_Allergy (stuid VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, city_code VARCHAR, stuid VARCHAR)
SELECT MIN(poles) FROM table_name_60 WHERE season > 2009
What is the lowest Poles with a Season that is larger than 2009?
CREATE TABLE table_name_60 (poles INTEGER, season INTEGER)
SELECT COUNT(year) FROM table_name_97 WHERE champion = "robert coombes" AND date = "may 7"
WHAT YEAR WAS ROBERT COOMBES CHAMPION ON MAY 7?
CREATE TABLE table_name_97 (year VARCHAR, champion VARCHAR, date VARCHAR)
SELECT title FROM table_12451376_2 WHERE season_2_ep__number = 1
Please give me the title of Season 2, episode 1.
CREATE TABLE table_12451376_2 (title VARCHAR, season_2_ep__number VARCHAR)
SELECT hometown FROM table_1289860_2 WHERE background = "Real Estate agent"
Where is the real estate agent from?
CREATE TABLE table_1289860_2 (hometown VARCHAR, background VARCHAR)
SELECT away_team FROM table_name_72 WHERE home_team = "collingwood"
Who played Collingwood?
CREATE TABLE table_name_72 (away_team VARCHAR, home_team VARCHAR)
SELECT speed FROM table_name_59 WHERE rank = 2
WHich Speed has a Rank of 2?
CREATE TABLE table_name_59 (speed VARCHAR, rank VARCHAR)
SELECT title FROM table_name_71 WHERE featuring = "leela" AND series_sorted = "4s/b"
what is the title when the featuring is leela and series sorted is 4s/b?
CREATE TABLE table_name_71 (title VARCHAR, featuring VARCHAR, series_sorted VARCHAR)
SELECT grand_prix FROM table_name_23 WHERE pole_position = "kimi räikkönen"
Name the Grand Prix for pole position of kimi räikkönen
CREATE TABLE table_name_23 (grand_prix VARCHAR, pole_position VARCHAR)
SELECT MAX(score) FROM table_name_97 WHERE place = "t2" AND player = "steve flesch"
What is T2 Place Player Steve Flesch's Score?
CREATE TABLE table_name_97 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT MIN(crowd) FROM table_name_32 WHERE venue = "arden street oval"
What is the size of the smallest crowd that watched a game at Arden Street Oval?
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)
SELECT guns FROM table_name_36 WHERE superintendent = "silas talbot"
What is the number of guns when the superintendent was Silas Talbot?
CREATE TABLE table_name_36 (guns VARCHAR, superintendent VARCHAR)
SELECT score FROM table_name_12 WHERE venue = "riyadh, saudi arabia"
in riyadh, saudi arabia, what is the score?
CREATE TABLE table_name_12 (score VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_87 WHERE rank = "3"
What is Opponent, when Rank is 3?
CREATE TABLE table_name_87 (opponent VARCHAR, rank VARCHAR)
SELECT pop_density_people_km_2 FROM table_1606824_1 WHERE population__percentage_of_eu = "1.1%" AND member_state = "Slovakia"
Name the population density where population % is 1.1% for slovakia
CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR, member_state VARCHAR)
SELECT party FROM table_name_95 WHERE date = "august 26, 2008"
Which party had a member on August 26, 2008?
CREATE TABLE table_name_95 (party VARCHAR, date VARCHAR)
SELECT ihsaa_class FROM table_name_39 WHERE school = "seymour"
What's the IHSAA Class when the school is Seymour?
CREATE TABLE table_name_39 (ihsaa_class VARCHAR, school VARCHAR)
SELECT november_3 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017"
During November 3 where august 21-22 is august 21, 2017?
CREATE TABLE table_25287007_2 (november_3 VARCHAR, august_21_22 VARCHAR)
SELECT SUM(against) FROM table_name_34 WHERE losses = 14 AND byes > 0
What is the total number of against when they had 14 losses and more than 0 byes?
CREATE TABLE table_name_34 (against INTEGER, losses VARCHAR, byes VARCHAR)
SELECT COUNT(womens_singles) FROM table_28211988_1 WHERE season = "2000/01"
How many people are women's singles in the season of 2000/01?
CREATE TABLE table_28211988_1 (womens_singles VARCHAR, season VARCHAR)
SELECT title FROM table_name_93 WHERE track > 11
What is the title of the track after 11?
CREATE TABLE table_name_93 (title VARCHAR, track INTEGER)
SELECT week FROM table_name_18 WHERE attendance = "65,272"
Which week's game was attended by 65,272 people?
CREATE TABLE table_name_18 (week VARCHAR, attendance VARCHAR)
SELECT MIN(goal_difference) FROM table_name_59 WHERE club = "ud alzira" AND played > 38
What is the lowest goal difference for the club ud alzira, with a played larger than 38?
CREATE TABLE table_name_59 (goal_difference INTEGER, club VARCHAR, played VARCHAR)
SELECT home FROM table_name_68 WHERE date = "february 2, 1947"
What is the Home team on February 2, 1947?
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR)
SELECT COUNT(position) FROM table_24540893_6 WHERE school = "SE Missouri State"
How many players attended SE missouri state?
CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR)
SELECT us_state_district FROM table_name_51 WHERE charter_date = "april 17, 2011"
What state or district has a charter date of april 17, 2011?
CREATE TABLE table_name_51 (us_state_district VARCHAR, charter_date VARCHAR)
SELECT title FROM table_25548213_1 WHERE directed_by = "Bill Lawrence"
What was the name of the episode that bill lawrence directed?
CREATE TABLE table_25548213_1 (title VARCHAR, directed_by VARCHAR)
SELECT score FROM table_name_64 WHERE money___$__ = 450
What was the score for the player than won $450?
CREATE TABLE table_name_64 (score VARCHAR, money___$__ VARCHAR)
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15
What was the highest lap count for Walker Racing with a grid larger than 15?
CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR)
SELECT COUNT(district) FROM table_1341472_20 WHERE incumbent = "Robert Livingston"
How many districts was Robert Livingston incumbent in?
CREATE TABLE table_1341472_20 (district VARCHAR, incumbent VARCHAR)
SELECT score FROM table_name_24 WHERE visitor = "chicago black hawks" AND date = "november 12"
What is the score of the game on November 12 with the Chicago Black Hawks as the visitor team?
CREATE TABLE table_name_24 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT partner FROM table_name_87 WHERE date = "june 18, 1989"
Which Partner has a Date of june 18, 1989?
CREATE TABLE table_name_87 (partner VARCHAR, date VARCHAR)
SELECT date FROM table_name_92 WHERE prize = "$141,426"
What is the Date of the Event with a Prize of $141,426?
CREATE TABLE table_name_92 (date VARCHAR, prize VARCHAR)
SELECT MAX(total) FROM table_name_4 WHERE nation = "united states" AND bronze > 3
Which Total has a Nation of united states, and a Bronze larger than 3?
CREATE TABLE table_name_4 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = "honda" AND time = "+10.583"
What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583?
CREATE TABLE table_name_67 (rider VARCHAR, time VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT first_elected FROM table_1341663_19 WHERE incumbent = "Jerry Huckaby"
What year was Jerry Huckaby first elected?
CREATE TABLE table_1341663_19 (first_elected VARCHAR, incumbent VARCHAR)
SELECT reclassified_as FROM table_name_35 WHERE nvr_link = "cgn38"
Where the NRV link is CGN38, what is the reclassified as?
CREATE TABLE table_name_35 (reclassified_as VARCHAR, nvr_link VARCHAR)
SELECT AVG(top_25) FROM table_name_93 WHERE top_10 < 2
What is the average number of top-25s for events with less than 2 top-10s?
CREATE TABLE table_name_93 (top_25 INTEGER, top_10 INTEGER)
SELECT MAX(nicotine) FROM table_name_40 WHERE name = "raison blue"
Which Raison Blue has the highest nicotine?
CREATE TABLE table_name_40 (nicotine INTEGER, name VARCHAR)