what is the {for work} for {Danny Elfman} has {nominated for} as {Academy Award for Best Original Score} ?
Which score got Danny Elfman nominated for an Academy Award for Best Original Score?
Which of Danny Elfman's works was nominated for an Academy Award for Best Original Score?
SELECT ?x WHERE { ?a property:nominated_for resource:Academy_Award_for_Best_Original_Score . resource:Danny_Elfman property:nominated_for ?a . ?a property:for_work ?x }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q193338> .
?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:Q193338 p:P1411 ?s . ?s ps:P1411 wd:Q488651 . ?s pq:P1686 ?value}