what is the {statement is subject of} for {Pedro Almodóvar} has {award received} as {Academy Award for Best Writing, Original Screenplay} ?
FRANCIA
Where did Pedro Almodovar win Best Writing, Original Screenplay?
SELECT ?d WHERE { resource:Pedro_Almodóvar property:award_received ?f . ?f property:statement_is_subject_of ?d . ?f property:award_received resource:Academy_Award_for_Best_Writing,_Original_Screenplay }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q55171> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166> .
?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:Q55171 p:P166 ?s . ?s ps:P166 wd:Q41417 . ?s pq:P805 ?value}