Question: What is the connection between Australia (the one that is headed by prime minister) to Georgia (the one that has a diplomatic relation with Lesotho)?
Choices: distribution
terminus
territory claimed by
parent organization
location of discovery
had as last meal
honorific suffix
has parts of the class
diplomatic relation
parent astronomical body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Australia" . ?e_1 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "prime minister" . ?e_2 <pred:name> "Georgia" . ?e_4 <diplomatic_relation> ?e_2 . ?e_4 <pred:name> "Lesotho" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: prime minister
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Lesotho
function: Relate
dependencies: 4
inputs: diplomatic relation
forward
function: Find
inputs: Georgia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: diplomatic relation