Question: When were the subways built in the city where "Sex and the City" takes place?

full_context: Document 1: Sex and the City: Set and filmed in New York City and based on Candace Bushnell's 1997 book of the same name, the show follows the lives of a group of four women -- three in their mid-thirties and one in her forties -- who, despite their different natures and ever - changing sex lives, remain inseparable and confide in each other. Starring Sarah Jessica Parker (as Carrie Bradshaw), Kim Cattrall (as Samantha Jones), Kristin Davis (as Charlotte York), and Cynthia Nixon (as Miranda Hobbes), the quirky series had multiple continuing storylines that tackled relevant and modern social issues such as sexuality, safe sex, promiscuity, and femininity, while exploring the difference between friendships and romantic relationships. The deliberate omission of the better part of the early lives of the four women was the writers' way of exploring social life -- from sex to relationships -- through each of their four very different, individual perspectives.
Document 2: Sex and the City: The series still airs in syndication worldwide. It spawned two feature films, Sex and the City (2008) and Sex and the City 2 (2010), and a prequel television series commissioned by The CW, The Carrie Diaries (2013 -- 2014).
Document 3: Friends: Friends is an American television sitcom, created by David Crane and Marta Kauffman, which aired on NBC from September 22, 1994, to May 6, 2004, lasting ten seasons. With an ensemble cast starring Jennifer Aniston, Courteney Cox, Lisa Kudrow, Matt LeBlanc, Matthew Perry and David Schwimmer, the show revolves around six friends in their 20s and 30s who live in Manhattan, New York City. The series was produced by Bright/Kauffman/Crane Productions, in association with Warner Bros. Television. The original executive producers were Kevin S. Bright, Kauffman, and Crane.
Document 4: London Underground: The Underground has its origins in the Metropolitan Railway, the world's first underground railway. Opened in 1863, it is now part of the Circle, Hammersmith & City and Metropolitan lines; the first line to operate underground electric traction trains, the City & South London Railway in 1890, is now part of the Northern line. The network has expanded to 11 lines, and in 2016 -- 17 carried 1.379 billion passengers, making it the world's 11th busiest metro system. The 11 lines collectively handle approximately 4.8 million passengers a day.
Document 5: New York City Subway: The New York City Subway is a rapid transit system owned by the City of New York and leased to the New York City Transit Authority, a subsidiary agency of the state - run Metropolitan Transportation Authority (MTA). Opened in 1904, the New York City Subway is one of the world's oldest public transit systems, one of the world's most used metro systems, and the metro system with the most stations. It offers service 24 hours per day on every day of the year.
Document 6: List of metro systems: This list of metro systems includes electrified rapid transit train systems worldwide. In some cases, metro systems are referred to as subways, U-Bahns or undergrounds. As of October 2014, 157 cities in 55 countries around the world host the approximately 160 metro systems that are listed here. The London Underground first opened as an ``underground railway ''in 1863 and its first electrified underground line opened in 1890, making it the world's first metro system. The metro system with the longest route length is the Shanghai Metro; the busiest one is the Beijing Subway; and the one with the most stations is the New York City Subway.
Document 7: Sex and the City (film): The film was prominently shot in New York between September -- December 2007. The locations included a number of places around Manhattan and a certain portion was shot in Steiner Studios and Silvercup Studios. The shooting was continually interrupted by paparazzi and onlookers with the security and police authorities employed in order to control the crowd. Efforts were taken to keep the film's plot secret, including the shooting of multiple endings. As a defense strategy, scenes shot in public or in presence of number of extras were termed by Ryan Jonathan Healy and the main cast as ``dream sequences. ''
Document 8: History of the New York City Subway: The first underground line opened on October 27, 1904, almost 35 years after the opening of the first elevated line in New York City, which became the IRT Ninth Avenue Line. By the time the first subway opened, the lines had been consolidated into two privately owned systems, the Brooklyn Rapid Transit Company (BRT, later Brooklyn -- Manhattan Transit Corporation, BMT) and the Interborough Rapid Transit Company (IRT). Many present lines were built under the Dual Contracts, and after 1913, all lines built for the IRT and most other lines built or improved for the BRT were built by the city and leased to the companies. The first line of the city - owned and operated Independent Subway System (IND) opened in 1932; this system was intended to compete with the private systems and allow some of the elevated railways to be torn down, but kept within the core of the City due to the low amount of startup capital provided to the municipal Board of Transportation, the later MTA, by the state. This required it to be run ``at cost '', necessitating fares up to double the five - cent fare popular at the time.
Document 9: Will & Grace: "Will & Grace" is set in New York City and focuses on the relationship between Will Truman, a gay lawyer, and his best friend Grace Adler, a Jewish woman who owns an interior design firm. Also featured are their friends Karen Walker, an alcoholic socialite, and Jack McFarland, a flamboyantly gay actor. The interplay of relationships features the trials and tribulations of dating, marriage, divorce, and casual sex; as well as comical key stereotypes of gay and Jewish culture.
Document 10: New York City Subway: The New York City Subway is a rapid transit system owned by the City of New York and leased to the New York City Transit Authority, a subsidiary agency of the state - run Metropolitan Transportation Authority (MTA). Opened in 1904, the New York City Subway is one of the world's oldest public transit systems, one of the world's most used metro systems, and the metro system with the most stations. It offers service 24 hours per day on every day of the year, though some routes may operate only part - time.
Document 11: New York City: In 1898, the modern City of New York was formed with the consolidation of Brooklyn (until then a separate city), the County of New York (which then included parts of the Bronx), the County of Richmond, and the western portion of the County of Queens. The opening of the subway in 1904, first built as separate private systems, helped bind the new city together. Throughout the first half of the 20th century, the city became a world center for industry, commerce, and communication.
Document 12: Sex and the City: Set and filmed in New York City and based on the 1997 book of the same name by Candace Bushnell, the show follows the lives of a group of four women -- three in their mid-thirties and one in her forties -- who, despite their different natures and ever - changing sex lives, remain inseparable and confide in each other. Starring Sarah Jessica Parker (as Carrie Bradshaw), Kim Cattrall (as Samantha Jones), Kristin Davis (as Charlotte York), and Cynthia Nixon (as Miranda Hobbes), the quirky series had multiple continuing storylines that tackled relevant and modern social issues such as sexuality, safe sex, promiscuity, and femininity, while exploring the difference between friendships and romantic relationships. The deliberate omission of the better part of the early lives of the four women was the writers' way of exploring social life -- from sex to relationships -- through each of their four very different, individual perspectives.
Document 13: Cashmere Mafia: "Cashmere Mafia" follows the lives of four ambitious women, longtime best friends since their days at business school, as they try to balance their glamorous and demanding careers with their complex personal lives by creating their own "boys' club" (The Cashmere Mafia) to protect one another and discuss their personal ups and downs as they try to have it all in New York City.
Document 14: New York City Subway: The Great Blizzard of 1888 helped demonstrate the benefits of an underground transportation system. A plan for the construction of the subway was approved in 1894, and construction began in 1900. The first underground line of the subway opened on October 27, 1904, almost 36 years after the opening of the first elevated line in New York City, which became the IRT Ninth Avenue Line. The fare was $0.05 and on the first day the trains carried over 150,000 passengers. The oldest structure still in use opened in 1885 as part of the BMT Lexington Avenue Line in Brooklyn and is now part of the BMT Jamaica Line. The oldest right - of - way, which is part of the BMT West End Line near Coney Island Creek, was in use in 1864 as a steam railroad called the Brooklyn, Bath and Coney Island Rail Road.
Document 15: Sex and the City: Season one of Sex and the City aired on HBO from June to August 1998. Season two was broadcast from June until October, 1999. Season three aired from June until October 2000. Season four was broadcast in two parts: from June until August 2001, and then in January and February 2002. Season five, truncated due to Parker's pregnancy, aired on HBO during the summer of 2002. The twenty episodes of the final season, season six, aired in two parts: from June until September 2003 and during January and February 2004.
ground_truth: October 27, 1904
sub_queries: where did they live in sex and the city Answer: New York City
when were the subways built in New York City Answer: October 27, 1904