Question: How is Annie (released in Germany) related to Hong Kong that shares border with Guangdong?
Choices:
award disciplines or subjects
edition or translation of
operating area
librettist
nutrient
film release region
diplomatic relation
newspaper format
candidacy in election
rector
Answer: film release region
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Annie" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Germany" . ?e_2 <pred:name> "Hong Kong" . ?e_2 <shares_border_with> ?e_4 . ?e_4 <pred:name> "Guangdong" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Annie
function: And
dependencies: 1
2
function: Find
inputs: Guangdong
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Hong Kong
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7