Question: How many provinces in the Netherlands have a population that is not 5900000 or share a border with Utrecht (whose Dewey Decimal Classification is 2--49232)?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "5900000"^^xsd:double ) .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Utrecht" . ?e_1 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--49232" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
5900000
!=
function: FilterConcept
dependencies: 1
inputs: province of the Netherlands
function: Find
inputs: Utrecht
function: FilterStr
dependencies: 3
inputs: Dewey Decimal Classification
2--49232
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: province of the Netherlands
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 11