Question: What is the character role of Tom Cruise in The Firm (the one whose director is Sydney Pollack)?
Choices:
Eddie Brock
The President
Larry Sanders
Mitch McDeere
Kitty Pryde
Matthew Lillard
Nicky Parsons
Andy Bernard
Ken Mattingly
Dana Scully
Answer: Mitch McDeere
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Firm" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Sydney Pollack" . ?e_2 <pred:name> "Tom Cruise" . ?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: Sydney Pollack
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Firm
function: And
dependencies: 1
2
function: Find
inputs: Tom Cruise
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role