Question: What does Frankfurt (Oder) have in common with German Empire (the one that shares border with Russian Empire)
Choices:
spouse
terminus
has parts of the class
position played on team / speciality
director/manager
official language
child astronomical body
designed to carry
creator
country
Program:
function: Find
inputs: Frankfurt (Oder)
function: Find
inputs: Russian Empire
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: German Empire
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Frankfurt (Oder)" . ?e_2 <pred:name> "German Empire" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Russian Empire" . ?e_1 ?p ?e_2 .  }
Answer: country