Question: What is the connection between University of Western Australia to Australia (the one that has a diplomatic relation with Portugal)?
Choices:
captain
office held by head of the organisation
Wikidata property
founded by
risk factor
located in the administrative territorial entity
enclave within
country
instrument
shares border with
Answer: country
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "University of Western Australia" . ?e_2 <pred:name> "Australia" . ?e_2 <diplomatic_relation> ?e_3 . ?e_3 <pred:name> "Portugal" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: University of Western Australia
function: Find
inputs: Portugal
function: Relate
dependencies: 1
inputs: diplomatic relation
backward
function: Find
inputs: Australia
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4