what is the {nominee} for {Casablanca} has {nominated for} as {Academy Award for Best Original Dramatic or Comedy Score} ?
When the movie Casablanca was nominated for the Academy Award for Best Original Dramatic or Comedy Score, who was the nominee?
Who was nominated for the Academy Award for Best Original Dramatic or Comedy Score for the film Casablanca?
SELECT ?x WHERE { ?k property:nominated_for resource:Academy_Award_for_Best_Original_Dramatic_or_Comedy_Score . resource:Casablanca property:nominated_for ?k . ?k property:nominee ?x }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q132689> .
?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/P2453> ?value. 
} 

SELECT ?value WHERE { wd:Q132689 p:P1411 ?s . ?s ps:P1411 wd:Q22752868 . ?s pq:P2453 ?value}