Question: How many Massachusetts counties are an administrative division of the state in the United States whose subreddit is Massachusetts (in English)?
Choices:
6
7
8
9
10
11
12
13
14
15
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: subreddit
Massachusetts
function: QFilterStr
dependencies: 1
inputs: language of work or name
English
function: FilterConcept
dependencies: 2
inputs: state of the United States
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
function: Count
dependencies: 5
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:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_1 <subreddit> ?pv . ?pv <pred:value> "Massachusetts" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <subreddit> ; <pred:fact_t> ?pv ] <language_of_work_or_name> ?qpv . ?qpv <pred:value> "English" .   }
Answer: 12