If I were a millionaire, I would buy my parents a house which mood is used in the sentence

The mood in this sentence is conditional.