SAN FRANCISCO (AP) — hit a tiebreaking single in the 10th inning, and the overcame becoming the first right-handed batter to homer into McCovey Cove with a 4-3 win over the on Sunday that finished a three-game sweep. Ramos hit a 394-foot, opposite-field drive into the water behind the right field stands in the ninth off (9-3), tying the score 2-2. There have been 167 by left-handed batters since the ballpark opened in 2000, including 104 by Giants hitters.

“It looks impossible just by looking at the wall and the weather here,” Ramos said, adding that the feat was “insane” to him. The 25-year-old said he was always aware that no right-handed hitter had a Splash Hit and wanted to be the first. “We lost, obviously, but it’s a special day because I did that,” Ramos said.

“It’s a good accomplishment for me.” (85-65) is in the top NL wild card position with two weeks to play, 1 1/2 games ahead of (83-66). “This team is on a mission.

We definitely want to get there," said , who had a pinch-homer in the eighth. San Francisco has lost four straight. With the score 2-2, Peralta drove in automatic runner with an opposite-field single to left leading off against (5-3).

Peralta took third on 's double and scored on 's groundout for a 4-2 lead. hit a sacrifice fly in the bottom half against Adrián Morejón, who retired on a groundout for his second save. The Padres improved to 9-1 in extra-inning games, the highest winning percentage in the big leagues.

Manager M.