prefix : select ?X ?CC ?Y ?C from where {{?X a :Person; a ?CC} union {?Y :hasChild ?C}}