what is the {statement is subject of} for {On the Waterfront} has {nominated for} as {Academy Award for Best Original Dramatic or Comedy Score} ?
"On the Waterfront" was nominated Best Original Dramatic or Comedy Score for what?
For what was "On the Waterfront" nominated Best Original Dramatic or Comedy Score at the Academy Awards for?
SELECT ?z WHERE { resource:On_the_Waterfront property:nominated_for ?n . ?n property:statement_is_subject_of ?z . ?n property:nominated_for resource:Academy_Award_for_Best_Original_Dramatic_or_Comedy_Score }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q211372> .
?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/Q22752868> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q211372 p:P1411 ?s . ?s ps:P1411 wd:Q22752868 . ?s pq:P805 ?value}