what is the {for work} for {Gary Cooper} has {nominated for} as {Academy Award for Best Actor} ?
The Academy Award for Best Actor was given to Gary Cooper for what work?
For what work was Gary Cooper nominated for an Academy Award for Best Actor?
SELECT ?e WHERE { resource:Gary_Cooper property:nominated_for ?i . ?i property:nominated_for resource:Academy_Award_for_Best_Actor . ?i property:for_work ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q93957> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1411> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q103916> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q93957 p:P1411 ?s . ?s ps:P1411 wd:Q103916 . ?s pq:P1686 ?value}