Question: How many counties are in the Mountain Time Zone and are in Maryland or an administrative division, sharing a border with West Virginia?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maryland" .  { ?e <located_in_time_zone> ?e_1 . ?e_1 <pred:name> "Mountain Time Zone" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Maryland" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "West Virginia" .  } }
Program:
function: Find
inputs: Mountain Time Zone
function: Relate
dependencies: 0
inputs: located in time zone
backward
function: FilterConcept
dependencies: 1
inputs: county of Maryland
function: Find
inputs: West Virginia
function: Relate
dependencies: 3
inputs: shares border with
backward
function: Find
inputs: Maryland
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of Maryland
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 13