Question: Name the office holder whose spouse is Dolley Madison and belongs to Militia branch ?
SPARQL query: SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/spouse> <http://dbpedia.org/resource/Dolley_Madison> . ?uri <http://dbpedia.org/property/branch> <http://dbpedia.org/resource/Militia>  . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
Answer: The office holder whose spouse is Dolley Madison and branch is Militia is [James Madison].