What is {friend} of {society}, that has {member of party} is {NSDAP} ?
Which party is a member of the NSDAP society friend?
What party is friend of society NSDAP a member of?
SELECT ?c WHERE { resource:society property:significant_person ?c . ?c property:member_of_political_party resource:National_Socialist_German_Workers'_Party }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8425> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3342>. ?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/P102> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q7320> . }
SELECT ?answer WHERE { wd:Q8425 wdt:P3342 ?answer . ?answer wdt:P102 wd:Q7320}