From local active galactic nuclei to early quasars