SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 5) ExpressionList (children 1) Function greaterOrEquals (children 1) ExpressionList (children 2) Function length (children 1) ExpressionList (children 1) Identifier thread_ids Literal UInt64_1 TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier system.query_log Function and (children 1) ExpressionList (children 4) Function equals (children 1) ExpressionList (children 2) Identifier current_database Function currentDatabase (children 1) ExpressionList Function greaterOrEquals (children 1) ExpressionList (children 2) Identifier event_date Function minus (children 1) ExpressionList (children 2) Function today (children 1) ExpressionList Literal UInt64_1 Function like (children 1) ExpressionList (children 2) Function lower (children 1) ExpressionList (children 1) Identifier query Literal \'%select g % 2 as gg, sum(s) from table_01356_view_threads group by gg order by gg%\' Function equals (children 1) ExpressionList (children 2) Identifier type Literal \'QueryFinish\' ExpressionList (children 1) OrderByElement (children 1) Identifier query_start_time Literal UInt64_1