Question: How many New York counties are with Kingston, population 23,893, as the capital and are located in Cuba terrain feature, whose length is 1,250 kilometres ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Kingston" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "23893"^^xsd:double .  ?e <located_on_terrain_feature> ?e_2 . ?e_2 <pred:name> "Cuba" . ?e_2 <length> ?pv_1 . ?pv_1 <pred:unit> "kilometre" . ?pv_1 <pred:value> "1250"^^xsd:double .  }
Program:
function: Find
inputs: Kingston
function: FilterNum
dependencies: 0
inputs: population
23893
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: county of New York
function: Find
inputs: Cuba
function: FilterNum
dependencies: 4
inputs: length
1250 kilometre
=
function: Relate
dependencies: 5
inputs: located on terrain feature
backward
function: FilterConcept
dependencies: 6
inputs: county of New York
function: And
dependencies: 3
7
function: Count
dependencies: 8