Question: How many New York counties whose population is not 86000 or that are located in or next to Tibet?
Choices:
36
37
38
39
40
41
42
43
44
45
Answer: 45
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "86000"^^xsd:double ) .  } UNION { ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Tibet" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
86000
!=
function: FilterConcept
dependencies: 1
inputs: county of New York
function: Find
inputs: Tibet
function: Relate
dependencies: 3
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: Or
dependencies: 2
5
function: Count
dependencies: 6