SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/predecessor> <http://dbpedia.org/resource/Darius_I> . ?uri <http://dbpedia.org/property/spouse> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Royalty>}
Which royal person married the successor of Darius I?
SELECT DISTINCT ?l WHERE { ?h property:predecessor resource:Darius_I . ?l property:spouse ?h . ?l rdf:type ontology:Royalty }
Esther, Amestris, Vashti
The royalties whose partner's predecessor is Darius I are [Esther, Amestris, Vashti].
Royalties, whose partner is Darius I [Esther, Amestris, Vashti].