```
CREATE TABLE t (x UInt8, PROJECTION p (SELECT x GROUP BY x)) ENGINE = MergeTree ORDER BY ();
INSERT INTO t VALUES (0);

SET group_by_overflow_mode = 'any', max_rows_to_group_by = 1000, totals_mode = 'after_having_auto';
SELECT x FROM t GROUP BY x WITH TOTALS;
```
: prepared_sets(std::make_shared<PreparedSets>())
    {}
    ASTPtr query;
    ASTPtr view_query; 
    ASTPtr original_query; 
    
    PlannerContextPtr planner_context;
    
    QueryTreeNodePtr table_expression;
    
    std::optional<TableExpressionModifiers> table_expression_modifiers;
    std::shared_ptr<const StorageLimitsList> storage_limits;
    
    ClusterPtr cluster;
    
    
    
    
    ClusterPtr optimized_cluster;
    TreeRewriterResultPtr syntax_analyzer_result;
    
    ASTPtr additional_filter_ast;
    
    ASTs filter_asts;