Relation.map and appendDerived