Question: How many Massachusetts counties are administrative divisions of Massachusetts, demonym Massachusettsan?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Massachusetts" . ?e_1 <demonym> ?pv . ?pv <pred:value> "Massachusettsan" .   }
Program:
function: Find
inputs: Massachusetts
function: FilterStr
dependencies: 0
inputs: demonym
Massachusettsan
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: county of Massachusetts
function: Count
dependencies: 3