Hi, vineeta. Welcome to English forums. Thanks for joining us.
Actually, "What" is the subject of these sentences. In this case it's a pronoun, third person singular. "You" is the direct object of the verb.
It's like, "Who gave you that pencil?", except in this case "you" is the indirect object, and the tense is simple past.
"Who wants me for a partner?"
Best wishes, - A.