Question: What is cast member Tom Cruise's character role in the work Jack Reacher (the one whose box office is 218340595 United States dollar)?
Choices:
George Washington
John Constantine
John Seward
Frederick Douglass
Rajah
Ian the Gator
Prince Achmed
Jack Reacher
Mickey Aldrin
H. Lee Sarokin
Answer: Jack Reacher
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jack Reacher" . ?e_1 <box_office> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "218340595"^^xsd:double . ?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: Jack Reacher
function: FilterNum
dependencies: 0
inputs: box office
218340595 United States dollar
=
function: Find
inputs: Tom Cruise
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
character role