Question: How is The Rocky Horror Picture Show related to English-descent Tim Curry ?
Choices: founded by
production designer
spouse
sponsor
headquarters location
creator
general manager
cast member
permanent resident of
diplomatic relation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Rocky Horror Picture Show" . ?e_2 <pred:name> "Tim Curry" . ?e_2 <ethnic_group> ?e_3 . ?e_3 <pred:name> "English people" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: The Rocky Horror Picture Show
function: Find
inputs: English people
function: Relate
dependencies: 1
inputs: ethnic group
backward
function: Find
inputs: Tim Curry
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: cast member