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_45140 ( "Episode number Production number" text, "Title" text, "Sydney" real, "Melbourne" real, "Brisbane" real, "Adelaide" real, "Perth" real, "TOTAL" real, "WEEKLY RANK" real, "NIGHTLY RANK" real )

### Question ###
What is the lowest value for Sydney, when Perth is less than 169,000, and when NIGHTLY RANK is less than 5?

### Accurate SQL ###

SELECT MIN("Sydney") FROM table_45140 WHERE "Perth" < '169,000' AND "NIGHTLY RANK" < '5'