NYCCHKBK-3930 - updated query for total contract amount to not sum up the values across the same contract.