input: from typing import List
  
  def query_customer_by_name(customer_data: List[dict], name: str) -> List[dict]:
      """
      Given a list of customer data where each customer is represented as a dictionary,
      query the list by a customer name and return all customers with matching names.
      
      >>> customer_data = [
      ...     {'name': 'Alice', 'age': 30},
      ...     {'name': 'Bob', 'age': 25},
      ...     {'name': 'Alice', 'age': 27}
      ... ]
      >>> query_customer_by_name(customer_data, 'Alice')
      [{'name': 'Alice', 'age': 30}, {'name': 'Alice', 'age': 27}]
      >>> query_customer_by_name(customer_data, 'Charlie')
      []
      """
      return [customer for customer in customer_data if customer['name'] == name]
output:     return [customer for customer in customer_data if customer['name'] == name]