answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(grid) FROM table_name_48 WHERE laps < 17 AND constructor = "sauber - petronas"
What is the lowest grid value with fewer than 17 laps and constructor Sauber - Petronas?
CREATE TABLE table_name_48 (grid INTEGER, laps VARCHAR, constructor VARCHAR)
SELECT music FROM table_name_75 WHERE dance = "jive"
What is the Music if the Dance is Jive?
CREATE TABLE table_name_75 (music VARCHAR, dance VARCHAR)
SELECT day_1 FROM table_name_16 WHERE day_3 = "math"
What is the day 1 when the day 3 is math?
CREATE TABLE table_name_16 (day_1 VARCHAR, day_3 VARCHAR)
SELECT COUNT(played) FROM table_name_74 WHERE drawn = 2 AND points < 16 AND position > 5
How many games were played by the team with 2 draws, less than 16 points and a position higher than 5?
CREATE TABLE table_name_74 (played VARCHAR, position VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT series FROM table_name_15 WHERE director = "friz freleng" AND production_number = 1614
From what series was the title with a production number of 1614 that was directed by Friz Freleng?
CREATE TABLE table_name_15 (series VARCHAR, director VARCHAR, production_number VARCHAR)
SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 2008"
Which team had a 2008-3 2008 draft?
CREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR)
SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = "italy"
What was Italy's highest total when there were less than 4 bronze and 1 gold?
CREATE TABLE table_name_29 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(nominee) FROM table_15162479_8 WHERE vote_to_evict = "3.92%"
How many nominee's had a vote to evict percentage of 3.92%
CREATE TABLE table_15162479_8 (nominee VARCHAR, vote_to_evict VARCHAR)
SELECT opponent FROM table_name_26 WHERE save = "|| 36,388 ||15-7||"
Who was the Opponent when the Save was || 36,388 ||15-7||?
CREATE TABLE table_name_26 (opponent VARCHAR, save VARCHAR)
SELECT general_classification FROM table_name_18 WHERE team_classification = "japan"
What is the general classification when the team classification is japan?
CREATE TABLE table_name_18 (general_classification VARCHAR, team_classification VARCHAR)
SELECT result FROM table_name_47 WHERE goals = "deacon 2/5"
Which result has a Goal of deacon 2/5?
CREATE TABLE table_name_47 (result VARCHAR, goals VARCHAR)
SELECT selection_show FROM table_name_86 WHERE semi_final_heat_host = "no semi final/heat" AND year_s_ = "1969"
What is the selection show in 1969 when the Semi final/heat host shows there was no semi final/heat.
CREATE TABLE table_name_86 (selection_show VARCHAR, semi_final_heat_host VARCHAR, year_s_ VARCHAR)
SELECT COUNT(*) FROM department WHERE NOT department_id IN (SELECT department_id FROM management)
How many departments are led by heads who are not mentioned?
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR)
SELECT player FROM table_2850912_10 WHERE nhl_team = "New York Rangers"
Which player was drafted by the New York Rangers?
CREATE TABLE table_2850912_10 (player VARCHAR, nhl_team VARCHAR)
SELECT score FROM table_name_2 WHERE home = "toronto"
what was the score in toronto
CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_45 WHERE visitor = "chicago black hawks" AND record = "3-1"
What is the score of the game with the chicago black hawks as the visitor and a 3-1 record?
CREATE TABLE table_name_45 (score VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT score FROM table_name_16 WHERE home_team = "leicester city"
What was the score for the match where the home team was Leicester City?
CREATE TABLE table_name_16 (score VARCHAR, home_team VARCHAR)
SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = "Mehmet Okur , Paul Millsap (6)"
how many times were high rebounds mehmet okur , paul millsap (6)
CREATE TABLE table_17355716_10 (score VARCHAR, high_rebounds VARCHAR)
SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire"
Which sum of # 100 has a Season of 1990, and an Against of warwickshire?
CREATE TABLE table_name_33 (_number_100 INTEGER, season VARCHAR, against VARCHAR)
SELECT year_s__won FROM table_name_50 WHERE player = "arnold palmer"
What year or years did arnold palmer win?
CREATE TABLE table_name_50 (year_s__won VARCHAR, player VARCHAR)
SELECT 2009 FROM table_name_68 WHERE tournament = "tournaments played"
WHAT IS THE 2009 PERFORMANCE FOR TOURNAMENTS PLAYED?
CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT directed_by FROM table_27832075_2 WHERE episode__number = "23"
Who directed episode number 23 in the season?
CREATE TABLE table_27832075_2 (directed_by VARCHAR, episode__number VARCHAR)
SELECT record FROM table_name_16 WHERE date = "july 26"
What was the record for July 26?
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR)
SELECT points_against FROM table_name_92 WHERE try_bonus = "6" AND tries_against = "54"
How many points against does the club that has a try bonus of 6 and tries against of 54 have ?
CREATE TABLE table_name_92 (points_against VARCHAR, try_bonus VARCHAR, tries_against VARCHAR)
SELECT MIN(earnings___) AS $__ FROM table_name_87 WHERE wins < 72 AND rank > 3
What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3?
CREATE TABLE table_name_87 (earnings___ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id
Find the name of bank branches that provided some loans.
CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR)
SELECT status FROM table_name_93 WHERE against = 10
What is the status of the 10 against?
CREATE TABLE table_name_93 (status VARCHAR, against VARCHAR)
SELECT AVG(year) FROM table_name_24 WHERE attendance = "80,388"
What year was the average attendance 80,388?
CREATE TABLE table_name_24 (year INTEGER, attendance VARCHAR)
SELECT school FROM table_name_54 WHERE team_name = "trojans"
What school had a team name of the Trojans?
CREATE TABLE table_name_54 (school VARCHAR, team_name VARCHAR)
SELECT santo_domingo_, _dominican FROM table_name_79 WHERE world_record = "clean & jerk"
What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?
CREATE TABLE table_name_79 (santo_domingo_ VARCHAR, _dominican VARCHAR, world_record VARCHAR)
SELECT MIN(gold) FROM table_name_4 WHERE silver = 4 AND bronze > 4
What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze?
CREATE TABLE table_name_4 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT date FROM table_name_57 WHERE week = 4
What is the date of week 4?
CREATE TABLE table_name_57 (date VARCHAR, week VARCHAR)
SELECT MIN(satu_mare) FROM table_name_37 WHERE baia_mare > 523
What is the smallest Satu Mare value associated with Baia Mare over 523?
CREATE TABLE table_name_37 (satu_mare INTEGER, baia_mare INTEGER)
SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10
Return the address of customer 10.
CREATE TABLE customer_addresses (address_id VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_details VARCHAR, address_id VARCHAR)
SELECT AVG(fatalities) FROM table_name_84 WHERE epicenter = "damghan"
What is the average number of deaths for earthquakes centered in Damghan?
CREATE TABLE table_name_84 (fatalities INTEGER, epicenter VARCHAR)
SELECT player FROM table_name_7 WHERE place = "t6" AND score = 72 - 68 - 72 = 212
Who is the player with a t6 place and a 72-68-72=212 score?
CREATE TABLE table_name_7 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT points_won FROM table_1628607_5 WHERE year = "1992"
When the year was 1992, what were the points won?
CREATE TABLE table_1628607_5 (points_won VARCHAR, year VARCHAR)
SELECT round FROM table_name_6 WHERE opponent = "ryan bixler"
Which Round has an Opponent of ryan bixler?
CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR)
SELECT major_version FROM table_24257833_4 WHERE release_date = "May 12, 2009" AND minor_version = "3.2.3"
List major versions released on May 12, 2009, that had a minor version of 3.2.3.
CREATE TABLE table_24257833_4 (major_version VARCHAR, release_date VARCHAR, minor_version VARCHAR)
SELECT COUNT(december) FROM table_name_81 WHERE score = "5–2" AND game < 27
How much December has a Score of 5–2, and a Game smaller than 27?
CREATE TABLE table_name_81 (december VARCHAR, score VARCHAR, game VARCHAR)
SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states"
What is the placing value for a total less than 96.07 in the United States?
CREATE TABLE table_name_15 (placings VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166"
What is the best time for a rusport driver with a qual 2 time of 1:10.166?
CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR)
SELECT week FROM table_name_71 WHERE hot_100_reaction = "did not debut" AND performer_s_ = "natalie cole"
Which week has hot 100 reaction as did not debut for Natalie Cole?
CREATE TABLE table_name_71 (week VARCHAR, hot_100_reaction VARCHAR, performer_s_ VARCHAR)
SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Find the name, headquarter and founder of the manufacturer that has the highest revenue.
CREATE TABLE manufacturers (name VARCHAR, headquarter VARCHAR, founder VARCHAR, revenue VARCHAR)
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM TRACK
What are the durations of the longest and the shortest tracks in milliseconds?
CREATE TABLE TRACK (Milliseconds INTEGER)
SELECT venue FROM table_name_60 WHERE home_team = "melbourne"
What venue is home for the Melbourne team?
CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR)
SELECT score FROM table_23186738_10 WHERE team = "Milwaukee"
What was the score when playing Milwaukee?
CREATE TABLE table_23186738_10 (score VARCHAR, team VARCHAR)
SELECT year_s__of_manufacture FROM table_name_74 WHERE quantity = 31 AND axle_arrangement___uic__ = "b n2t"
What year was the b n2t axle arrangement, which has a quantity of 31, manufactured?
CREATE TABLE table_name_74 (year_s__of_manufacture VARCHAR, quantity VARCHAR, axle_arrangement___uic__ VARCHAR)
SELECT russian FROM table_name_14 WHERE us_customary = "4.16 fl. oz."
What is the Russian word for wine glass that contains 4.16 fl. oz.?
CREATE TABLE table_name_14 (russian VARCHAR, us_customary VARCHAR)
SELECT COUNT(against) FROM table_name_33 WHERE team = "hespanha" AND points < 30
How many Against have a Team of hespanha, and Points smaller than 30?
CREATE TABLE table_name_33 (against VARCHAR, team VARCHAR, points VARCHAR)
SELECT to_par FROM table_name_20 WHERE place = "7"
What to par has 7 as the place?
CREATE TABLE table_name_20 (to_par VARCHAR, place VARCHAR)
SELECT original_air_date FROM table_21304155_1 WHERE us_viewers__millions_ = "4.08"
What was the original air date of the episode that had 4.08 million U.S. viewers?
CREATE TABLE table_21304155_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(overall) FROM table_name_8 WHERE college = "southern mississippi" AND round < 6
What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?
CREATE TABLE table_name_8 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT medal FROM table_name_73 WHERE name = "fatuma roba category:articles with hcards"
What is the medal named fatuma roba category:articles with hcards for?
CREATE TABLE table_name_73 (medal VARCHAR, name VARCHAR)
SELECT speed FROM table_name_27 WHERE team = "bmw" AND rank = 7
What was #7 BMW's speed?
CREATE TABLE table_name_27 (speed VARCHAR, team VARCHAR, rank VARCHAR)
SELECT MAX(poles) FROM table_2822193_1 WHERE races = 2
How many poles are there with 2 races?
CREATE TABLE table_2822193_1 (poles INTEGER, races VARCHAR)
SELECT COUNT(contestant) FROM table_25461827_2 WHERE age = 18
What is the number of contestants who are aged exactly 18?
CREATE TABLE table_25461827_2 (contestant VARCHAR, age VARCHAR)
SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = "february 28, 2005"
Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?
CREATE TABLE table_name_18 (sponsor_s_ VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)
SELECT main_presenters FROM table_1053802_1 WHERE region_country = "Bulgaria"
What is the main presenter of bulgaria?
CREATE TABLE table_1053802_1 (main_presenters VARCHAR, region_country VARCHAR)
SELECT recipient FROM table_name_31 WHERE director_s_ = "susan jacobson"
What is the name of the recipient when the director was Susan Jacobson?
CREATE TABLE table_name_31 (recipient VARCHAR, director_s_ VARCHAR)
SELECT affiliation FROM table_25818630_1 WHERE constituency = "Tottenham"
What is every affiliation for the Tottenham constituency?
CREATE TABLE table_25818630_1 (affiliation VARCHAR, constituency VARCHAR)
SELECT score FROM table_name_23 WHERE location = "the forum"
What is the score at the forum location?
CREATE TABLE table_name_23 (score VARCHAR, location VARCHAR)
SELECT qual FROM table_name_41 WHERE rank = "27"
What's the Qual listed with a Rank of 27?
CREATE TABLE table_name_41 (qual VARCHAR, rank VARCHAR)
SELECT winning_score FROM table_1507806_1 WHERE year = 1922
WHAT WAS THE WINNING SCORE IN YEAR 1922?
CREATE TABLE table_1507806_1 (winning_score VARCHAR, year VARCHAR)
SELECT year FROM table_name_80 WHERE film = "bullets over broadway" AND category = "best supporting actress" AND actor = "jennifer tilly"
What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?
CREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR)
SELECT home_team FROM table_name_48 WHERE result = "124-109"
What is the Home Team in the game with a Result of 124-109?
CREATE TABLE table_name_48 (home_team VARCHAR, result VARCHAR)
SELECT County_name FROM county ORDER BY Population DESC LIMIT 1
Show the name of the county with the biggest population.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT outcome FROM table_name_57 WHERE date = "june 9, 1997"
What is the outcome on June 9, 1997?
CREATE TABLE table_name_57 (outcome VARCHAR, date VARCHAR)
SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30
What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?
CREATE TABLE table_name_71 (goals_for INTEGER, played VARCHAR, position VARCHAR, losses VARCHAR)
SELECT pick FROM table_2840500_8 WHERE player = "Matthew Scorsune"
Name the pick for matthew scorsune
CREATE TABLE table_2840500_8 (pick VARCHAR, player VARCHAR)
SELECT russian FROM table_25008327_8 WHERE bulgarian = "пес, куче"
What is every value for Russian when value for Bulgarian is пес, куче?
CREATE TABLE table_25008327_8 (russian VARCHAR, bulgarian VARCHAR)
SELECT date FROM table_23486853_8 WHERE record = "30–34–12"
What is every date with a record of 30–34–12?
CREATE TABLE table_23486853_8 (date VARCHAR, record VARCHAR)
SELECT proto_germanic_origin FROM table_name_15 WHERE sound__allophone_ = "[[[|k]]]"
What is the Proto-Germanic origin associated with an allophone of [[[|k]]]?
CREATE TABLE table_name_15 (proto_germanic_origin VARCHAR, sound__allophone_ VARCHAR)
SELECT opponents FROM table_name_12 WHERE round = "round 6"
Who is the opponent(s) in round 6?
CREATE TABLE table_name_12 (opponents VARCHAR, round VARCHAR)
SELECT last_performance FROM table_name_46 WHERE status = "past replacement"
What is the date of the Last Performance of Billy Elliot with a Cast Status of past replacement?
CREATE TABLE table_name_46 (last_performance VARCHAR, status VARCHAR)
SELECT district FROM table_2159506_4 WHERE reason_for_change = "Died August 9, 1964"
What is every district for reason for change is died August 9, 1964?
CREATE TABLE table_2159506_4 (district VARCHAR, reason_for_change VARCHAR)
SELECT MAX(round) FROM table_name_28 WHERE away_team = "pohang steelers"
What is the latest round for Pohang Steelers as the away team?
CREATE TABLE table_name_28 (round INTEGER, away_team VARCHAR)
SELECT SUM(attendance) FROM table_name_39 WHERE score = "17-13"
How many people went to the game that had 17-13?
CREATE TABLE table_name_39 (attendance INTEGER, score VARCHAR)
SELECT 1971 FROM table_name_65 WHERE 1969 = "30"
What is the value in 1971 when 30 is the value for 1969?
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = "English" ORDER BY T1.Population DESC LIMIT 1
Find the city with the largest population that uses English.
CREATE TABLE city (Name VARCHAR, Population VARCHAR, CountryCode VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE kannada_ಕನ್ನಡ = "Punarvasu ಪುನರ್ವಸು"
What is the Malayalam word for punarvasu ಪುನರ್ವಸು in Kannada?
CREATE TABLE table_1408397_3 (malayalam_മലയാളം VARCHAR, kannada_ಕನ್ನಡ VARCHAR)
SELECT time_retired FROM table_name_17 WHERE laps = 43 AND grid = 18
What was the retired time on someone who had 43 laps on a grip of 18?
CREATE TABLE table_name_17 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT partner FROM table_name_72 WHERE opponents_in_the_final = "lenka cenková kateřina šišková"
Who had the opponent of Lenka Cenková kateřina šišková in the final?
CREATE TABLE table_name_72 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT l3_cache FROM table_name_84 WHERE part_number_s_ = "low power"
What's the L3 cache that has a low power part number?
CREATE TABLE table_name_84 (l3_cache VARCHAR, part_number_s_ VARCHAR)
SELECT episode FROM table_name_64 WHERE viewers = "183,000"
what is the episode with the 183,000 viewers?
CREATE TABLE table_name_64 (episode VARCHAR, viewers VARCHAR)
SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)
Show the number of buildings with a height above the average or a number of floors above the average.
CREATE TABLE building (height_feet INTEGER, floors INTEGER)
SELECT COUNT(final_position___tour) FROM table_name_95 WHERE final_position___giro > 20 AND rider = "mariano piccoli" AND year < 1999
What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has?
CREATE TABLE table_name_95 (final_position___tour VARCHAR, year VARCHAR, final_position___giro VARCHAR, rider VARCHAR)
SELECT AVG(attendance) FROM table_name_22 WHERE week < 6 AND date = "october 14, 2001"
What is the average attendance at week earlier than 6 on October 14, 2001?
CREATE TABLE table_name_22 (attendance INTEGER, week VARCHAR, date VARCHAR)
SELECT written_by FROM table_10718631_2 WHERE no_in_series = 94
Who wrote episode 94?
CREATE TABLE table_10718631_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(playoffs) FROM table_2511876_1 WHERE open_cup = "3rd Round"
Name the number of playoffs for 3rd round
CREATE TABLE table_2511876_1 (playoffs VARCHAR, open_cup VARCHAR)
SELECT academic_ & _university_affairs FROM table_name_72 WHERE local_affairs = "andrew langille"
Who was in Academic & University Affairs when Andrew Langille was in local affairs?
CREATE TABLE table_name_72 (academic_ VARCHAR, _university_affairs VARCHAR, local_affairs VARCHAR)
SELECT record FROM table_name_81 WHERE points < 62 AND february > 16 AND score = "8–7"
Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?
CREATE TABLE table_name_81 (record VARCHAR, score VARCHAR, points VARCHAR, february VARCHAR)
SELECT SUM(attendance) FROM table_name_58 WHERE home_team = "oxford united"
What was the Attendance when Oxford United was the Home team?
CREATE TABLE table_name_58 (attendance INTEGER, home_team VARCHAR)
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"
What type of state was Lu, when Yi was the ruler from the royal house of Ji?
CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)
SELECT AVG(year_joined__or_joining_) FROM table_name_57 WHERE city = "aurora"
What year did the team from City of Aurora join?
CREATE TABLE table_name_57 (year_joined__or_joining_ INTEGER, city VARCHAR)
SELECT save FROM table_name_82 WHERE opponent = "yankees" AND date = "july 25"
What is the save when Yankees are the opponents on July 25?
CREATE TABLE table_name_82 (save VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sales__copies_ > 339333.011497678
Which charts had debut sales of of more than 339333.011497678?
CREATE TABLE table_23180638_1 (oricon_albums_chart VARCHAR, debut_sales__copies_ INTEGER)
SELECT s_host FROM table_22514845_5 WHERE s_analyst = "John Rotz and Howard Cosell"
Name the host for john rotz and howard cosell
CREATE TABLE table_22514845_5 (s_host VARCHAR, s_analyst VARCHAR)
SELECT COUNT(bronze) FROM table_name_15 WHERE silver > 2
What is the total of bronze that has more silvers than 2?
CREATE TABLE table_name_15 (bronze VARCHAR, silver INTEGER)
SELECT date FROM table_20746062_1 WHERE game = 9
What day did the play game number 9?
CREATE TABLE table_20746062_1 (date VARCHAR, game VARCHAR)