user: Question: Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers?
Columns: ['Series #', 'Episode #', 'Title', 'Directed by', 'Written by', 'U.S. viewers (million)', 'Original airdate', 'Production Code']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: [77.0, 1.0, '"The Avengers"', 'Ian Toynton', 'Josh Schwartz', '3.39', 'November2,2006', '3T5251']
SQL:

assistant: SELECT "Written by" FROM "Table" WHERE "U.S. viewers (million)" = '3.96';