What is {nominated for} of {Gregory Peck} that is {statement is subject of} is {18th Academy Awards} ?
Which was the nomination that Gregory Peck got at the 18th Academy Awards?
What was Gregory Peck nominated for at the 18th Academy Awards?
SELECT ?f WHERE { ?y property:statement_is_subject_of resource:18th_Academy_Awards . resource:Gregory_Peck property:nominated_for ?y . ?y property:nominated_for ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q108366> .
?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/Q917178>
} 

SELECT ?obj WHERE { wd:Q108366 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P805 wd:Q917178 }