What did you learn at the lesson? I learnt some new grammar rules.
What does John want from me? He wants some help.
What has the dog been doing? The dog has been swimming in a mud puddle.
Who is Amanda calling now? She is calling a friend of hers.
Who do we believe? We believe them.
Who did they sell their car to? They sold it to the Fishers.
Who and whom
We use "what" both as a subject and an object to make questions about things, abstract terms, but not about people.
We use the question word "who" when we ask questions about a person.
If the question word is a subject (= we can replace it with a personal pronoun in its basic form: Who did it? He did it. Who cares? She cares.), then we always say "who".
But, if the question word is an object (= we can replace it with a personal pronoun in the objective case: Whom do you help? I help him.), we should say "whom" according to the official grammar rules. Especially, when the verb requires a preposition. However, whom is rarely used in modern spoken English, it sounds very formal.
Examples of whom with a preposition
Whom is he talking to? (=Who is he talking to?)
Whom are we going to the theatre with? (= Who are we going to the theatre with?)
Whom did you bake the cake for? (= Who did you bake the cake for?)
If we sum up the above written, we'll get a following table:
question to subject
question to object
what/who + main verb + ...?
what/who + aux. verb + subject + main verb + ...?
What makes you happy? Who has just called?
What did you make at the art lesson? Who have you just called?
also possible whom Whom are you going out with? Whom did they offer the job to?