finalize inheritance in open-query