I wonder where you still work in the factory.
You are still working in a factory, which is what I want to know, so it is called an object clause.
This is the room where he lived five years ago. The main clause is that this is the room. He lived in this room five years ago. Clauses used to decorate rooms are called attributive clauses.