text: A member of the Democratic Party , Pelosi has represented the 8th Congressional District of California , which consists of four-fifths of the City and County of San Francisco , since 1987 .
simplified: She represents the 8th district of California , which is part of the city of San Francisco . She was first elected to Congress in 1987 .