answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT SUM(points) FROM table_name_28 WHERE poles < 0
What is the points sum of the series with less than 0 poles?
CREATE TABLE table_name_28 (points INTEGER, poles INTEGER)
SELECT MAX(fastest_time__s_) FROM table_name_76 WHERE location = "enugu" AND rank > 2
What is the top fastest time, larger than 2, in Enugu?
CREATE TABLE table_name_76 (fastest_time__s_ INTEGER, location VARCHAR, rank VARCHAR)
SELECT fastest_lap FROM table_name_32 WHERE pole_position = "david coulthard" AND winning_driver = "michael schumacher"
Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.
CREATE TABLE table_name_32 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = "Federico Muller"
How many athletes were named federico muller?
CREATE TABLE table_29521180_35 (quarterfinals VARCHAR, athlete VARCHAR)
SELECT segment_b FROM table_15187735_17 WHERE segment_c = "Beet Sugar"
for the shows featuring beet sugar, what was on before that
CREATE TABLE table_15187735_17 (segment_b VARCHAR, segment_c VARCHAR)
SELECT population__2001_census_ FROM table_2801442_1 WHERE headquarters = "Bhubaneswar"
How many people lived in the district whose headquarters is in Bhubaneswar in 2001?
CREATE TABLE table_2801442_1 (population__2001_census_ VARCHAR, headquarters VARCHAR)
SELECT competition FROM table_name_82 WHERE date = "november 19, 2008"
Name the competition for november 19, 2008
CREATE TABLE table_name_82 (competition VARCHAR, date VARCHAR)
SELECT free_dance__fd_ FROM table_22644589_4 WHERE compulsory_dance__cd_ = "15.99"
What was the free dance score in the event where compulsory dance score was 15.99?
CREATE TABLE table_22644589_4 (free_dance__fd_ VARCHAR, compulsory_dance__cd_ VARCHAR)
SELECT province, _community FROM table_name_13 WHERE hometown = "jamao afuera"
What is the province for Jamao Afuera?
CREATE TABLE table_name_13 (province VARCHAR, _community VARCHAR, hometown VARCHAR)
SELECT stop_no FROM table_name_25 WHERE destination = "[2778] claisebrook station platforms"
What is Stop No., when Destination is [2778] Claisebrook Station Platforms?
CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR)
SELECT ground FROM table_name_17 WHERE round = "33"
Which ground's round was 33?
CREATE TABLE table_name_17 (ground VARCHAR, round VARCHAR)
SELECT SUM(crowd) FROM table_name_45 WHERE venue = "princes park"
What is the sum of crowd(s) at princes park?
CREATE TABLE table_name_45 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM"
How many home team scores have a time of 4:40 PM?
CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)
SELECT COUNT(rank_by_average) FROM table_name_12 WHERE total_points > 392 AND average = 24.8
What is the total rank with more than 392 total points and an 24.8 average?
CREATE TABLE table_name_12 (rank_by_average VARCHAR, total_points VARCHAR, average VARCHAR)
SELECT MIN(enrollment) FROM table_name_60 WHERE founded > 1809 AND institution = "university of michigan"
what is the least enrollment when founded after 1809 and the institution is university of michigan?
CREATE TABLE table_name_60 (enrollment INTEGER, founded VARCHAR, institution VARCHAR)
SELECT club FROM table_name_12 WHERE runners_up = 1 AND winners = 0 AND third = 2
Which club has 1 runners-up with 0 winners and 2 third place earned?
CREATE TABLE table_name_12 (club VARCHAR, third VARCHAR, runners_up VARCHAR, winners VARCHAR)
SELECT played FROM table_name_15 WHERE "club" = "club"
Can you tell me the Played that has the Club of club?
CREATE TABLE table_name_15 (played VARCHAR)
SELECT timeslot FROM table_23392257_4 WHERE viewers__millions_ = "0.673"
What timeslot received 0.673 viewers?
CREATE TABLE table_23392257_4 (timeslot VARCHAR, viewers__millions_ VARCHAR)
SELECT score FROM table_name_67 WHERE set_3 = "17-25"
What is Score, when Set 3 is 17-25?
CREATE TABLE table_name_67 (score VARCHAR, set_3 VARCHAR)
SELECT MAX(points) FROM table_name_39 WHERE position > 6 AND lost < 12 AND drawn < 1
what is the highest points when position is higher than 6, lost is less than 12 and drawn is less than 1?
CREATE TABLE table_name_39 (points INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR)
SELECT method FROM table_name_12 WHERE time = "2:16"
When the match lasted 2:16 how was it decided?
CREATE TABLE table_name_12 (method VARCHAR, time VARCHAR)
SELECT det_pre_amp FROM table_name_74 WHERE _number_tubes = "8"
Name the det/pre-amp with # of tubes of 8
CREATE TABLE table_name_74 (det_pre_amp VARCHAR, _number_tubes VARCHAR)
SELECT MAX(laps) FROM table_name_24 WHERE driver = "pedro diniz"
What is the high lap total for pedro diniz?
CREATE TABLE table_name_24 (laps INTEGER, driver VARCHAR)
SELECT label FROM table_name_93 WHERE region = "spain"
What label is from the Region of Spain?
CREATE TABLE table_name_93 (label VARCHAR, region VARCHAR)
SELECT position FROM table_name_54 WHERE player = "andrew paopao"
what is the position for andrew paopao?
CREATE TABLE table_name_54 (position VARCHAR, player VARCHAR)
SELECT date FROM table_17355408_4 WHERE team = "Chicago"
Name the date for chicago
CREATE TABLE table_17355408_4 (date VARCHAR, team VARCHAR)
SELECT 2010 FROM table_name_86 WHERE 2009 = "0 / 4"
Which 2010 has a 2009 of 0 / 4?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT SUM(_number_of_episodes) FROM table_name_91 WHERE character = "nick lucas"
How many episodes had the character of Nick Lucas?
CREATE TABLE table_name_91 (_number_of_episodes INTEGER, character VARCHAR)
SELECT attendance FROM table_name_63 WHERE date = "april 12"
Can you tell me the Attendance that has the Date of april 12?
CREATE TABLE table_name_63 (attendance VARCHAR, date VARCHAR)
SELECT position FROM table_16494599_4 WHERE school_club_team = "Bowling Green"
What position(s) do players from bowling green play?
CREATE TABLE table_16494599_4 (position VARCHAR, school_club_team VARCHAR)
SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney"
What is the graduation rate for the school district with headquarters located in Sydney?
CREATE TABLE table_21514460_1 (graduation_rate__2011_12_ VARCHAR, headquarters VARCHAR)
SELECT MIN(year) FROM table_22858557_1 WHERE outcome = "Runner-up"
What is the year where the runner-up outcome was at its basic minimum?
CREATE TABLE table_22858557_1 (year INTEGER, outcome VARCHAR)
SELECT date FROM table_name_74 WHERE high_rebounds = "evans (14)"
What date were the high rebounds Evans (14)?
CREATE TABLE table_name_74 (date VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(silver) FROM table_name_14 WHERE team = "northwest territories" AND gold < 34
How many silver when the team is northwest territories and gold is less than 34?
CREATE TABLE table_name_14 (silver VARCHAR, team VARCHAR, gold VARCHAR)
SELECT catalog FROM table_name_33 WHERE label = "sundazed"
From what catalog was the release from Sundazed label?
CREATE TABLE table_name_33 (catalog VARCHAR, label VARCHAR)
SELECT hazmat FROM table_name_98 WHERE type = "rural" AND tankers = 1
What is the Hazmat, when the Type is Rural, and when the number of Tankers is 1?
CREATE TABLE table_name_98 (hazmat VARCHAR, type VARCHAR, tankers VARCHAR)
SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch"
What is the character name that has phyllis welch as the leading lady?
CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR)
SELECT SUM(games) FROM table_name_10 WHERE points_difference = "18 - 33" AND points < 4
Points difference of 18 - 33, and a Points smaller than 4 is the total of what sum of games?
CREATE TABLE table_name_10 (games INTEGER, points_difference VARCHAR, points VARCHAR)
SELECT time_retired FROM table_name_12 WHERE grid = 24
I want the time/retired for grid of 24
CREATE TABLE table_name_12 (time_retired VARCHAR, grid VARCHAR)
SELECT drivers FROM table_name_33 WHERE position = 27
Which drivers have the position of 27?
CREATE TABLE table_name_33 (drivers VARCHAR, position VARCHAR)
SELECT date FROM table_name_63 WHERE venue = "manama, bahrain"
On which date was the match in Manama, Bahrain?
CREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR)
SELECT illustrator FROM table_name_79 WHERE year = 1987
Who was the illustrator in 1987?
CREATE TABLE table_name_79 (illustrator VARCHAR, year VARCHAR)
SELECT MIN(league_goals) FROM table_name_1 WHERE league_apps = "1" AND fa_cup_goals > 0
what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?
CREATE TABLE table_name_1 (league_goals INTEGER, league_apps VARCHAR, fa_cup_goals VARCHAR)
SELECT format FROM table_name_81 WHERE region = "europe"
What was the format for the region of europe?
CREATE TABLE table_name_81 (format VARCHAR, region VARCHAR)
SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE married_filing_jointly_or_qualified_widow_er_ = "$208,851–$372,950"
What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?
CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)
SELECT location FROM table_name_58 WHERE opponent = "iowa state"
Where did the Bruins play Iowa State?
CREATE TABLE table_name_58 (location VARCHAR, opponent VARCHAR)
SELECT director FROM table_name_5 WHERE film_title_used_in_nomination = "floating life"
Who was the director that had a film titled "Floating Life"?
CREATE TABLE table_name_5 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT giro_di_lombardia FROM table_name_22 WHERE tour_of_flanders = "tom boonen ( bel )" AND paris_roubaix = "fabian cancellara ( sui )"
what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )?
CREATE TABLE table_name_22 (giro_di_lombardia VARCHAR, tour_of_flanders VARCHAR, paris_roubaix VARCHAR)
SELECT original_canadian_air_date FROM table_name_98 WHERE director = "michael tolkin"
What is the Original Canadian air-date that was directed by Michael Tolkin?
CREATE TABLE table_name_98 (original_canadian_air_date VARCHAR, director VARCHAR)
SELECT home_city FROM table_name_36 WHERE manager = "mladen frančić"
What is the home city when Mladen Frančić is the manager?
CREATE TABLE table_name_36 (home_city VARCHAR, manager VARCHAR)
SELECT country FROM table_name_55 WHERE format = "lp"
What country that has LP as a format?
CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR)
SELECT date FROM table_name_21 WHERE theme = "fate or fortune"
What date has a theme of fate or fortune?
CREATE TABLE table_name_21 (date VARCHAR, theme VARCHAR)
SELECT COUNT(*) FROM VOTING_RECORD
Find the number of voting records in total.
CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT college FROM table_28059992_2 WHERE position = "DL"
Name the college for dl
CREATE TABLE table_28059992_2 (college VARCHAR, position VARCHAR)
SELECT award FROM table_name_97 WHERE motion_picture = "what's love got to do with it"
What Award was received bby the Motion Picture What's Love Got To Do With It?
CREATE TABLE table_name_97 (award VARCHAR, motion_picture VARCHAR)
SELECT year FROM table_name_13 WHERE original_title = "la cérémonie"
Which Year has the Orginal title of La Cérémonie?
CREATE TABLE table_name_13 (year VARCHAR, original_title VARCHAR)
SELECT nba_draft FROM table_name_56 WHERE player = "dwayne washington"
What is the NBA draft result of Dwayne Washington?
CREATE TABLE table_name_56 (nba_draft VARCHAR, player VARCHAR)
SELECT defending_forces FROM table_name_21 WHERE name = "al-murassas"
What is the defending forces when Al-Murassas shows for name?
CREATE TABLE table_name_21 (defending_forces VARCHAR, name VARCHAR)
SELECT date_of_appointment FROM table_27114708_2 WHERE replaced_by = "Alfredo Aglietti"
Please mention those appointment dates those are replaced by alfredo aglietti
CREATE TABLE table_27114708_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT AVG(lane) FROM table_name_78 WHERE nationality = "japan" AND time = "4:37.35" AND heat < 3
What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?
CREATE TABLE table_name_78 (lane INTEGER, heat VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT MIN(tasmania) FROM table_1057262_2
what's the minimum tasmania value
CREATE TABLE table_1057262_2 (tasmania INTEGER)
SELECT COUNT(sales) FROM table_name_81 WHERE peak = 1 AND artist = "boris"
How many sales took place with a peak of 1 for Boris?
CREATE TABLE table_name_81 (sales VARCHAR, peak VARCHAR, artist VARCHAR)
SELECT COUNT(*) FROM Student WHERE Advisor = 1121
Advisor 1121 has how many students?
CREATE TABLE Student (Advisor VARCHAR)
SELECT country FROM table_name_6 WHERE type = "loan"
What country has a loan as the type?
CREATE TABLE table_name_6 (country VARCHAR, type VARCHAR)
SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura"
What dates was champion masahiro kawamura at the ibaraki country club tournament?
CREATE TABLE table_name_6 (dates VARCHAR, tournament_location VARCHAR, champion VARCHAR)
SELECT MAX(long) FROM table_name_83 WHERE player = "charles pauley" AND yards < 60
What was the highest long of Charles Pauley with fewer than 60 yards?
CREATE TABLE table_name_83 (long INTEGER, player VARCHAR, yards VARCHAR)
SELECT parish__prestegjeld_ FROM table_name_80 WHERE church_name = "stavang kyrkje"
In which Parish (Prestegjeld) is the church called Stavang Kyrkje?
CREATE TABLE table_name_80 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)
SELECT start FROM table_name_49 WHERE laps > 200
What was the starting position of Joie Chitwood when he finished more than 200 laps?
CREATE TABLE table_name_49 (start VARCHAR, laps INTEGER)
SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA)
Find the model of the car whose weight is below the average weight.
CREATE TABLE CARS_DATA (Id VARCHAR, Weight INTEGER); CREATE TABLE CARS_DATA (Weight INTEGER); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR)
SELECT high_rebounds FROM table_23285849_6 WHERE game = 29
Who tied for highest rebounds in game 29?
CREATE TABLE table_23285849_6 (high_rebounds VARCHAR, game VARCHAR)
SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.2%"
Name the feb 2010 for january 2010 for 6.2%
CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR)
SELECT MIN(area__km²_) FROM table_name_39 WHERE pop = 17 OFFSET 089
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 administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = "606,699"
Which administrative division had a 2011 population of 606,699 according to the siak database?
CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR)
SELECT characters FROM table_name_33 WHERE construction = "1873, foochow navy yard"
Who has a Construction of 1873, foochow navy yard?
CREATE TABLE table_name_33 (characters VARCHAR, construction VARCHAR)
SELECT position FROM table_11803648_20 WHERE overall = "126"
What position is associated with an overall value of 126?
CREATE TABLE table_11803648_20 (position VARCHAR, overall VARCHAR)
SELECT total FROM table_name_5 WHERE name = "grant brebner"
How many total appearances did Grant Brebner have?
CREATE TABLE table_name_5 (total VARCHAR, name VARCHAR)
SELECT player FROM table_1213511_2 WHERE nhl_team = "New York Rangers"
Who's the player for the New York Rangers?
CREATE TABLE table_1213511_2 (player VARCHAR, nhl_team VARCHAR)
SELECT COUNT(men_doubles) FROM table_14903355_2 WHERE year = 2007
Name the number of men doubles for 2007
CREATE TABLE table_14903355_2 (men_doubles VARCHAR, year VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = "Bob Peeters"
How many outgoing managers were replaced by Bob Peeters?
CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT pick__number FROM table_2897457_1 WHERE position = "Goaltender"
What draft pick is a goaltender?
CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR)
SELECT AVG(lost) FROM table_name_79 WHERE team = "matlock town" AND goals_against > 66
What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?
CREATE TABLE table_name_79 (lost INTEGER, team VARCHAR, goals_against VARCHAR)
SELECT air_force___navy_score FROM table_1850339_2 WHERE season = 2018
What's the Air Force - Navy score in the 2018 season?
CREATE TABLE table_1850339_2 (air_force___navy_score VARCHAR, season VARCHAR)
SELECT declination___j2000__ FROM table_name_80 WHERE ngc_number > 5750
Tell me the declination with NGC number larger than 5750
CREATE TABLE table_name_80 (declination___j2000__ VARCHAR, ngc_number INTEGER)
SELECT fatalities FROM table_name_18 WHERE aircraft = "ju-52"
How many fatalities occurred for the Ju-52 aircraft?
CREATE TABLE table_name_18 (fatalities VARCHAR, aircraft VARCHAR)
SELECT kit_maker FROM table_name_44 WHERE manager = "trond sollied"
Which kit maker have Trond Sollied as a manager?
CREATE TABLE table_name_44 (kit_maker VARCHAR, manager VARCHAR)
SELECT MIN(lost) FROM table_name_25 WHERE points > 13 AND games < 8
What is the fewest losses associated with more than 13 points and fewer than 8 games?
CREATE TABLE table_name_25 (lost INTEGER, points VARCHAR, games VARCHAR)
SELECT MAX(laps) FROM table_name_75 WHERE manufacturer = "aprilia" AND time = "+1:36.557"
Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
CREATE TABLE table_name_75 (laps INTEGER, manufacturer VARCHAR, time VARCHAR)
SELECT location FROM table_16734640_1 WHERE institution = "Abraham Baldwin Agricultural College"
Name the location for abraham baldwin agricultural college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "geelong"
When did Geelong play as the away team?
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT MIN(voted_no) FROM table_120778_2 WHERE percent_no = "56.6"
what is the minimum voted no where percent no is 56.6
CREATE TABLE table_120778_2 (voted_no INTEGER, percent_no VARCHAR)
SELECT AVG(losses) FROM table_name_9 WHERE goals_against > 42
for a Goals Against greater than 42 what is the number of losses?
CREATE TABLE table_name_9 (losses INTEGER, goals_against INTEGER)
SELECT rank FROM table_name_95 WHERE rider = "martin geiger"
What was Martin Geiger's rank?
CREATE TABLE table_name_95 (rank VARCHAR, rider VARCHAR)
SELECT COUNT(lane) FROM table_name_22 WHERE heat = 4 AND nationality = "hungary"
What lane number was Hungary and had a heat of 4?
CREATE TABLE table_name_22 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT MAX(pick__number) FROM table_name_2 WHERE name = "adam podlesh" AND overall < 101
Which highest pick number's name was Adam Podlesh, when the overall was less than 101?
CREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR)
SELECT COUNT(bronze) FROM table_name_8 WHERE gold > 9
How many bronze medals for the nation with over 9 golds?
CREATE TABLE table_name_8 (bronze VARCHAR, gold INTEGER)
SELECT COUNT(points) FROM table_10705060_1 WHERE position = "10th"
What is the total for 10th position?
CREATE TABLE table_10705060_1 (points VARCHAR, position VARCHAR)
SELECT name FROM table_name_75 WHERE the_biggest_loser = "john rhode"
What is the name of the season won by John Rhode?
CREATE TABLE table_name_75 (name VARCHAR, the_biggest_loser VARCHAR)
SELECT COUNT(dates) FROM table_15315816_1 WHERE year = "2006"
When are all dates in the year 2006?
CREATE TABLE table_15315816_1 (dates VARCHAR, year VARCHAR)
SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = "Nominated"
Please show the songs that have result "nominated" at music festivals.
CREATE TABLE volume (Song VARCHAR, Volume_ID VARCHAR); CREATE TABLE music_festival (Volume VARCHAR, Result VARCHAR)
SELECT MAX(rank) FROM table_name_95 WHERE 2009 = "xbox"
What is the highest rank of the 2009 xbox?
CREATE TABLE table_name_95 (rank INTEGER)