human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Tournament, Surface, Week, Winner, Finalist, Semifinalists
###Question: Who was the winner of the Miami tournament where Elena Dementieva was a finalist?
gpt
SELECT Winner FROM table WHERE Finalist = elena dementieva AND Tournament = miami