Question: How many census-designated place are located in Montgomery County having area of 1313 square kilometre or formation location is Ocean Software?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "census-designated place" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Montgomery County" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "1313"^^xsd:double .  } UNION { ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "Ocean Software" .  } }
Program:
function: Find
inputs: Montgomery County
function: FilterNum
dependencies: 0
inputs: area
1313 square kilometre
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: census-designated place
function: Find
inputs: Ocean Software
function: Relate
dependencies: 4
inputs: location of formation
forward
function: FilterConcept
dependencies: 5
inputs: census-designated place
function: Or
dependencies: 3
6
function: Count
dependencies: 7