what is the {for work} for {Billy Bob Thornton} has {award received} as {Academy Award for Best Writing, Adapted Screenplay} ?
For what work did Billy Bob Thornton win an Academy Award for Best Writing, Adapted Screenplay?
What work is achieved by Billy Bob Thornton at Acadaemy Award for Best Writing ,Adapted Screenplay?
SELECT ?r WHERE { resource:Billy_Bob_Thornton property:award_received ?i . ?i property:award_received resource:Academy_Award_for_Best_Writing,_Adapted_Screenplay . ?i property:for_work ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q202735> .
?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:Q202735 p:P166 ?s . ?s ps:P166 wd:Q107258 . ?s pq:P1686 ?value}