Western Australia 265 and 2 for 170 (Wells 85*, Voges 51*) require 57 to win against Queensland 353 and 138 (Khawaja 61, Mackin 6-33)
Scorecard
Queensland lost their advantage of a first innings lead after Simon Mackin's six wickets - his best first-class bowling figures - saw them fold for 138 and set Western Australia a target of 227 to chase. In reply, Western Australia put on 2 for 170 before stumps, putting them 57 runs away from a come-from-behind victory.
Mackin combined with David Moody (2-16) and Hilton Cartwright (2-38) to dismiss Queensland within 41 overs of the day that they had begun on 0 for 3. Openers Matt Renshaw and Joe Burns were both out within the day's first five overs as Queensland fell to 3 for 34 before a 60-run partnership between Usman Khawaja - who scored 157 in the first innings - and Sam Heazlett (29) took them to 94. Queensland then lost their last seven wickets for 44 runs as Mackin tore through the middle and lower order to dismiss them for 138.
Chasing 227, Western Australia started strong with opener Cameron Bancroft (23) putting on 58 runs for the first wicket with Jonathan Wells. Bancroft fell in the 21st over and followed by Michael Klinger in the 22nd. But Wells scored an unbeaten 85, and combined with the returning Adam Voges (51*) to add 111 runs in an unbroken stand that took Western Australia close to an improbable victory.