What is {nominee for} of {Diane Keaton}, that has {winners} is {James Brolin} ?
What is the nominee for Diane Keaton whose winner is James Brolin?
What is the nominee for Diane Keaton whose winner is James Brolin?
SELECT ?t WHERE { ?t property:winner resource:James_Brolin . resource:Diane_Keaton property:nominated_for ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q102642> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1411>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1346> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q315051> . }
SELECT ?answer WHERE { wd:Q102642 wdt:P1411 ?answer . ?answer wdt:P1346 wd:Q315051}