human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Team, Match, Points, Draw, Lost
###Question: What is the highest loss with points less than 7?
gpt
SELECT MAX Lost FROM table WHERE Points < 7