Question: What is the connection between Tamil Nadu (the one that shares border with Karnataka) to Asia (the one that is the continent that Patna locates)?
Choices: copyright holder
symptom of
military rank
mouth of the watercourse
destination point
software engine
signatory
candidate
member of
continent
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tamil Nadu" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Karnataka" . ?e_2 <pred:name> "Asia" . ?e_4 <continent> ?e_2 . ?e_4 <pred:name> "Patna" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Karnataka
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Tamil Nadu
function: And
dependencies: 1
2
function: Find
inputs: Patna
function: Relate
dependencies: 4
inputs: continent
forward
function: Find
inputs: Asia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: continent