SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/mother> <http://dbpedia.org/resource/Cleopatra_V_of_Egypt> . ?uri <http://dbpedia.org/ontology/spouse> <http://dbpedia.org/resource/Ptolemy_XIV_of_Egypt> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Royalty>}
Name the royalty whose mother was Cleopatra V and was married to Ptolemy XIV of Egypt?
SELECT DISTINCT ?v WHERE { ?v property:spouse resource:Ptolemy_X_I_V_of_Egypt . ?v property:mother resource:Cleopatra_V_of_Egypt . ?v rdf:type ontology:Royalty }
Cleopatra
The royalty who is the daughter of Cleopatra V of Egypt and was married to Ptolemy XIV of Egypt is [Cleopatra].
The royal family, which is the daughter of Cleopatra V of Egypt and was married to Ptolotheus XIV of Egypt, is [Cleopatra].