Question: What is the relationship between Edgar Allan Poe (the one that has the occupation of lawyer) and lawyer?
Choices:
located in time zone
lifestyle
opposite of
public holiday
patron saint
office contested
occupation
manner of death
different from
license
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Edgar Allan Poe" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "lawyer" . ?e_2 <pred:name> "lawyer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: lawyer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Edgar Allan Poe
function: And
dependencies: 1
2
function: Find
inputs: lawyer
function: QueryRelation
dependencies: 3
4