Question: How many conservatories are named after Diane Ladd or are located in Manhattan (which is located in New York City)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Diane Ladd
function: Relate
dependencies: 0
inputs: named after
backward
function: FilterConcept
dependencies: 1
inputs: conservatory
function: Find
inputs: New York City
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Manhattan
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: conservatory
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "conservatory" .  { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Diane Ladd" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "New York City" .  } }
Answer: 2