I've come across the following sentence in a book:
“I wanted to learn everything I could about it from whomever in the country might have specialized knowledge of it.”
I know that the whomever is the object of the preposition from (hence whom). However, isn't it at the same time the subject of the subordinate clause? Therefore, should it not be whoever? (Like in: “I was escaping from I don't know what.” NOT “I was escaping from me don't know what.”)
In my view, the sentence would be more elegant if it read:
“I wanted to learn everything I could about it from whoever in the country might have specialized knowledge of it.”
“I wanted to learn everything I could about it from whomever in the country.”
“I wanted to learn everything I could about it from whomever in the country who might have specialized knowledge of it.”
“I wanted to learn everything I could about it from whomever in the country with specialized knowledge of it.”