Question: How many county towns are the working location of David Brown (whose Libris-URI is 75knsjgr0hvjxh0) or are located in or next to River Thames?
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 town" .  { ?e_1 <work_location> ?e . ?e_1 <pred:name> "David Brown" . ?e_1 <Libris-URI> ?pv . ?pv <pred:value> "75knsjgr0hvjxh0" .  } UNION { ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "River Thames" .  } }
Program:
function: Find
inputs: David Brown
function: FilterStr
dependencies: 0
inputs: Libris-URI
75knsjgr0hvjxh0
function: Relate
dependencies: 1
inputs: work location
forward
function: FilterConcept
dependencies: 2
inputs: county town
function: Find
inputs: River Thames
function: Relate
dependencies: 4
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 5
inputs: county town
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2