DENVER -- Pablo Sandoval tripled in the sixth inning to complete the first cycle of his career and the San Francisco Giants beat the Colorado Rockies 8-5 on Thursday night to keep their slim postseason hopes alive.