Question: How many New York counties have the FIPS 6-4 (US counties) 36029 and are an administrative division of New York (that shares a border with New Jersey)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "36029" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "New York" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "New Jersey" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
36029
function: FilterConcept
dependencies: 1
inputs: county of New York
function: Find
inputs: New Jersey
function: Relate
dependencies: 3
inputs: shares border with
forward
function: Find
inputs: New York
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of New York
function: And
dependencies: 2
8
function: Count
dependencies: 9