Question: Hercules, the story superhero, has what connection to Greece?
Choices:
works in collection
family name
creator
distributor
penalty
industry
voice actor
founded by
production company
country of citizenship
Program:
function: Find
inputs: superhero
function: Relate
dependencies: 0
inputs: narrative role
backward
function: Find
inputs: Hercules
function: And
dependencies: 1
2
function: Find
inputs: Greece
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hercules" . ?e_1 <narrative_role> ?e_3 . ?e_3 <pred:name> "superhero" . ?e_2 <pred:name> "Greece" . ?e_1 ?p ?e_2 .  }
Answer: country of citizenship