What is {prize received} of {Martha Graham}, that has {winners} is {Lynn Fontanne} ?
"Which prize gotten by Martha Graham, has another one of the victors named Lynn Fontanne?"
"Which prize received by Martha Graham, has another one of the winners named Lynn Fontanne?"
SELECT ?q WHERE { resource:Martha_Graham property:award_received ?q . ?q property:winner resource:Lynn_Fontanne }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q487604> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166>. ?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/Q242484> . }
SELECT ?answer WHERE { wd:Q487604 wdt:P166 ?answer . ?answer wdt:P1346 wd:Q242484}