D. Ross Cameron-USA TODAY Sports

Oakland scored three consecutive runs in the fourth inning without hitting the ball more than 20 feet on Saturday afternoon and rookie Zach Logue combined with five relievers on a five-hitter as the Athletics stunned the first-place Houston Astros 3-2.

Having already been beaten four straight times at home by the Astros this season, the A's trailed 2-0 when Sean Murphy led off the fourth with a single.

One out later, Elvis Andrus drew a walk from Houston starter Framber Valdez (8-4) and Stephen Piscotty followed with a single to load the bases.

Seth Brown then topped one 20 feet down the third-base line, prompting Astros catcher Martin Maldonado to leave the plate to retrieve it. But instead of going for a force out at any other base, Maldonado chose to attempt to tag Murphy, whose nifty slide eluded the out and produced Oakland's first run.

Within the next three pitches, a passed ball by Maldonado allowed Andrus to score the tying run and a wild pitch by Valdez sent Piscotty scampering home with what turned out to be the game-winner.

Standing in for injured Frankie Montas, Logue (3-4) responded to a minor league call-up earlier in the day to throw five innings of three-hit ball. He allowed two runs, walking one and striking out two.

A.J. Puk, Domingo Acevedo, Zach Jackson, Sam Moll and Lou Trivino combined to throw the final four innings, with Trivino earning his seventh save by retiring Aledmys Diaz on a pop fly and pinch-hitter J.J. Matijevic on a liner to center after Houston had put two aboard in the ninth with one out.

The Astros scored their runs in the second after Yuli Gurriel singled and Diaz doubled.

Chad McCormick's single opened the game's scoring, after which Diaz scored on Maldonado's grounder to first.

The double by Diaz was the only extra-base hit of the game for the Astros, who had built an 8-3 win in the series opener Friday around five doubles and two home runs.

Murphy finished with two hits for the A's, who improved to 3-2 on a six-game homestand that concludes Sunday. One of Murphy's hits was a double, Oakland's only extra-base hit of the game.

Valdez allowed three runs (two earned) and four hits over eight innings. He struck out three and walked two.

Gurriel had two singles for the Astros, who out-hit the A's 5-4.

More must-reads:

TODAY'S BEST
Ryan Blaney staves off challengers for dominant win at Iowa Corn 350
Watch: UFL championship marred by late on-field altercation between Stallions, Brahmas
Watch: Bryson DeChambeau pays tribute to the late Payne Stewart after winning U.S. Open
Bryson DeChambeau prevails in dramatic final round battle to win U.S. Open
Dodgers star will miss 'some time' with broken bone in left wrist
Former MLB journeyman dies at 61 years old
Rory McIlroy chokes away U.S. Open with pair of brutal missed putts
Pivotal Celtics center deemed questionable ahead of Game 5
Draymond Green weighs in on Klay Thompson's latest move
Tom Brady makes his broadcasting debut during UFL championship
Former top-five pick could follow the Dante Exum blueprint for NBA return
Yankees shelve top prospect once more due to injury concern
Sky forward Angel Reese rips officials following loss to Fever
Watch: Reds' Elly De La Cruz scores from second base on pickoff attempt
Dodgers' Dave Roberts confirms Yoshinobu Yamamoto is going on 15-day IL
Watch: Fighter jet flyover briefly interrupts Orioles at-bat
Rangers designate right-hander for assignment
Watch: Denmark's Christian Eriksen nets goal at Euro 2024 three years after suffering cardiac arrest
Giants place left-hander on 15-day IL with ankle sprain
Oilers crush Panthers in Game 4, stay alive in Stanley Cup Final