user: Question: Who wrote episode 31 in the series?
Columns: ['No. in series', 'No. in season', 'Title', 'Directed by', 'Written by', 'Original U.S. air date', 'Prod. code']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'real']
Sample row: [22.0, 1.0, '"Damage Control"', 'Farhad Mann', 'Bruce Kalish', 'February24,2010', 201.0]
SQL:

assistant: SELECT "Written by" FROM "Table" WHERE "No. in series" = 31.0;