human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: #, Episode, Directed by, Written by, U.S. Viewers (in millions), Original airdate
###Question: Who wrote the episode with 9.81 million US viewers?
gpt
SELECT Written by FROM table WHERE U.S. Viewers (in millions) = 9.81