class_docstr: Simplify queries by eliminating table aliases when possible.
  
  e.g. from
  
  SELECT b.foo
  FROM (
    SELECT a.foo FROM bar a
  ) b
  
  to
  
  SELECT foo
  FROM (
    SELECT foo FROM bar a
  ) b
class_docstr_tok: ["Simplify","queries","by","eliminating","table","aliases","when","possible",".","e.g",".","from","SELECT","b.foo","FROM","(","SELECT","a.foo","FROM","bar","a",")","b","to","SELECT","foo","FROM","(","SELECT","foo","FROM","bar","a",")","b"]
code: def optimize(
      self, node: SqlQueryPlanNode
  ) -> SqlQueryPlanNode:  # noqa: D
      return node.accept(SqlTableAliasSimplifierVisitor())
  
file_path: metricflow/metricflow/sql/optimizer/table_alias_simplifier.py
imports: from __future__ import annotations
  import logging
  from metricflow.sql.optimizer.sql_query_plan_optimizer import SqlQueryPlanOptimizer
  from metricflow.sql.sql_plan import SqlJoinDescription, SqlOrderByDescription, SqlQueryPlanNode, SqlQueryPlanNodeVisitor, SqlSelectColumn, SqlSelectQueryFromClauseNode, SqlSelectStatementNode, SqlTableFromClauseNode
label_desc: Use image node_id 1 for calling the SqlTableAliasSimplifier obj's underlying member method code with example usage: obj.optimize(node) and returns: node