When Thomas Clayton had a gain less than 71, what was the highest long value?
CREATE TABLE table_name_40 (long INTEGER, name VARCHAR, gain VARCHAR)
SELECT MAX(long) FROM table_name_40 WHERE name = "thomas clayton" AND gain < 71
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: 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? [/INST] SELECT MAX(long) FROM table_name_40 WHERE name = "thomas clayton" AND gain < 71 </s>