Question: What is the relationship between Angel (whose religion is Catholicism) and Angel (that has Daniel Dae Kim as a cast member)?
Choices:
partially contains
occupation
place of origin (Switzerland)
geographic distribution
appears in the form of
award received
present in work
architectural style
residence
had as last meal
Program:
function: Find
inputs: Catholicism
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Angel
function: And
dependencies: 1
2
function: Find
inputs: Daniel Dae Kim
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Angel
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Angel" . ?e_1 <religion> ?e_3 . ?e_3 <pred:name> "Catholicism" . ?e_2 <pred:name> "Angel" . ?e_2 <cast_member> ?e_4 . ?e_4 <pred:name> "Daniel Dae Kim" . ?e_1 ?p ?e_2 .  }
Answer: present in work