San Francisco Giants defeat Boston Red Sox, 6-4