Question: How many constitutional monarchies are the release region of The Lord of the Rings: The Two Towers (whose release region is Malaysia) or have an inflation rate that is not 1300 percent?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" .  { ?e_1 <film_release_region> ?e . ?e_1 <pred:name> "The Lord of the Rings: The Two Towers" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Malaysia" .  } UNION { ?e <inflation_rate> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> ?v . FILTER ( ?v != "1300"^^xsd:double ) .  } }
Program:
function: Find
inputs: Malaysia
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Lord of the Rings: The Two Towers
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: film release region
forward
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: FindAll
function: FilterNum
dependencies: 6
inputs: inflation rate
1300 percentage
!=
function: FilterConcept
dependencies: 7
inputs: constitutional monarchy
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 3