Relationship between three subjects