Question: What is the character role of Star Trek: Nemesis has Tom Hardy (the one that is a cast member of The Dark Knight Rises)?
Choices: Shinzon
Larry Talbot
Rain Ocampo
Grandpa Goodman
Kate Brewster
Irene Cassini
Neytiri
cameo appearance
Carrie Anne Mathison
Saul Goodman
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Star Trek: Nemesis" . ?e_2 <pred:name> "Tom Hardy" . ?e_3 <cast_member> ?e_2 . ?e_3 <pred:name> "The Dark Knight Rises" . ?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: Star Trek: Nemesis
function: Find
inputs: The Dark Knight Rises
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: Tom Hardy
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role
Answer: Shinzon