Hi. It is called embedded question in which a question is embedded in a sentence. The grammatical point of such structures is that, the question needs to have the same word order as a sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.