what is the {for work} for {John Cassavetes} has {nominated for} as {Academy Award for Best Director} ?
John Cassavetes was nominated for what film as an Academy award as best director
What film was John Cassavetes nominated for an Academy Award as Best Director?
SELECT ?h WHERE { ?k property:nominated_for resource:Academy_Award_for_Best_Director . ?k property:for_work ?h . resource:John_Cassavetes property:nominated_for ?k }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q51488> .
?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/Q103360> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q51488 p:P1411 ?s . ?s ps:P1411 wd:Q103360 . ?s pq:P1686 ?value}