what is the {for work} for {Omar Sharif} has {award received} as {César Award for Best Actor} ?
When Omar Sharif was awarded the Cesar Award for Best Actor, what was it for?
For which work did Omar Sharif receive the Cesar Award for Best Actor?
SELECT ?p WHERE { ?c property:award_received resource:César_Award_for_Best_Actor . resource:Omar_Sharif property:award_received ?c . ?c property:for_work ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170515> .
?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/Q900494> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q170515 p:P166 ?s . ?s ps:P166 wd:Q900494 . ?s pq:P1686 ?value}