Western Australia have survived a belief-defying seven-wicket haul from Alister McDermott to complete a jittery 68-run chase and claim a one-wicket outright victory in an absolute thriller at the Gabba.
After the Warriors took six wickets for 49 runs to have the hosts all out for 175 in the morning session, they were put through a torture chamber by young quick McDermott, who ran through the batsmen and into the tail, finishing with phenomenal figures of 7-24.
Extraordinarily, 20-year-old McDermott would have had the visitors at eight down and needing five more for victory, but first slip Ryan Broad grassed the simplest of chances when Nathan Coulter-Nile guided one in to his hands in the 19th over.
Ben Cutting came in looking to save the day, removing Coulter-Nile with the second ball of the next over and then putting himself on a hat-trick when he knocked over Michael Beer for a golden duck.
But at nine-down needing four to win, No.11 Michael Hogan came and chanced his arm, taking the remaining four runs with a skyed edged that fell wide of third man and a confident drive for two to seal the result.
McDermott had three wickets in his first four overs, surpassing his previous-best first-class figures of 3-36, and the son of the Australian bowling coach kept powering on, sending the contest into seriously tense territory.
The win takes the Warriors to 26-competition points, four shy of ladder-leaders Queensland, with two rounds remaining.
The Bulls won the toss, but from that point until the final day, it was all Western Australia.
Queensland had just two individual contributions of more than 50 in their two innings of 251 and 175, and their highest partnership of the match was 53.
Pitted against his former team-mates, Warriors recruit Nathan Rimmington was the not out batsmen on 16, and bowled brilliantly throughout, setting career-best first-class figures of 3-63 in the first innings before bettering the mark with 3-28 in the second.
Test incumbent Shaun Marsh was top-scorer for the Warriors with 79 in the first innings, helping set up the match-winning 359-run total, along with openers Liam Davis (68) and Wes Robinson (42).
Following Queensland's fourth-morning capitulation, Davis came out with a clear approach to the small chase, but after creaming the first ball of the innings through square-leg for four, he was done by a pearler from McDermott that decked away and caught the edge high on the blade.
Robinson's contribution was an exact mimicry of Davis'.
He smoked the first ball of McDermott's second over for four, before sparring at the fifth to give Chris Hartley his second catch inside three overs.
McDermott kept up the onslaught, trapping Marcus North in front in his fourth over, reducing the visitors to 3-23 and no doubt sending some jitters through the visiting camp.
Joe Burns had the chance to push the pressure further, but he couldn't hold a tough chance at point after Luke Feldman drew an uncontrolled cut from Adam Voges.
Feldman showed him how it was done shortly after, sticking out the left hand to a full-blooded pull from Shaun Marsh and holding onto an absolute screamer, improving McDermott's figures to 4-20.
Mitchell Marsh holed out to Wade Townsend at square-leg and then Luke Ronchi came in and edged behind to Ronchi, with McDermott - of course - the wicket-taker on both occasions.
A thick edge from Rimmington flew just over the cordon and down to the boundary, taking Western Australia to within 20 of victory.
McDermott kept it flowing, and in his ninth over he in Adam Voges, staying in the corridor and procuring an edge through to Andrew Robinson at second slip.
Despite another wicket for the flame-nut, and two in two balls for Cutting, there just weren't enough runs on the board for Queensland to defend.