answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT AVG(2001) FROM table_name_41 WHERE 2010 > 414 AND 2011 = 7192 AND 2005 > 7340
What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340?
CREATE TABLE table_name_41 (Id VARCHAR)
SELECT species FROM table_name_70 WHERE gender = "male"
Which species is male?
CREATE TABLE table_name_70 (species VARCHAR, gender VARCHAR)
SELECT COUNT(centerfold_model) FROM table_1566852_4 WHERE cover_model = "Torrie Wilson"
How many centerfold models were there when the cover model was Torrie Wilson?
CREATE TABLE table_1566852_4 (centerfold_model VARCHAR, cover_model VARCHAR)
SELECT date FROM table_name_38 WHERE score = "2–3" AND time = "20:30" AND set_3 = "16–25"
Which Date has a Score of 2–3, a Time of 20:30, and a Set 3 of 16–25?
CREATE TABLE table_name_38 (date VARCHAR, set_3 VARCHAR, score VARCHAR, time VARCHAR)
SELECT stadium FROM table_name_12 WHERE date = "december 14"
What is the stadium when the date of the game is December 14?
CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR)
SELECT MIN(renewable_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE rank = 36
How much was the minimum renewable electricity (GW-h) that is ranked 36?
CREATE TABLE table_25244412_2 (renewable_electricity__gw INTEGER, rank VARCHAR)
SELECT webcast FROM table_name_5 WHERE website = "•" AND frequency = 103.3
Name the webcast for website of • and frequency of 103.3
CREATE TABLE table_name_5 (webcast VARCHAR, website VARCHAR, frequency VARCHAR)
SELECT MIN(attendance) FROM table_24126518_2 WHERE final_score = "L 36–1"
Name the least attendance for l 36–1
CREATE TABLE table_24126518_2 (attendance INTEGER, final_score VARCHAR)
SELECT result FROM table_name_1 WHERE week = 11
What was the result of week 11?
CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR)
SELECT fis_nordic_world_ski_championships FROM table_name_44 WHERE winter_olympics = "1960"
Which FIS Nordic World Ski Championships has Winter Olympics of 1960?
CREATE TABLE table_name_44 (fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR)
SELECT date_of_appointment FROM table_11207040_6 WHERE outgoing_manager = "Colin Hendry"
What are the dates of the outgoing manager colin hendry does appointments?
CREATE TABLE table_11207040_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(points) FROM table_14342210_12 WHERE position = "Right end"
How many points where scored by the right end?
CREATE TABLE table_14342210_12 (points VARCHAR, position VARCHAR)
SELECT MAX(metres) FROM table_name_33 WHERE finalized = "2015" AND floors < 40 AND feet > 509
Which building was built in 2015, has less than 40 floors and is larger than 509 feet?
CREATE TABLE table_name_33 (metres INTEGER, feet VARCHAR, finalized VARCHAR, floors VARCHAR)
SELECT score FROM table_name_10 WHERE year = 1911
What was the score for 1911?
CREATE TABLE table_name_10 (score VARCHAR, year VARCHAR)
SELECT record FROM table_name_37 WHERE date = "january 19"
What is the record for January 19?
CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)
SELECT season FROM table_178242_7 WHERE the_mole = "Milouska"
Which season is it when Milouska was the show's mole ?
CREATE TABLE table_178242_7 (season VARCHAR, the_mole VARCHAR)
SELECT round FROM table_name_21 WHERE opponent = "sergis kyratzis"
What is the round when the match was against sergis kyratzis?
CREATE TABLE table_name_21 (round VARCHAR, opponent VARCHAR)
SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id
What are the names, details and data types of the characteristics which are never used by any product?
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR...
SELECT SUM(grid) FROM table_name_9 WHERE laps > 61
How many grids had more than 61 laps?
CREATE TABLE table_name_9 (grid INTEGER, laps INTEGER)
SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
Find the first names of the faculty members who are playing Canoeing or Kayaking.
CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)
SELECT years_in_orlando FROM table_name_16 WHERE school_club_team = "seattle"
Which Years in Orlando has a School/Club Team of seattle?
CREATE TABLE table_name_16 (years_in_orlando VARCHAR, school_club_team VARCHAR)
SELECT COUNT(us_viewers__million_) FROM table_26259391_1 WHERE written_by = "Chris Sheridan & Danny Smith"
how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith
CREATE TABLE table_26259391_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT COUNT(modern_equivalent) FROM table_160510_1 WHERE former_kingdom = "Silla" AND hanja = "尙州"
What is the modern equivalent of the former kingdom "silla" with the hanja 尙州?
CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, former_kingdom VARCHAR, hanja VARCHAR)
SELECT COUNT(draws) FROM table_name_44 WHERE points = 30 AND goals_against < 33
How many Draws have 30 Points, and less than 33 Goals against?
CREATE TABLE table_name_44 (draws VARCHAR, points VARCHAR, goals_against VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE home_team = "st kilda"
What is the home team score of St Kilda?
CREATE TABLE table_name_4 (home_team VARCHAR)
SELECT COUNT(team) FROM table_23284271_7 WHERE score = "W 99–91 (OT)"
How many teams played against the Mavericks in a game where the score was w 99–91 (ot)?
CREATE TABLE table_23284271_7 (team VARCHAR, score VARCHAR)
SELECT venue FROM table_name_43 WHERE home_team = "richmond"
Where did Richmond play as the home team?
CREATE TABLE table_name_43 (venue VARCHAR, home_team VARCHAR)
SELECT speed__ghz_ FROM table_269920_17 WHERE model = "X5560"
What is the speed of model x5560?
CREATE TABLE table_269920_17 (speed__ghz_ VARCHAR, model VARCHAR)
SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%"
What is the fewest draws for percentages of 5.02%?
CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR)
SELECT surface FROM table_name_95 WHERE tournament = "manta, ecuador"
What is the surface when the tournament is manta, ecuador?
CREATE TABLE table_name_95 (surface VARCHAR, tournament VARCHAR)
SELECT region FROM table_name_88 WHERE date = "june 8, 2004"
What region is the catalogue released on June 8, 2004 from?
CREATE TABLE table_name_88 (region VARCHAR, date VARCHAR)
SELECT part_6 FROM table_name_89 WHERE part_4 = "march 2, 2008"
When is Part 6, when Part 4 is on March 2, 2008?
CREATE TABLE table_name_89 (part_6 VARCHAR, part_4 VARCHAR)
SELECT bush_percentage FROM table_1733457_1 WHERE others_number = 90
Name the bush% for where others # is 90
CREATE TABLE table_1733457_1 (bush_percentage VARCHAR, others_number VARCHAR)
SELECT call_sign FROM table_name_20 WHERE erp_w = 4
Name the call sign for ERP W of 4
CREATE TABLE table_name_20 (call_sign VARCHAR, erp_w VARCHAR)
SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 5
How much Overall has a Position of ot, and a Round larger than 5?
CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR)
SELECT MAX(total) FROM table_name_43 WHERE gold < 12 AND nation = "hong kong (hkg)"
Which Total has Gold smaller than 12, and a Nation of hong kong (hkg)?
CREATE TABLE table_name_43 (total INTEGER, gold VARCHAR, nation VARCHAR)
SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = "Forest Rehabilitation Debt Limit Amendment"
How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?
CREATE TABLE table_256286_45 (no_votes VARCHAR, description VARCHAR)
SELECT title FROM papers WHERE title LIKE "%ML%"
Find the titles of the papers that contain the word "ML".
CREATE TABLE papers (title VARCHAR)
SELECT MAX(division) FROM table_name_25 WHERE playoffs = "quarter finals" AND regular_season = "5th"
What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th?
CREATE TABLE table_name_25 (division INTEGER, playoffs VARCHAR, regular_season VARCHAR)
SELECT MAX(silver) FROM table_22355_44 WHERE athlete = "Ronald Weigel Category:Articles with hCards"
Name the silver for ronald weigel category:articles with hcards
CREATE TABLE table_22355_44 (silver INTEGER, athlete VARCHAR)
SELECT rounds FROM table_name_77 WHERE team = "walther"
Which rounds did the team Walther participate in?
CREATE TABLE table_name_77 (rounds VARCHAR, team VARCHAR)
SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová"
What is the seat number when Series 3 shows Dana Bérová?
CREATE TABLE table_name_81 (seat INTEGER, series_3 VARCHAR)
SELECT MIN(to_par) FROM table_name_28 WHERE place = "t3" AND money___$__ < 1 OFFSET 500
What is the lowest to par of the player with a t3 place and less than $1,500?
CREATE TABLE table_name_28 (to_par INTEGER, place VARCHAR, money___$__ VARCHAR)
SELECT high_points FROM table_27902171_4 WHERE record = "8-5"
Who had the high point total when they were 8-5?
CREATE TABLE table_27902171_4 (high_points VARCHAR, record VARCHAR)
SELECT visiting_team FROM table_name_67 WHERE stadium = "hubert h. humphrey metrodome"
Who was the visiting team who played at the hubert h. humphrey metrodome stadium?
CREATE TABLE table_name_67 (visiting_team VARCHAR, stadium VARCHAR)
SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = "Barurumea Ridge"
What is the col (m) of the Barurumea Ridge peak?
CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR)
SELECT commissioned FROM table_name_8 WHERE pennant_number = "q144"
On what date was the ship with a Pennant number of Q144 commissioned?
CREATE TABLE table_name_8 (commissioned VARCHAR, pennant_number VARCHAR)
SELECT gp_gs FROM table_name_13 WHERE long = "17" AND season = "total"
Which GP-GS had a long of 17 and a season of total?
CREATE TABLE table_name_13 (gp_gs VARCHAR, long VARCHAR, season VARCHAR)
SELECT home FROM table_name_12 WHERE date = "2 february 2006"
Who was the home team of the game on 2 February 2006?
CREATE TABLE table_name_12 (home VARCHAR, date VARCHAR)
SELECT street_address FROM table_name_20 WHERE name = "oliver building"
What is the street address of Oliver Building?
CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR)
SELECT magazine_type FROM table_name_32 WHERE title = "dengeki game appli"
What was the type of the magazine that was named dengeki game appli?
CREATE TABLE table_name_32 (magazine_type VARCHAR, title VARCHAR)
SELECT away_team FROM table_name_27 WHERE home_team = "luton town"
What was the away team that played luton town?
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
SELECT team_classification FROM table_22941863_19 WHERE stage = 9
If the stage is 9, what is the team classification name?
CREATE TABLE table_22941863_19 (team_classification VARCHAR, stage VARCHAR)
SELECT position FROM table_name_14 WHERE bats = "l" AND surname = "anderson"
Which position has L bats and Anderson as a surname?
CREATE TABLE table_name_14 (position VARCHAR, bats VARCHAR, surname VARCHAR)
SELECT location FROM table_name_93 WHERE date = "january 23, 2008"
Where was the game located on January 23, 2008?
CREATE TABLE table_name_93 (location VARCHAR, date VARCHAR)
SELECT COUNT(calculated_activity___bq__) FROM table_26211058_1 WHERE specimen_weight_size = "1000 g / 8.79 cm"
If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?
CREATE TABLE table_26211058_1 (calculated_activity___bq__ VARCHAR, specimen_weight_size VARCHAR)
SELECT similarity FROM table_15417439_1 WHERE genus_species = "Sus scrofa"
How similar is the genus/species sus scrofa?
CREATE TABLE table_15417439_1 (similarity VARCHAR, genus_species VARCHAR)
SELECT MIN(grid) FROM table_name_28 WHERE team = "pkv racing" AND points = 13 AND laps < 64
What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?
CREATE TABLE table_name_28 (grid INTEGER, laps VARCHAR, team VARCHAR, points VARCHAR)
SELECT name FROM table_name_24 WHERE best = "1:00.870"
Who had a best time of 1:00.870?
CREATE TABLE table_name_24 (name VARCHAR, best VARCHAR)
SELECT municipal_status FROM table_21284653_1 WHERE population_density = "895.5"
What is the municipal status where the population density is 895.5?
CREATE TABLE table_21284653_1 (municipal_status VARCHAR, population_density VARCHAR)
SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = "17 march 1915" AND debut_year < 1935
What is the average games a player born on 17 March 1915 and debut before 1935 had?
CREATE TABLE table_name_68 (games INTEGER, date_of_birth VARCHAR, debut_year VARCHAR)
SELECT production_number FROM table_name_49 WHERE title = "crows' feat"
What is Crows' Feat's production number?
CREATE TABLE table_name_49 (production_number VARCHAR, title VARCHAR)
SELECT MAX(enrollment) FROM table_name_48 WHERE location = "lagrange" AND mascot = "panthers"
What is the highest enrollment in Lagrange where the mascot is panthers?
CREATE TABLE table_name_48 (enrollment INTEGER, location VARCHAR, mascot VARCHAR)
SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)"
What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?
CREATE TABLE table_10602294_1 (pressure VARCHAR, deaths VARCHAR)
SELECT MAX(week) FROM table_24951872_2 WHERE attendance = 10738
What was the maximum week that had attendance of 10738?
CREATE TABLE table_24951872_2 (week INTEGER, attendance VARCHAR)
SELECT MIN(roll) FROM table_name_97 WHERE authority = "state" AND name = "newfield park school" AND decile < 2
What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?
CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR)
SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste"
Who wrote the episode directed by Peter Woeste?
CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE name = "anglia tv trophy"
How many rounds had a race name of anglia tv trophy?
CREATE TABLE table_name_25 (round VARCHAR, name VARCHAR)
SELECT assists FROM table_17309500_1 WHERE games = 157
Name the assists for 157 games
CREATE TABLE table_17309500_1 (assists VARCHAR, games VARCHAR)
SELECT AVG(field_goals) FROM table_name_80 WHERE extra_points > 0 AND touchdowns > 5
What is the average field goal someone has when they have 0 extra points but more than 5 touch downs?
CREATE TABLE table_name_80 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR)
SELECT COUNT(round) FROM table_1061075_1 WHERE opponents = "Haugar"
what is the total number of round where opponents is haugar
CREATE TABLE table_1061075_1 (round VARCHAR, opponents VARCHAR)
SELECT surface FROM table_name_82 WHERE date = "november 6, 1982"
What surface was the match on November 6, 1982 played on?
CREATE TABLE table_name_82 (surface VARCHAR, date VARCHAR)
SELECT MIN(grid) FROM table_name_64 WHERE laps < 24 AND time = "retirement"
Which Grid has Laps smaller than 24, and a Time of retirement?
CREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR, time VARCHAR)
SELECT ship_type FROM table_name_93 WHERE tonnage = "225"
With a tonnage of 225 what is the ship type?
CREATE TABLE table_name_93 (ship_type VARCHAR, tonnage VARCHAR)
SELECT competition FROM table_name_23 WHERE date = "11 feb 1990"
On 11 Feb 1990, the competition is listed as what?
CREATE TABLE table_name_23 (competition VARCHAR, date VARCHAR)
SELECT rider FROM table_name_14 WHERE time = "+1:08.291"
What Rider had a Time of +1:08.291?
CREATE TABLE table_name_14 (rider VARCHAR, time VARCHAR)
SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id
How many coaches does each club has? List the club id, name and the number of coaches.
CREATE TABLE club (club_id VARCHAR, club_name VARCHAR); CREATE TABLE coach (club_id VARCHAR)
SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-21"
What was the date of the game played at Gillette Stadium with a score of 40-21?
CREATE TABLE table_name_97 (date VARCHAR, location VARCHAR, result VARCHAR)
SELECT city___state FROM table_name_56 WHERE series = "atcc round 3"
What is the City / State, when Series is ATCC Round 3?
CREATE TABLE table_name_56 (city___state VARCHAR, series VARCHAR)
SELECT artist FROM table_name_7 WHERE draw = 6
Which Artist has a Draw of 6?
CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR)
SELECT surface FROM table_name_82 WHERE score = "w/o"
On which surface was the score w/o?
CREATE TABLE table_name_82 (surface VARCHAR, score VARCHAR)
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016
How many churches have a wedding in year 2016?
CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)
SELECT SUM(average) FROM table_name_99 WHERE interview > 9.57 AND swimsuit > 9.65
Name the sum of average for interview more than 9.57 and swimsuit more than 9.65
CREATE TABLE table_name_99 (average INTEGER, interview VARCHAR, swimsuit VARCHAR)
SELECT MIN(matches) FROM table_28846752_9 WHERE bbi = "3/27"
What the number of matches when the BBI is 3/27?
CREATE TABLE table_28846752_9 (matches INTEGER, bbi VARCHAR)
SELECT session FROM table_name_96 WHERE discipline = "open wheel"
Which session had a discipline of open wheel?
CREATE TABLE table_name_96 (session VARCHAR, discipline VARCHAR)
SELECT number_of_households FROM table_name_73 WHERE median_family_income = "$58,491"
What Number of households have a Median family income of $58,491?
CREATE TABLE table_name_73 (number_of_households VARCHAR, median_family_income VARCHAR)
SELECT opponents FROM table_name_23 WHERE year = "1998–99" AND team = "aston villa"
Which Opponents have a Year of 1998–99, and a Team of aston villa?
CREATE TABLE table_name_23 (opponents VARCHAR, year VARCHAR, team VARCHAR)
SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue"
What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue?
CREATE TABLE table_name_6 (floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR)
SELECT horse FROM table_24915874_1 WHERE jockey = "Peter Wells"
Who was the horse when the jockey was Peter Wells?
CREATE TABLE table_24915874_1 (horse VARCHAR, jockey VARCHAR)
SELECT high_rebounds FROM table_27734286_1 WHERE location_attendance = "Honda Center 15,625"
Who in the high rebounds is in the honda center 15,625 location attendance?
CREATE TABLE table_27734286_1 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "north melbourne"
What is the crowd size of the match featuring North Melbourne as the away team?
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(engine_capacity) FROM table_name_25 WHERE manufacturer = "bmw" AND mpg_uk_extra_urban = 52.3 AND co_2_g_km = 176 AND mpg_us_urban > 27.3
What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3?
CREATE TABLE table_name_25 (engine_capacity INTEGER, mpg_us_urban VARCHAR, co_2_g_km VARCHAR, manufacturer VARCHAR, mpg_uk_extra_urban VARCHAR)
SELECT COUNT(laps) FROM table_name_63 WHERE driver = "tom bridger"
What are the total number of laps for Tom Bridger?
CREATE TABLE table_name_63 (laps VARCHAR, driver VARCHAR)
SELECT start FROM table_name_40 WHERE category = "2" AND year = 1947
Name the start of an event in Catagory 2 of the year 1947.
CREATE TABLE table_name_40 (start VARCHAR, category VARCHAR, year VARCHAR)
SELECT street_address FROM table_name_94 WHERE name = "life & casualty tower"
What is the address of the Life & Casualty Tower?
CREATE TABLE table_name_94 (street_address VARCHAR, name VARCHAR)
SELECT MAX(area_code), MIN(area_code) FROM area_code_state
What are the maximum and minimum values of area codes?
CREATE TABLE area_code_state (area_code INTEGER)
SELECT package_option FROM table_name_99 WHERE television_service = "sky wwe 24/7"
Which package/option has sky wwe 24/7 television service?
CREATE TABLE table_name_99 (package_option VARCHAR, television_service VARCHAR)
SELECT venue FROM table_name_22 WHERE bronze = "finland" AND silver = "united states"
Where was the tournament where Finland received the bronze and the United States received the silver?
CREATE TABLE table_name_22 (venue VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT home_venue FROM table_name_63 WHERE state = "goa" AND city = "salcette"
Which team plays in Goa, Salcette?
CREATE TABLE table_name_63 (home_venue VARCHAR, state VARCHAR, city VARCHAR)
SELECT venue FROM table_name_50 WHERE result = "3-2"
What was the venue when the result was 3-2?
CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR)