Question: How many neighborhoods either share a border with Santa Monica or is the birthplace of Charlie Daniels the pitcher?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "neighborhood" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Santa Monica" .  } UNION { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Charlie Daniels" . ?e_1 <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "pitcher" .  } }
Program:
function: Find
inputs: Santa Monica
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: neighborhood
function: Find
inputs: pitcher
function: Relate
dependencies: 3
inputs: position played on team / speciality
backward
function: Find
inputs: Charlie Daniels
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: place of birth
forward
function: FilterConcept
dependencies: 7
inputs: neighborhood
function: Or
dependencies: 2
8
function: Count
dependencies: 9