Question: Demolition Man, with Denis Leary as a cast member, has what connection to Silver Pictures?
Choices:
military casualty classification
located in time zone
use
subject has role
doctoral student
has quality
professorship
production company
contains administrative territorial entity
position played on team / speciality
Answer: production company
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Demolition Man" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Denis Leary" . ?e_2 <pred:name> "Silver Pictures" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Denis Leary
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Demolition Man
function: And
dependencies: 1
2
function: Find
inputs: Silver Pictures
function: QueryRelation
dependencies: 3
4