Question: How many Virginia counties are located in Virginia (the one whose Dewey Decimal Classification is 2--755)?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Virginia" . ?e_1 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--755" .   }
Program:
function: Find
inputs: Virginia
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--755
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Virginia
function: Count
dependencies: 3