Question: What is the connection between Alfie (the one that was nominated for Academy Award for Best Writing, Adapted Screenplay) to Michael Caine?
Choices:
cast member
office held by head of government
Wikidata property
student of
culture
lowest point
designed by
location of formation
conflict
convicted of
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alfie" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" . ?e_2 <pred:name> "Michael Caine" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Alfie
function: And
dependencies: 1
2
function: Find
inputs: Michael Caine
function: QueryRelation
dependencies: 3
4