Question: What has Darwin (the one that is the capital of Northern Territory) todo with  Australia (the one that shares border with East Timor)?
Choices: business division
start point
official religion
country
diplomatic relation
afflicts
approved by
based on
dissertation submitted to
member of
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Darwin" . ?e_3 <capital> ?e_1 . ?e_3 <pred:name> "Northern Territory" . ?e_2 <pred:name> "Australia" . ?e_2 <shares_border_with> ?e_4 . ?e_4 <pred:name> "East Timor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Northern Territory
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Darwin
function: And
dependencies: 1
2
function: Find
inputs: East Timor
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Australia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: country