fixup! add AnalyzedRelation interface and RelationVisitor