Question: What is the relationship between Public Enemies (the one that has Emilie de Ravin as a cast member) to John Ortiz?
Choices:
heritage designation
cast member
religion
language of work or name
partially contains
award received
Wikidata property
talk show guest
work location
producer
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Public Enemies" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Emilie de Ravin" . ?e_2 <pred:name> "John Ortiz" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Emilie de Ravin
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Public Enemies
function: And
dependencies: 1
2
function: Find
inputs: John Ortiz
function: QueryRelation
dependencies: 3
4