Question: What is the relationship between Unknown (the one that is shot in Berlin) and Leonard Goldberg (the one that has the occupation of television producer)?
Choices:
subsidiary
home world
producer
business division
located in the administrative territorial entity
located on astronomical location
child astronomical body
tributary
student
captain
Answer: producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Unknown" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Berlin" . ?e_2 <pred:name> "Leonard Goldberg" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "television producer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Berlin
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Unknown
function: And
dependencies: 1
2
function: Find
inputs: television producer
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Leonard Goldberg
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7