Jamie Whincup got his V8 Supercars title bid back on course by taking pole position for race two at Sandown.