Question: What is the relationship between Richard Price (the one that has the occupation of actor) and New York City?
Choices: sponsor
filming location
dissertation submitted to
original language of film or TV show
located in or next to body of water
penalty
head of state
work location
capital of
location of discovery
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Richard Price" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_2 <pred:name> "New York City" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Richard Price
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: QueryRelation
dependencies: 3
4
Answer: work location