Pablo Sandoval finished with five RBIs and the San Francisco Giants rode a 10-run inning to an 11-6 victory over Pittsburgh on Sunday, assuring the Pirates their record-tying 16th consecutive losing season.