Hi and welcome.
Here's how I'd say them:
Many people, from different countries: What are their nationalities?
Many people, all from the same country: What is their nationality?
One person, whose sex you don't know: What is their nationality?
(Ignore people who tell you that "their" is used only for multiple people.)
Student or Learner