human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Class, Team, Points, Rank, Wins
###Question: Which Wins is the highest one that has a Class of 500cc, and Points smaller than 6?
gpt
SELECT MAX Wins FROM table WHERE Class = 500cc AND Points < 6