Question: What is the number of United States states that is the geographic distribution of the ethnic community that has the geographic distribution of Pennsylvania?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e_1 <geographic_distribution> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "ethnic community" . ?e_1 <geographic_distribution> ?e_2 . ?e_2 <pred:name> "Pennsylvania" .   }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: geographic distribution
backward
function: FilterConcept
dependencies: 1
inputs: ethnic community
function: Relate
dependencies: 2
inputs: geographic distribution
forward
function: FilterConcept
dependencies: 3
inputs: state of the United States
function: Count
dependencies: 4