Question: How many learned societies are in the Manhattan that occupies 33.58 square miles or have IRS registration?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "learned society" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_1 <area> ?pv . ?pv <pred:unit> "square mile" . ?pv <pred:value> "33.58"^^xsd:double .  } UNION { ?e <registered_with> ?e_1 . ?e_1 <pred:name> "Internal Revenue Service" .  } }
Program:
function: Find
inputs: Manhattan
function: FilterNum
dependencies: 0
inputs: area
33.58 square mile
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: learned society
function: Find
inputs: Internal Revenue Service
function: Relate
dependencies: 4
inputs: registered with
backward
function: FilterConcept
dependencies: 5
inputs: learned society
function: Or
dependencies: 3
6
function: Count
dependencies: 7