Question: How many Virginia counties are the twinned administrative body of Magdeburg or share a border with Rockingham County (that shares a border with Augusta County)?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" .  { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Magdeburg" .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Rockingham County" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Augusta County" .  } }
Program:
function: Find
inputs: Magdeburg
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 1
inputs: county of Virginia
function: Find
inputs: Augusta County
function: Relate
dependencies: 3
inputs: shares border with
backward
function: Find
inputs: Rockingham County
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: shares border with
forward
function: FilterConcept
dependencies: 7
inputs: county of Virginia
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2