Question: How many New York counties share a border with Dutchess County?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Dutchess County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: county of New York
function: Count
dependencies: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Dutchess County" .   }
Answer: 4