added the Sums query