question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many people attended games at alberto picco stadium?
CREATE TABLE table_name_97 (capacity VARCHAR, stadium VARCHAR)
SELECT COUNT(capacity) FROM table_name_97 WHERE stadium = "alberto picco"
What team is from terni?
CREATE TABLE table_name_59 (team VARCHAR, home_city VARCHAR)
SELECT team FROM table_name_59 WHERE home_city = "terni"
What is the total attendance of the game with Toronto as the visitor team?
CREATE TABLE table_name_82 (attendance VARCHAR, visitor VARCHAR)
SELECT COUNT(attendance) FROM table_name_82 WHERE visitor = "toronto"
What position does tim barnett play?
CREATE TABLE table_name_26 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_26 WHERE player = "tim barnett"
I want the sum of number of seasons in top division for position in 2012-13 of 009 9th and number of seasons in premier league less than 3
CREATE TABLE table_name_48 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_the_premier_league VARCHAR)
SELECT SUM(number_of_seasons_in_top_division) FROM table_name_48 WHERE position_in_2012_13 = "009 9th" AND number_of_seasons_in_the_premier_league < 3
How many tons was the ship from norway?
CREATE TABLE table_name_14 (tons VARCHAR, nationality VARCHAR)
SELECT COUNT(tons) FROM table_name_14 WHERE nationality = "norway"
How many people were in attendance at Glenferrie Oval?
CREATE TABLE table_name_43 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_43 WHERE venue = "glenferrie oval"
What was the away team score at Brunswick Street Oval?
CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_82 WHERE venue = "brunswick street oval"
What was Melbourne's away team score?
CREATE TABLE table_name_20 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_20 WHERE away_team = "melbourne"
What is Adam Keefe's nationality?
CREATE TABLE table_name_42 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_42 WHERE player = "adam keefe"
Who is the player who went to Stanford?
CREATE TABLE table_name_8 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_8 WHERE school_club_team = "stanford"
What are the years on the Jazz for the player who is a combo forward?
CREATE TABLE table_name_12 (years_for_jazz VARCHAR, position VARCHAR)
SELECT years_for_jazz FROM table_name_12 WHERE position = "combo forward"
What is the total for the state of new york and a swimsuit less than 9.394?
CREATE TABLE table_name_97 (interview INTEGER, state VARCHAR, swimsuit VARCHAR)
SELECT SUM(interview) FROM table_name_97 WHERE state = "new york" AND swimsuit < 9.394
What is the greatest interview that has a swimsuit less than 8.838?
CREATE TABLE table_name_98 (interview INTEGER, swimsuit INTEGER)
SELECT MAX(interview) FROM table_name_98 WHERE swimsuit < 8.838
What is the lowest average that has a swimsuit less than 8.966, for west virginia and an evening gown less than 8.711?
CREATE TABLE table_name_15 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, state VARCHAR)
SELECT MIN(average) FROM table_name_15 WHERE swimsuit < 8.966 AND state = "west virginia" AND evening_gown < 8.711
What is the lowest swimsuit that has an evening gown bigger than 8.794 for illinois?
CREATE TABLE table_name_47 (swimsuit INTEGER, evening_gown VARCHAR, state VARCHAR)
SELECT MIN(swimsuit) FROM table_name_47 WHERE evening_gown > 8.794 AND state = "illinois"
What day was the score 3-0 after 2011?
CREATE TABLE table_name_88 (date VARCHAR, score VARCHAR, year VARCHAR)
SELECT date FROM table_name_88 WHERE score = "3-0" AND year = 2011
What day was the result a win, the score 2-1, and the year before 2012?
CREATE TABLE table_name_7 (date VARCHAR, year VARCHAR, result VARCHAR, score VARCHAR)
SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012
What is the highest amount of floors in Stockholm with a rank of 15?
CREATE TABLE table_name_96 (floors INTEGER, location VARCHAR, rank VARCHAR)
SELECT MAX(floors) FROM table_name_96 WHERE location = "stockholm" AND rank = "15"
What is the rank of Skanskaskrapan?
CREATE TABLE table_name_3 (rank VARCHAR, name VARCHAR)
SELECT rank FROM table_name_3 WHERE name = "skanskaskrapan"
What is the rank of Point Hyllie?
CREATE TABLE table_name_52 (rank VARCHAR, name VARCHAR)
SELECT rank FROM table_name_52 WHERE name = "point hyllie"
How many bronzes for the nation with 2 golds and ranked below 2?
CREATE TABLE table_name_9 (bronze INTEGER, gold VARCHAR, rank VARCHAR)
SELECT SUM(bronze) FROM table_name_9 WHERE gold = 2 AND rank > 2
What was the decision when montreal was at home?
CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_12 WHERE home = "montreal"
What day is the team 17–24–5?
CREATE TABLE table_name_59 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_59 WHERE record = "17–24–5"
Who was the visitor on november 14 with leclaire recording the decision?
CREATE TABLE table_name_43 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_43 WHERE decision = "leclaire" AND date = "november 14"
What day was St. Louis the visitor?
CREATE TABLE table_name_85 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_85 WHERE visitor = "st. louis"
What club team is the United States player with an overall pick smaller than 142 from?
CREATE TABLE table_name_98 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT club_team FROM table_name_98 WHERE nationality = "united states" AND overall < 142
Which object type had an NGC number greater than 6357 and a declination (J2000) of Β°45β€²34β€³?
CREATE TABLE table_name_53 (object_type VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)
SELECT object_type FROM table_name_53 WHERE ngc_number > 6357 AND declination___j2000__ = "Β°45β€²34β€³"
For the constellation scorpius and object of planetary nebula, what was the declination (J2000)?
CREATE TABLE table_name_53 (declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
SELECT declination___j2000__ FROM table_name_53 WHERE constellation = "scorpius" AND object_type = "planetary nebula"
What is the earliest year a red maple had a mintage over 15,000?
CREATE TABLE table_name_48 (year INTEGER, theme VARCHAR, mintage VARCHAR)
SELECT MIN(year) FROM table_name_48 WHERE theme = "red maple" AND mintage > 15 OFFSET 000
What is the issue price of a voyageur before 2006?
CREATE TABLE table_name_89 (issue_price VARCHAR, year VARCHAR, theme VARCHAR)
SELECT issue_price FROM table_name_89 WHERE year < 2006 AND theme = "voyageur"
How many cowboy coins were minted?
CREATE TABLE table_name_1 (mintage VARCHAR, theme VARCHAR)
SELECT mintage FROM table_name_1 WHERE theme = "cowboy"
What was the attendance of the South Melbourne away game?
CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "south melbourne"
What was the opponents score when Carlton played at home?
CREATE TABLE table_name_55 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_55 WHERE home_team = "carlton"
Who was the home team at MCG?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "mcg"
Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb
CREATE TABLE table_name_7 (hdd_capacity VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR)
SELECT hdd_capacity FROM table_name_7 WHERE _number_fdd > 0 AND fdd_capacity__each_ = "710kb"
I want to know the HP model with a #HDD of 1 of sides of ds
CREATE TABLE table_name_68 (hp_model VARCHAR, _number_hdd VARCHAR, sides VARCHAR)
SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = "ds"
Tell me the command set with FDD capacity of 270kb and sides of ds with #FDD more than 1
CREATE TABLE table_name_35 (command_set VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR, sides VARCHAR)
SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = "270kb" AND sides = "ds" AND _number_fdd > 1
what was the foundation of Politeknik Pagoh?
CREATE TABLE table_name_73 (foundation INTEGER, official_name_in_malay VARCHAR)
SELECT AVG(foundation) FROM table_name_73 WHERE official_name_in_malay = "politeknik pagoh"
When the shares were less than 8, how many total viewers were there?
CREATE TABLE table_name_12 (total_viewers VARCHAR, share INTEGER)
SELECT total_viewers FROM table_name_12 WHERE share < 8
What is the lowest crowd when North Melbourne played at home?
CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_92 WHERE home_team = "north melbourne"
Which home team has a crowd larger than 25,000?
CREATE TABLE table_name_42 (home_team VARCHAR, crowd INTEGER)
SELECT home_team FROM table_name_42 WHERE crowd > 25 OFFSET 000
What driver has a grid of under 10, and under 70 laps?
CREATE TABLE table_name_84 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_84 WHERE grid < 10 AND laps < 70
How many total laps for a grid of 3?
CREATE TABLE table_name_42 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_42 WHERE grid = 3
What is the average grid for giorgio pantano?
CREATE TABLE table_name_70 (grid INTEGER, driver VARCHAR)
SELECT AVG(grid) FROM table_name_70 WHERE driver = "giorgio pantano"
What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?
CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR)
SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc"
What is the Year 10 5th Quads with NC as Open 1st VIII and NC as a Year 10 3rd Quads?
CREATE TABLE table_name_16 (year_10_5th_quad VARCHAR, open_1st_viii VARCHAR, year_10_3rd_quad VARCHAR)
SELECT year_10_5th_quad FROM table_name_16 WHERE open_1st_viii = "nc" AND year_10_3rd_quad = "nc"
What is the Open 1st VIII for the 2012 crew?
CREATE TABLE table_name_76 (open_1st_viii VARCHAR, crew VARCHAR)
SELECT open_1st_viii FROM table_name_76 WHERE crew = 2012
On July 25 what is the lowest attendance with the Brewers as the opponent?
CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT MIN(attendance) FROM table_name_26 WHERE opponent = "brewers" AND date = "july 25"
Tell me the high assists for orlando
CREATE TABLE table_name_46 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_name_46 WHERE team = "orlando"
Who was the presenter on Friday of the series in which Alice Levine Jamie East presented on Sunday?
CREATE TABLE table_name_34 (friday VARCHAR, sunday VARCHAR)
SELECT friday FROM table_name_34 WHERE sunday = "alice levine jamie east"
In what series did Alice Levine Jamie East give a presentation on Saturday?
CREATE TABLE table_name_60 (series VARCHAR, saturday VARCHAR)
SELECT series FROM table_name_60 WHERE saturday = "alice levine jamie east"
Who was the presenter on Thursday of the series in which Emma Willis was the presenter on Wednesday, and Alice Levine Jamie East was the presenter on Sunday?
CREATE TABLE table_name_15 (thursday VARCHAR, wednesday VARCHAR, sunday VARCHAR)
SELECT thursday FROM table_name_15 WHERE wednesday = "emma willis" AND sunday = "alice levine jamie east"
On the series in which Emma Willis Jamie East presented on Friday, who was the presenter on Sunday?
CREATE TABLE table_name_79 (sunday VARCHAR, friday VARCHAR)
SELECT sunday FROM table_name_79 WHERE friday = "emma willis jamie east"
Who was the presenter on Monday of "Big Brother 13" in which Alice Levine Jamie East presented on Sunday?
CREATE TABLE table_name_45 (monday VARCHAR, sunday VARCHAR, series VARCHAR)
SELECT monday FROM table_name_45 WHERE sunday = "alice levine jamie east" AND series = "big brother 13"
What state was the president who was elected earlier than 1848 born in?
CREATE TABLE table_name_43 (birth_state VARCHAR, election_year INTEGER)
SELECT birth_state FROM table_name_43 WHERE election_year < 1848
What is the resident state for the president elected in 1864?
CREATE TABLE table_name_83 (resident_state VARCHAR, election_year VARCHAR)
SELECT resident_state FROM table_name_83 WHERE election_year = 1864
What is the election year of the president with a Birth State of lost connecticut?
CREATE TABLE table_name_61 (election_year INTEGER, birth_state VARCHAR)
SELECT AVG(election_year) FROM table_name_61 WHERE birth_state = "lost connecticut"
Which ICAO's IATA is ath?
CREATE TABLE table_name_63 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_63 WHERE iata = "ath"
Which country's city is Sendai?
CREATE TABLE table_name_5 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_5 WHERE city = "sendai"
Which ICAO's city is Manchester?
CREATE TABLE table_name_96 (icao VARCHAR, city VARCHAR)
SELECT icao FROM table_name_96 WHERE city = "manchester"
Which airport is in Saudi Arabia when the ICAO is oejn?
CREATE TABLE table_name_20 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_20 WHERE country = "saudi arabia" AND icao = "oejn"
Which IATA's ICAO is rjss?
CREATE TABLE table_name_17 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_17 WHERE icao = "rjss"
Which country features Adelaide Airport?
CREATE TABLE table_name_21 (country VARCHAR, airport VARCHAR)
SELECT country FROM table_name_21 WHERE airport = "adelaide airport"
What is the mean number of laps when the grid was 8?
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_8 WHERE grid = 8
What is the largest lap number when the time was +31.982?
CREATE TABLE table_name_5 (laps INTEGER, time VARCHAR)
SELECT MAX(laps) FROM table_name_5 WHERE time = "+31.982"
What time was there when the bike was Ducati 999 F06 and the grid number was 15?
CREATE TABLE table_name_93 (time VARCHAR, bike VARCHAR, grid VARCHAR)
SELECT time FROM table_name_93 WHERE bike = "ducati 999 f06" AND grid = 15
What network is the Korean title of mbc 베슀트극μž₯ - μž‘μ€ 도둑 on?
CREATE TABLE table_name_30 (network VARCHAR, korean_title VARCHAR)
SELECT network FROM table_name_30 WHERE korean_title = "mbc 베슀트극μž₯ - μž‘μ€ 도둑"
On what surface was the tournament with opponents kathleen horvath marcella mesker in the finals?
CREATE TABLE table_name_1 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT surface FROM table_name_1 WHERE opponents_in_the_final = "kathleen horvath marcella mesker"
What is the date of the final that has a score of 3–6, 6–3, 6–4 and penny barg paula smith was the opponent?
CREATE TABLE table_name_98 (date VARCHAR, score_in_the_final VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_98 WHERE score_in_the_final = "3–6, 6–3, 6–4" AND opponents_in_the_final = "penny barg paula smith"
How many people attended games at vfl park?
CREATE TABLE table_name_12 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_12 WHERE venue = "vfl park"
Who is the home side when geelong is the away side?
CREATE TABLE table_name_80 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_80 WHERE away_team = "geelong"
Which Pick has the College named Far Eastern / PSBA?
CREATE TABLE table_name_68 (pick VARCHAR, college VARCHAR)
SELECT pick FROM table_name_68 WHERE college = "far eastern / psba"
When did Hawthorn play as the away team?
CREATE TABLE table_name_95 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_95 WHERE away_team = "hawthorn"
Which team played Footscray?
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_41 WHERE home_team = "footscray"
How many were in the crowd when North Melbourne was the home team?
CREATE TABLE table_name_24 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_24 WHERE home_team = "north melbourne"
Tell me the home team score for essendon
CREATE TABLE table_name_54 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_54 WHERE home_team = "essendon"
Tell me the Host interface for digital of dvb-t (cx22702) and model of nova-t pci (90002)
CREATE TABLE table_name_34 (host_interface VARCHAR, digital VARCHAR, model VARCHAR)
SELECT host_interface FROM table_name_34 WHERE digital = "dvb-t (cx22702)" AND model = "nova-t pci (90002)"
I want the model for digital of dvb-t (cx22702) and tuner of thomson dtt75105
CREATE TABLE table_name_7 (model VARCHAR, digital VARCHAR, tuner VARCHAR)
SELECT model FROM table_name_7 WHERE digital = "dvb-t (cx22702)" AND tuner = "thomson dtt75105"
I want the type for host interface of pci saa7146 tmx320av7111
CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR)
SELECT type FROM table_name_89 WHERE host_interface = "pci saa7146 tmx320av7111"
I want the tuner for hybrid video recorder and Digital of dvb-t (zl10353), and a Model of hvr-900
CREATE TABLE table_name_32 (tuner VARCHAR, model VARCHAR, type VARCHAR, digital VARCHAR)
SELECT tuner FROM table_name_32 WHERE type = "hybrid video recorder" AND digital = "dvb-t (zl10353)" AND model = "hvr-900"
Tell me the digital for tuner of thomson dtt75105
CREATE TABLE table_name_91 (digital VARCHAR, tuner VARCHAR)
SELECT digital FROM table_name_91 WHERE tuner = "thomson dtt75105"
What's the Total number of Opening Weekend Net Gross that occured after the year 2012 with a Rank of 1?
CREATE TABLE table_name_82 (opening_weekend_net_gross VARCHAR, year VARCHAR, rank VARCHAR)
SELECT COUNT(opening_weekend_net_gross) FROM table_name_82 WHERE year > 2012 AND rank = 1
Which Studio has the Year of 2012 listed and the Movie, Dabangg?
CREATE TABLE table_name_22 (studio_s_ VARCHAR, year VARCHAR, movie VARCHAR)
SELECT studio_s_ FROM table_name_22 WHERE year = 2012 AND movie = "dabangg"
What's the sum of Opening Weekend Net Gross at the Studio of UTV Motion Pictures?
CREATE TABLE table_name_8 (opening_weekend_net_gross INTEGER, studio_s_ VARCHAR)
SELECT SUM(opening_weekend_net_gross) FROM table_name_8 WHERE studio_s_ = "utv motion pictures"
What is the number for evening gown in kansas with less than 9.357 interviews?
CREATE TABLE table_name_96 (evening_gown INTEGER, state VARCHAR, interview VARCHAR)
SELECT SUM(evening_gown) FROM table_name_96 WHERE state = "kansas" AND interview < 9.357
What state had less than 8.874 for swimsuit, less than 9.257 for evening gown, and less than 9.121 for interview?
CREATE TABLE table_name_26 (state VARCHAR, interview VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT state FROM table_name_26 WHERE swimsuit < 8.874 AND evening_gown < 9.257 AND interview < 9.121
What is the number for swimsuit when the interview number is less than 8.808?
CREATE TABLE table_name_93 (swimsuit VARCHAR, interview INTEGER)
SELECT swimsuit FROM table_name_93 WHERE interview < 8.808
What is the number for swimsuit when the evening gown number is larger than 9.257 and the interview number is 9.357?
CREATE TABLE table_name_25 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR)
SELECT SUM(swimsuit) FROM table_name_25 WHERE evening_gown > 9.257 AND interview = 9.357
What is the highest evening gown number in North Carolina with less than 9.214 interviews?
CREATE TABLE table_name_94 (evening_gown INTEGER, state VARCHAR, interview VARCHAR)
SELECT MAX(evening_gown) FROM table_name_94 WHERE state = "north carolina" AND interview < 9.214
At what location was the time 1:54:21?
CREATE TABLE table_name_90 (location VARCHAR, time VARCHAR)
SELECT location FROM table_name_90 WHERE time = "1:54:21"
Which Athlete is from the United Kingdom?
CREATE TABLE table_name_14 (athlete VARCHAR, country_state VARCHAR)
SELECT athlete FROM table_name_14 WHERE country_state = "united kingdom"
Which country had des moines as the location in 2011?
CREATE TABLE table_name_68 (country_state VARCHAR, location VARCHAR, year VARCHAR)
SELECT country_state FROM table_name_68 WHERE location = "des moines" AND year = 2011
What was the time for 2009?
CREATE TABLE table_name_14 (time VARCHAR, year VARCHAR)
SELECT time FROM table_name_14 WHERE year = 2009
Who was the opponent on June 29?
CREATE TABLE table_name_86 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_86 WHERE date = "june 29"
What was the 2010 result for a 2008 result of LQ and 2011 result of 2R?
CREATE TABLE table_name_30 (Id VARCHAR)
SELECT 2010 FROM table_name_30 WHERE 2008 = "lq" AND 2011 = "2r"
What was the 2007 result for a 2008 result of 1R and 2009 result of 2R?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT 2007 FROM table_name_47 WHERE 2009 = "2r" AND 2008 = "1r"
Which tournament had a 2010 result of A?
CREATE TABLE table_name_87 (tournament VARCHAR)
SELECT tournament FROM table_name_87 WHERE 2010 = "a"
Which pick was Bill Bray?
CREATE TABLE table_name_66 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_66 WHERE player = "bill bray"
From which school did the Minnesota Twins SS come from?
CREATE TABLE table_name_50 (school VARCHAR, team VARCHAR, position VARCHAR)
SELECT school FROM table_name_50 WHERE team = "minnesota twins" AND position = "ss"