你要填的关系代词如果后面已经有了we,they ,he,she这样的词作主语了,你填的就肯定不是主语,如果关系代词后面跟的是动词(如lives,worked,visited等,这些词都是作谓语的)你填的就是主语了.
如:This is the factory that we visited last week.(that作宾语,因为其后有主语we.)
This is the fatory that produces cars.(that在从句中作主语,因为其后是谓语动词produces,没有we,it,he等这样的作主语的词)