As far as I know, "ellos" is not considered a demonstrative pronoun. You can see a list of demonstratives in Wikipedia. For the third person plural we have: estos, esos, and aquellos.
You can use any of them for your second sentence depending on the spatial or temporal location.
¿Donde viste a esos?
Also you can use "los" as well in that sentence
¿Donde los viste?
SoWe make the distinction between they and them using "a" before "ellos" (like in Spanish that inflectionmy example). So there is a distinction that you mentioned stands fordoes not imply changing the third person both in singular andword but using additional ones. More info (in Spanish) about the use of that "a" (a preposition) in pluraldirect objects here
On the other hand, demonstrative pronouns are not used mandatorily as direct objects, you can use "regular" pronouns.