Question: How many Maine counties share a border with Penobscot County or began after 1809?
Choices:
5
6
7
8
9
10
11
12
13
14
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maine" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Penobscot County" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1809 ) .  } }
Program:
function: Find
inputs: Penobscot County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: county of Maine
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1809
>
function: FilterConcept
dependencies: 4
inputs: county of Maine
function: Or
dependencies: 2
5
function: Count
dependencies: 6