what is the {for work} for {Ruth Prawer Jhabvala} has {award received} as {Academy Award for Best Writing, Adapted Screenplay} ?
The Academy Award for Best Writing, Adapted Screenplay was won by Ruth Prawer Jhabvala for what?
What did Ruth Prawer Jhabvala win Academy Award for Best Writing, Adapted Screenplay for?
SELECT ?j WHERE { ?r property:for_work ?j . ?r property:award_received resource:Academy_Award_for_Best_Writing,_Adapted_Screenplay . resource:Ruth_Prawer_Jhabvala property:award_received ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q235759> .
?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/Q107258> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q235759 p:P166 ?s . ?s ps:P166 wd:Q107258 . ?s pq:P1686 ?value}