It's not 'which child'. It is indeed 'whose child'. (Czyje to dziecko? = Whose child is it?). It asks about the child's parents, ergo "to whom does the child belong".
It could be not a child, but for example a car, or a house, the rest of the sentence would not change.
You may check the word here.