code: def fetch_all_first_values(session: Session,
                             select_statement: Select) -> List[Any]:
      rows = session.execute(select_statement)
      try:
          return [row[0] for row in rows]
      except ValueError as e:
          raise MultipleResultsFound(str(e))