Except having five daughters doesn't prevent them also having 20 sons one of whom is called Bob.
That’s why it’s a riddle.
But that makes no sense, if you ask me that John's dad has two daughters, Mary and ???, there's no way I will say "John" as an answer. I'll simply assume he also has at least one son.