Translation:Does the skirt belong to Mary or to Anna?
Why doesn't it accept the real names? Mariei and Anei? In other sentences it does.
In the English sentence, these would be Maria and Ana. Mariei and Anei are genitive (right?) forms of the names, indicating that they are the possessors.