human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Date, Tournament, Surface, Opponent in final, Score, Prize Money
###Question: Who was the opponent on carpet in a final?
gpt
SELECT Opponent in final FROM table WHERE Surface = carpet