human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Series #, Season #, Title, Story by, Teleplay by, Directed by, Original air date
###Question: Who is the teleplay by when the director is Rob Bailey?
gpt
SELECT Teleplay by FROM table WHERE Directed by = Rob Bailey