code: def base_select_statement() -> SqlSelectStatementNode:
      """SELECT statement used to build test cases.
  
      SELECT
        src2.col0 AS col0
        src2.col1 AS col1
        -- src2
        SELECT
          src1.col0 AS col0
          , src1.col1 AS col1
        FROM (
          -- src1
          SELECT
            src0.col0 AS col0
            , src0.col1 AS col1
          FROM demo.from_source_table src0
          LIMIT 2
        ) src1
        LIMIT 1
      ) src2
      ORDER BY src2.col0
      """
      return SqlSelectStatementNode(
          description="src3",
          select_columns=(
              SqlSelectColumn(
                  expr=SqlColumnReferenceExpression(
                      col_ref=SqlColumnReference(
                          table_alias="src2", column_name="col0"
                      )
                  ),
                  column_alias="col0",
              ),
              SqlSelectColumn(
                  expr=SqlColumnReferenceExpression(
                      col_ref=SqlColumnReference(
                          table_alias="src2", column_name="col1"
                      )
                  ),
                  column_alias="col1",
              ),
          ),
          from_source=SqlSelectStatementNode(
              description="src2",
              select_columns=(
                  SqlSelectColumn(
                      expr=SqlColumnReferenceExpression(
                          col_ref=SqlColumnReference(
                              table_alias="src1", column_name="col0"
                          )
                      ),
                      column_alias="col0",
                  ),
                  SqlSelectColumn(
                      expr=SqlColumnReferenceExpression(
                          col_ref=SqlColumnReference(
                              table_alias="src1", column_name="col1"
                          )
                      ),
                      column_alias="col1",
                  ),
              ),
              from_source=SqlSelectStatementNode(
                  description="src1",
                  select_columns=(
                      SqlSelectColumn(
                          expr=SqlColumnReferenceExpression(
                              col_ref=SqlColumnReference(
                                  table_alias="src0",
                                  column_name="col0",
                              )
                          ),
                          column_alias="col0",
                      ),
                      SqlSelectColumn(
                          expr=SqlColumnReferenceExpression(
                              col_ref=SqlColumnReference(
                                  table_alias="src0",
                                  column_name="col1",
                              )
                          ),
                          column_alias="col1",
                      ),
                  ),
                  from_source=SqlTableFromClauseNode(
                      sql_table=SqlTable(
                          schema_name="demo",
                          table_name="from_source_table",
                      )
                  ),
                  from_source_alias="src0",
                  joins_descs=(),
                  group_bys=(),
                  order_bys=(),
                  limit=2,
              ),
              from_source_alias="src1",
              joins_descs=(),
              where=None,
              group_bys=(),
              order_bys=(),
              limit=1,
          ),
          from_source_alias="src2",
          joins_descs=(),
          group_bys=(),
          where=None,
          order_bys=(
              SqlOrderByDescription(
                  expr=SqlColumnReferenceExpression(
                      SqlColumnReference(
                          table_alias="src2",
                          column_name="col0",
                      )
                  ),
                  desc=False,
              ),
          ),
          limit=None,
      )
  
file_path: metricflow/metricflow/test/sql/optimizer/test_sub_query_reducer.py
imports: from __future__ import annotations
  import pytest
  from _pytest.fixtures import FixtureRequest
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.sql.optimizer.sub_query_reducer import SqlSubQueryReducer
  from metricflow.sql.sql_exprs import SqlColumnReference, SqlColumnReferenceExpression, SqlComparison, SqlComparisonExpression
  from metricflow.sql.sql_plan import SqlJoinDescription, SqlJoinType, SqlOrderByDescription, SqlSelectColumn, SqlSelectStatementNode, SqlTableFromClauseNode
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.sql.compare_sql_plan import assert_default_rendered_sql_equal
label_desc: Use image node_id 1 for calling a global function with example usage: base_select_statement() and returns: SqlSelectStatementNode