what is the {for work} for {Carol Reed} has {award received} as {Academy Award for Best Director} ?
For what movie did Carol Reed win Best Director?
For what work did Carol Reed receive an Academy Award for Best Director?
SELECT ?h WHERE { ?n property:for_work ?h . ?n property:award_received resource:Academy_Award_for_Best_Director . resource:Carol_Reed property:award_received ?n }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q95143> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q103360> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q95143 p:P166 ?s . ?s ps:P166 wd:Q103360 . ?s pq:P1686 ?value}