The semiclassical limit of quantum gravity and the problem of time