Question: How many departments of France are the administrative divisions of Nord-Pas-De-Calais, or, comprise the area of less than 2,400 hectares ?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "departments of France" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Nord-Pas-de-Calais" .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "hectare" . ?pv <pred:value> ?v . FILTER ( ?v < "2400"^^xsd:double ) .  } }
Program:
function: Find
inputs: Nord-Pas-de-Calais
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: departments of France
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
2400 hectare
<
function: FilterConcept
dependencies: 4
inputs: departments of France
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2