What is {commander} of {branch} of {John Ledyard} ?
Which is the one responsible commander for John Ledyard's headed department
Which is the one responsible commander for John Ledyard's headed branch
SELECT ?u WHERE { resource:John_Ledyard property:military_branch ?k . ?k property:commanded_by ?u }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q718690> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P241>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P4791> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q718690 wdt:P241 ?X . ?X wdt:P4791 ?answer}
Prince Harry, Duke of Sussex