Question: What is the connection between Austria-Hungary to Romania (the one that replaces Moldavia)?
Choices:
sport
permanent resident of
shares border with
country of origin
appears in the form of
country of citizenship
maintained by
composer
costume designer
operating area
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Austria-Hungary" . ?e_2 <pred:name> "Romania" . ?e_3 <replaced_by> ?e_2 . ?e_3 <pred:name> "Moldavia" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Austria-Hungary
function: Find
inputs: Moldavia
function: Relate
dependencies: 1
inputs: replaced by
forward
function: Find
inputs: Romania
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4