Question: How many Arizona counties are an administrative division of Arizona (the filming location of Rambo III) or are in the country of United States of America?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Arizona" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Rambo III" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: Rambo III
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: Arizona
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Arizona
function: Find
inputs: United States of America
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: county of Arizona
function: Or
dependencies: 5
8
function: Count
dependencies: 9