Question: Denis Leary is cast as what character on the terrorism-themed The Amazing Spider-Man?
Choices: George Stacy
Josh Lyman
Izzie Stevens
Bella Swan
David Tapp
Walt Lloyd
Gabrielle Solis
Jack Crawford
John F. Kennedy
Stanley Goodspeed
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Amazing Spider-Man" . ?e_1 <main_subject> ?e_3 . ?e_3 <pred:name> "terrorism" . ?e_2 <pred:name> "Denis Leary" . ?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: terrorism
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: The Amazing Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Denis Leary
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: George Stacy