It comes from a Kanye West song, a rap that goes, "Clique, clique, clique, clique ..."

Hunter Pence knows the song. He hears it in the clubhouse. Before Pablo Sandoval batted in the ninth inning at Chase Field on Tuesday night with the Giants down 1-0, Pence approached Sandoval and said, "Feel that clique, clique, that good feeling."

"He just nodded and started singing the song - 'clique, clique, clique' - and he did it," Pence said. "He got into a zone and made it happen."

The sound off Sandoval's bat was more "kaboom" than "click." With Angel Pagan on second base and one out, J.J. Putz hung a splitter and Sandoval destroyed it, sending the ball soaring over the swimming pool in right-center field for a two-run homer that stood for a 2-1 victory against the Diamondbacks.

What a fitting end to a 15-12 April for the Giants, who seemed to come back in every game they trailed. With their heralded rotation oddly serving as a weak link, they trailed a lot.

They came back twice against Arizona in San Francisco last week with ninth-inning homers only to lose in extra innings. Sergio Romo made sure Tuesday's game ended after nine, buzzing through Arizona's three-through-five hitters for his 10th save.

"We lost some tough ones where we got some big hits, some big home runs in the losing streak, but we couldn't finish it off," manager Bruce Bochy said. "Tonight went our way. It took a big hit to win it, and that's what we got. It's good to get one like that."

Nobody should be surprised who did the getting.

Sandoval had two more hits and has 11 in his past 17 at-bats. That elbow discomfort that forced him out of Monday night's game was gone by the time he left the clubhouse. There was no doubt he would play Tuesday.

He had gone 37 at-bats without a homer, though, and had to calm himself at the plate, especially after Putz hung a splitter on the first pitch. Sandoval lurched and fouled it off. The next time, he stayed back and secured a series victory for the Giants in the wake of a five-game losing streak.

Pence might not have heard it, but Sandoval said he told the right fielder, "I'm going to clique one."

A called shot?

"Pretty much," said Sandoval, who flipped his bat high toward the Giants' dugout in celebration.