user: Question: what was written by Alex Carter?
Columns: ['No.', 'Title', 'Directed by', 'Written by', 'Patient Portrayer', 'Original air date', 'Production code']
Types: ['real', 'text', 'text', 'text', 'text', 'text', 'real']
Sample row: [1.0, '"Pilot - McNamara/Troy"', 'Ryan Murphy', 'Ryan Murphy', 'Geoffrey Rivas', 'July22,2003', 475194.0]
SQL:

assistant: SELECT "Written by" FROM "Table" WHERE "Patient Portrayer" = 'Alex Carter';