what is the {statement is subject of} for {Stanley Kubrick} has {nominated for} as {Academy Award for Best Writing, Original Screenplay} ?
which is the {articulation is subject of} for {Stanley Kubrick} that has {designated for} as {Foundation Grant for Best Composing, Unique Screenplay} ?
which is the {statement is subject of} for {Stanley Kubrick} that has {nominated for} as {Academy Award for Best Writing, Original Screenplay} ?
SELECT ?j WHERE { ?k property:statement_is_subject_of ?j . ?k property:nominated_for resource:Academy_Award_for_Best_Writing,_Original_Screenplay . resource:Stanley_Kubrick 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/Q2001> .
?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/Q41417> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q2001 p:P1411 ?s . ?s ps:P1411 wd:Q41417 . ?s pq:P805 ?value}