human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Entrant, Chassis, Engine, Points
###Question: What year engine does a ferrari v6 have?
gpt
SELECT Year FROM table WHERE Engine = ferrari v6