human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Player, Highest singles ranking, Highest doubles ranking, First year played, Years played, Ties played, Total W–L, Singles W–L, Doubles W–L
###Question: Name the minimum tiesplayed for 6 years
gpt
SELECT MIN Ties played FROM table WHERE Years played = 6