What is {contains} of {workplace} of {Frederick II of Prussia} ?
Frederick II of Prussia contains what working environment?
What is {contains} of {working environment} of {Frederick II of Prussia} ?
SELECT ?a WHERE { resource:Frederick_II_of_Prussia property:work_location ?h . ?h property:contains_administrative_territorial_entity ?a }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q33550> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937>. ?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/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q33550 wdt:P937 ?X . ?X wdt:P150 ?answer}