insert into impersonator (
    impersonator_id
    , target_id
    , credential_id
    , created_at
) values (
  (select identity_id from identity where identity_public_id = $1)
  , (select identity_id from identity where identity_public_id = $2)
  , (select credential_id from credential where credential_public_id = $3)
  , $4
);
