input: from typing import List
  
  
  def execute_sql_query(database_name: str, table_name: str, category: str) -> List[tuple]:
      """ Executes an SQL query to fetch all records from a specified table where a 
      given category matches. Returns the result as a list of tuples.
      >>> execute_sql_query('movies.db', 'Movies', 'horror')
      [(1, 'The Exorcist', 'horror'), (2, 'A Quiet Place', 'horror'), ...]
      """
output:     import sqlite3
      conn = sqlite3.connect(database_name)
      cursor = conn.cursor()
      cursor.execute(f"SELECT * FROM {table_name} WHERE category = ?", (category,))
      result = cursor.fetchall()
      conn.close()
      return result