Question: Tell me the relationship between Rosemary's Baby (the one with script written by James Wong) to James Wong.
Choices:
appears in the form of
member of political party
librettist
archives at
edition or translation of
inspired by
original network
screenwriter
used by
official language
Answer: screenwriter
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Rosemary's Baby" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "James Wong" . ?e_2 <pred:name> "James Wong" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: James Wong
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Rosemary's Baby
function: And
dependencies: 1
2
function: Find
inputs: James Wong
function: QueryRelation
dependencies: 3
4