What is {actor} of {Close Encounters of the Third Kind}, that has {work} is {astrophysicist} ?
Which performing artist in Near Experiences of the Third Kind has worked as an astrophysicist?
Which actor in Close Encounters of the Third Kind has worked as an astrophysicist?
SELECT ?x WHERE { ?x property:occupation resource:astrophysicist . resource:Close_Encounters_of_the_Third_Kind property:cast_member ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q320588> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161>. ?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/P106> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q752129> . }
SELECT ?answer WHERE { wd:Q320588 wdt:P161 ?answer . ?answer wdt:P106 wd:Q752129}
J. Allen Hynek