what is the {statement is subject of} for {Otto Preminger} has {nominated for} as {Academy Award for Best Director} ?
Tell me what movie got Otto Preminger nominated for Best Director in the Academy Awards.
For what movie was Otto Preminger nominated for Academy Award for Best Director?
SELECT ?g WHERE { resource:Otto_Preminger property:nominated_for ?z . ?z property:nominated_for resource:Academy_Award_for_Best_Director . ?z property:statement_is_subject_of ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q52997> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1411> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q103360> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q52997 p:P1411 ?s . ?s ps:P1411 wd:Q103360 . ?s pq:P805 ?value}