Question: How many regions of Italy are either located in Italy or are part of the Province of Rome?
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> "region of Italy" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Italy" .  } UNION { ?e_1 <part_of> ?e . ?e_1 <pred:name> "Province of Rome" .  } }
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: Find
inputs: Province of Rome
function: Relate
dependencies: 3
inputs: part of
forward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 17