The San Francisco Giants managed to stay ahead of the New York Mets, 3 to 2, on July 18.