text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_12 (loss VARCHAR, name VARCHAR, long VARCHAR)
  ### Question:
  How many losses did leon patton have with the longest gain higher than 45?
  ### Answer:
  SELECT COUNT(loss) FROM table_name_12 WHERE name = "leon patton" AND long > 45