What is {nominated for} of {Warren Beatty} that is {for work} is {Heaven Can Wait} ?
What category was Warren Beatty's nomination for Heaven Can Wait?
What was Warren Beatty nominated for in Heaven Can Wait?
SELECT ?x WHERE { ?b property:nominated_for ?x . ?b property:for_work resource:Heaven_Can_Wait . resource:Warren_Beatty property:nominated_for ?b }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q95030> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1686> <http://wikidata.dbpedia.org/resource/Q637180>
} 

SELECT ?obj WHERE { wd:Q95030 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P1686 wd:Q637180 }