Question: How is musician Roger Moore related to the profession of musician?
Choices:
cites
occupation
product or material produced
follows
father
legislative body
head coach
family name
takes place in fictional universe
culture
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Roger Moore" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "musician" . ?e_2 <pred:name> "musician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: musician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Roger Moore
function: And
dependencies: 1
2
function: Find
inputs: musician
function: QueryRelation
dependencies: 3
4