Question: How many provinces of the Netherlands claim the country that is the release region of Carnage (that originates in Spain)?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "country" . ?e_2 <film_release_region> ?e_1 . ?e_2 <pred:name> "Carnage" . ?e_2 <country_of_origin> ?e_3 . ?e_3 <pred:name> "Spain" .   }
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Carnage
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: film release region
forward
function: FilterConcept
dependencies: 4
inputs: country
function: Relate
dependencies: 5
inputs: country
backward
function: FilterConcept
dependencies: 6
inputs: province of the Netherlands
function: Count
dependencies: 7