select distinct ct.contragent.id, ct.contragent.personalAccount, ct.contragent.name, ct.contragent.registrationAddress, ct.contragent.actualAddress, ct.contragent.contactPersonEmail, ct.contragent.contactPersonPhone from rtneo$Contract ct where ct.id in (select cast(cq.entityId UUID) from rtneo$ChangeQuery cq where cq.stepName = 'Отложенные договора')