What is the {facility} for {military branch} of {Yuri Gagarin}
What is the military branch or location of Yuri Gagarin?
What is the military branch or location of Yuri Gagarin?
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:facility . resource:Yuri_Gagarin property:military_branch ?k }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7327> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P241> . ?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/Q13226383> } 
 select distinct ?obj where { wd:Q7327 wdt:P241 ?obj . ?obj wdt:P31 wd:Q13226383 } 