Question: Tell me the number of counties of New York that share the border with Delaware County (which has the official website http://www.co.delaware.ny.us) and that are populated with less than 850000 people.
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Delaware County" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.co.delaware.ny.us" .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v < "850000"^^xsd:double ) .  }
Program:
function: Find
inputs: Delaware County
function: FilterStr
dependencies: 0
inputs: official website
http://www.co.delaware.ny.us
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county of New York
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
850000
<
function: FilterConcept
dependencies: 5
inputs: county of New York
function: And
dependencies: 3
6
function: Count
dependencies: 7