What is {nominated for} of {Close Encounters of the Third Kind} that is {nominee} is {John Williams} ?
When John Williams was nominated for an award for the film Close Encounters of the Third Kind, which award was it?
What award was John Williams nominated for in Close Encounters of the Third Kind?
SELECT ?f WHERE { ?z property:nominee resource:John_Williams . resource:Close_Encounters_of_the_Third_Kind property:nominated_for ?z . ?z property:nominated_for ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q320588> .
?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/P2453> <http://wikidata.dbpedia.org/resource/Q131285>
} 

SELECT ?obj WHERE { wd:Q320588 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P2453 wd:Q131285 }