Only Google knows how they make queries run so fast, but the basic idea is that they are using several machines to run every single query (horizontal scaling).