Question: What number of New Jersey cities have the official name New Brunswick or have more than 2.1 people?
Choices:
15
16
17
18
19
20
21
22
23
24
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
New Brunswick
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
2.1
>
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" .  { ?e <official_name> ?pv . ?pv <pred:value> "New Brunswick" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2.1"^^xsd:double ) .  } }
Answer: 15