def hook_get_prepare_tx_query(table: str, metadata_table:str, model_date: str) -> str:
  """Returns the query that prepares the transactions to aggregate.

  It loads all customer transactions and aggreagets it into a single row, so
  they are prepared for prediction. Ideally it's loading from the table
  BQ_LTV_ALL_PERIODIC_TX_TABLE with the suffix corresponding to a specific date -
  this value is passed in the table parameter.

  Additional processing can be done by joining with the metadata table as needed.

  Args:
    table: A string representing the full path of the BQ table where the periodic
      transactions are located. This table is the BQ_LTV_ALL_PERIODIC_TX_TABLE with
      the suffix corresponding to a specific date. It usually has multiple lines
      per customer.
    metadata_table: The fully-qualified name of the metadata table.
    model_date: A string in YYYYMMDD format representing the model date. This
      can be used to look up relevant rows in the metadata table if needed.

  Returns:
    A string with the query.
  """
  del metadata_table # Unused by default
  del model_date # Unused by default

  return f"""SELECT * FROM `{table}`"""