What is {nominated for} of {Rear Window} that is {statement is subject of} is {27th Academy Awards} ?
At the 27th Academy Awards, what was Rear Window nominated?
What Rear Window was nominated for at 27th Academy Awards?
SELECT ?q WHERE { resource:Rear_Window property:nominated_for ?k . ?k property:nominated_for ?q . ?k property:statement_is_subject_of resource:27th_Academy_Awards }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34414> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P805> <http://wikidata.dbpedia.org/resource/Q608130>
} 

SELECT ?obj WHERE { wd:Q34414 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P805 wd:Q608130 }