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_31 (total INTEGER, rank VARCHAR, gold VARCHAR)
### Question:
What is the largest total when the rank is 6 and there's less than 1 gold?
### Answer:
SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1