Parsing: ((A) AND (B)) got parsed into [ASTNodes{A}] istead of [ASTNodes{A}, ASTNode{AND}, ASTNodes{B}]. Formatting into SQL: [ASTNodes{A}, ASTNode{AND}, ASTNodes{B}] got formatted into A AND B instead of (A) AND (B).