prefix : prefix rdf: select ?X ?F ?C from where {{ ?X :father ?F } UNION { ?C a :Person }}