Question: What is the relationship between Twister (the one that has William S. Burroughs as a cast member) to Hans Zimmer (the one that works in the location Los Angeles)?
Choices:
operator
worshipped by
father
practiced by
costume designer
drug used for treatment
work location
commissioned by
famous people
composer
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Twister" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "William S. Burroughs" . ?e_2 <pred:name> "Hans Zimmer" . ?e_2 <work_location> ?e_4 . ?e_4 <pred:name> "Los Angeles" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: William S. Burroughs
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Twister
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles
function: Relate
dependencies: 4
inputs: work location
backward
function: Find
inputs: Hans Zimmer
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7