Question: What number of Italian regions are found on Staten Island, which has a population equaling 471026, or include the Province of Cagliari admin division?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" .  { ?e <located_on_terrain_feature> ?e_1 . ?e_1 <pred:name> "Staten Island" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "471026"^^xsd:double .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Province of Cagliari" .  } }
Program:
function: Find
inputs: Staten Island
function: FilterNum
dependencies: 0
inputs: population
471026
=
function: Relate
dependencies: 1
inputs: located on terrain feature
backward
function: FilterConcept
dependencies: 2
inputs: region of Italy
function: Find
inputs: Province of Cagliari
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: region of Italy
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 1