Question: What is the connection between Hamlet (whose release region is in Berlin) and Leipzig?
Choices: enclave within
place of publication
geographic distribution
place served by transport hub
original film format
league
opposite of
filmography
named after
next lower rank
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <place_of_publication> ?e_3 . ?e_3 <pred:name> "Berlin" . ?e_2 <pred:name> "Leipzig" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Berlin
function: Relate
dependencies: 0
inputs: place of publication
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Leipzig
function: QueryRelation
dependencies: 3
4
Answer: place of publication