Question: Name the office holder who was married to Dolley Madison and has resting palce as Montpelier ?
SPARQL query: SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/spouse> <http://dbpedia.org/resource/Dolley_Madison> . ?uri <http://dbpedia.org/property/restingplace> <http://dbpedia.org/resource/Montpelier_(Orange,_Virginia)>  . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
Answer: [James Madison] is the officeholder whose spouse is Dolley Madison and was buried in Montpelier.