Question: How many comunes of Italy are there whose population is not 920000 or area is 2200000 square feet?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
920000
!=
function: FilterConcept
dependencies: 1
inputs: comune of Italy
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
2200000 square foot
=
function: FilterConcept
dependencies: 4
inputs: comune of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comune of Italy" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "920000"^^xsd:double ) .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square foot" . ?pv <pred:value> "2200000"^^xsd:double .  } }
Answer: 5