CREATE TABLE table_name_46 (episodes VARCHAR, rank VARCHAR, actor_actress VARCHAR)

What episode did actor Daniel Macpherson's character have the rank of Detective Senior Constable
SELECT episodes FROM table_name_46 WHERE rank = "detective senior constable" AND actor_actress = "daniel macpherson"
SELECT "episodes" FROM "table_name_46" WHERE "actor_actress" = "daniel macpherson" AND "detective senior constable" = "rank"