Question: How many Netherlands municipalities are the capital of Limburg (which has the captital Maastricht) or have a number of households less than 30?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Maastricht
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Limburg
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: municipality of the Netherlands
function: FindAll
function: FilterNum
dependencies: 6
inputs: number of households
30
<
function: FilterConcept
dependencies: 7
inputs: municipality of the Netherlands
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "municipality of the Netherlands" .  { ?e_1 <capital> ?e . ?e_1 <pred:name> "Limburg" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "Maastricht" .  } UNION { ?e <number_of_households> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "30"^^xsd:double ) .  } }
Answer: 1