What is {award received} of {James Cagney} that is {statement is subject of} is {15th Academy Awards} ?
In the 15th Academy Awards, James Cagney won what award?
What did James Cagney win in the 15th Academy Awards?
SELECT ?h WHERE { ?d property:award_received ?h . resource:James_Cagney property:award_received ?d . ?d property:statement_is_subject_of resource:15th_Academy_Awards }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q94041> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P805> <http://wikidata.dbpedia.org/resource/Q508528>
} 

SELECT ?obj WHERE { wd:Q94041 p:P166 ?s . ?s ps:P166 ?obj . ?s pq:P805 wd:Q508528 }