nǐ jiào shénme míngzi?
What's your name?
你是哪国人?
Where are you from?
你 (you) + 是 (are) + 哪 (which) + 国 (country) + 人 (person). Literally 'you are which country person?' The structure asks for nationality.
您是哪国人?
nín shì nǎ guó rén?
Where are you from? (polite) — More polite because it uses 您 (nín), the respectful 'you'.
你是哪里人?
nǐ shì nǎ lǐ rén?
Where are you from? (casual) — More casual and colloquial, asking about hometown or region rather than country.
你好!你是哪国人?
nǐ hǎo! nǐ shì nǎ guó rén?
Hello! Where are you from?
我是俄罗斯人。你呢?
wǒ shì èluósī rén. nǐ ne?
I'm Russian. And you?
Appropriate
Avoid when
You say '你是哪国人?' (nǐ shì nǎ guó rén?). It literally means 'You are which country person?' and is the standard way to ask someone's nationality.
It is pronounced 'nǐ shì nǎ guó rén?' with the third tone on nǐ, fourth on shì, third on nǎ, second on guó, and second on rén.
Use it when you meet someone new and want to know their home country. It's common in casual conversations, but for formal situations, switch to the polite form '您是哪国人?'.
Tomyo
Remember 你是哪国人? and hundreds of other phrases with smart reviews, audio and examples.