Question: How many first-level administrative country subdivision comprise the narrative location of Pearl Harbor or the release region of The Crucible (the one with the origins from German Democratic Republic) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" .  { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "Pearl Harbor" .  } UNION { ?e_1 <film_release_region> ?e . ?e_1 <pred:name> "The Crucible" . ?e_1 <country_of_origin> ?e_2 . ?e_2 <pred:name> "German Democratic Republic" .  } }
Program:
function: Find
inputs: Pearl Harbor
function: Relate
dependencies: 0
inputs: narrative location
forward
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: Find
inputs: German Democratic Republic
function: Relate
dependencies: 3
inputs: country of origin
backward
function: Find
inputs: The Crucible
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: film release region
forward
function: FilterConcept
dependencies: 7
inputs: first-level administrative country subdivision
function: Or
dependencies: 2
8
function: Count
dependencies: 9