Question: Which dynasty was founded by George V and that is the family of Charles, Prince of Wales?
Choices:
Chakri Dynasty
House of Hohenzollern
Borjigin
Imperial House of Japan
House of Stuart
House of Plantagenet
House of Orange-Nassau
House of Oldenburg
House of Bernadotte
House of Windsor
Program:
function: Find
inputs: George V
function: Relate
dependencies: 0
inputs: founded by
backward
function: FilterConcept
dependencies: 1
inputs: dynasty
function: Find
inputs: Charles, Prince of Wales
function: Relate
dependencies: 3
inputs: family
forward
function: FilterConcept
dependencies: 4
inputs: dynasty
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "dynasty" . ?e <founded_by> ?e_1 . ?e_1 <pred:name> "George V" .  ?e_2 <family> ?e . ?e_2 <pred:name> "Charles, Prince of Wales" .  }
Answer: House of Windsor