class CreateTableAs<T> extends Statement {

    private final Table<T> name;
    private final Query query;

    public CreateTableAs(Table<T> name, Query query) {
        this.name = name;
        this.query = query;
    }

    public Table<T> name() {
        return this.name;
    }

    public Query query() {
        return this.query;
    }

    @Override
    public <R, C> R accept(AstVisitor<R, C> visitor, C context) {
        return visitor.visitCreateTableAs(this, context);
    }

    @Override
    public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        return Objects.hash(name, query);
    }

    @Override
    public String toString() {
        return "CreateTableAs{" +
               "name=" + name +
               ", query=" + query +
               '}';
    }
}

        if (this == o) {
            return true;
        }
        if (!(o instanceof CreateTableAs)) {
            return false;
        }
        CreateTableAs<?> that = (CreateTableAs<?>) o;
        return name.equals(that.name) &&
               query.equals(that.query);
    
<methods>public non-sealed void <init>() ,public R accept(AstVisitor<R,C>, C) <variables>