Question: What is the number of New York counties that have country the sovereign state with the Dewey Decimal Classification is 2--73
Choices:
42
43
44
45
46
47
48
49
50
51
Answer: 45
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--73" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--73
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: county of New York
function: Count
dependencies: 4