Question: How is Pretoria related to Bethlehem, twin administrative body of Glasgow?
Choices: architect
rector
twinned administrative body
filming location
registered with
illustrator
operating system
main food source
takes place in fictional universe
office held by head of government
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Pretoria" . ?e_2 <pred:name> "Bethlehem" . ?e_3 <twinned_administrative_body> ?e_2 . ?e_3 <pred:name> "Glasgow" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pretoria
function: Find
inputs: Glasgow
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Bethlehem
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: twinned administrative body