Query to find total by accounts in AR receivables