SelectWithUnionQuery (children 2)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 6)
    Function bitmapCardinality (alias today_users) (children 1)
     ExpressionList (children 1)
      Identifier day_today
    Function bitmapCardinality (alias before_users) (children 1)
     ExpressionList (children 1)
      Identifier day_before
    Function bitmapOrCardinality (alias all_users) (children 1)
     ExpressionList (children 2)
      Identifier day_today
      Identifier day_before
    Function bitmapAndCardinality (alias old_users) (children 1)
     ExpressionList (children 2)
      Identifier day_today
      Identifier day_before
    Function bitmapAndnotCardinality (alias new_users) (children 1)
     ExpressionList (children 2)
      Identifier day_today
      Identifier day_before
    Function bitmapXorCardinality (alias diff_users) (children 1)
     ExpressionList (children 2)
      Identifier day_today
      Identifier day_before
   TablesInSelectQuery (children 2)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (alias js1) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 4)
          ExpressionList (children 2)
           Identifier city_id
           Function groupBitmapState (alias day_today) (children 1)
            ExpressionList (children 1)
             Identifier uid
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier bitmap_test
          Function equals (children 1)
           ExpressionList (children 2)
            Identifier pickup_date
            Literal \'2019-01-02\'
          ExpressionList (children 2)
           Function rand (children 1)
            ExpressionList (children 1)
             Function modulo (children 1)
              ExpressionList (children 2)
               Function modulo (children 1)
                ExpressionList (children 2)
                 Function rand (children 1)
                  ExpressionList (children 1)
                   Function equals (children 1)
                    ExpressionList (children 2)
                     Function modulo (children 1)
                      ExpressionList (children 2)
                       Function rand (children 1)
                        ExpressionList (children 1)
                         Literal \'\'
                       Literal Float64_nan
                     Literal NULL
                 Literal UInt64_7
               Function rand (children 1)
                ExpressionList (children 1)
                 Literal NULL
           Identifier city_id
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      Subquery (alias js2) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 4)
          ExpressionList (children 2)
           Identifier city_id
           Function groupBitmapState (alias day_before) (children 1)
            ExpressionList (children 1)
             Identifier uid
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier bitmap_test
          Function equals (children 1)
           ExpressionList (children 2)
            Identifier pickup_date
            Literal \'2019-01-01\'
          ExpressionList (children 1)
           Identifier city_id
     TableJoin (children 1)
      ExpressionList (children 1)
       Identifier city_id
 Identifier Null
