1) I have a house whose roof is green.
2) I have a house of which roof is green.
Are the both correct?
1) I have a house whose roof is green.
2) I have a house of which the roof is green. OK
Better than either of those:
'I have a house with a green roof.'
Rover