Question: How many counties in New Jersey with a population of less than 3900000 also serve as an administrative division of New Jersey?
Choices: 12
13
14
15
16
17
18
19
20
21
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "3900000"^^xsd:double ) . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "New Jersey" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
3900000
<
function: FilterConcept
dependencies: 1
inputs: county of New Jersey
function: Find
inputs: New Jersey
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of New Jersey
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 20