Question: What is the character role of Jude Law in Sherlock Holmes (the one that has Robert Downey Jr. as a cast member) ?
Choices:
Philip Henslowe
Zoey Pierson
Cave of Wonders
Richie Gecko
M
Red Forman
Seti I
Daniel Faraday
Dr. John Watson
Leonard McCoy
Program:
function: Find
inputs: Robert Downey Jr.
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Sherlock Holmes
function: And
dependencies: 1
2
function: Find
inputs: Jude Law
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Sherlock Holmes" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Robert Downey Jr." . ?e_2 <pred:name> "Jude Law" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Dr. John Watson