I was reading a book and stumbled upon this piece:
Not one person, dead or alive. Where was everyone? What had happened?
Can someone explain to me why this sentence is in past perfect? What is the difference between
What happened? What had happened? or What has happened?
and how to use them?
PS. English is not my native language.