Question: How many Dutch provinces occupy over 570 square km or have Duisburg as their capital?
Choices:
8
9
10
11
12
13
14
15
16
17
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
570 square kilometre
>
function: FilterConcept
dependencies: 1
inputs: province of the Netherlands
function: Find
inputs: Duisburg
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: province of the Netherlands
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> "province of the Netherlands" .  { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "570"^^xsd:double ) .  } UNION { ?e <capital> ?e_1 . ?e_1 <pred:name> "Duisburg" .  } }
Answer: 11