exec-ddl
CREATE TABLE t.a (x INT PRIMARY KEY, y FLOAT)
----
table a
  x int NOT NULL
  y float NULL

build
SELECT * FROM t.a
----
scan
 └── columns: a.x:int:1 a.y:float:null:2

build
SELECT * FROM t.a WHERE x > 10
----
select
 ├── columns: a.x:int:1 a.y:float:null:2
 ├── scan
 │    └── columns: a.x:int:1 a.y:float:null:2
 └── gt [type=bool]
      ├── variable: a.x [type=int]
      └── const: 10 [type=int]

build
SELECT * FROM t.a WHERE (x > 10 AND (x < 20 AND x != 13))
----
select
 ├── columns: a.x:int:1 a.y:float:null:2
 ├── scan
 │    └── columns: a.x:int:1 a.y:float:null:2
 └── and [type=bool]
      ├── gt [type=bool]
      │    ├── variable: a.x [type=int]
      │    └── const: 10 [type=int]
      └── and [type=bool]
           ├── lt [type=bool]
           │    ├── variable: a.x [type=int]
           │    └── const: 20 [type=int]
           └── ne [type=bool]
                ├── variable: a.x [type=int]
                └── const: 13 [type=int]

build
SELECT * FROM t.a WHERE x IN (1, 2, 3)
----
select
 ├── columns: a.x:int:1 a.y:float:null:2
 ├── scan
 │    └── columns: a.x:int:1 a.y:float:null:2
 └── in [type=bool]
      ├── variable: a.x [type=int]
      └── tuple [type=tuple{int, int, int}]
           ├── const: 1 [type=int]
           ├── const: 2 [type=int]
           └── const: 3 [type=int]

build
SELECT * FROM t.a AS A(X, Y)
----
scan
 └── columns: a.x:int:1 a.y:float:null:2
