SAN FRANCISCO (AP) - Brandon Crawford drove in three runs and came within a triple of hitting for the cycle, Jeff Samardzija overcame a shaky first inning to win and the San Francisco Giants beat the Arizona Diamondbacks 6-2 on Friday night.
Brandon Belt walked four times and scored for the Giants after earlier in the day being voted by fans to fill the final spot on the NL roster for next week's All-Star Game.
Crawford homered, singled, walked and doubled. He hit his ninth home run of the season off Diamondbacks starter Patrick Corbin (4-7) in the second, four pitches after Corbin twice threw inside to Buster Posey leading to the ejection of Giants manager Bruce Bochy.
Diamondbacks manager Chip Hale was ejected in the fifth.
Jean Segura homered leading off the game for Arizona.
Samardzija (9-5) walked three and struck out six in 6 1/3 innings to win for the first time in four starts.