Question: Michael Keaton is cast in what role on Batman, also featuring Jack Palance as a cast member?
Choices:
Nelson Muntz
Nikola Tesla
Michael Corleone
Twoflower
Batman
William Gardner
Dr. Christmas Jones
Severus Snape
Father John Fielding
Captain Nemo
Answer: Batman
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Batman" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jack Palance" . ?e_2 <pred:name> "Michael Keaton" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Jack Palance
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Batman
function: And
dependencies: 1
2
function: Find
inputs: Michael Keaton
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role