Conceptually (see also The Fundamental Relations of Syntax and Conceptual Structure) the head of each sentence is a predicate. The predicate combined with its arguments to form a basic eventuality.
Both examples have similar argument structures, except for one feature ... Only one of them in each structure needs the WH-operator as a host. The other cannot have one as a host. The situation is ...