What is {nominated for} of {Judy Holliday} that is {for work} is {Born Yesterday} ?
For Born Yesterday, what was Judy Holliday nominated for?
What was Judy Holliday nominated for for Born Yesterday?
SELECT ?z WHERE { ?e property:nominated_for ?z . resource:Judy_Holliday property:nominated_for ?e . ?e property:for_work resource:Born_Yesterday }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q253298> .
?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/Q375594>
} 

SELECT ?obj WHERE { wd:Q253298 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P1686 wd:Q375594 }