def __eq__(self, other):
    return (isinstance(other, TableAggregate) and (other.child == self.child) and (other.query == self.query))
def __eq__(self, other):
    return (isinstance(other, TableAggregate) and (other.child == self.child) and (other.query == self.query))