CHICAGO (AP) — Sonny Gray pitched four-hit ball over seven innings, Adam Rosales and Matt Joyce hit back-to-back homers in the ninth and the Oakland A’s rallied to beat the Chicago White Sox 5-3 on Sunday.

Gray (3-3) picked up his first win since May 24. Rosales and Joyce broke it open with their drives against David Robertson and Chris Beck to start the ninth, and Oakland completed the three-game sweep after getting dominated by Derek Holland.

READ MORE: Early Season Red Flag Warning Sends Residents Scrambling To Protect Homes

The White Sox were sailing along with a 2-0 lead after Adam Engel hit his first career homer and Jose Abreu doubled and scored.

READ MORE: One Dead, Two Wounded In San Jose Shooting

Oakland pulled within one on pinch-hitter Jed Lowrie’s RBI double in the seventh. The Athletics went ahead in the eighth on RBI singles by Khris Davis and Yonder Alonso against Tommy Kahnle (0-2) and Robertson.

Santiago Casilla gave up a leadoff homer to Melky Cabrera in the ninth but earned his 13th save in 16 chances.

MORE NEWS: COVID: San Francisco Businesses Thriving Again Under New Yellow Tier Freedoms

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed