这个定语从句中关系词是什么成分

问题描述:

这个定语从句中关系词是什么成分
I once worked in the factory which my students are going to visit next week
这个句子中关系代词which在从句中做什么成分?宾语?还是主语?

which代替的是the factory
表示地点
还原回去就是my students are going to visit the factory next week .
所以做的是宾语.