Brad Penner-USA TODAY Sports

LaMonte Wade Jr. and Thairo Estrada delivered RBI singles on hits that did not leave the infield in the sixth inning Saturday as the visiting San Francisco Giants recorded a 7-5 victory over the New York Yankees.

Joc Pederson hit a solo homer and Brandon Crawford hit a two-run shot off New York's Clarke Schmidt in the fourth as the Giants rallied from an early two-run deficit before loading the bases against Michael King in the sixth.

In his first appearance since fracturing his right elbow July 22, King loaded the bases by plunking rookie Blake Sabol. After striking out Roberto Perez, Wade Jr. hit a soft single to the third base side of the mound, and David Villar scored the tie-breaking run when King and catcher Jose Trevino converged and did not make a throw.

King then struck out Michael Conforto, but Estrada hit a soft liner to shortstop Anthony Volpe, who charged in, but the ball caromed off the front of his glove and he was unable to get the force at second in time as Crawford scored.

The Giants' Mike Yastrzemski added an insurance RBI double in the ninth, and Crawford hit a run-scoring single off Clay Holmes.

Giancarlo Stanton accounted for New York's first two runs. He reached on a throwing error by San Francisco starter Alex Cobb in the first, allowing Aaron Judge to score, and Stanton homered in the third.

Anthony Rizzo hit a tying double off Jakob Junis in the fifth. Junis then stranded two to end the inning by retiring Stanton, Josh Donaldson and Gleyber Torres. Donaldson hit a solo homer with one out in the eighth off Taylor Rogers.

Camilo Doval loaded the bases in the ninth before getting his first save.

Neither starting pitcher lasted beyond the fourth.

Schmidt allowed three runs on five hits in 3 1/3 innings while Cobb allowed two runs (one earned) on four hits in 3 2/3 innings.

After Judge scored on Cobb's throwing error in the first, Stanton sent a 2-0 sinker to right field in his next at-bat.

The Giants took a 3-2 lead in the fourth when Pederson ended a 10-pitch at-bat by homering to right-center field and Crawford hit a 3-0 cutter to right two batters after Yastrzemski had doubled.

New York opened the fifth with three hits in a row and tied the score on Rizzo's double but could not score again in the inning.

More must-reads:

TODAY'S BEST
Yankees icon respects Juan Soto holding out for free agency
Kyrie Irving praises Karl-Anthony Towns for overcoming 'unfair criticism' in Game 4
Cardinals star addresses struggles: 'I don't know what the answers are'
Manchester United star taking break from social media after challenging season
Jets HC explains how former Pro Bowl RB could help team
What Anthony Edwards told Cowboys star after Game 4 win
Bronny James' agent provides huge update on client's future
Report: Lincoln Riley tried to get USC out of facing one opponent
Watch: Stephen Curry analyzes Patrick Mahomes' high school basketball film
Anthony Edwards channeled inner Michael Jordan after Game 4
Anthony Edwards backs up talk to keep Timberwolves alive in WCF
Championship-winning NASCAR team to shut down after 2024 season
Three takeaways as Panthers tie Eastern Conference Final vs. Rangers
Texans sign young offensive star to huge contract extension
Aaron Boone comes to the defense of retired umpire Angel Hernandez
Negro League legend finally getting his due as MLB merges stats
Several key players withdraw from NBA Draft
Tyrese Haliburton ready to take active role in retaining Pascal Siakam
Mets stars reportedly had emotional reaction to firing of Buck Showalter
NHL announces 2024 King Clancy Memorial Trophy winner