Question: How many Maryland counties share a border with Montgomery County (the one whose postal code is 20859–20862) or have an inception time before 1776?
Choices: 6
7
8
9
10
11
12
13
14
15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maryland" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Montgomery County" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "20859–20862" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1776 ) .  } }
Program:
function: Find
inputs: Montgomery County
function: FilterStr
dependencies: 0
inputs: postal code
20859–20862
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Maryland
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1776
<
function: FilterConcept
dependencies: 5
inputs: county of Maryland
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 9