human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: WEEK, Sydney, Melbourne, Brisbane, Adelaide, Perth, TOTAL, WEEKLY RANK
###Question: How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?
gpt
SELECT Sydney FROM table WHERE Melbourne = 334000