Question: What family belongs to a sovereign state which is the follower of Kingdom of Sardinia?
Choices:
House of Wittelsbach
Trieste
House of Savoy
Pavia
Clan Douglas
Lombardy
Turin
House of Hanover
Mantua
Milan
Program:
function: Find
inputs: Kingdom of Sardinia
function: Relate
dependencies: 0
inputs: follows
backward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: family
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "family" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <follows> ?e_3 . ?e_3 <pred:name> "Kingdom of Sardinia" .   }
Answer: House of Savoy