Question: How many awards are located in Springfield (that is situated in Hampden County) or are a part of the Academy Awards?
Choices: 14
15
16
17
18
19
20
21
22
23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "award" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Springfield" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Hampden County" .  } UNION { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Academy Awards" .  } }
Program:
function: Find
inputs: Hampden County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Springfield
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: award
function: Find
inputs: Academy Awards
function: Relate
dependencies: 6
inputs: has part
forward
function: FilterConcept
dependencies: 7
inputs: award
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 16