select address_public_id
       , type
       , value
       , created_at
from address
where (($1 is null) or (address_public_id = $1))
and (($2 is null) or (type = $2))
and (($3 is null) or (value = $3));
