Wrong: Joe learned about an epoch in which dinosaurs had walked the earth.
Correct: Joe learned about an epoch in which dinosaurs walked the earth.
Explanation: Use Past perfect tense only if the earlier action has a direct bearing on the context of the later action. In the above case learning does not has any impact on dinosaurs walked.
Unable to understand this concept. Is this applicable always? How do we decide if an action has impact on other.