Question: What does Peterborough (the twinned administrative body of Ann Arbor) have to do with Cambridgeshire (which shares a border with Northamptonshire)?
Choices:
located in time zone
student of
family name
significant event
located in the administrative territorial entity
properties for this type
designed by
field of work
location of final assembly
writing system
Program:
function: Find
inputs: Ann Arbor
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Peterborough
function: And
dependencies: 1
2
function: Find
inputs: Northamptonshire
function: Relate
dependencies: 4
inputs: shares border with
forward
function: Find
inputs: Cambridgeshire
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peterborough" . ?e_3 <twinned_administrative_body> ?e_1 . ?e_3 <pred:name> "Ann Arbor" . ?e_2 <pred:name> "Cambridgeshire" . ?e_4 <shares_border_with> ?e_2 . ?e_4 <pred:name> "Northamptonshire" . ?e_1 ?p ?e_2 .  }
Answer: located in the administrative territorial entity