How did Q know three years before it happened?

PROJECT LOOKING GLASS. You a believer?