SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/spouse> <http://dbpedia.org/resource/Dolley_Madison> . ?uri <http://dbpedia.org/property/allegiance> <http://dbpedia.org/resource/Colony_of_Virginia> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
Which office holder allegiance is Colony of Virginia and has a wife named Dolley Madison?
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Office_Holder . ?v property:allegiance resource:Colony_of_Virginia . ?v property:spouse resource:Dolley_Madison }
James Madison
The office holder married to Dolley Madison and his allegiance is Colony of Virginia is [James Madison].
The incubator is married to Dee Madison, and has wife named Virginia Colony [James Madison].
[James Madison] is the office holder whose wife is her and allegiance is Colony of Virginia.
[James Madison] is the incumbent to whom she is married and to whom the colony of Virginia is a allegiance.