WASHINGTON (AP) -- The Washington Nationals' winning streak ended at a team record-tying 10 games as San Francisco rookie Joe Panik hit his first major league home run and sent the Giants to a 10-3 romp on Friday night.
Panik went 4 for 5 in his first four-hit game, highlighted by his three-run shot to center field.
Tim Hudson and four relievers quieted the bats of the Nationals. During its streak, Washington had seven one-run victories, five come-from-behind wins, and five walk-offs.
Hudson (9-9) allowed one earned run over 5 1-3 innings for his first win since July 19. Javier Lopez, Jean Machi, Sergio Romo and Juan Gutierrez finished for the Giants, who have won six of eight.
Doug Fister (12-4) threw six innings and uncharacteristically gave up a pair of homers -- Nos. 12 and 13 this season.
YANKEES 4, WHITE SOX 3
NEW YORK (AP) -- Martin Prado hit an RBI single with two outs in the ninth inning, lifting the New York Yankees over the Chicago White Sox.
Facing a full-count pitch from Daniel Webb (5-4) with the bases loaded, Prado lined a hit up the middle to complete the Yankees' comeback from three runs for their fourth win in 11 games.
Prado hit a two-run homer in the third, and Jacoby Ellsbury had an RBI double in the fifth off John Danks after Chicago's Jose Abreu connected for a three-run shot in the first against Shane Greene.
David Robertson (2-4) struck out two in a perfect ninth. Chicago (59-69) fell a season-high 10 games under .500.
Abreu hit his 33rd homer in the first at-bat of his career at Yankee Stadium.
Two innings later, Danks gave up Prado's long ball, his AL-leading 24th homer given up. The right-hander allowed three runs, upping his total to a league-high 87, in five-plus innings.
CUBS 4, ORIOLES 1
CHICAGO (AP) -- Jake Arrieta shut down his former team, holding Baltimore to four hits in seven innings, and Javier Baez homered again as the Chicago Cubs beat the Orioles .
Baez hit his sixth homer in his 18th game since getting called up from Triple-A, Luis Valbuena also homered, and Logan Watkins and Arismendy Alcantara each drove in runs with singles as the Cubs snapped AL East leading Baltimore's four-game winning streak.
The Orioles traded Arrieta to Chicago with reliever Pedro Strop in a multiplayer deal last season.
Baltimore's Nelson Cruz hit his major league-leading 34th homer, a solo shot off Arrieta (7-4) in the seventh.
Baltimore's Kevin Gausman (7-5) allowed three runs on six hits through five innings, He struck out seven.
Hector Rondon pitched a perfect ninth for his 20th save.
RAYS 8, BLUE JAYS 0
TORONTO (AP) -- Drew Smyly pitched a two-hitter and retired his final 19 batters for the first complete game of his career, leading Tampa Bay over struggling Toronto.
Evan Longoria homered and drove in three runs, and Wil Myers also connected as the Rays began a stretch of 26 straight games against AL East opponents.
Smyly (8-10) allowed a leadoff single to Jose Reyes, who was erased on a double play. After Steve Tolleson's two-out single in the third, Smyly didn't permit another runner. He walked none and struck out four.
Smyly is 2-1 with a 1.55 ERA in four starts since being joining the Rays in the July 31 trade that sent David Price to Detroit.
Marcus Stroman (7-5) was hit hard as the Blue Jays fell to an AL-worst 5-13 in August.
PHILLIES 5, CARDINALS 4
PHILADELPHIA (AP) -- Ryan Howard drove in a pair of runs, and Kyle Kendrick overcame a rocky first inning to lead Philadelphia over St. Louis.
Ben Revere, who entered the day second in the National League in hitting, went 3 for 4 to raise his average to .315. Chase Utley and Marlon Byrd also drove in runs for Philadelphia, which won its third in four games.
Matt Adams homered and Matt Holliday drove in two runs for the Cardinals, who lost for the second time in nine games.
Kendrick (6-11) increased his first-inning ERA to 9.69 this season by allowing three runs. He left after giving up four runs overall and eight hits in 6 1-3 innings.
Adam Wainwright (15-8) failed in his bid to become the first 16-game winner in the big leagues. He allowed five runs, four earned, and six hits in six innings. Wainwright is 2-3 with a 6.49 ERA in five starts this month.
ASTROS 5, INDIANS 1
CLEVELAND (AP) -- Jon Singleton hit a three-run homer in the ninth inning, and Houston took advantage of sloppy defense to beat Cleveland.
Singleton's home run off Cody Allen (4-3) capped the four-run inning that began with two errors by the worst defensive team in the majors.
Catcher Roberto Perez's throwing error allowed the go-ahead run to score in a rally that started with a throwing error by first baseman Carlos Santana.
Tony Sipp (4-2) pitched the eighth inning in which the Indians had two runners thrown out on the bases.
Houston, which has won four of five, snapped a six-game losing streak to the Indians in which the Astros were outscored 41-15.
MARINERS 5, RED SOX 3
BOSTON (AP) -- Austin Jackson's bases-loaded double with two outs in the ninth inning keyed a five-run rally, and Seattle sent Boston to its sixth straight loss.
Red Sox closer Koji Uehara (5-4) held a 3-0 lead with two outs and a runner on first before the Mariners broke loose. Seattle ended a nine-game losing streak at Fenway Park.
The Mariners had managed only two hits through the first eight innings.
Dominic Leone (6-2) pitched one inning of relief for the victory and Fernando Rodney got his 37th save.
A night after being held to one hit in a 2-0 loss to the Angels, the Red Sox chased Seattle ace Felix Hernandez in the sixth inning after Yoenis Cespedes' three-run homer.
Hernandez struck out seven over 5 2-3 innings and gave up five hits, including two in the costly sixth inning.
ROYALS 5, RANGERS 3
ARLINGTON, Texas (AP) -- Rookie right-hander Yordano Ventura struck out six in six innings for his 10th victory, and Billy Butler and Josh Willingham had inning-starting homers in AL Central-leading Kansas City's win over Texas.
The hard-throwing Ventura (10-9) allowed one run, four hits, and three walks.
Greg Holland worked a scoreless ninth for his MLB-leading 40th save in 42 opportunities after Wade Davis retired all three batters he faces to extend the majors' longest active scoreless streak to 22 2-3 innings.
Lorenzo Cain shook off a 2-for-14 slump with three hits for Kansas City, which won for the 23rd time in 29 games.
Butler led off the second with his eighth homer, tying the game at 1-all. Cain and Alcides Escobar, the bottom two batters in the Royals lineup, had consecutive RBI singles in that inning against Colby Lewis (8-11) to put Kansas City ahead to stay.
PIRATES 8, BREWERS 3
MILWAUKEE (AP) -- Josh Harrison homered and drove in a career-high five runs, leading Pittsburgh past Milwaukee.
Andrew McCutchen also homered for Pittsburgh, which had lost nine of 12 going into the series against the NL Central-leading Brewers.
Jeff Locke (5-3) pitched six strong innings, giving up two runs and two hits. He walked six, but stranded five runners.
Yovani Gallardo (8-7) lasted just five innings, allowing six runs on eight hits and three walks.
Ryan Braun's two-run homer in the first inning gave Milwaukee a 2-0 lead. It was his 16th home run of the season, but just his second since July 22 as he has been slowed by a sore thumb.
BRAVES 3, REDS 1, 12 innings
CINCINNATI (AP) -- Justin Upton hit a two-run homer in the 12th inning, rallying Atlanta over Cincinnati after Braves left-hander Mike Minor came up four outs short of a no-hitter.
Upton's 25th homer off Manny Parra (0-1) gave Atlanta its seventh victory in eight games.
David Hale (4-4) pitched out of a two-on threat in the 11th. Craig Kimbrel got the last three outs for his 38th save in 42 chances.
The Reds managed only two hits -- a pair of singles by Billy Hamilton -- in their seventh consecutive loss.
PADRES 5, DIAMONDBACKS 1
PHOENIX (AP) -- Josh Collmenter came two outs away from a complete game, holding San Diego without an earned run on four hits over 8 1-3 innings in Arizona's win.
The Diamondbacks snapped a six-game losing streak.
Collmenter (9-7) also tied his career high for strikeouts with eight and didn't walk a batter.
Arizona scored three first-inning runs -- two on Miguel Montero's home run -- and added another in the second inning on a two-out error by Padres second baseman Jedd Gyorko.
Odrisamer Despaigne (3-5) settled down after a rough start, but took the loss after going five innings and allowing three earned runs and five hits.
TWINS 20, TIGERS 6
MINNEAPOLIS (AP) -- Eduardo Escobar had a career-high five hits, including a homer and a triple, and Minnesota batted around twice in a rout of Detroit.
The 20 runs are the most by a team in a major league game this season.
Danny Santana had a homer and four RBIs, and Oswaldo Arcia and Trevor Plouffe also homered for the Twins, who scored six runs in the second inning and nine in the sixth to drop the Tigers to 2? games behind Kansas City in the AL Central race.
Robbie Ray (1-4) lasted just 1 1-3 innings, giving up six runs and six hits. Ian Kinsler led off the game with a homer for Detroit, but the team with the vaunted starting pitching staff was reduced to using infielder Andrew Romine on the mound in the eighth inning. Arcia and Plouffe homered off Romine.
MARLINS 13, ROCKIES 5
DENVER (AP) -- Marcell Ozuna hit a grand slam for his third homer in three games, Giancarlo Stanton had three hits and three RBIs, and Miami beat Colorado.
Henderson Alvarez (10-5) withstood a pair of homers over six innings to win his fourth consecutive decision. He was making his second start since returning last week from a stint on the disabled list because of right shoulder inflammation.
Alvarez struck out five, walked none and gave up 10 hits, including two-run homers by Justin Morneau and Corey Dickerson but fought back to keep the Rockies' lineup largely in check.
The Marlins helped Alvarez get through the rough spots by staking him to a 4-0 lead.
Franklin Morales (5-7) gave up a single to Christian Yelich and double to Jeff Baker to start the fifth before walking Stanton intentionally to load the bases. Casey McGehee then drove in a run by drawing a walk off Morales, who was relieved by Brooks Brown. After getting a forceout at the plate, Brown walked Jarrod Saltalamacchia to force in another run, and Miami pulled in front 6-2.
DODGERS 6, METS 2
LOS ANGELES (AP) -- Dan Haren overcame a leadoff homer by Curtis Granderson and a pair of failed sacrifice bunt attempts to help the Los Angeles Dodgers beat the error-prone New York Mets.
Haren (11-10) allowed a run and three hits in seven innings, striking out six and walking none. The victory was his third in four starts after going 0-5 with a 10.03 ERA in his previous five outings.
Jonathon Niese (7-9) allowed five runs -- two earned -- eight hits, and three walks in 6 2-3 innings. The unearned runs were the result of a throwing error by shortstop Wilmer Flores on a routine grounder by Adrian Gonzalez. It was one of four Mets errors, matching a season high, including two by Flores.
ATHLETICS 5, ANGELS 3
OAKLAND, Calif. (AP) -- Sonny Gray ended a monthlong losing streak, pitching into the ninth inning and leading Oakland over the Los Angeles Angels.
Coco Crisp hit his 15th career leadoff home run, and Stephen Vogt added a solo shot for Oakland in the opener of a three-game series. Sam Fuld hit a go-ahead triple in the sixth inning, and the A's pulled within one game of the AL West-leading Angels.
Mike Trout and Josh Hamilton homered for Los Angeles.
Gray (13-7) allowed three runs and six hits over 8 1-3 innings. Sean Doolittle recorded the final two outs for his 19th save, fanning pinch-hitter Chris Iannetta with the bases loaded to end it.
Reliever Jason Grilli (1-2) gave up Fuld's key hit.