Question: what is the number of regions in Italy that has a native label of Puglia or that is an Italian administrative division?
Choices: 15
16
17
18
19
20
21
22
23
24
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" .  { ?e <native_label> ?pv . ?pv <pred:value> "Puglia" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Italy" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Puglia
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: Find
inputs: Italy
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 17