**Use case**
Some program left garbage in terminal.

**Describe the solution you'd like**
Subset of what `reset` command does.
#ifndef __clang__
#pragma GCC optimize("-fno-var-tracking-assignments")
#endif
#define CLEAR_TO_END_OF_LINE "\033[K"
namespace DB
namespace ErrorCodes
    extern const int NETWORK_ERROR;
    extern const int NO_DATA_TO_INSERT;
    extern const int BAD_ARGUMENTS;
    extern const int UNKNOWN_PACKET_FROM_SERVER;
    extern const int UNEXPECTED_PACKET_FROM_SERVER;
    extern const int CLIENT_OUTPUT_FORMAT_SPECIFIED;
    extern const int INVALID_USAGE_OF_INPUT;
    extern const int DEADLOCK_AVOIDED;
    extern const int UNRECOGNIZED_ARGUMENTS;
    extern const int SYNTAX_ERROR;
}
static bool queryHasWithClause(const IAST * ast)
    if (const auto * select = dynamic_cast<const ASTSelectQuery *>(ast);
        select && select->with())
    
        return true;
    }