Question: Actor Karl Urban played which character as a cast member of Dredd?
Choices:
Stephen Hawking
Daredevil
Hikaru Sulu
David Ferrie
Chad Danforth
WALL·E
Kingpin
Judge Dredd
Professor Vinick
Fallen
Program:
function: Find
inputs: Dredd
function: Find
inputs: actor
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Karl Urban
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Dredd" . ?e_2 <pred:name> "Karl Urban" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?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: Judge Dredd