from sqlglot.optimizer.optimizer import RULES, optimize from sqlglot.optimizer.scope import Scope, build_scope, traverse_scope