select * from acs_rel_types where rel_type = lower(:segment_name) || '_rel'