with claimPending as ( select c.* from tbl_TPM_Claims c with (nolock) where c.ownerId = and c.ownerType = and c.claimStatus = 'PENDING' ) #forJSON( 'claimPending', attributes.datastore, 'claimId' )#