What is {employer} of {Mata Hari} that is {position held} is {spy} ?
Hata Hari was a spy for what country?
Who employed Mata Hari as a spy?
SELECT ?f WHERE { resource:Mata_Hari property:employer ?n . ?n property:position_held resource:spy . ?n property:employer ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q82180> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P108> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P39> <http://wikidata.dbpedia.org/resource/Q9352089>
} 

SELECT ?obj WHERE { wd:Q82180 p:P108 ?s . ?s ps:P108 ?obj . ?s pq:P39 wd:Q9352089 }