Question: What is the relationship between Charmed (the one that has Shannen Doherty as a cast member) to Alyssa Milano?
Choices:
country of origin
family name
foundational text
location of final assembly
officially opened by
chief executive officer
drug used for treatment
convicted of
cast member
located in time zone
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Charmed" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Shannen Doherty" . ?e_2 <pred:name> "Alyssa Milano" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Shannen Doherty
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Charmed
function: And
dependencies: 1
2
function: Find
inputs: Alyssa Milano
function: QueryRelation
dependencies: 3
4