What is {formation} of {James Longstreet}, that has {parent company of} is {United States Department of the Army} ?
"How is {arrangement} of {James Longstreet}, which has {parent company of} is {Joined together States Office of the Armed force} ?"
"How is {formation} of {James Longstreet}, which has {parent company of} is {United States Department of the Army} ?"
SELECT ?q WHERE { ?q property:subsidiary resource:United_States_Department_of_the_Army . resource:James_Longstreet property:military_branch ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q311514> . ?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> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P355> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1328562> . }
SELECT ?answer WHERE { wd:Q311514 wdt:P241 ?answer . ?answer wdt:P355 wd:Q1328562}