CreateQuery dep2 (children 3)
 Identifier dep2
 Columns definition (children 1)
  ExpressionList (children 3)
   ColumnDeclaration id (children 1)
    DataType Int32
   ColumnDeclaration country (children 1)
    DataType LowCardinality (children 1)
     ExpressionList (children 1)
      DataType String
   ColumnDeclaration purchase_location (children 2)
    DataType UInt16
    Function if (children 1)
     ExpressionList (children 3)
      Function in (children 1)
       ExpressionList (children 2)
        Identifier id
        Function joinGet (children 1)
         ExpressionList (children 3)
          Function concat (children 1)
           ExpressionList (children 2)
            Function currentDatabase (children 1)
             ExpressionList
            Literal \'.id_join\'
          Literal \'location\'
          Literal \'CLICK\'
      Literal UInt64_123
      Literal UInt64_456
 Storage definition (children 2)
  Function ReplicatedMergeTree (children 1)
   ExpressionList (children 2)
    Literal \'/test/02433/{database}/dep\'
    Literal \'2\'
  Function tuple (children 1)
   ExpressionList
