What is the {grave} for {commemorates} of {Ulysses S. Grant}
Where is the grave that commemorates Ulysses S. Allow?
Where is the grave that commemorates Ulysses S. Grant?
SELECT DISTINCT ?r WHERE { ?r property:commemorates resource:Ulysses_S._Grant . ?r rdf:type ontology:grave }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P547> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q34836> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q173387> } 
 select distinct ?sbj where { ?sbj wdt:P547 wd:Q34836 . ?sbj wdt:P31 wd:Q173387 } 
Grant's Tomb