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_40 (long INTEGER, name VARCHAR, gain VARCHAR)
  ### Question:
  When Thomas Clayton had a gain less than 71, what was the highest long value?
  ### Answer:
  SELECT MAX(long) FROM table_name_40 WHERE name = "thomas clayton" AND gain < 71