input: def create_table_of_contents_page(db_query: str) -> str:
      """ Create an HTML page that displays a table of contents based on the data fetched from 
      a database using the provided SQL query. The function should return the HTML string with 
      the table of contents. 
      >>> create_table_of_contents_page("SELECT * FROM chapters")
      '<html><head><title>Table of Contents</title></head><body><h1>Table of Contents</h1><ul><li>Chapter 1: Introduction</li><li>Chapter 2: Literature Review</li></ul></body></html>'
      """
output:     import sqlite3
  
      # Connect to an in-memory SQLite database for demonstration purposes
      conn = sqlite3.connect(':memory:')
      cursor = conn.cursor()
  
      # Create a sample table for chapters
      cursor.execute('''
          CREATE TABLE chapters (
              id INTEGER PRIMARY KEY,
              title TEXT
          )
      ''')
  
      # Insert sample data
      cursor.execute("INSERT INTO chapters (title) VALUES ('Introduction')")
      cursor.execute("INSERT INTO chapters (title) VALUES ('Literature Review')")
      conn.commit()
  
      # Execute the provided query
      cursor.execute(db_query)
      rows = cursor.fetchall()
  
      # Close the database connection
      conn.close()
  
      # Generate the HTML string
      html_content = '<html><head><title>Table of Contents</title></head><body><h1>Table of Contents</h1><ul>'
      for row in rows:
          chapter_number = row[0]
          chapter_title = row[1]
          html_content += f'<li>Chapter {chapter_number}: {chapter_title}</li>'
      html_content += '</ul></body></html>'
  
      return html_content