Question: Tell me the relationship between Kingdom of Hungary (which is part of Axis) to Europe.
Choices:
continent
sibling
copyright representative
officially opened by
notable work
creator
permanent resident of
depicted by
discoverer or inventor
participant of
Answer: continent
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kingdom of Hungary" . ?e_3 <has_part> ?e_1 . ?e_3 <pred:name> "Axis" . ?e_2 <pred:name> "Europe" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Axis
function: Relate
dependencies: 0
inputs: has part
forward
function: Find
inputs: Kingdom of Hungary
function: And
dependencies: 1
2
function: Find
inputs: Europe
function: QueryRelation
dependencies: 3
4