Extragalactic surveys with CCAT: distant galaxies and nearby templates Contribution from Blain et al.