SelectWithUnionQuery (children 2)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 12)
    Literal \'Query log rows\' (alias stage)
    Identifier read_rows
    Identifier written_rows
    Function arraySort (alias databases) (children 1)
     ExpressionList (children 1)
      Identifier databases
    Function arraySort (alias tables) (children 1)
     ExpressionList (children 1)
      Identifier tables
    Function arraySort (alias views) (children 1)
     ExpressionList (children 1)
      Identifier views
    Function arrayElement (alias sleep_calls) (children 1)
     ExpressionList (children 2)
      Identifier ProfileEvents
      Literal \'SleepFunctionCalls\'
    Function arrayElement (alias sleep_us) (children 1)
     ExpressionList (children 2)
      Identifier ProfileEvents
      Literal \'SleepFunctionMicroseconds\'
    Function arrayElement (alias profile_select_rows) (children 1)
     ExpressionList (children 2)
      Identifier ProfileEvents
      Literal \'SelectedRows\'
    Function arrayElement (alias profile_select_bytes) (children 1)
     ExpressionList (children 2)
      Identifier ProfileEvents
      Literal \'SelectedBytes\'
    Function arrayElement (alias profile_insert_rows) (children 1)
     ExpressionList (children 2)
      Identifier ProfileEvents
      Literal \'InsertedRows\'
    Function arrayElement (alias profile_insert_bytes) (children 1)
     ExpressionList (children 2)
      Identifier ProfileEvents
      Literal \'InsertedBytes\'
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier system.query_log
   Function and (children 1)
    ExpressionList (children 3)
     Function like (children 1)
      ExpressionList (children 2)
       Identifier query
       Literal \'-- INSERT 1%INSERT INTO table_a%\'
     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 yesterday (children 1)
        ExpressionList
 Identifier Vertical
