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.