What is {nominated for} of {Ruth Gordon} that is {statement is subject of} is {20th Academy Awards} ?
For which Oscar was Ruth Gordon nominated?
What was Ruth Gordon nominated for at the 20th Academy Awards?
SELECT ?n WHERE { resource:Ruth_Gordon property:nominated_for ?p . ?p property:nominated_for ?n . ?p property:statement_is_subject_of resource:20th_Academy_Awards }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q232562> .
?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/Q303473>
} 

SELECT ?obj WHERE { wd:Q232562 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P805 wd:Q303473 }