What is {branch} of {Nate Dogg}, that has {in conflict} is {Mexican–American War} ?
During the fighting of the Mexican-American War, which department was once Nate Dogg in?
During the conflict of the Mexican-American War, which branch was Nate Dogg in?
SELECT ?x WHERE { ?x property:conflict resource:Mexican-American_War . resource:Nate_Dogg property:military_branch ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q47159> . ?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/P607> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q6683> . }
SELECT ?answer WHERE { wd:Q47159 wdt:P241 ?answer . ?answer wdt:P607 wd:Q6683}