what is the {for work} for {Billy Bob Thornton} has {award received} as {Academy Award for Best Writing, Adapted Screenplay} ?
What work is achieved by Billy Bob Thornton at Acadaemy Award for Best Writing ,Adapted Screenplay?
SELECT ?value WHERE { wd:Q202735 p:P166 ?s . ?s ps:P166 wd:Q107258 . ?s pq:P1686 ?value}
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. 
} 

For what work did Billy Bob Thornton win an Academy Award for Best Writing, Adapted Screenplay?