Question: How is John Oliver who lives in New York City related to actor?
Choices: statistical leader
archives at
operating system
item operated
home venue
occupation
contains administrative territorial entity
has part
enclave within
source of material
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Oliver" . ?e_1 <residence> ?e_3 . ?e_3 <pred:name> "New York City" . ?e_2 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: John Oliver
function: And
dependencies: 1
2
function: Find
inputs: actor
function: QueryRelation
dependencies: 3
4
Answer: occupation