asRelationPatternOrNull