Question: How is Anastasia whose narrative location is Saint Petersburg related to Bernadette Peters?
Choices:
genre
voice actor
is a list of
edition or translation of
airline hub
published in
copyright representative
official symbol
talk show guest
producer
Answer: voice actor
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Anastasia" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "Saint Petersburg" . ?e_2 <pred:name> "Bernadette Peters" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Saint Petersburg
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Anastasia
function: And
dependencies: 1
2
function: Find
inputs: Bernadette Peters
function: QueryRelation
dependencies: 3
4