Question: How many neighborhoods are the home of David Ogden Stiers or have an elevation other than 6900 feet?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "neighborhood" .  { ?e_1 <residence> ?e . ?e_1 <pred:name> "David Ogden Stiers" .  } UNION { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "foot" . ?pv <pred:value> ?v . FILTER ( ?v != "6900"^^xsd:double ) .  } }
Program:
function: Find
inputs: David Ogden Stiers
function: Relate
dependencies: 0
inputs: residence
forward
function: FilterConcept
dependencies: 1
inputs: neighborhood
function: FindAll
function: FilterNum
dependencies: 3
inputs: elevation above sea level
6900 foot
!=
function: FilterConcept
dependencies: 4
inputs: neighborhood
function: Or
dependencies: 2
5
function: Count
dependencies: 6