question
stringlengths
12
243
context
stringlengths
45
517
answer
stringlengths
32
484
What is Played, when Goal Difference is "+51"?
columns: - name: played type: VARCHAR - name: goal_difference type: VARCHAR table: table_name_91
SELECT played FROM table_name_91 WHERE goal_difference = "+51"
What is Wheel Arrangement, when Manufacturer is "Baldwin", and when Quantity Made is 12?
columns: - name: wheel_arrangement type: VARCHAR - name: manufacturer type: VARCHAR - name: quantity_made type: VARCHAR table: table_name_52
SELECT wheel_arrangement FROM table_name_52 WHERE manufacturer = "baldwin" AND quantity_made = "12"
Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5?
columns: - name: winnings type: VARCHAR - name: top_10 type: VARCHAR - name: starts type: VARCHAR - name: poles type: VARCHAR table: table_name_93
SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
columns: - name: floors type: INTEGER - name: completed type: VARCHAR - name: rank type: VARCHAR table: table_name_4
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14
Which Circuit has a Winning driver of scott pruett?
columns: - name: circuit type: VARCHAR - name: winning_driver type: VARCHAR table: table_name_15
SELECT circuit FROM table_name_15 WHERE winning_driver = "scott pruett"
In the game on 11 March 2008 with a visiting team of Bucks, who was the home team?
columns: - name: home type: VARCHAR - name: visitor type: VARCHAR - name: date type: VARCHAR table: table_name_7
SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008"
What is the rank of the cadillac northstar lmp02 chassis?
columns: - name: rank type: VARCHAR - name: chassis type: VARCHAR table: table_name_78
SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02"
What is the average number of silvers for nations with over 1 bronze medal?
columns: - name: silver type: INTEGER - name: bronze type: INTEGER table: table_name_62
SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1
Who is the team captain of Regenboogstadion?
columns: - name: team_captain type: VARCHAR - name: stadium type: VARCHAR table: table_name_42
SELECT team_captain FROM table_name_42 WHERE stadium = "regenboogstadion"
Which skip (club) had 28 PA?
columns: - name: skip__club_ type: VARCHAR - name: pa type: VARCHAR table: table_29546030_2
SELECT skip__club_ FROM table_29546030_2 WHERE pa = 28
How many numbers of rebounds are associated with exactly 18 points?
columns: - name: rebounds type: VARCHAR - name: points type: VARCHAR table: table_24913533_4
SELECT COUNT(rebounds) FROM table_24913533_4 WHERE points = 18
What's the accolade for the rank of 497?
columns: - name: accolade type: VARCHAR - name: rank type: VARCHAR table: table_name_23
SELECT accolade FROM table_name_23 WHERE rank = 497
What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?
columns: - name: pl_gp type: VARCHAR - name: pick__number type: VARCHAR - name: reg_gp type: VARCHAR table: table_name_69
SELECT COUNT(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 0
what amount of stations have station code is awy?
columns: - name: station type: VARCHAR - name: station_code type: VARCHAR table: table_14688744_2
SELECT COUNT(station) FROM table_14688744_2 WHERE station_code = "AWY"
What is the draws when there are less than 3 losses and more than 16 wins?
columns: - name: draws type: INTEGER - name: losses type: VARCHAR - name: wins type: VARCHAR table: table_name_20
SELECT MAX(draws) FROM table_name_20 WHERE losses < 3 AND wins > 16
What is 2001, when 2007 is "1R", and when 2008 is "Q1"?
columns: - name: Id type: VARCHAR table: table_name_99
SELECT 2001 FROM table_name_99 WHERE 2007 = "1r" AND 2008 = "q1"
Name the candidates for selah r. hobbie
columns: - name: candidates type: VARCHAR - name: incumbent type: VARCHAR table: table_2668243_17
SELECT candidates FROM table_2668243_17 WHERE incumbent = "Selah R. Hobbie"
What is the 123 south broad street address name before 1973?
columns: - name: name type: VARCHAR - name: year type: VARCHAR - name: address type: VARCHAR table: table_name_33
SELECT name FROM table_name_33 WHERE year < 1973 AND address = "123 south broad street"
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
columns: - name: nepalis_admitted type: INTEGER - name: bangladeshis_admitted type: INTEGER table: table_name_67
SELECT MAX(nepalis_admitted) FROM table_name_67 WHERE bangladeshis_admitted < 1 OFFSET 896
Which nation has 0 golds and more than 1 silver?
columns: - name: nation type: VARCHAR - name: gold type: VARCHAR - name: silver type: VARCHAR table: table_name_20
SELECT nation FROM table_name_20 WHERE gold = 0 AND silver > 1
The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?
columns: - name: born type: VARCHAR - name: age_at_first_step type: VARCHAR table: table_name_27
SELECT born FROM table_name_27 WHERE age_at_first_step = "38y 9m 7d"
What was the result of the game with 9 goals?
columns: - name: result type: VARCHAR - name: goal type: VARCHAR table: table_name_49
SELECT result FROM table_name_49 WHERE goal = 9
What is the Date for Catalog of lp 5060?
columns: - name: date type: VARCHAR - name: catalog type: VARCHAR table: table_name_65
SELECT date FROM table_name_65 WHERE catalog = "lp 5060"
Which Power has a Name of 9 ad?
columns: - name: power type: VARCHAR - name: name type: VARCHAR table: table_name_25
SELECT power FROM table_name_25 WHERE name = "9 ad"
What is the English title of the film directed by Fernando Meirelles?
columns: - name: english_title type: VARCHAR - name: director_s_ type: VARCHAR table: table_name_53
SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles"
How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?
columns: - name: team_classification type: VARCHAR - name: combination_classification type: VARCHAR - name: points_classification type: VARCHAR table: table_15059783_1
SELECT COUNT(team_classification) FROM table_15059783_1 WHERE combination_classification = "Alejandro Valverde" AND points_classification = "Alessandro Petacchi"
Tell me the tournament of 2009 of atp masters series
columns: - name: tournament type: VARCHAR table: table_name_26
SELECT tournament FROM table_name_26 WHERE 2009 = "atp masters series"
Who were the previous champions from the event won on May 1, 2010?
columns: - name: previous_champion_s_ type: VARCHAR - name: date_won type: VARCHAR table: table_name_40
SELECT previous_champion_s_ FROM table_name_40 WHERE date_won = "may 1, 2010"
Which of the opponents has a record of 17-25?
columns: - name: opponent type: VARCHAR - name: record type: VARCHAR table: table_name_52
SELECT opponent FROM table_name_52 WHERE record = "17-25"
Where did north melbourne play while away?
columns: - name: venue type: VARCHAR - name: away_team type: VARCHAR table: table_name_23
SELECT venue FROM table_name_23 WHERE away_team = "north melbourne"
What tyre was used in the Zandvoort circuit?
columns: - name: tyre type: VARCHAR - name: circuit type: VARCHAR table: table_name_71
SELECT tyre FROM table_name_71 WHERE circuit = "zandvoort"
give the location of subtrate coproporphyrinogen iii
columns: - name: location type: VARCHAR - name: substrate type: VARCHAR table: table_182499_1
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"
Name the result when the incumbent was george h. mahon
columns: - name: result type: VARCHAR - name: incumbent type: VARCHAR table: table_1341663_44
SELECT result FROM table_1341663_44 WHERE incumbent = "George H. Mahon"
What was the preliminary average for Miss Mississippi?
columns: - name: preliminary_average type: VARCHAR - name: state type: VARCHAR table: table_16323766_3
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Mississippi"
What was the total for christina liebherr?
columns: - name: total type: INTEGER - name: rider type: VARCHAR table: table_name_4
SELECT MIN(total) FROM table_name_4 WHERE rider = "christina liebherr"
Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0
columns: - name: pl_gp type: INTEGER - name: pick__number type: VARCHAR - name: reg_gp type: VARCHAR table: table_name_97
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0
What is the name of gao chiappe meng o'connor wang cheng liu?
columns: - name: name type: VARCHAR - name: authors type: VARCHAR table: table_name_99
SELECT name FROM table_name_99 WHERE authors = "gao chiappe meng o'connor wang cheng liu"
What are the ends for the player with a transfer fee of loan?
columns: - name: ends type: VARCHAR - name: transfer_fee type: VARCHAR table: table_name_33
SELECT ends FROM table_name_33 WHERE transfer_fee = "loan"
Which week led to a record of 4-10?
columns: - name: week type: VARCHAR - name: record type: VARCHAR table: table_name_87
SELECT week FROM table_name_87 WHERE record = "4-10"
When party did the incumbent in the Arkansas 5 district belong to?
columns: - name: party type: VARCHAR - name: district type: VARCHAR table: table_1341897_6
SELECT party FROM table_1341897_6 WHERE district = "Arkansas 5"
What is the earliest year that a candidate was first elected?
columns: - name: first_elected type: INTEGER table: table_1341897_42
SELECT MIN(first_elected) FROM table_1341897_42
WHo was the outgoing manager for the team of fc carl zeiss jena?
columns: - name: outgoing_manager type: VARCHAR - name: team type: VARCHAR table: table_name_36
SELECT outgoing_manager FROM table_name_36 WHERE team = "fc carl zeiss jena"
How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?
columns: - name: drawn type: VARCHAR - name: percentage type: VARCHAR - name: lost type: VARCHAR table: table_name_57
SELECT COUNT(drawn) FROM table_name_57 WHERE percentage = "7.14%" AND lost > 12
What place has a to par of E?
columns: - name: place type: VARCHAR - name: to_par type: VARCHAR table: table_name_46
SELECT place FROM table_name_46 WHERE to_par = "e"
What was the date when the location was Zandvoort?
columns: - name: date type: VARCHAR - name: location type: VARCHAR table: table_name_72
SELECT date FROM table_name_72 WHERE location = "zandvoort"
On what date was the record 4-2?
columns: - name: date type: VARCHAR - name: record type: VARCHAR table: table_name_66
SELECT date FROM table_name_66 WHERE record = "4-2"
Which Name has a Position smaller than 2?
columns: - name: name type: VARCHAR - name: position type: INTEGER table: table_name_72
SELECT name FROM table_name_72 WHERE position < 2
What is the earliest year the world junior championships has 1500 m notes?
columns: - name: year type: INTEGER - name: notes type: VARCHAR - name: competition type: VARCHAR table: table_name_85
SELECT MIN(year) FROM table_name_85 WHERE notes = "1500 m" AND competition = "world junior championships"
Who is the opponent for the 2011 season with a decision of W?
columns: - name: opponent type: VARCHAR - name: decision type: VARCHAR - name: season type: VARCHAR table: table_name_11
SELECT opponent FROM table_name_11 WHERE decision = "w" AND season = "2011"
When did eleonor magdalene of the palatinate-neuburg become duchess?
columns: - name: became_duchess type: VARCHAR - name: name type: VARCHAR table: table_name_77
SELECT became_duchess FROM table_name_77 WHERE name = "eleonor magdalene of the palatinate-neuburg"
Which team did Tyson Chandler (7) have high rebounds for?
columns: - name: team type: VARCHAR - name: high_rebounds type: VARCHAR table: table_name_10
SELECT team FROM table_name_10 WHERE high_rebounds = "tyson chandler (7)"
What's the performance of Dire Tune?
columns: - name: performance type: VARCHAR - name: athlete type: VARCHAR table: table_name_89
SELECT performance FROM table_name_89 WHERE athlete = "dire tune"
Which season had less than 25.4 viewers and had a viewer rank of #6?
columns: - name: season type: INTEGER - name: households_viewers__in_millions_ type: VARCHAR - name: viewer_rank___number_ type: VARCHAR table: table_name_43
SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = "#6"
What is the 2009 estimate population of the region with Manaus as the largest city?
columns: - name: population__2009_estimate_ type: VARCHAR - name: largest_city type: VARCHAR table: table_name_11
SELECT population__2009_estimate_ FROM table_name_11 WHERE largest_city = "manaus"
What Tournament was against Daniel Elsner?
columns: - name: tournament type: VARCHAR - name: opponent type: VARCHAR table: table_name_63
SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"
what is the time/retired when the constructor is maserati and the laps is 90?
columns: - name: time_retired type: VARCHAR - name: constructor type: VARCHAR - name: laps type: VARCHAR table: table_name_74
SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90
Which country is Howard Clark from?
columns: - name: country type: VARCHAR - name: player type: VARCHAR table: table_name_18
SELECT country FROM table_name_18 WHERE player = "howard clark"
Which Week has a Result of l 21-19?
columns: - name: week type: VARCHAR - name: result type: VARCHAR table: table_name_4
SELECT COUNT(week) FROM table_name_4 WHERE result = "l 21-19"
how many total where last/current driver(s) is narain karthikeyan ( 2010 )
columns: - name: total type: VARCHAR - name: last_current_driver_s_ type: VARCHAR table: table_19312274_2
SELECT COUNT(total) FROM table_19312274_2 WHERE last_current_driver_s_ = "Narain Karthikeyan ( 2010 )"
What is the 17th c. pronunciation when the british is əʊ?
columns: - name: british type: VARCHAR table: table_name_68
SELECT 17 AS th_c FROM table_name_68 WHERE british = "əʊ"
Who won the 250cc in 1927?
columns: - name: year type: VARCHAR table: table_name_31
SELECT 250 AS _cc FROM table_name_31 WHERE year = "1927"
What is the highest number of wins when draws are larger than 1, and byes are larger than 0?
columns: - name: wins type: INTEGER - name: draws type: VARCHAR - name: byes type: VARCHAR table: table_name_59
SELECT MAX(wins) FROM table_name_59 WHERE draws > 1 AND byes > 0
Name the number for 2004 scapped
columns: - name: number type: VARCHAR - name: scrapped type: VARCHAR table: table_29002641_1
SELECT number FROM table_29002641_1 WHERE scrapped = "2004"
What is the highest value for col(m) at North Island?
columns: - name: col__m_ type: INTEGER - name: island type: VARCHAR table: table_18946749_4
SELECT MAX(col__m_) FROM table_18946749_4 WHERE island = "North island"
How many location attendance was recorded for December 5?
columns: - name: location_attendance type: VARCHAR - name: date type: VARCHAR table: table_17326036_6
SELECT COUNT(location_attendance) FROM table_17326036_6 WHERE date = "December 5"
what's the lowest point with highest point being mount greylock
columns: - name: lowest_point type: VARCHAR - name: highest_point type: VARCHAR table: table_1416612_1
SELECT lowest_point FROM table_1416612_1 WHERE highest_point = "Mount Greylock"
What is the American Labor ticket when Henry Epstein is the liberal ticket?
columns: - name: american_labor_ticket type: VARCHAR - name: liberal_ticket type: VARCHAR table: table_name_3
SELECT american_labor_ticket FROM table_name_3 WHERE liberal_ticket = "henry epstein"
How much Year Left has a Location of howe?
columns: - name: year_left type: INTEGER - name: location type: VARCHAR table: table_name_13
SELECT SUM(year_left) FROM table_name_13 WHERE location = "howe"
What was the chassis when the entrant was Lavazza March, and the year was 1975?
columns: - name: chassis type: VARCHAR - name: entrant type: VARCHAR - name: year type: VARCHAR table: table_name_38
SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975
When did series number 65 originally air?
columns: - name: original_air_date type: VARCHAR - name: no_in_series type: VARCHAR table: table_21304131_2
SELECT original_air_date FROM table_21304131_2 WHERE no_in_series = 65
What is the name of the player when the college/junior/club team is new westminster bruins (whl)?
columns: - name: player type: VARCHAR - name: college_junior_club_team type: VARCHAR table: table_2850912_7
SELECT player FROM table_2850912_7 WHERE college_junior_club_team = "New Westminster Bruins (WHL)"
For the country that holds a rank of 2, in the Mr. International Competition, what is the total number of competitors listed as 2nd runner ups?
columns: - name: rank type: VARCHAR table: table_20325360_2
SELECT COUNT(2 AS nd_runner_up) FROM table_20325360_2 WHERE rank = 2
In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?
columns: - name: money_requested__ type: INTEGER - name: episode type: VARCHAR - name: entrepreneur_s_ type: VARCHAR table: table_name_24
SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = "episode 7" AND entrepreneur_s_ = "jerry mantalvanos & paul merker"
Which game had 8 bronze and 4 gold?
columns: - name: games type: VARCHAR - name: bronze type: VARCHAR - name: gold type: VARCHAR table: table_name_61
SELECT games FROM table_name_61 WHERE bronze = "8" AND gold = "4"
Who is the team of the Chevrolet, and has a position less than 7, for car # 88?
columns: - name: team type: VARCHAR - name: car__number type: VARCHAR - name: make type: VARCHAR - name: pos type: VARCHAR table: table_name_90
SELECT team FROM table_name_90 WHERE make = "chevrolet" AND pos < 7 AND car__number = 88
What is the lowest First Elected, when District is "Massachusetts 10"?
columns: - name: first_elected type: INTEGER - name: district type: VARCHAR table: table_name_40
SELECT MIN(first_elected) FROM table_name_40 WHERE district = "massachusetts 10"
How many were the shares when the viewers reached 3.11 million?
columns: - name: share type: VARCHAR - name: viewers__millions_ type: VARCHAR table: table_16993379_1
SELECT COUNT(share) FROM table_16993379_1 WHERE viewers__millions_ = "3.11"
What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?
columns: - name: series__number type: INTEGER - name: directed_by type: VARCHAR - name: season__number type: VARCHAR table: table_17356106_1
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.0
What game was the record 2-3?
columns: - name: game type: VARCHAR - name: record type: VARCHAR table: table_17355408_12
SELECT COUNT(game) FROM table_17355408_12 WHERE record = "2-3"
What is the autumn classic weight?
columns: - name: weight__kg_ type: VARCHAR - name: race type: VARCHAR table: table_2985987_2
SELECT weight__kg_ FROM table_2985987_2 WHERE race = "Autumn Classic"
Who was the director of the episode with series number 116?
columns: - name: directed_by type: VARCHAR - name: no_in_series type: VARCHAR table: table_28212888_2
SELECT directed_by FROM table_28212888_2 WHERE no_in_series = 116
How long did the soap opera run in which Nadine Spruß acted in?
columns: - name: character type: VARCHAR - name: actor type: VARCHAR table: table_name_13
SELECT character FROM table_name_13 WHERE actor = "nadine spruß"
What class is the dodge dealers grand prix?
columns: - name: class type: VARCHAR - name: race type: VARCHAR table: table_name_23
SELECT class FROM table_name_23 WHERE race = "the dodge dealers grand prix"
Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?
columns: - name: performer_1 type: VARCHAR - name: performer_2 type: VARCHAR - name: _number type: VARCHAR table: table_23294081_11
SELECT performer_1 FROM table_23294081_11 WHERE performer_2 = "Heather Anne Campbell" AND _number = 7
What is the tier IV year for the tournament held in Tampa?
columns: - name: tier_iv_in type: VARCHAR - name: tournament type: VARCHAR table: table_20630462_1
SELECT tier_iv_in FROM table_20630462_1 WHERE tournament = "Tampa"
What was the final record for the game in which Dirk Nowitzki (19) had the high points?
columns: - name: record type: VARCHAR - name: high_points type: VARCHAR table: table_17288869_7
SELECT record FROM table_17288869_7 WHERE high_points = "Dirk Nowitzki (19)"
Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?
columns: - name: title type: VARCHAR - name: director type: VARCHAR - name: writer type: VARCHAR table: table_14330096_4
SELECT title FROM table_14330096_4 WHERE director = "Patrick Lau" AND writer = "Lisa Holdsworth"
What is the 2nd leg of pelister team 2?
columns: - name: team_2 type: VARCHAR table: table_name_90
SELECT 2 AS nd_leg FROM table_name_90 WHERE team_2 = "pelister"
Name the total number of founded for public and 780 enrollment
columns: - name: founded type: VARCHAR - name: type type: VARCHAR - name: enrollment type: VARCHAR table: table_262505_1
SELECT COUNT(founded) FROM table_262505_1 WHERE type = "Public" AND enrollment = "780"
What was the finish for the golfer with a total of 285?
columns: - name: finish type: VARCHAR - name: total type: VARCHAR table: table_name_4
SELECT finish FROM table_name_4 WHERE total = 285
During what year was Representative Spencer Bachus first elected?
columns: - name: first_elected type: VARCHAR - name: incumbent type: VARCHAR table: table_1805191_2
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus"
What was the game date when the opponent was Houston?
columns: - name: date type: VARCHAR - name: opponent type: VARCHAR table: table_name_8
SELECT date FROM table_name_8 WHERE opponent = "houston"
What is the total membership for the metropolitan area in the city of Manchester?
columns: - name: metropolitan_area type: INTEGER - name: city type: VARCHAR table: table_2273738_1
SELECT MAX(metropolitan_area) FROM table_2273738_1 WHERE city = "Manchester"
WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD?
columns: - name: points__percentage type: VARCHAR - name: total_w_l_h type: VARCHAR table: table_name_29
SELECT points__percentage FROM table_name_29 WHERE total_w_l_h = "1-2-2"
Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?
columns: - name: earnings___ type: INTEGER - name: events type: VARCHAR - name: rank type: VARCHAR table: table_name_91
SELECT MIN(earnings___) AS $__ FROM table_name_91 WHERE events = 22 AND rank < 4
What is Kent Patterson's nationality?
columns: - name: nationality type: VARCHAR - name: player type: VARCHAR table: table_name_60
SELECT nationality FROM table_name_60 WHERE player = "kent patterson"
What is the total number of Lost, when Played is less than 34?
columns: - name: lost type: VARCHAR - name: played type: INTEGER table: table_name_91
SELECT COUNT(lost) FROM table_name_91 WHERE played < 34
What is the average year of events that took place in Antwerp, Belgium?
columns: - name: year type: INTEGER - name: venue type: VARCHAR table: table_name_97
SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium"
What is the NTSC M for Pal M 525/60?
columns: - name: ntsc_m type: VARCHAR - name: pal_m type: VARCHAR table: table_name_23
SELECT ntsc_m FROM table_name_23 WHERE pal_m = "525/60"
What is the height of the player from club vk primorac kotor who plays gk?
columns: - name: height type: VARCHAR - name: pos type: VARCHAR - name: club type: VARCHAR table: table_name_96
SELECT height FROM table_name_96 WHERE pos = "gk" AND club = "vk primorac kotor"