Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_23177573_1 ( rank__week_ VARCHAR, written_by VARCHAR, directed_by VARCHAR )

### Question ###
What was the week ranking of the episode written by Thomas L. Moran and directed by Andrew Bernstein?

### Accurate SQL ###

SELECT rank__week_ FROM table_23177573_1 WHERE written_by = "Thomas L. Moran" AND directed_by = "Andrew Bernstein"