Question: How many Pennsylvanian counties lie in the US and comprise a narrative location of X Men Origins: Wolverine (released in Indonesia) ?
Choices:
35
36
37
38
39
40
41
42
43
44
Answer: 39
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "X-Men Origins: Wolverine" . ?e_2 <film_release_region> ?e_3 . ?e_3 <pred:name> "Indonesia" .   }
Program:
function: Find
inputs: Indonesia
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: X-Men Origins: Wolverine
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: Relate
dependencies: 5
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 6
inputs: county of Pennsylvania
function: Count
dependencies: 7