Question: What is the connection between Empire of the Sun (the one whose genre is war film) to Joe Pantoliano?
Choices:
twinned administrative body
drug used for treatment
member of political party
separated from
capital of
residence
enclave within
operator
cast member
subject has role
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Empire of the Sun" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "war film" . ?e_2 <pred:name> "Joe Pantoliano" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: war film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Empire of the Sun
function: And
dependencies: 1
2
function: Find
inputs: Joe Pantoliano
function: QueryRelation
dependencies: 3
4