question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the zip code in which the average mean sea level pressure is the lowest?
CREATE TABLE weather (zip_code VARCHAR, mean_sea_level_pressure_inches INTEGER)
SELECT zip_code FROM weather GROUP BY zip_code ORDER BY AVG(mean_sea_level_pressure_inches) LIMIT 1
What were the lowest points on march 2?
CREATE TABLE table_name_56 (points INTEGER, date VARCHAR)
SELECT MIN(points) FROM table_name_56 WHERE date = "march 2"
What is Eftychia Karagianni Pos.?
CREATE TABLE table_name_64 (pos VARCHAR, name VARCHAR)
SELECT pos FROM table_name_64 WHERE name = "eftychia karagianni"
With 1 Gold, more than 2 Bronze and Total greater than 1, what is the Silver?
CREATE TABLE table_name_74 (silver INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT AVG(silver) FROM table_name_74 WHERE total > 1 AND gold = 1 AND bronze > 2
Which school drafted dave lewis?
CREATE TABLE table_name_75 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_75 WHERE player = "dave lewis"
Which Against has a Date of 30/05/1981?
CREATE TABLE table_name_63 (against VARCHAR, date VARCHAR)
SELECT COUNT(against) FROM table_name_63 WHERE date = "30/05/1981"
In the game where the home team was St Kilda, what was the attendance?
CREATE TABLE table_name_52 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_52 WHERE home_team = "st kilda"
what is the record when the result is win on 2004-06-26?
CREATE TABLE table_name_96 (record VARCHAR, result VARCHAR, date VARCHAR)
SELECT record FROM table_name_96 WHERE result = "win" AND date = "2004-06-26"
What is the To Par score for the player from France?
CREATE TABLE table_name_99 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_99 WHERE country = "france"
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 MAX(points) FROM table_name_39 WHERE position > 6 AND lost < 12 AND drawn < 1
Tell me the total number of Grid for Bob Evans and Laps less than 68
CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "bob evans" AND laps < 68
When was the Clubhouse built with a Sign-in/Bicker of bicker, and Named cannon club?
CREATE TABLE table_name_3 (year_clubhouse_constructed VARCHAR, sign_in_bicker VARCHAR, name VARCHAR)
SELECT year_clubhouse_constructed FROM table_name_3 WHERE sign_in_bicker = "bicker" AND name = "cannon club"
What date was gabriela paz-franco the opponent?
CREATE TABLE table_name_2 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_2 WHERE opponent = "gabriela paz-franco"
Which season's average was 37.5?
CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR)
SELECT season FROM table_name_31 WHERE average = 37.5
what's the width with frame size being 4.5k
CREATE TABLE table_1251878_1 (width VARCHAR, frame_size VARCHAR)
SELECT width FROM table_1251878_1 WHERE frame_size = "4.5K"
What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?
CREATE TABLE table_name_99 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_99 WHERE silver > 7 AND gold > 73
What is the Speed when the rank is smaller than 3, and time is 1:06.19.90?
CREATE TABLE table_name_28 (speed VARCHAR, rank VARCHAR, time VARCHAR)
SELECT speed FROM table_name_28 WHERE rank < 3 AND time = "1:06.19.90"
What was the location when he had a 2-0 record?
CREATE TABLE table_name_41 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_41 WHERE record = "2-0"
What is the capacity for dundee united?
CREATE TABLE table_26980923_2 (capacity VARCHAR, team VARCHAR)
SELECT capacity FROM table_26980923_2 WHERE team = "Dundee United"
Name the most year built for davik kyrkje
CREATE TABLE table_178408_1 (year_built INTEGER, church_name VARCHAR)
SELECT MAX(year_built) FROM table_178408_1 WHERE church_name = "Davik Kyrkje"
What is the nationality of player corey fienhage, who has a pick less than 104?
CREATE TABLE table_name_2 (nationality VARCHAR, pick VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_2 WHERE pick < 104 AND player = "corey fienhage"
Which Round has a NHL team of edmonton oilers and a Player of vyacheslav trukhno?
CREATE TABLE table_name_12 (round INTEGER, nhl_team VARCHAR, player VARCHAR)
SELECT AVG(round) FROM table_name_12 WHERE nhl_team = "edmonton oilers" AND player = "vyacheslav trukhno"
What's Francis Harris' position?
CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_83 WHERE name = "francis harris"
What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
CREATE TABLE table_name_49 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR)
SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = "garry rogers motorsport" AND grid < 23
When was the attendance 3686?
CREATE TABLE table_name_23 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_23 WHERE attendance = 3686
Name the position for numbers of 41
CREATE TABLE table_name_37 (position VARCHAR, no_s_ VARCHAR)
SELECT position FROM table_name_37 WHERE no_s_ = "41"
What is the sum of Year opened when steel was the material with a Span feet of 1476?
CREATE TABLE table_name_75 (year_opened INTEGER, material VARCHAR, span_feet VARCHAR)
SELECT SUM(year_opened) FROM table_name_75 WHERE material = "steel" AND span_feet = 1476
how many parks are name beltzville state park?
CREATE TABLE table_name_77 (date_founded VARCHAR, park_name VARCHAR)
SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = "beltzville state park"
What is the type of institution in Kent State University?
CREATE TABLE table_261946_3 (type VARCHAR, location__all_in_ohio_ VARCHAR)
SELECT type FROM table_261946_3 WHERE location__all_in_ohio_ = "Kent"
On what date was the race at Nazareth?
CREATE TABLE table_15736385_1 (date VARCHAR, location VARCHAR)
SELECT date FROM table_15736385_1 WHERE location = "Nazareth"
What is the number of vacators when the successor was William H. Wells ( F )?
CREATE TABLE table_224839_3 (vacator VARCHAR, successor VARCHAR)
SELECT COUNT(vacator) FROM table_224839_3 WHERE successor = "William H. Wells ( F )"
What was the length for GT class at Portland International Raceway?
CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)
SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway"
What are the product names with average product price smaller than 1000000?
CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)
SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING AVG(Product_Price) < 1000000
If the building is Costanera Center Torre 1, what is the height?
CREATE TABLE table_27067379_1 (height VARCHAR, building VARCHAR)
SELECT height FROM table_27067379_1 WHERE building = "Costanera Center Torre 1"
What team does bobby hillin jr. (r) drive a buick regal for?
CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR)
SELECT team FROM table_name_8 WHERE make = "buick regal" AND driver = "bobby hillin jr. (r)"
What is the average Bronze, when Total is 4, and when Silver is less than 2?
CREATE TABLE table_name_36 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_36 WHERE total = 4 AND silver < 2
Which 2002 has a 2013 of 2–4?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT 2002 FROM table_name_37 WHERE 2013 = "2–4"
Leading scorer during the game of 68-79?
CREATE TABLE table_name_45 (Leading VARCHAR, score VARCHAR)
SELECT Leading AS scorer FROM table_name_45 WHERE score = "68-79"
Which Game is the highest one that has Points smaller than 92, and a Score of 1–3?
CREATE TABLE table_name_76 (game INTEGER, points VARCHAR, score VARCHAR)
SELECT MAX(game) FROM table_name_76 WHERE points < 92 AND score = "1–3"
What unit has an Avoirdupois value of 57.602 gr.?
CREATE TABLE table_name_9 (unit VARCHAR, avoirdupois_value VARCHAR)
SELECT unit FROM table_name_9 WHERE avoirdupois_value = "57.602 gr."
What is the surface when the tournament is manta, ecuador?
CREATE TABLE table_name_95 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_95 WHERE tournament = "manta, ecuador"
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 last_performance FROM table_name_46 WHERE status = "past replacement"
What was the location and it's corresponding attendance during the game against Los Angeles?
CREATE TABLE table_30049462_4 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_30049462_4 WHERE team = "Los Angeles"
Where is the area of operation that had drilling during the year 1999?
CREATE TABLE table_name_19 (area_of_operation VARCHAR, services VARCHAR, years_of_operation VARCHAR)
SELECT area_of_operation FROM table_name_19 WHERE services = "drilling" AND years_of_operation = "1999"
What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?
CREATE TABLE table_name_42 (year INTEGER, notes VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_42 WHERE notes = "team competition" AND venue = "antwerp, belgium"
Who is the chairman of Mark Robins team?
CREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR)
SELECT chairman FROM table_26593762_2 WHERE manager = "Mark Robins"
Tell me the 2011 with 2012 of 2r
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 2011 FROM table_name_40 WHERE 2012 = "2r" AND 2010 = "2r" AND 2009 = "2r"
Which Poll source has Pat Toomey of 23%?
CREATE TABLE table_name_5 (poll_source VARCHAR, pat_toomey VARCHAR)
SELECT poll_source FROM table_name_5 WHERE pat_toomey = "23%"
In 2009, what Appearances had a Winning Percentage of less than 0?
CREATE TABLE table_name_30 (appearances INTEGER, season_s_ VARCHAR, winning_percentage VARCHAR)
SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = "2009" AND winning_percentage < 0
who is the away team when the tie no is 7?
CREATE TABLE table_name_7 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_7 WHERE tie_no = "7"
Which home team had a visitor of Ottawa Senators with a score of 1–5?
CREATE TABLE table_name_61 (home VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT home FROM table_name_61 WHERE visitor = "ottawa senators" AND score = "1–5"
What was the score in game 51?
CREATE TABLE table_15869204_7 (score VARCHAR, game VARCHAR)
SELECT score FROM table_15869204_7 WHERE game = 51
What member of the current West End cast plays the character played by Jodie Jacobs in the original West End cast?
CREATE TABLE table_19529639_3 (current_west_end_cast VARCHAR, original_west_end_cast VARCHAR)
SELECT current_west_end_cast FROM table_19529639_3 WHERE original_west_end_cast = "Jodie Jacobs"
What was the A Score when the B Score was 9.05, and position was larger than 6?
CREATE TABLE table_name_50 (a_score INTEGER, b_score VARCHAR, position VARCHAR)
SELECT AVG(a_score) FROM table_name_50 WHERE b_score = 9.05 AND position > 6
What side does Clayton Allison Bat/Throw from?
CREATE TABLE table_name_87 (bats_throws VARCHAR, players VARCHAR)
SELECT bats_throws FROM table_name_87 WHERE players = "clayton allison"
What is the Super G value for the season that has an Overall score of 16?
CREATE TABLE table_name_8 (super_g VARCHAR, overall VARCHAR)
SELECT super_g FROM table_name_8 WHERE overall = "16"
Which Date has a Time of 11:00, and a Set 3 of 25–18?
CREATE TABLE table_name_62 (date VARCHAR, time VARCHAR, set_3 VARCHAR)
SELECT date FROM table_name_62 WHERE time = "11:00" AND set_3 = "25–18"
When did the United Kingdom format a stereo LP?
CREATE TABLE table_name_29 (date VARCHAR, region VARCHAR, format VARCHAR)
SELECT date FROM table_name_29 WHERE region = "united kingdom" AND format = "stereo lp"
What is the average when the rank by average is more than 12?
CREATE TABLE table_name_88 (average INTEGER, rank_by_average INTEGER)
SELECT SUM(average) FROM table_name_88 WHERE rank_by_average > 12
For the Japanese title サプリ that had 11 episodes, what is the average ratings?
CREATE TABLE table_name_92 (average_ratings VARCHAR, episodes VARCHAR, japanese_title VARCHAR)
SELECT average_ratings FROM table_name_92 WHERE episodes = 11 AND japanese_title = "サプリ"
what is the minimum population canada 2011 census with seat of rcm being cowansville
CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR)
SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville"
if the economy is 3.63 what is the bbi
CREATE TABLE table_28798161_3 (bbi VARCHAR, economy VARCHAR)
SELECT bbi FROM table_28798161_3 WHERE economy = "3.63"
Who is the nominee for Best Lead Actress?
CREATE TABLE table_name_96 (nominee VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_96 WHERE category = "best lead actress"
WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ?
CREATE TABLE table_name_54 (year INTEGER, silver VARCHAR)
SELECT MIN(year) FROM table_name_54 WHERE silver = "matthias merz"
What is the launch date for the sattelite with a nssdc id of 1960-009a?
CREATE TABLE table_2150068_1 (launch_date__utc_ VARCHAR, nssdc_id VARCHAR)
SELECT launch_date__utc_ FROM table_2150068_1 WHERE nssdc_id = "1960-009A"
Find the names of districts where have both city mall and village store type stores.
CREATE TABLE district (District_name VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR, Type VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)
SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_...
What loss has 26-9 as a loss?
CREATE TABLE table_name_96 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_96 WHERE record = "26-9"
What City of license has a ERP W of 2,000?
CREATE TABLE table_name_67 (city_of_license VARCHAR, erp_w VARCHAR)
SELECT city_of_license FROM table_name_67 WHERE erp_w = "2,000"
What is the name of episode number 29 in the series?
CREATE TABLE table_29273182_1 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_29273182_1 WHERE no_in_series = 29
What is the first leg of team 1 for Hardware stars?
CREATE TABLE table_name_19 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_19 WHERE team_1 = "hardware stars"
what is the money ($) for player justin leonard?
CREATE TABLE table_name_99 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_99 WHERE player = "justin leonard"
What was the highest Pick for Lonnie Brockman before round 9?
CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(pick) FROM table_name_30 WHERE player = "lonnie brockman" AND round < 9
How many laps were in 1969?
CREATE TABLE table_name_95 (laps VARCHAR, year VARCHAR)
SELECT laps FROM table_name_95 WHERE year = "1969"
what is the phone number of employees whose salary is in the range of 8000 and 12000?
CREATE TABLE employees (phone_number VARCHAR, salary INTEGER)
SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000
What was the home team in the February 22 game that Legace played in for the St. Louis Blues?
CREATE TABLE table_name_78 (home VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_78 WHERE decision = "legace" AND visitor = "st. louis" AND date = "february 22"
Who scored 68-73-66=207 in South Africa?
CREATE TABLE table_name_70 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT place FROM table_name_70 WHERE country = "south africa" AND score = 68 - 73 - 66 = 207
Who directed the episode which originally aired February 4, 2005?
CREATE TABLE table_228973_11 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT directed_by FROM table_228973_11 WHERE original_air_date = "February 4, 2005"
What rank has skyfall as the title?
CREATE TABLE table_name_35 (rank VARCHAR, title VARCHAR)
SELECT rank FROM table_name_35 WHERE title = "skyfall"
Name the city of license for when founded is october 2010
CREATE TABLE table_name_3 (city_of_license VARCHAR, founded VARCHAR)
SELECT city_of_license FROM table_name_3 WHERE founded = "october 2010"
what is the highest wickets when the best bowling is 2/32 and matches is less than 5?
CREATE TABLE table_name_33 (wickets INTEGER, best_bowling VARCHAR, matches VARCHAR)
SELECT MAX(wickets) FROM table_name_33 WHERE best_bowling = "2/32" AND matches < 5
What was the home team score for the game played at Princes Park?
CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_3 WHERE venue = "princes park"
What is no-yds when no.-yds is 1-13?
CREATE TABLE table_26176081_29 (no_yds VARCHAR)
SELECT no_yds FROM table_26176081_29 WHERE no_yds = "1-13"
What is the title for YI?
CREATE TABLE table_name_45 (title VARCHAR, name VARCHAR)
SELECT title FROM table_name_45 WHERE name = "yi"
What was the record at the game on November 13, 1932?
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE date = "november 13, 1932"
What method had Adriano Martins as an opponent and a time of 5:00?
CREATE TABLE table_name_36 (method VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_36 WHERE time = "5:00" AND opponent = "adriano martins"
What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?
CREATE TABLE table_name_51 (rank INTEGER, total VARCHAR, gold VARCHAR)
SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 7
What is the category when Hy Conrad nominated in 2003?
CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND year = 2003
What position did Marty Gateman play?
CREATE TABLE table_1473672_5 (position VARCHAR, player VARCHAR)
SELECT position FROM table_1473672_5 WHERE player = "Marty Gateman"
What is the away team of the game with an attendance of 117?
CREATE TABLE table_name_58 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_58 WHERE attendance = 117
Which venue led to a result of 13th and had an extra of Long Race?
CREATE TABLE table_name_51 (venue VARCHAR, extra VARCHAR, result VARCHAR)
SELECT venue FROM table_name_51 WHERE extra = "long race" AND result = "13th"
Which Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?
CREATE TABLE table_name_82 (mountain_range VARCHAR, region VARCHAR, location VARCHAR)
SELECT mountain_range FROM table_name_82 WHERE region = "haiti" AND location = "18.3601°n 71.9764°w"
Who manufactured the car that won with an average speed of 126.259 mph?
CREATE TABLE table_22298383_1 (manufacturer VARCHAR, average_speed__mph_ VARCHAR)
SELECT manufacturer FROM table_22298383_1 WHERE average_speed__mph_ = "126.259"
Which athlete in the 76 kg class, did not advance at the end of Round 3.
CREATE TABLE table_name_1 (athlete VARCHAR, round_3 VARCHAR, event VARCHAR)
SELECT athlete FROM table_name_1 WHERE round_3 = "did not advance" AND event = "76 kg"
What is week 5 when week 2 is 36.80, and week 4 is 39.75?
CREATE TABLE table_name_96 (week_5 VARCHAR, week_2 VARCHAR, week_4 VARCHAR)
SELECT week_5 FROM table_name_96 WHERE week_2 = "36.80" AND week_4 = "39.75"
What is the gender for Otama?
CREATE TABLE table_name_23 (gender VARCHAR, area VARCHAR)
SELECT gender FROM table_name_23 WHERE area = "otama"
What is the total number of churches built in 1916?
CREATE TABLE table_178389_1 (location_of_the_church VARCHAR, year_built VARCHAR)
SELECT COUNT(location_of_the_church) FROM table_178389_1 WHERE year_built = 1916
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 date was Chester the away team?
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "chester"
If the version is 1.5b, what is the distribution mechanism?
CREATE TABLE table_2263152_1 (distribution_mechanism VARCHAR, version VARCHAR)
SELECT distribution_mechanism FROM table_2263152_1 WHERE version = "1.5b"
Who has a place of T7 and is from the United States?
CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_90 WHERE place = "t7" AND country = "united states"