what is the {for work} for {Jerry Goldsmith} has {nominated for} as {Academy Award for Best Original Score} ?
Jerry Goldsmith was nominated for Best Original Score for what movie?
For what movie was Jerry Goldsmith nominated for the Academy Award for Best Original Score?
SELECT ?y WHERE { resource:Jerry_Goldsmith property:nominated_for ?b . ?b property:nominated_for resource:Academy_Award_for_Best_Original_Score . ?b property:for_work ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q235077> .
?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/Q488651> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q235077 p:P1411 ?s . ?s ps:P1411 wd:Q488651 . ?s pq:P1686 ?value}