Rename target_contact sub-entity to contacts; store contacts sub-entity as an array
Support for multiple activity ids in the filter
Pass the relationship_type_id filter into the relationships sub-query