Patrick Bailey hit a tiebreaking three-run double in the fifth inning, fellow rookie Casey Schmitt hit his first homer since in 3 1/2 months, and the San Francisco Giants beat the Atlanta Braves 8-5 Sunday to avoid a three-game sweep. The Giants won for just the sixth time in their last 20 games to slow a slide that has dropped them out of a wild card position after they once held the top spot. Atlanta's Marcell Ozuna hit his 29th home run to break a tie with Ronald Acuña Jr. for second-most on the team behind Matt Olson (30).