Question: What is the connection between Emma (the one that has Samantha Morton as a cast member) to Samantha Morton?
Choices:
exported to
military casualty classification
father
cast member
chairperson
doctoral advisor
editor
designed by
operating system
narrative role
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Emma" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Samantha Morton" . ?e_2 <pred:name> "Samantha Morton" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Samantha Morton
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Emma
function: And
dependencies: 1
2
function: Find
inputs: Samantha Morton
function: QueryRelation
dependencies: 3
4