Question: What mercenary is the main subject of G.I. Joe: The Rise of Cobra starring Jonathan Pryce?
Choices:
speaker of the United States House of Representatives
ninja
graphic designer
seiyū
make-up artist
bandleader
financier
terrorism
astronaut
cinematographer
Answer: ninja
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mercenary" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "G.I. Joe: The Rise of Cobra" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Jonathan Pryce" .   }
Program:
function: Find
inputs: Jonathan Pryce
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: G.I. Joe: The Rise of Cobra
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: mercenary
function: What
dependencies: 5