Question: How many California counties are an end point of the Golden Gate Bridge or that are located in Sierra Nevada?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" .  { ?e_1 <terminus> ?e . ?e_1 <pred:name> "Golden Gate Bridge" .  } UNION { ?e <mountain_range> ?e_1 . ?e_1 <pred:name> "Sierra Nevada" .  } }
Program:
function: Find
inputs: Golden Gate Bridge
function: Relate
dependencies: 0
inputs: terminus
forward
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: Sierra Nevada
function: Relate
dependencies: 3
inputs: mountain range
backward
function: FilterConcept
dependencies: 4
inputs: county of California
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3