@typecheck_method(child=TableIR, query=IR)
def copy(self, child, query):
    new_instance = self.__class__
    return new_instance(child, query)
@typecheck_method(child=TableIR, query=IR)
def copy(self, child, query):
    new_instance = self.__class__
    return new_instance(child, query)