Question: How is Australia which has a diplomatic relation with French Polynesia related to Nepal?
Choices:
officeholder
diplomatic relation
educated at
languages spoken, written or signed
risk factor
instrumentation
production company
native language
influenced by
illustrator
Program:
function: Find
inputs: French Polynesia
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Nepal
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Australia" . ?e_1 <diplomatic_relation> ?e_3 . ?e_3 <pred:name> "French Polynesia" . ?e_2 <pred:name> "Nepal" . ?e_1 ?p ?e_2 .  }
Answer: diplomatic relation