Question: Which sovereign state has military conflicts with Poland and shares a border with the Kingdom of Bulgaria?
Choices:
Kingdom of Romania
Switzerland
Philippines
Belgium
Turkey
Mexico
Cambodia
Socialist Federal Republic of Yugoslavia
United Kingdom
United States of America
Answer: Kingdom of Romania
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <military_conflicts> ?e_1 . ?e_1 <pred:name> "Poland" .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Kingdom of Bulgaria" .  }
Program:
function: Find
inputs: Poland
function: Relate
dependencies: 0
inputs: military conflicts
backward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Find
inputs: Kingdom of Bulgaria
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: And
dependencies: 2
5
function: What
dependencies: 6