Question: What is the relationship between Jane Alexander, a citizen of Italy and actor?
Choices: officially opened by
country
medical treatment
political ideology
studied by
risk factor
narrator
occupation
capital
doctoral student
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jane Alexander" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "Italy" . ?e_2 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Jane Alexander
function: And
dependencies: 1
2
function: Find
inputs: actor
function: QueryRelation
dependencies: 3
4
Answer: occupation