What is {nominated for} of {Billy Wilder} that is {statement is subject of} is {39th Academy Awards} ?
Which nomination did Billy Wilder receive for at the 39th Academy Awards?
What was Billy Wilder nominated for at the 39th Academy Awards?
SELECT ?x WHERE { resource:Billy_Wilder property:nominated_for ?v . ?v property:statement_is_subject_of resource:39th_Academy_Awards . ?v property:nominated_for ?x }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q51547> .
?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/P805> <http://wikidata.dbpedia.org/resource/Q167214>
} 

SELECT ?obj WHERE { wd:Q51547 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P805 wd:Q167214 }