CREATE TABLE table_45140 ("Episode number Production number" TEXT, "Title" TEXT, "Sydney" FLOAT, "Melbourne" FLOAT, "Brisbane" FLOAT, "Adelaide" FLOAT, "Perth" FLOAT, "TOTAL" FLOAT, "WEEKLY RANK" FLOAT, "NIGHTLY RANK" FLOAT)

What is the lowest value for Sydney, when Perth is less than 169,000, and when NIGHTLY RANK is less than 5?
SELECT MIN("Sydney") FROM table_45140 WHERE "Perth" < '169,000' AND "NIGHTLY RANK" < '5'
SELECT MIN("Sydney") FROM "table_45140" WHERE "NIGHTLY RANK" < '5' AND "Perth" < '169,000'