Question: How is the prison film Weeds related to Joe Mantegna?
Choices: creator
cast member
genre
military conflicts
composer
significant event
distributor
twinned administrative body
award disciplines or subjects
has edition
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Weeds" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "prison film" . ?e_2 <pred:name> "Joe Mantegna" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: prison film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Weeds
function: And
dependencies: 1
2
function: Find
inputs: Joe Mantegna
function: QueryRelation
dependencies: 3
4
Answer: cast member