The other sentences can be interpreted in multiple ways. For example, 'Visiting relatives can be tiresome' could mean that the act of visiting relatives is tiring, or that the relatives who are visiting are tiring. 'After painting the walls, they looked beautiful' is ambiguous as to whether 'they' refers to the walls or the painters. 'I saw her duck' could refer to the animal or the action of ducking.