Question: How many New York counties are in New York (that contains the Albany County administrative division) or have 330000 hectares in land area?
Choices: 40
41
42
43
44
45
46
47
48
49
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "New York" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Albany County" .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "hectare" . ?pv <pred:value> "330000"^^xsd:double .  } }
Program:
function: Find
inputs: Albany County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: New York
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: FindAll
function: FilterNum
dependencies: 6
inputs: area
330000 hectare
=
function: FilterConcept
dependencies: 7
inputs: county of New York
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 45