Question: Festival has what connection to Australia, which is in a diplomatic relationship with Denmark?
Choices:
country
office held by head of the organisation
residence
screenwriter
talk show guest
material used
rector
studied by
director of photography
office held by head of state
Program:
function: Find
inputs: Festival
function: Find
inputs: Denmark
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Australia
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Festival" . ?e_2 <pred:name> "Australia" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Denmark" . ?e_1 ?p ?e_2 .  }
Answer: country