Fix query for filter out nested ROs when testing for RO title