Question: What is the connection between Batman (the one that has role cameo appearance) to cameo appearance?
Choices:
has cause
donated by
member of political party
commander of
next higher rank
director
separated from
dissertation submitted to
medical condition
subject has role
Program:
function: Find
inputs: cameo appearance
function: Relate
dependencies: 0
inputs: subject has role
backward
function: Find
inputs: Batman
function: And
dependencies: 1
2
function: Find
inputs: cameo appearance
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Batman" . ?e_1 <subject_has_role> ?e_3 . ?e_3 <pred:name> "cameo appearance" . ?e_2 <pred:name> "cameo appearance" . ?e_1 ?p ?e_2 .  }
Answer: subject has role