The journey of QSO haloes from z ∼ 6 to the present