Of course the first sentence is correct, but my point was to the incomplete 2nd sentence.
Why do you CUT my sentence? This is NOT my sentence:
Several thousand people had been killed by the earthquake in China.
Also, your latest sentence should be:
When the earthquake struck China, several thousand people were killed.
It's
very difficult to separate the timing of the earthquake from the timing
of the killing, thus I think it's best to keep simple past in
both.
Your original 2nd sentence is not complete. I told you:
2 is waiting/needs another event in simple past
This is not how one should use the past perfect.
And I am out of here. You do what you want. You seem to know better, why ask?