SelectWithUnionQuery (children 1)
 ExpressionList (children 2)
  SelectQuery (children 4)
   ExpressionList (children 1)
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 3)
         ExpressionList (children 1)
          Identifier id2
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            TableIdentifier tbl
         Function equals (children 1)
          ExpressionList (children 2)
           Function joinGet (children 1)
            ExpressionList (children 4)
             Function concat (children 1)
              ExpressionList (children 2)
               Function currentDatabase (children 1)
                ExpressionList
               Literal \'.join_engine\'
             Literal \'v\'
             Identifier id1
             Identifier id2
           Identifier tbl.v
   ExpressionList (children 1)
    Function uniq (alias count) (children 1)
     ExpressionList (children 1)
      Identifier id2
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 3)
          ExpressionList (children 1)
           Asterisk
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier tbl (alias e)
          Function equals (children 1)
           ExpressionList (children 2)
            Function joinGet (children 1)
             ExpressionList (children 4)
              Function concat (children 1)
               ExpressionList (children 2)
                Function currentDatabase (children 1)
                 ExpressionList
                Literal \'.join_engine\'
              Literal \'v\'
              Identifier id1
              Identifier id2
            Identifier e.v
   Function in (children 1)
    ExpressionList (children 2)
     Identifier id2
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 2)
         ExpressionList (children 1)
          Identifier id2
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            TableIdentifier cte
  SelectQuery (children 3)
   ExpressionList (children 1)
    Function uniq (alias count) (children 1)
     ExpressionList (children 1)
      Identifier id2
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier cte
   ExpressionList (children 1)
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 3)
         ExpressionList (children 1)
          Identifier id2
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            TableIdentifier tbl
         Function equals (children 1)
          ExpressionList (children 2)
           Function joinGet (children 1)
            ExpressionList (children 4)
             Function concat (children 1)
              ExpressionList (children 2)
               Function currentDatabase (children 1)
                ExpressionList
               Literal \'.join_engine\'
             Literal \'v\'
             Identifier id1
             Identifier id2
           Identifier tbl.v
