Question: How many nonprofit organizations were established in New York City or were created after 1934?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "nonprofit organization" .  { ?e <location_of_formation> ?e_1 . ?e_1 <pred:name> "New York City" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1934 ) .  } }
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: location of formation
backward
function: FilterConcept
dependencies: 1
inputs: nonprofit organization
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1934
>
function: FilterConcept
dependencies: 4
inputs: nonprofit organization
function: Or
dependencies: 2
5
function: Count
dependencies: 6