What is the {horse} for {mount} of {Ulysses S. Grant}
Did Ulysses S. Grant's horse have a name?
Did Ulysses S. Grant's horse have a name?
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:horse . resource:Ulysses_S._Grant property:mount ?i }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34836> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3091> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q726> } 
 select distinct ?obj where { wd:Q34836 wdt:P3091 ?obj . ?obj wdt:P31 wd:Q726 } 
Cincinnati