What is {party membership} of {Thomas Nast}, that has {garrison} is {Washington, D.C.} ?
"Which party participation from Thomas Nast, named Battalion is found in Washington, D.C.?"
"Which party membership from Thomas Nast, named Garrison is located in Washington, D.C.?"
SELECT ?z WHERE { resource:Thomas_Nast property:member_of_political_party ?z . ?z property:headquarters_location resource:Washington,_D.C. }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q214957> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P102>. ?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/P159> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q61> . }
SELECT ?answer WHERE { wd:Q214957 wdt:P102 ?answer . ?answer wdt:P159 wd:Q61}
Republican Party