Relational Representations For Composition Of Knowledge And Plans