what is the {for work} for {Gary Oldman} has {award received} as {BAFTA Award for Best Actor in a Leading Role} ?
In what movie did Gary Oldman receive the BAFTA Award for Best Actor in a Leading Role?
What is the work of Gary Oldman who received BAFTA Award for Best Actor in a Leading Role?
SELECT ?b WHERE { ?r property:for_work ?b . resource:Gary_Oldman property:award_received ?r . ?r property:award_received resource:BAFTA_Award_for_Best_Actor_in_a_Leading_Role }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q83492> .
?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/Q400007> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q83492 p:P166 ?s . ?s ps:P166 wd:Q400007 . ?s pq:P1686 ?value}