Question: How many Dutch provinces occupy other than 5600000 square km or occupy under 2200000 square ft?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" .  { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "5600000"^^xsd:double ) .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square foot" . ?pv <pred:value> ?v . FILTER ( ?v < "2200000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
5600000 square kilometre
!=
function: FilterConcept
dependencies: 1
inputs: province of the Netherlands
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
2200000 square foot
<
function: FilterConcept
dependencies: 4
inputs: province of the Netherlands
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 11