Question: What is the connection between Bohemia (the one that has military conflicts with Kingdom of Scotland) to Swedish Empire?
Choices:
lifestyle
permanent resident of
captain
programming paradigm
military conflicts
notable work
contributing factor of
successful candidate
set in period
place served by transport hub
Answer: military conflicts
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bohemia" . ?e_1 <military_conflicts> ?e_3 . ?e_3 <pred:name> "Kingdom of Scotland" . ?e_2 <pred:name> "Swedish Empire" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Kingdom of Scotland
function: Relate
dependencies: 0
inputs: military conflicts
backward
function: Find
inputs: Bohemia
function: And
dependencies: 1
2
function: Find
inputs: Swedish Empire
function: QueryRelation
dependencies: 3
4