Question: What is the connection between Wonder Woman (the one that has Cary Elwes as a cast member) to Edward Herrmann?
Choices:
nominated for
illustrator
country of origin
cause of death
programming language
cast member
head of state
approved by
exported to
vehicle normally used
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Wonder Woman" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Cary Elwes" . ?e_2 <pred:name> "Edward Herrmann" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Cary Elwes
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Wonder Woman
function: And
dependencies: 1
2
function: Find
inputs: Edward Herrmann
function: QueryRelation
dependencies: 3
4