He was working in the factory when I saw him last time.
这是一个主从复合句,他正在工厂里干活是主句,我上次见到他的时候只是一个限制,一个条件.按照习惯主句在前从句在后.