What part of speech are both "who" and "what part of speech" in the sentences

Hi everyone,

Could someone tell me what part of speech both “who” and “what part of speech” are in these two examples, please?
1- Do you know who the mayor of this town is?
2- I hope you will confirm me what part of speech “near” is in this sentence: “And now, where do you live? You will see incredible offers near your place everyday!”

Content edited

No, I want to know whether or not “near” and the phrase “what part of speech” are subjects or objects in those sentences.

I hope you to understand me.

Both are in the direct object position in the independent clauses. In the dependent clauses they are in the subject position.