Question: What is the relation between Hercules (the superhero) and the healing factor?
Choices:
cause of death
drafted by
basin country
country of origin
basic form of government
make-up artist
superhuman feature or ability
ethnic group
newspaper format
official language
Answer: superhuman feature or ability
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hercules" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "superhero" . ?e_2 <pred:name> "healing factor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: superhero
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Hercules
function: And
dependencies: 1
2
function: Find
inputs: healing factor
function: QueryRelation
dependencies: 3
4