What is {location of work} of {Edvard Westermarck}, that has {sister city} is {Copenhagen} ?
Where does Edvard Westermarck work? His sister lives in Copenhagen.
Where does Edvard Westermarck work? His sister lives in Copenhagen.
SELECT ?t WHERE { ?t property:twinned_administrative_body resource:Copenhagen . resource:Edvard_Westermarck property:work_location ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q722835> . ?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> ?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/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1748> . }
SELECT ?answer WHERE { wd:Q722835 wdt:P937 ?answer . ?answer wdt:P190 wd:Q1748}
Helsinki