what is the {for work} for {Diane Keaton} has {nominated for} as {Academy Award for Best Actress} ?
Diane Keaton was nominated for Best Actress for what film?
What film was Diane Keaton nominated for an Academy Award for Best Actress?
SELECT ?u WHERE { resource:Diane_Keaton property:nominated_for ?j . ?j property:nominated_for resource:Academy_Award_for_Best_Actress . ?j property:for_work ?u }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q102642> .
?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/Q103618> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q102642 p:P1411 ?s . ?s ps:P1411 wd:Q103618 . ?s pq:P1686 ?value}