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_43 (tests VARCHAR, lost VARCHAR, name VARCHAR)
  ### Question:
  What is the total number of Tests when the lost is less than 9 for sir fred allen?
  ### Answer:
  SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"