Question: How many Oregon counties share a border with Klamath County or are an administrative division of Illinois (the one that is the narrative location of The Silence of the Lambs)?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Oregon" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Klamath County" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Illinois" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "The Silence of the Lambs" .  } }
Program:
function: Find
inputs: Klamath County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: county of Oregon
function: Find
inputs: The Silence of the Lambs
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Illinois
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of Oregon
function: Or
dependencies: 2
8
function: Count
dependencies: 9