Question: Charlie and the Chocolate Factory, released in Denmark, has what connection to Egypt (with a 10% inflation rate)?
Choices:
film release region
replaces
risk factor
production designer
given name
office contested
official residence
place of birth
sexual orientation
has contributing factor
Answer: film release region
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Charlie and the Chocolate Factory" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Denmark" . ?e_2 <pred:name> "Egypt" . ?e_2 <inflation_rate> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> "10"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Denmark
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Charlie and the Chocolate Factory
function: And
dependencies: 1
2
function: Find
inputs: Egypt
function: FilterNum
dependencies: 4
inputs: inflation rate
10 percentage
=
function: QueryRelation
dependencies: 3
5