Question: For the sovereign state that is the country of Genoa, what sovereign state is its country?
Choices:
Kingdom of Sardinia
Mexico
Vietnam
South Korea
Nepal
Belize
Moldavia
Spain
Saudi Arabia
Hungary
Program:
function: Find
inputs: Genoa
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: country
forward
function: FilterConcept
dependencies: 3
inputs: sovereign state
function: What
dependencies: 4
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> "sovereign state" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Genoa" .   }
Answer: Kingdom of Sardinia