<Tr> <Th> General Manager </Th> <Td> Bobby Evans </Td> </Tr> <Tr> <Th> President of Baseball Operations </Th> <Td> Brian Sabean </Td> </Tr> <P> The San Francisco Giants are an American professional baseball franchise based in San Francisco, California . Founded in 1883 as the New York Gothams, and renamed three years later to the New York Giants, the team eventually moved to San Francisco in 1958 . The Giants compete in Major League Baseball (MLB) as a member club of the National League (NL) West division . </P> <P> As one of the longest - established and most successful professional baseball teams, the franchise has won the most games of any team in the history of American baseball . The team was the first major league team based in New York City, most memorably playing at the legendary Polo Grounds . They have won 23 NL pennants and have played in 20 World Series competitions--both NL records . The Giants' eight World Series championships rank second in the National League and are tied for fourth overall (New York Yankees are first with 27, then the St. Louis Cardinals (the National League record - holders) with 11, the Oakland Athletics with 9, and the Boston Red Sox also with 8). The Giants have played in the World Series 20 times--14 times in New York, six in San Francisco--but boycotted the event in 1904 . </P>

When did the sf giants leave new york