user: Question: who wrote the episode having Joe Daniello as director with production code 6AJN05?
Columns: ['No. in series', 'No. in season', 'Title', 'Directed by', 'Written by', 'Original air date', 'Production code', 'U.S. viewers (millions)']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: [97.0, 1.0, '"100 A.D." (Part 1)', 'Tim Parsons', 'Keith Heisler', 'October3,2010', '5AJN14', '6.16']
SQL:

assistant: SELECT "Written by" FROM "Table" WHERE "Directed by" = 'Joe Daniello' AND "Production code" = '6AJN05';