The Sydney Thunder overcame their rivals at the SCG, thanks to three wickets from Sam Bates and a half-century from Heather Knight.