Question: How does Weeds (the one that has Elizabeth Perkins as a cast member) relate to Martin Short ?
Choices:
architect
drug used for treatment
father
official residence
original network
heritage designation
eye color
language of work or name
facet of
cast member
Program:
function: Find
inputs: Elizabeth Perkins
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Weeds
function: And
dependencies: 1
2
function: Find
inputs: Martin Short
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Weeds" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Elizabeth Perkins" . ?e_2 <pred:name> "Martin Short" . ?e_1 ?p ?e_2 .  }
Answer: cast member