Read these sentences and choose the correct variant.
1.
I washed the floor when the painter having gone
I washed the floor when the painter had gone
2.
I had know before about the contract they signed
I had known before about the contract they signed
3.
By the time Doris got to the party, everyone had gone home
By the time Doris got to the party, everyone had go home