Question: How many New Jersey cities have postal code 08901–08903 or border Staten Island whose official website is https://www.statenislandusa.com/?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" .  { ?e <postal_code> ?pv . ?pv <pred:value> "08901–08903" .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Staten Island" . ?e_1 <official_website> ?pv . ?pv <pred:value> "https://www.statenislandusa.com/" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
08901–08903
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: Find
inputs: Staten Island
function: FilterStr
dependencies: 3
inputs: official website
https://www.statenislandusa.com/
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: city in New Jersey
function: Or
dependencies: 2
6
function: Count
dependencies: 7