How the smart money bought oil and gas stocks in Q2