question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the number of people in attendance when the decision was brodeur and the home was ottawa?
CREATE TABLE table_name_60 (attendance VARCHAR, decision VARCHAR, home VARCHAR)
SELECT attendance FROM table_name_60 WHERE decision = "brodeur" AND home = "ottawa"
What are the home team scores when fremantle is the away team?
CREATE TABLE table_16388506_1 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_16388506_1 WHERE away_team = "Fremantle"
Who constructed olivier panis' car that retired after +1 lap?
CREATE TABLE table_name_4 (constructor VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_4 WHERE time_retired = "+1 lap" AND driver = "olivier panis"
Where was the match held on July 17, 1999?
CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_43 WHERE date = "july 17, 1999"
What is Opponent, when Date is 17 September 1998?
CREATE TABLE table_name_76 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_76 WHERE date = "17 september 1998"
What is the position of the player from Dartmouth Ohio State?
CREATE TABLE table_name_55 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_55 WHERE school = "dartmouth ohio state"
What is the pick number for Northwestern college?
CREATE TABLE table_10975034_2 (pick__number INTEGER, college VARCHAR)
SELECT MAX(pick__number) FROM table_10975034_2 WHERE college = "Northwestern"
What is the average number for goals less than 73?
CREATE TABLE table_name_23 (average VARCHAR, goals INTEGER)
SELECT COUNT(average) FROM table_name_23 WHERE goals < 73
What is Charlie Wi's To par?
CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_29 WHERE player = "charlie wi"
What was the location after 1934 that Philadelphia Eagles lost on October 15?
CREATE TABLE table_name_98 (location VARCHAR, date VARCHAR, year VARCHAR, loser VARCHAR)
SELECT location FROM table_name_98 WHERE year > 1934 AND loser = "philadelphia eagles" AND date = "october 15"
What number round has an overall of 123?
CREATE TABLE table_name_48 (round VARCHAR, overall VARCHAR)
SELECT round FROM table_name_48 WHERE overall = 123
How many airports haven't the pilot 'Thompson' driven an aircraft?
CREATE TABLE airport (id VARCHAR, airport_id VARCHAR, pilot VARCHAR); CREATE TABLE flight (id VARCHAR, airport_id VARCHAR, pilot VARCHAR)
SELECT COUNT(*) FROM airport WHERE NOT id IN (SELECT airport_id FROM flight WHERE pilot = 'Thompson')
What is the Score of the Shooter with a Comp of OG?
CREATE TABLE table_name_9 (score VARCHAR, comp VARCHAR)
SELECT score FROM table_name_9 WHERE comp = "og"
What was the % 2006 rating in 2006 where there were 5 seats?
CREATE TABLE table_21132404_1 (_percentage_2006 VARCHAR, seats_2006 VARCHAR)
SELECT _percentage_2006 FROM table_21132404_1 WHERE seats_2006 = 5
What is the Power when the acceleration 0–100km/h (0–62mph) is 9.1 s?
CREATE TABLE table_name_49 (power VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT power FROM table_name_49 WHERE acceleration_0_100km_h__0_62mph_ = "9.1 s"
How many districts are respresented by Alex McMillan?
CREATE TABLE table_1341522_36 (status VARCHAR, incumbent VARCHAR)
SELECT COUNT(status) FROM table_1341522_36 WHERE incumbent = "Alex McMillan"
Which player had more than 25 events?
CREATE TABLE table_name_60 (player VARCHAR, events INTEGER)
SELECT player FROM table_name_60 WHERE events > 25
Who was the away team at Windy Hill?
CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_11 WHERE venue = "windy hill"
What is the elevation of Vanuatu, when the rank is smaller than 3?
CREATE TABLE table_name_22 (elevation__m_ INTEGER, country VARCHAR, rank VARCHAR)
SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = "vanuatu" AND rank < 3
What is the total of built with a flag of panama?
CREATE TABLE table_name_21 (built VARCHAR, flag VARCHAR)
SELECT COUNT(built) FROM table_name_21 WHERE flag = "panama"
What was the first week that had a transition with Pat Mccready?
CREATE TABLE table_name_6 (week INTEGER, transition VARCHAR)
SELECT MIN(week) FROM table_name_6 WHERE transition = "pat mccready"
What seasons does Nick Lucas appear in?
CREATE TABLE table_12441518_1 (recurring_cast_seasons VARCHAR, character VARCHAR)
SELECT recurring_cast_seasons FROM table_12441518_1 WHERE character = "Nick Lucas"
How many assets in billions US$, for the company that ranked 1532 overall in 2013?
CREATE TABLE table_23950611_2 (assets__bil_usd__ VARCHAR, rank__all__2013 VARCHAR)
SELECT assets__bil_usd__ FROM table_23950611_2 WHERE rank__all__2013 = 1532
What's the 1st leg of team 1 alajuelense?
CREATE TABLE table_name_50 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_50 WHERE team_1 = "alajuelense"
What year(s) was the race status piston?
CREATE TABLE table_181892_4 (year VARCHAR, race_status VARCHAR)
SELECT year FROM table_181892_4 WHERE race_status = "Piston"
What was the record for the game on November 28 when the decision was Backstrom?
CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28"
Which class had a number under 4 and was built in 1988?
CREATE TABLE table_name_52 (class VARCHAR, number VARCHAR, built VARCHAR)
SELECT class FROM table_name_52 WHERE number < 4 AND built = "1988"
Name the most wins which have clubbed of elche cf and goals against more than 43
CREATE TABLE table_name_51 (wins INTEGER, club VARCHAR, goals_against VARCHAR)
SELECT MAX(wins) FROM table_name_51 WHERE club = "elche cf" AND goals_against > 43
What G/F Player has 3 Years in the NBA?
CREATE TABLE table_name_27 (player VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT player FROM table_name_27 WHERE pos = "g/f" AND years_of_nba_experience_[a_] = "3"
How many catches did Clifford McWatt have?
CREATE TABLE table_27771406_1 (catches INTEGER, player VARCHAR)
SELECT MIN(catches) FROM table_27771406_1 WHERE player = "Clifford McWatt"
Who was the Champion in Snellville, GA in 2006?
CREATE TABLE table_name_46 (champion VARCHAR, location VARCHAR, year VARCHAR)
SELECT champion FROM table_name_46 WHERE location = "snellville, ga" AND year = "2006"
What's the nickname of Westfield State University's students?
CREATE TABLE table_1974545_2 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_1974545_2 WHERE institution = "Westfield State University"
Who is the player born before 1985 who is less than 2.02 tall?
CREATE TABLE table_name_2 (player VARCHAR, year_born VARCHAR, height VARCHAR)
SELECT player FROM table_name_2 WHERE year_born < 1985 AND height < 2.02
What is the set 2 the has 1 set of 21-25, and 4 sets of 25-20?
CREATE TABLE table_name_17 (set_2 VARCHAR, set_1 VARCHAR, set_4 VARCHAR)
SELECT set_2 FROM table_name_17 WHERE set_1 = "21-25" AND set_4 = "25-20"
What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7?
CREATE TABLE table_name_53 (attendance INTEGER, opponent VARCHAR, points_against VARCHAR)
SELECT MIN(attendance) FROM table_name_53 WHERE opponent = "tampa bay buccaneers" AND points_against < 7
Which Outcome has a Year larger than 1939, and an Opponent in the final of frank kovacs?
CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_the_final VARCHAR)
SELECT outcome FROM table_name_44 WHERE year > 1939 AND opponent_in_the_final = "frank kovacs"
What are the number of points for associated with exactly 3 stolen ends?
CREATE TABLE table_25176088_2 (pf VARCHAR, stolen_ends VARCHAR)
SELECT COUNT(pf) FROM table_25176088_2 WHERE stolen_ends = 3
What was the size of the crowd at the game played at Junction Oval?
CREATE TABLE table_name_66 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_66 WHERE venue = "junction oval"
what is the 3-dart average of raymond van barneveld
CREATE TABLE table_20301877_2 (player VARCHAR)
SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = "Raymond van Barneveld"
What's the Icelandic word for rain?
CREATE TABLE table_name_12 (icelandic VARCHAR, english VARCHAR)
SELECT icelandic FROM table_name_12 WHERE english = "rain"
What is the Team Classification if the Winner is Cyril Dessel?
CREATE TABLE table_name_30 (team_classification VARCHAR, winner VARCHAR)
SELECT team_classification FROM table_name_30 WHERE winner = "cyril dessel"
Name the vessel type for beluga shipping
CREATE TABLE table_26168687_5 (vessel_type VARCHAR, vessel_operator VARCHAR)
SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
Name the number of high points for record 5-17
CREATE TABLE table_23186738_6 (high_points VARCHAR, record VARCHAR)
SELECT COUNT(high_points) FROM table_23186738_6 WHERE record = "5-17"
Who were the semifinalists when the runner-up was Peter Feigl?
CREATE TABLE table_29302781_12 (semifinalists VARCHAR, runner_up VARCHAR)
SELECT semifinalists FROM table_29302781_12 WHERE runner_up = "Peter Feigl"
Who is the trainer for Cherry Valley Farm?
CREATE TABLE table_name_94 (trainer VARCHAR, owner VARCHAR)
SELECT trainer FROM table_name_94 WHERE owner = "cherry valley farm"
Which Position has a College of washington, and an Overall of 46?
CREATE TABLE table_name_18 (position VARCHAR, college VARCHAR, overall VARCHAR)
SELECT position FROM table_name_18 WHERE college = "washington" AND overall = 46
What's the sub-parish (sokn) of Eikefjord?
CREATE TABLE table_178381_1 (sub_parish__sokn_ VARCHAR, location_of_the_church VARCHAR)
SELECT sub_parish__sokn_ FROM table_178381_1 WHERE location_of_the_church = "Eikefjord"
what are the maximum wins where the poles are 2?
CREATE TABLE table_2387790_1 (wins INTEGER, poles VARCHAR)
SELECT MAX(wins) FROM table_2387790_1 WHERE poles = 2
What are the areas (in acres) of the Kilnahera East townland?
CREATE TABLE table_30121082_1 (area__acres__ VARCHAR, townland VARCHAR)
SELECT area__acres__ FROM table_30121082_1 WHERE townland = "Kilnahera East"
Find the average number of staff working for the museums that were open before 2009.
CREATE TABLE museum (num_of_staff INTEGER, open_year INTEGER)
SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009
Which Team classification has a Combination classification of egoi martínez, and a Winner of tom boonen?
CREATE TABLE table_name_28 (team_classification VARCHAR, combination_classification VARCHAR, winner VARCHAR)
SELECT team_classification FROM table_name_28 WHERE combination_classification = "egoi martínez" AND winner = "tom boonen"
What is the pos with more than 1 tier during Pokal Slovenije 1. round?
CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)
SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round"
What are the candidates for new york 35?
CREATE TABLE table_1342233_32 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342233_32 WHERE district = "New York 35"
Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?
CREATE TABLE table_name_30 (adelaide VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR)
SELECT adelaide FROM table_name_30 WHERE melbourne = "no" AND sydney = "no" AND gold_coast = "no"
What game number was played on April 23, with Boston as the road team?
CREATE TABLE table_name_73 (game VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT game FROM table_name_73 WHERE road_team = "boston" AND date = "april 23"
In how many episodes was Dave's team made up of David Walliams and Louis Walsh?
CREATE TABLE table_23292220_3 (episode VARCHAR, daves_team VARCHAR)
SELECT COUNT(episode) FROM table_23292220_3 WHERE daves_team = "David Walliams and Louis Walsh"
How many laps has a grid of 5?
CREATE TABLE table_name_62 (laps VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_62 WHERE grid = "5"
What Chassis has more than 0 points?
CREATE TABLE table_name_3 (chassis VARCHAR, points INTEGER)
SELECT chassis FROM table_name_3 WHERE points > 0
What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?
CREATE TABLE table_name_20 (rank VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = "germany (ger)"
Name the service for 7th marines rank of sergeant
CREATE TABLE table_name_20 (service VARCHAR, unit VARCHAR, rank VARCHAR)
SELECT service FROM table_name_20 WHERE unit = "7th marines" AND rank = "sergeant"
What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?
CREATE TABLE table_24096813_15 (l1_cache VARCHAR, sspec_number VARCHAR)
SELECT l1_cache FROM table_24096813_15 WHERE sspec_number = "SL2Z3, SL28Q (myA0)"
After 1986, how many Wins did Lucky Strike Yamaha Team with less than 6 Points have?
CREATE TABLE table_name_51 (wins INTEGER, points VARCHAR, year VARCHAR, team VARCHAR)
SELECT MIN(wins) FROM table_name_51 WHERE year > 1986 AND team = "lucky strike yamaha" AND points < 6
What is the pseudoknot prediction of the software named tfold?
CREATE TABLE table_name_65 (_ VARCHAR, knots_knots VARCHAR, name VARCHAR)
SELECT knots_knots AS :_pseudoknot_prediction, _ FROM table_name_65 WHERE name = "tfold"
Who was the race 1 winner of the race at Hidden Valley Raceway?
CREATE TABLE table_22905641_2 (race_1_winner VARCHAR, circuit VARCHAR)
SELECT race_1_winner FROM table_22905641_2 WHERE circuit = "Hidden Valley Raceway"
Which Position has a best 3-year period of petrosian?
CREATE TABLE table_name_69 (position INTEGER, best_3_year_period VARCHAR)
SELECT MAX(position) FROM table_name_69 WHERE best_3_year_period = "petrosian"
What shareholders have 0 A shares?
CREATE TABLE table_206359_1 (shareholder_name VARCHAR, a_shares VARCHAR)
SELECT shareholder_name FROM table_206359_1 WHERE a_shares = 0
What was the venue where Josh Hamilton played?
CREATE TABLE table_name_42 (venue VARCHAR, player VARCHAR)
SELECT venue FROM table_name_42 WHERE player = "josh hamilton"
What position was picked for Canada on Pick 8?
CREATE TABLE table_name_61 (position VARCHAR, country VARCHAR, pick VARCHAR)
SELECT position FROM table_name_61 WHERE country = "canada" AND pick = "8"
What Rank points has an Event of wc beijing, and Score points of 11?
CREATE TABLE table_name_40 (rank_points VARCHAR, event VARCHAR, score_points VARCHAR)
SELECT rank_points FROM table_name_40 WHERE event = "wc beijing" AND score_points = "11"
Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.
CREATE TABLE Plays_games (StuID VARCHAR, GameID VARCHAR); CREATE TABLE Student (lname VARCHAR, sex VARCHAR, StuID VARCHAR); CREATE TABLE Video_games (GameID VARCHAR, Gname VARCHAR)
SELECT lname, sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Call of Destiny" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Works of Widenius")
What's the total number of density for the place with a population over 393,390?
CREATE TABLE table_name_57 (density VARCHAR, population INTEGER)
SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390
What was the score in Tie number 16?
CREATE TABLE table_name_16 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_16 WHERE tie_no = "16"
Show the location codes and the number of documents in each location.
CREATE TABLE Document_locations (location_code VARCHAR)
SELECT location_code, COUNT(*) FROM Document_locations GROUP BY location_code
Which team opposed the Milwaukee Braves?
CREATE TABLE table_name_92 (opponent VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_92 WHERE team = "milwaukee braves"
Find number of products which Sony does not make.
CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')
What was the maximum speed of the car with 1.556 cc capacity?
CREATE TABLE table_name_45 (vmax VARCHAR, capacity VARCHAR)
SELECT vmax FROM table_name_45 WHERE capacity = "1.556 cc"
What is the lowest enrolled school that was founded in 1992 and joined a conference before 1998?
CREATE TABLE table_name_19 (enrollment INTEGER, founded VARCHAR, joined_conference VARCHAR)
SELECT MIN(enrollment) FROM table_name_19 WHERE founded = "1992" AND joined_conference < 1998
What is the lowest rank of Qaanaaq, which has a population greater than 231?
CREATE TABLE table_name_28 (rank INTEGER, population VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_name_28 WHERE population > 231 AND name = "qaanaaq"
What is the grid number with less than 52 laps and a Time/Retired of collision, and a Constructor of arrows - supertec?
CREATE TABLE table_name_42 (grid VARCHAR, constructor VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(grid) FROM table_name_42 WHERE laps < 52 AND time_retired = "collision" AND constructor = "arrows - supertec"
Who is the tournament winner in the Atlantic Coast Conference?
CREATE TABLE table_22779004_1 (tournament_winner VARCHAR, conference VARCHAR)
SELECT tournament_winner FROM table_22779004_1 WHERE conference = "Atlantic Coast conference"
who is the the opponent with district being ohio12
CREATE TABLE table_1341522_38 (opponent VARCHAR, district VARCHAR)
SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12"
how many times was it the district illinois 18?
CREATE TABLE table_1341718_14 (candidates VARCHAR, district VARCHAR)
SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = "Illinois 18"
Name the electoraate for united future being 4.47%
CREATE TABLE table_20217811_1 (electorate VARCHAR, united_future VARCHAR)
SELECT electorate FROM table_20217811_1 WHERE united_future = "4.47%"
Which Round has a Pick larger than 1?
CREATE TABLE table_name_4 (round INTEGER, pick INTEGER)
SELECT SUM(round) FROM table_name_4 WHERE pick > 1
Which album is #10?
CREATE TABLE table_name_66 (album VARCHAR, number VARCHAR)
SELECT album FROM table_name_66 WHERE number = 10
How many gold medals for the school with 2 total medals and under 0 bronzes?
CREATE TABLE table_name_27 (gold_medals VARCHAR, total_medals VARCHAR, bronze_medals VARCHAR)
SELECT COUNT(gold_medals) FROM table_name_27 WHERE total_medals = 2 AND bronze_medals < 0
At Balmoor Stadium, what's the total average having a greater than 400 lowest?
CREATE TABLE table_name_77 (average VARCHAR, stadium VARCHAR, lowest VARCHAR)
SELECT COUNT(average) FROM table_name_77 WHERE stadium = "balmoor" AND lowest > 400
Who was in 2nd leg when Boca Juniors was in home (1st leg)?
CREATE TABLE table_14219514_1 (home__1st_leg_ VARCHAR)
SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Boca Juniors"
What was the score on the 1st leg if the team 2 is botafogo?
CREATE TABLE table_17282875_2 (team__number2 VARCHAR)
SELECT COUNT(1 AS st_leg) FROM table_17282875_2 WHERE team__number2 = "Botafogo"
When has a Tie no of 15?
CREATE TABLE table_name_17 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_17 WHERE tie_no = "15"
what's the dbeingtribution with grsecurity being no
CREATE TABLE table_1357052_6 (distribution VARCHAR, grsecurity VARCHAR)
SELECT distribution FROM table_1357052_6 WHERE grsecurity = "No"
How old is Darryll Holland's horse
CREATE TABLE table_13498403_1 (barrier VARCHAR, jockey VARCHAR)
SELECT barrier FROM table_13498403_1 WHERE jockey = "Darryll Holland"
How much does Jonathan Bender weigh?
CREATE TABLE table_name_2 (weight VARCHAR, player VARCHAR)
SELECT weight FROM table_name_2 WHERE player = "jonathan bender"
How many incumbents were for district georgia 6?
CREATE TABLE table_1341640_11 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(incumbent) FROM table_1341640_11 WHERE district = "Georgia 6"
What is the Home team score for the Venue named Glenferrie Oval?
CREATE TABLE table_name_31 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_31 WHERE venue = "glenferrie oval"
What is the least number of miss united continents?
CREATE TABLE table_17522854_6 (miss_united_continent INTEGER)
SELECT MIN(miss_united_continent) FROM table_17522854_6
What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?
CREATE TABLE table_name_24 (round VARCHAR, venue VARCHAR, away VARCHAR)
SELECT round FROM table_name_24 WHERE venue = "westpac stadium" AND away = "newcastle jets"
For what competition was the venue away the n/a the man of the match?
CREATE TABLE table_name_62 (competition VARCHAR, venue VARCHAR, man_of_the_match VARCHAR)
SELECT competition FROM table_name_62 WHERE venue = "away" AND man_of_the_match = "n/a"
How many integrated allied-related are there?
CREATE TABLE table_11944282_1 (integrated VARCHAR, allied_related VARCHAR)
SELECT integrated FROM table_11944282_1 WHERE allied_related = "Many"
What is the highest number of laps completed by driver Joe Nemechek?
CREATE TABLE table_name_3 (laps INTEGER, driver VARCHAR)
SELECT MAX(laps) FROM table_name_3 WHERE driver = "joe nemechek"