Question: How many New York cities are located in the county of New York that contains Long Beach whose postal code is 11561?
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> "city of New York" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of New York" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Long Beach" . ?e_2 <postal_code> ?pv . ?pv <pred:value> "11561" .   }
Program:
function: Find
inputs: Long Beach
function: FilterStr
dependencies: 0
inputs: postal code
11561
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: county of New York
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: city of New York
function: Count
dependencies: 5