Question: What sovereign state is a country that participated in a war Kingdom of Hungary (the participant of Thirty Years' War) participated in ?
Choices:
Kiribati
Switzerland
Ecuador
Weimar Republic
Dominican Republic
Cambodia
El Salvador
Holy Roman Empire
Vatican City
New Zealand
Program:
function: Find
inputs: Thirty Years' War
function: Relate
dependencies: 0
inputs: participant
forward
function: Find
inputs: Kingdom of Hungary
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: participant
backward
function: FilterConcept
dependencies: 4
inputs: war
function: Relate
dependencies: 5
inputs: country
forward
function: FilterConcept
dependencies: 6
inputs: sovereign state
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <country> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "war" . ?e_1 <participant> ?e_2 . ?e_2 <pred:name> "Kingdom of Hungary" . ?e_3 <participant> ?e_2 . ?e_3 <pred:name> "Thirty Years' War" .   }
Answer: Holy Roman Empire