Question: Who is Cao Yan's paternal grandfather?
Sentence (from "Cao Yan"): He was a son of Cao Pi, the first emperor of Wei.
Relevant evidence: Yes