SAN FRANCISCO — Jonathan Schoop hit a three-run homer in the ninth inning, and the Orioles overcame a six-run deficit to give the Giants another deflating loss, 8-7 Sunday.
Matt Wieters had a career-best five hits, including a triple, as Baltimore won its third in four games to complete a 5-5 road trip. The Orioles trail the Blue Jays by a half-game in the AL East.
Schoop homered off Santiago Casilla with two outs after Manny Machado singled and Mark Trumbo walked. Baltimore trailed 7-1 after six but got two runs each in the seventh and eighth innings.
The Giants led the NL West by 61/2 games at the All-Star break but have gone 9-18 since. They are now a game ahead of the Dodgers.
Trevor Brown had a two-run single that highlighted a four-run fifth inning for San Francisco. Angel Pagan extended his hitting streak to 12 games.
Giants outfielder Hunter Pence homered off Wade Miley in the fourth inning, his first since a nearly two-month stint on the disabled list that ended July 30. Pence's last homer was on May 18.