Question: What is the relationship between Jerry Lewis (the one that has the occupation of priest) and Mesa (the one that is headed by mayor)?
Choices:
screenwriter
game mode
field of this occupation
sports season of league or competition
cites
subject has role
occupant
mouth of the watercourse
residence
relative
Program:
function: Find
inputs: priest
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Jerry Lewis
function: And
dependencies: 1
2
function: Find
inputs: mayor
function: Relate
dependencies: 4
inputs: office held by head of government
backward
function: Find
inputs: Mesa
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jerry Lewis" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "priest" . ?e_2 <pred:name> "Mesa" . ?e_2 <office_held_by_head_of_government> ?e_4 . ?e_4 <pred:name> "mayor" . ?e_1 ?p ?e_2 .  }
Answer: residence